commit 60ce743fc0ad3955f4d5aae590ed73fa503606be Author: PANIK\chris Date: Tue Aug 5 22:42:07 2025 +0200 first re-commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9497864 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.o +rapidsrc/build +*.autosave +supportware/src/.libs +*.Po + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..3a662cc --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# supportware.1.9.x diff --git a/base.cfg b/base.cfg new file mode 100644 index 0000000..fcf46db --- /dev/null +++ b/base.cfg @@ -0,0 +1,1655 @@ + + + +section:"mailmanager" +{ + select="select distinct sn_nickmail, sn_nickname, id_user from tr_msgmain where id_state & 8 != 0 + and sn_nickmail != '' and id_parent='{id_parent}' and sn_nickmail != '{sn_nickmail:dummy}'"; +} + + + + +section:"webfilemanager" +{ + + select="select * + from tr_image order by sn_datecreated desc"; + + on_image_upload = "insert into tr_image( id_parent, id_state, id_user, sn_nickname, sn_threadpath, sn_imgname, sn_imgpath, sn_imgwidth, sn_imgheight, + sn_datecreated, sn_senderip ) values( '{id_parent}', 64, '{id_user}', '{sn_nickname}', '{sn_threadpath}', + '{sn_filename}', '{sn_imgpath}', '{sn_imgwidth}', '{sn_imgheight}', now(), '{sn_senderip}' )"; + +} + + + +section:"relatedlinks" +{ + + create = "insert into tr_relatedlinks values ( {id}, (select group_concat( id ) from (select * from( + (select id, MATCH ( sn_msgsubject ) AGAINST ( '{key}' ) score + from tr_msgmain where id_group = '{id_group}' and id_state & 1 != 0 and sn_childcount > 0 + and id_parent != '{id}' and id_type = 'posting' order by score desc limit 5) + + union all + + (select id, MATCH ( sn_msgsubject ) AGAINST ( '{key}' ) * 1.5 score from tr_msgmain + WHERE + id_type = 'faqs' and id_state & 2 = 0 and id_parent != '{id}' order by score desc limit 5) ) + AS t1 order by score desc limit 5 ) as t2), now() )"; + +} + + + +table:"site.searchrelated" +{ + fetch = "select sn_relatedlinks from tr_relatedlinks where id_parent = '{id_parent}'"; + + select = "select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( {entry} )"; + +} + + +table:"site.redirect" +{ + getid = "SELECT id_msg from tr_msgmapping where id_auto = '{id}'"; +} + + +table:"site.usercontent" +{ + contentcount = "select count(*) from tr_msgmain where id_state=64 and sn_msgbody != ''"; +} + + +table:"site.searchseealso" +{ + select="select sn_relatedlinks from tr_msgrelated where id_parent = '{id_parent}'"; +} + + +table:"site.blocklist" +{ + select="select * from {database}tr_blocklist"; + update="update {database}tr_blocklist set sn_body='{sn_body}' where id='{id}'"; +} + + +table:"site.categories" +{ + on_create_categories = "select * from {database}tr_msgcategories order by id"; + +} + + +table:"webgroupmgr" +{ + + select = "SELECT id, id_state, sn_groupname, sn_groupdescription, sn_groupkeys, sn_groupicon, sn_groupicon_small from tr_group order by sn_groupposition"; + + count_one = "select count(*) 'sn_count' from tr_message where id_type='posting' and id_group='{id}'"; + +} + + +table:"sxpageforum" +{ + + on_overview = "select t1.id, t1.id id2, t1.id_state, t1.id_parent, t1.id_type, t1.id_user, t1.sn_msgsubject, + t2.sn_msgteaser sn_block_teaser, + t1.sn_msgbody, t1.sn_childcount xx_answercount, t1.sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.sn_nickname + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = '{id_type}' + order by t1.sn_datemodified desc"; + + on_fetch_teaser_ids = "SELECT group_concat( id_main ) from ( SELECT id_main FROM tr_teaserentries where ( now() - sn_datepublish ) > 0 + order by ( now() - sn_datepublish ) asc limit 3 ) as t1"; + + on_fetch_teaser_entry = "select t1.id, t1.id id2, t1.id_parent, t1.sn_msgsubject, t2.sn_msgteaser sn_block_teaser_flat, t3.sn_categoryname, t3.sn_categorykey, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date' + from tr_msgmain t1 left join( tr_msgext t2, tr_msgcategories t3, tr_msgcatmap t4 ) on (t1.id = t2.id_main and t3.id = t4.id_cat and t1.id = t4.id_faq ) + where t1.id = {entry} {sn_filter:and t1.id_state & 2 = 0} and t1.id_state & 196 = 0 "; + + + on_fetch_news="select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5"; + + on_fetch_top_news="select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3"; + + + + on_create = "insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, id_group, sn_senderip ) + values ( 'posting', {id_state:1}, {id_user}, '{sn_nickname}', '{sn_nickmail}', '{sn_msgsubject}', + '{sn_msgbody}', now(), now(), {id_group}, '{sn_senderip}' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgcache( id_parent, id_type, id_state, id_group, id_user, sn_msgsubject, sn_nickname, + sn_datemodified, sn_datecreated ) + values ( LAST_INSERT_ID(), 'posting', {id_state:1}, {id_group}, '{id_user}', '{sn_msgsubject}', '{sn_nickname}', now(), now() ); + + update users.tr_user set sn_numquestions= sn_numquestions+1 where id = '{id_user}' "; + + + on_edit = "SELECT * from tr_msgmain where id = '{id}'"; + + on_update = "update tr_msgmain set sn_msgsubject='{sn_msgsubject}', sn_childcount={sn_childcount}, + sn_nickname = '{sn_nickname}', sn_nickmail='{sn_nickmail}', id_state={id_state}, id_group='{id_group}', + sn_msgbody='{sn_msgbody}', sn_datecreated = '{sn_datecreated}', sn_datemodified = '{sn_datemodified}', + id_user='{id_user}' where id='{id}'; + + update tr_msgcache set id_user={id_user}, id_state='{id_state}', sn_childcount={sn_childcount}, + sn_msgsubject='{sn_msgsubject}', id_group='{id_group}', + sn_nickname = '{sn_nickname}', sn_datecreated = '{sn_datecreated}', sn_datemodified = '{sn_datemodified}' + where id_parent='{id}' "; + + on_remove = "update tr_msgmain set id_state = 2 where id_parent = '{id}'; + + update tr_msgcache set id_state = 2 where id_parent = '{id}' "; + + insert_id = "select LAST_INSERT_ID()"; + + on_set_state = "update tr_msgmain set id_state = {id_state} where id = '{id}'; + + update tr_msgcache set id_state = {id_state} where id_parent = '{id}' "; + + + solvedcheck = "select id_user from tr_msgmain where id='{id}'"; + + posting_vote0 = "select count(*) from tr_votecount where id_user ='{id_user}' and id_posting='{id}'"; + posting_vote1 = "select count(*) from tr_votecount where year(sn_datecreated) = year(CURDATE()) + and DAYOFYEAR(sn_datecreated) = DAYOFYEAR(CURDATE()) and id_user ='{id}'"; + posting_vote2 = "insert into tr_votecount values( '{id_user}', '{id}', now(), '{sn_senderip}' )"; + posting_vote3 = "update tr_msgmain set sn_votecount = sn_votecount + 1 where id='{id}'"; + posting_vote4 = "update users.tr_user set sn_numreasonable = sn_numreasonable + 1 where id='{id}'"; + + on_drop_alert = "update tr_msgmain set id_state = id_state & ~8 where sn_nickmail='{sn_nickmail}' and id_parent = '{id_parent}'"; + + on_bookmark = "replace into tr_msgwatch( id_parent, id_user, sn_datemodified ) select id_parent, '{id_user}', sn_datemodified from tr_msgmain where id = '{id}'"; + on_bookmark_drop = "delete from tr_msgwatch where id_user='{id_user}' and id_parent='{id}' "; + on_bookmark_update = "update tr_msgwatch set sn_datemodified=now() where id_user='{id_user}' and id_parent='{id}'"; + + on_fetch_header = "select id_group, id_state, id_type, sn_msgsubject, sn_msgbody sn_block_posting from tr_msgmain t1 where id_parent='{id}' {sn_filter} + order by sn_datecreated limit 1"; + + on_tmp_create = "insert into users.tr_msgtmp( sn_key, id_parent, id_type, id_state, sn_msgsubject, sn_msgbody, sn_datecreated, + id_group, sn_lastpath, sn_senderip ) values ( '{sn_key}', 0, 'posting', {id_state:1}, '{sn_msgsubject}', '{sn_msgbody}', now(), {id_group}, '{sn_lastpath}','{sn_senderip}' ); "; + + + on_user_update = "update tr_msgmain set sn_msgbody='{sn_msgbody}' where id='{id}'; + + delete from tr_msgcache where id_parent = '{id}' "; + + +} + + + + + + + + +table:"sxpageforum.overview" +{ + on_overview = "select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + {sn_filter} + order by sn_datemodified desc limit {from}, {xcount}"; + + on_count = "select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + {sn_filter} "; + +} + + +table:"sxpageforum.groups" +{ + on_show_group = "select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='{id}' {sn_filter} and t1.id_state & 196 = 0 + order by sn_datemodified desc limit {count}, {max}"; + + on_count = "select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '{id_group}' {sn_filter} and t1.id_state & 196 = 0 "; +} + + +table:"sxpageforum.show" +{ + on_show = "select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='{id}' {sn_filter} + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '{id}'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '{id}'"; + + +} + + +table:"sxpageforum.comments" +{ + + on_close_check = "SELECT (id_state & 34 > 0) flag from tr_msgmain where id = '{id}'"; + + + on_reply_create = "insert into tr_msgmain( id_group, id_state, id_type, id_user, id_parent, sn_msgsubject, sn_msgbody, + sn_nickname, sn_nickmail, sn_datecreated, sn_datemodified, sn_senderip ) + values ( {id_group}, {id_state:1}, 'reply', {id_user}, {id}, '{sn_msgsubject}', '{sn_msgbody}', '{sn_nickname}', + '{sn_nickmail}', now(), now(), '{sn_senderip}' ); + + update tr_msgmain set sn_childcount = sn_childcount + 1, sn_datemodified = now() where id = '{id}'; "; + + + on_cache_update = "update tr_msgcache set sn_childcount = sn_childcount + 1, sn_datemodified = now() where id_parent = '{id}'"; + + + on_cache_insert = "insert into tr_msgcache SELECT id_parent, id_type, id_state, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, + sn_datecreated, now(), sn_accesscount from tr_msgmain where id = '{id}'"; + + + on_reply_edit = "select * from tr_msgmain where id = '{id}'"; + + + on_reply_update = "update tr_msgmain set id_user={id_user}, id_state={id_state}, id_group = {id_group}, sn_nickname = '{sn_nickname}', + sn_nickmail='{sn_nickmail}', sn_msgbody='{sn_msgbody}', sn_datecreated = '{sn_datecreated}', + sn_datemodified = '{sn_datemodified}' where id='{id}'"; + + + on_reply_user_update = "update tr_msgmain set sn_msgbody='{sn_msgbody}' where id='{id}'"; + + + on_fetch_date = "select count(*), max(sn_datecreated) from tr_msgmain + where id_parent = '{id_parent}' and id != '{id}' and id_state & 2 = 0"; + + + on_reply_remove = "update tr_msgmain set id_state = 2 where id = '{id}'; + + update tr_msgmain set sn_childcount = '{count}', sn_datemodified='{date}' where id = '{id_parent}'; + + update tr_msgcache set sn_childcount = '{count}', sn_datemodified='{date}' where id_parent = '{id_parent}'; "; + + + on_childcount = "select count(*) from tr_msgmain where id_parent = '{id_parent}' and id != id_parent and id_state & 2 = 0"; + + + on_update_childcount = "update tr_msgmain set sn_childcount = '{count}' where id = '{id_parent}'; + + update tr_msgcache set sn_childcount = '{count}' where id_parent = '{id_parent}'; "; + + + on_count = "select count(*) from tr_msgmain t1 where id_parent='{id}' {sn_filter} "; + + on_tmp_reply_create = "insert into users.tr_msgtmp( sn_key, id_parent, id_type, id_state, sn_msgsubject, sn_msgbody, + sn_datecreated, id_group, sn_lastpath, sn_senderip ) + values ( '{sn_key}', {id}, 'reply', {id_state:1}, '{sn_msgsubject}', '{sn_msgbody}', now(), + {id_group}, '{sn_lastpath}', '{sn_senderip}' ); "; + +} + + +table:"sxpageforumthread" +{ + extends = "sxpageforum"; +} + +table:"sxpageforumthread.show" +{ + extends = "sxpageforum.show"; +} + +table:"sxpageforumthread.comments" +{ + extends = "sxpageforum.comments"; +} + +table:"sxpageforumthread.overview" +{ + extends = "sxpageforum.overview"; +} + + + +table:"sxpageforumold" +{ + extends = "sxpageforum"; +} + +table:"sxpageforumold.show" +{ + extends = "sxpageforum.show"; +} + +table:"sxpageforumold.comments" +{ + extends = "sxpageforum.comments"; +} + +table:"sxpageforumold.overview" +{ + extends = "sxpageforum.overview"; +} + + + +table:"sxpageforumoverview" +{ + extends = "sxpageforum"; +} + +table:"sxpageforumoverview.show" +{ + extends = "sxpageforum.show"; +} + +table:"sxpageforumoverview.comments" +{ + extends = "sxpageforum.comments"; +} + +table:"sxpageforumoverview.overview" +{ + on_overview = "select id_parent, id_parent id, id_type, id_state, id_user, id_group, sn_nickname, t2.sn_msgteaser sn_block_teaser, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, t2.sn_msgteaser, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 left join tr_msgext t2 on ( t1.id_parent = t2.id_main ) + where id_group != 30 and id_group != 13 and t1.id_state & 196 = 0 + + {sn_filter} + order by sn_datemodified desc limit {from}, {xcount}"; + + on_count = "select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + {sn_filter} "; +} + + + +table:"sxpageforumstart" +{ + extends = "sxpageforum"; +} + +table:"sxpageforumstart.show" +{ + extends = "sxpageforum.show"; +} + +table:"sxpageforumstart.comments" +{ + extends = "sxpageforum.comments"; +} + +table:"sxpageforumstart.overview" +{ + + on_overview = "select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + {sn_filter} + order by sn_childcount desc limit {from}, {xcount}"; + + on_count = "select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + {sn_filter} "; + + create="drop table IF EXISTS tr_msgcache;CREATE TABLE tr_msgcache + select id id_parent, id_type, id_state, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, + sn_datecreated, sn_datemodified, sn_accesscount from tr_msgmain where id_group != 13 + and (id_type = 'posting' or id_type = 'faqs' or id_type = 'news' ) and id_state != 64 order by sn_datemodified desc limit 0,5000;"; + +} + + +table:"sxpageforumstart.draft" +{ + fetch_draft = "select id from tr_msgmain where id_state = 64 and id_type = 'posting' and id_user = '{id_user}'"; + + create_draft = "insert into tr_msgmain( id_type, id_state, id_user, sn_datecreated ) values ( 'posting', 64, '{id_user}', now() )"; + + draft_id = "select LAST_INSERT_ID()"; + + on_draft_update = "update tr_msgmain set id_parent='{id_parent}', id_type='{id_type}', id_state='{id_state}', id_group='{id_group}', sn_msgsubject = '{sn_msgsubject}', + sn_msgbody = '{sn_msgbody}', sn_nickname = '{sn_nickname}', sn_nickmail = '{sn_nickmail}', sn_senderip = '{sn_senderip}', + sn_datecreated = now(), sn_datemodified = now() + where id = '{id}'"; + + vote_count = "select count(*) from tr_imagevotecount where id_user = '{id_user}' and sn_imgname = '{sn_imgname}'"; + + vote_image = "insert into tr_imagevotecount( id_user, flag_good_vote, sn_imgname, sn_datecreated, sn_senderip ) + values( '{id_user}', '{flag_good}', '{sn_imgname}', now(), '{sn_senderip}' ); + + update tr_image set {count} = {count} + 1 where sn_imgname = '{sn_imgname}'"; + + vote_admin = "update tr_image set id_state = '{id_state}' where sn_imgname = '{sn_imgname}'"; +} + + +table:"sxpageforumgroups" +{ + extends = "sxpageforum"; +} + +table:"sxpageforumgroups.show" +{ + extends = "sxpageforum.show"; +} + +table:"sxpageforumgroups.comments" +{ + extends = "sxpageforum.comments"; +} + +table:"sxpageforumgroups.overview" +{ + extends = "sxpageforum.overview"; +} + + +table:"sxpageforumgroups.groups" +{ + extends = "sxpageforum.groups"; +} + + + + + + +table:"sxpagefaqs" +{ + + on_create_dossiers = "select * from tr_msgdossiers order by id"; + + on_create = "insert into tr_msgmain( id_type, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, sn_datecreated, sn_datemodified, + sn_senderip ) values ( 'faqs', {id_user}, '{sn_nickname}', '{sn_nickmail}', '{sn_msgsubject}', '{sn_msgbody}', now(), + now(), '{sn_senderip}' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser, sn_msgkeys, sn_msgtags ) + values ( LAST_INSERT_ID(), '{sn_msgteaser}', '{sn_msgkeys}', '{sn_msgtags}' ); + + insert into tr_msgcache( id_parent, id_type, id_user, sn_msgsubject, sn_nickname, sn_datemodified, sn_datecreated ) + values ( LAST_INSERT_ID(), 'faqs', '{id_user}', '{sn_msgsubject}', '{sn_nickname}', now(), now() )"; + + + + on_user_create = "insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'faqs', 160, {id_user}, '{sn_nickname}', '{sn_nickmail}', 'Titel', '', now(), now(), '{sn_senderip}' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) "; + + + on_user_update = "update tr_msgmain set sn_msgsubject='{sn_msgsubject}', sn_msgbody='{sn_msgbody}' where id='{id}'; + + update tr_msgext set sn_msgteaser='{sn_msgteaser}', sn_msgtags='{sn_msgtags}', sn_msgvgwort='{sn_msgvgwort}' + where id_main = '{id}'; + + delete from tr_msgcache where id_parent = '{id}' "; + + on_user_publish = "update tr_msgmain set id_state='{id_state}', sn_msgsubject='{sn_msgsubject}', sn_msgbody='{sn_msgbody}' where id='{id}'; + + update tr_msgext set sn_msgteaser='{sn_msgteaser}', sn_msgtags='{sn_msgtags}', sn_msgvgwort='{sn_msgvgwort}' + where id_main = '{id}'; + + delete from tr_msgcache where id_parent = '{id}' "; + + + on_edit = "SELECT * from tr_msgmain t1, tr_msgext t2 where t1.id = t2.id_main and t1.id = '{id}'"; + + on_edit_categories = "SELECT group_concat( id_cat ) sn_msgcategories, group_concat( sn_categoryname ) sn_msgcatpath + FROM tr_msgcatmap t1, tr_msgcategories t2 where t1.id_faq ='{id}' and t2.id = t1.id_cat"; + + on_publish = "insert ignore into tr_msgcache( id_parent, id_type, sn_datecreated, sn_datemodified ) values( '{id}', 'faqs', now(), now() )"; + + on_update = "update tr_msgmain set sn_msgsubject='{sn_msgsubject}', sn_childcount={sn_childcount}, + sn_nickname = '{sn_nickname}', sn_nickmail='{sn_nickmail}', id_state={id_state}, + sn_msgbody='{sn_msgbody}', sn_datecreated = '{sn_datecreated}', sn_datemodified = '{sn_datemodified}', + id_user='{id_user}' where id='{id}'; + + update tr_msgext set sn_msgteaser='{sn_msgteaser}', sn_msgkeys='{sn_msgkeys}', sn_msgvgwort='{sn_msgvgwort}', + sn_msgtags ='{sn_msgtags}' where id_main = '{id}'; + + update tr_msgcache set id_user={id_user}, sn_childcount={sn_childcount}, + sn_msgsubject='{sn_msgsubject}', id_state='{id_state}', + sn_nickname = '{sn_nickname}', sn_datecreated = '{sn_datecreated}', sn_datemodified = '{sn_datemodified}' + where id_parent='{id}' "; + + on_remove = "update tr_msgmain set id_state = 2 where id_parent = '{id}'; + + update tr_msgcache set id_state = 2 where id_parent = '{id}' "; + + on_set_state = "update tr_msgmain set id_state = {id_state} where id = '{id}'; + + update tr_msgcache set id_state = {id_state} where id_parent = '{id}' "; + + on_show_category = "select t1.id, 1 id_group, t1.id_parent, t1.id_user, t1.sn_msgsubject xx_threadlink, t1.sn_msgbody, t2.sn_msgteaser xx_msgteaser, + t1.id id2, t1.id_state, t1.id_type, t1.sn_childcount xx_answercount, + t1.sn_accesscount xx_hitcount, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.sn_nickname + from tr_msgmain t1, tr_msgext t2 where t1.id_type = 'faqs' and t1.id = t2.id_main and id in + ( select id_faq from tr_msgcatmap where id_cat in ( {categories} ) ) {sn_filter} + order by t1.sn_datecreated desc limit {from}, {xcount}"; + + + on_update_category = "delete from tr_msgcatmap where id_faq = '{id}'; insert into tr_msgcatmap( id_faq, id_cat ) values {values}"; + + on_bookmark = "replace into tr_msgwatch( id_parent, id_user, sn_datemodified ) select id_parent, '{id_user}', sn_datemodified from tr_msgmain where id = '{id}'"; + + on_bookmark_drop = "delete from tr_msgwatch where id_user='{id_user}' and id_parent='{id}' "; + + on_bookmark_update = "update tr_msgwatch set sn_datemodified=now() where id_user='{id_user}' and id_parent='{id}'"; + + + + + on_count = " select count(*) from tr_msgmain t1, tr_msgext t2 + where t1.id_type = 'faqs' and t1.id = t2.id_main and t2.fon:fetch like '%{id_category}|%' {sn_filter} "; + + on_fetch_categories = "select id_cat from tr_msgcatmap where id_faq = '{id}'"; + + on_admin_categories = "select *,id id1, id id2 from tr_msgcategories order by id"; + + on_admin_categories_kill = "delete from tr_msgcategories where id='{id}'"; + + on_admin_categories_update = "update tr_msgcategories set id_parent= '{id_parent}', sn_categoryname = '{sn_categoryname}', + sn_categorykey = '{sn_categorykey}', sn_categorytitle = '{sn_categorytitle}' where id='{id}'"; + + on_admin_categories_create = "insert into tr_msgcategories values('{id}', '{id_parent}', '{sn_categoryname}', + '{sn_categorykey}', '{sn_categorytitle}' )"; + + + + + on_admin_teaser_box = "select t1.id_main id_parent, t1.id_main id, t1.id_main id1 ,t1.id_main id2, DATE_FORMAT( sn_datepublish,'%d.%m.%Y, %H:%i' ) 'sn_date', sn_msgsubject, + sn_msgteaser sn_block_teaser, sn_datepublish + from tr_teaserentries t1 left join ( tr_msgmain t2, tr_msgext t3 ) on (t1.id_main = t2.id and t1.id_main = t3.id_main ) + where t2.id_type = 'faqs' + order by sn_datepublish desc"; + + on_admin_teaser_box_create = "replace into tr_teaserentries values ( '{id}', STR_TO_DATE( '{sn_datepublish}', '%d.%m.%Y, %H:%i' ) )"; + + on_admin_teaser_box_add = "replace into tr_teaserentries values ( '{id}', now() )"; + + on_admin_teaser_box_kill = "delete from tr_teaserentries where id_main = '{id}'"; + + + +} + + + + +table:"sxpagefaqs.dossiers" +{ + + on_fetch_dossier = "select id, sn_msgsubject from tr_msgmain + where id_type='faqs' and id in ( {entries} )"; + + on_admin_dossiers = "select *,id id1, id id2, DATE_FORMAT( sn_datecreated,'%d.%m.%Y') 'sn_date' from tr_msgdossiers order by id"; + + on_admin_dossiers_kill = "delete from tr_msgdossiers where id='{id}'"; + + on_admin_dossiers_create = "replace into tr_msgdossiers( id, sn_msgsubject, sn_msgentries, sn_datecreated ) + values( '{id}', '{sn_msgsubject}', '{sn_msgentries}', now() )"; + + on_admin_dossiers_update = "update tr_msgdossiers set sn_msgentries = '{sn_msgentries}' where id = '{id}'"; + + on_search_faqs = "select id, id_group, id_parent, id_state, id_type, id_parent, id_user, sn_nickname, + sn_msgsubject xx_threadlink, sn_msgsubject, sn_msgbody, sn_childcount xx_anwsercount, t2.sn_msgteaser sn_block_teaser, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date', t2.sn_msgteaser sn_block_teaser_flat, t2.sn_msgteaser xx_msgteaser + from tr_msgmain t1, tr_msgext t2 + WHERE t1.id = t2.id_main and MATCH ( t1.sn_msgsubject, t2.sn_msgteaser ) AGAINST ('{sn_keys}' IN BOOLEAN MODE ) and id_group != 13 and id_type = 'faqs' + order by id desc"; + + on_list_faqs = "select id, id_group, id_parent, id_state, id_type, id_parent, id_user, sn_nickname, t2.sn_msgteaser sn_block_teaser_flat, + sn_msgsubject xx_threadlink, sn_msgsubject, sn_msgbody, sn_childcount xx_anwsercount, t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser xx_msgteaser, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' + from tr_msgmain t1, tr_msgext t2 + WHERE t1.id = t2.id_main and id_type = 'faqs' + order by id desc limit 20"; + +} + + + + + + + + + + +table:"sxpagefaqs.show" +{ + on_show = "select t1.id, t1.id id2, t1.id_parent, t1.id_type, t1.id_user, t1.sn_nickname, t1.sn_msgsubject, t2.sn_msgvgwort, + t2.sn_msgteaser, t1.sn_msgbody sn_block_article, t1.sn_childcount xx_answercount, t1.sn_accesscount xx_hitcount, t1.id_state, t1.sn_datemodified, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.id_group, t1.sn_senderip + from tr_msgmain t1, tr_msgext t2 + where t1.id_parent = t2.id_main and t1.id_parent = '{id}' {sn_filter} order by t1.sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '{id}'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '{id}'"; +} + + +table:"sxpagefaqs.comments" +{ + on_close_check = "SELECT (id_state & 34 > 0) flag from tr_msgmain where id = '{id}'"; + + + on_reply_create = "insert into tr_msgmain( id_group, id_type, id_user, id_parent, sn_msgsubject, sn_msgbody, + sn_nickname, sn_nickmail, sn_datecreated, sn_datemodified, sn_senderip ) + values ( {id_group}, 'comments', {id_user}, {id}, '{sn_msgsubject}', '{sn_msgbody}', '{sn_nickname}', + '{sn_nickmail}', now(), now(), '{sn_senderip}' ); + + update tr_msgmain set sn_childcount = sn_childcount + 1, sn_datemodified = now() where id = '{id}';"; + + + on_cache_update = "update tr_msgcache set sn_childcount = sn_childcount + 1, sn_datemodified = now() where id_parent = '{id}'"; + + + on_cache_insert = "insert into tr_msgcache SELECT id_parent, id_type, id_state, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, + sn_datecreated, now(), sn_accesscount from tr_msgmain where id = '{id}'"; + + + on_reply_edit = "select * from tr_msgmain where id = '{id}'"; + + + on_reply_update = "update tr_msgmain set id_user={id_user}, id_state={id_state}, sn_nickname = '{sn_nickname}', + sn_msgbody='{sn_msgbody}', sn_datecreated = '{sn_datecreated}', + sn_datemodified = '{sn_datemodified}' where id='{id}'"; + + on_fetch_date = "select count(*), max(sn_datecreated) from tr_msgmain + where id_parent = '{id_parent}' and id != '{id}' and id_state & 2 = 0"; + + + on_reply_remove = "update tr_msgmain set id_state = 2 where id = '{id}'; + + update tr_msgmain set sn_childcount = '{count}', sn_datemodified='{date}' where id = '{id_parent}'; + + update tr_msgcache set sn_childcount = '{count}', sn_datemodified='{date}' where id_parent = '{id_parent}'; "; + + + on_childcount = "select count(*) from tr_msgmain where id_parent = '{id_parent}' and id_state & 2 = 0"; + + + on_update_childcount = "update tr_msgmain set sn_childcount = '{count}' where id = '{id_parent}'; + + update tr_msgcache set sn_childcount = '{count}' where id_parent = '{id_parent}'; "; + + on_tmp_reply_create = "insert into users.tr_msgtmp( sn_key, id_parent, id_type, id_state, sn_msgsubject, + sn_msgbody, sn_datecreated, sn_lastpath, sn_senderip ) + values ( '{sn_key}', {id}, 'comments', {id_state:1}, '{sn_msgsubject}', '{sn_msgbody}', + now(), '{sn_lastpath}', '{sn_senderip}' ); "; + +} + + +table:"sxpagesearch.faqs" +{ + on_search = "select t1.id,t1.id_parent, t1.id_user, t1.sn_nickname, t1.id_type, t1.sn_msgsubject xx_threadlink, + t1.id_group, DATE_FORMAT(t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.sn_childcount xx_answercount, t1.sn_accesscount xx_hitcount + from tr_msgmain t1 WHERE + MATCH ( t1.sn_msgsubject ) AGAINST( '{sn_key}' IN BOOLEAN MODE ) and t1.id_type = 'faqs' and t1.id_state & 1 != 0 + order by t1.sn_datecreated desc limit 0, 5"; +} + + + + + + + + + + + +table:"sxpagenews" +{ + + + on_create = "insert into tr_msgmain( id_type, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, sn_datecreated, sn_datemodified, + sn_senderip ) values ( 'news', {id_user}, '{sn_nickname}', '{sn_nickmail}', '{sn_msgsubject}', '{sn_msgbody}', now(), + now(), '{sn_senderip}' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser, sn_msgkeys, sn_msgtags ) + values ( LAST_INSERT_ID(), '{sn_msgteaser}', '{sn_msgkeys}', '{sn_msgtags}' ); + + insert into tr_msgcache( id_parent, id_type, id_user, sn_msgsubject, sn_nickname, sn_datemodified, sn_datecreated ) + values ( LAST_INSERT_ID(), 'news', '{id_user}', '{sn_msgsubject}', '{sn_nickname}', now(), now() )"; + + + + on_user_create = "insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'news', 160, {id_user}, '{sn_nickname}', '{sn_nickmail}', 'Titel', '', now(), now(), '{sn_senderip}' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) "; + + + on_user_update = "update tr_msgmain set sn_msgsubject='{sn_msgsubject}', sn_msgbody='{sn_msgbody}' where id='{id}'; + + update tr_msgext set sn_msgteaser='{sn_msgteaser}', sn_msgtags='{sn_msgtags}', sn_msgvgwort='{sn_msgvgwort}' + where id_main = '{id}'; + + delete from tr_msgcache where id_parent = '{id}' "; + + + on_user_publish = "update tr_msgmain set id_state='{id_state}', sn_msgsubject='{sn_msgsubject}', sn_msgbody='{sn_msgbody}' where id='{id}'; + + update tr_msgext set sn_msgteaser='{sn_msgteaser}', sn_msgtags='{sn_msgtags}', sn_msgvgwort='{sn_msgvgwort}' + where id_main = '{id}'; + + delete from tr_msgcache where id_parent = '{id}' "; + + + on_edit = "SELECT * from tr_msgmain t1, tr_msgext t2 where t1.id = t2.id_main and t1.id = '{id}'"; + + on_publish = "insert ignore into tr_msgcache( id_parent, id_type, sn_datecreated, sn_datemodified ) values( '{id}', 'news', now(), now() )"; + + on_update = "update tr_msgmain set sn_msgsubject='{sn_msgsubject}', sn_childcount={sn_childcount}, + sn_nickname = '{sn_nickname}', sn_nickmail='{sn_nickmail}', id_state={id_state}, + sn_msgbody='{sn_msgbody}', sn_datecreated = '{sn_datecreated}', sn_datemodified = '{sn_datemodified}', + id_user='{id_user}' where id='{id}'; + + update tr_msgext set sn_msgteaser='{sn_msgteaser}', sn_msgkeys='{sn_msgkeys}', sn_msgvgwort='{sn_msgvgwort}', + sn_msgtags ='{sn_msgtags}' where id_main = '{id}'; + + update tr_msgcache set id_user={id_user}, sn_childcount={sn_childcount}, + sn_msgsubject='{sn_msgsubject}', id_state='{id_state}', + sn_nickname = '{sn_nickname}', sn_datecreated = '{sn_datecreated}', sn_datemodified = '{sn_datemodified}' + where id_parent='{id}' "; + + on_remove = "update tr_msgmain set id_state = 2 where id_parent = '{id}'; + + update tr_msgcache set id_state = 2 where id_parent = '{id}' "; + + on_set_state = "update tr_msgmain set id_state = {id_state} where id = '{id}'; + + update tr_msgcache set id_state = {id_state} where id_parent = '{id}' "; + + get_next_entry = "SELECT id from tr_msgmain use index(index_id_type) + where sn_datemodified > ( select sn_datemodified from tr_msgmain where id = '{id}' ) + {sn_filter} and id_type='news' order by sn_datemodified asc limit 1"; + + get_previous_entry = "SELECT id from tr_msgmain use index(index_id_type) + where sn_datemodified < ( select sn_datemodified from tr_msgmain where id = '{id}' ) + {sn_filter} and id_type='news' order by sn_datemodified desc limit 1"; + + + + + on_bookmark = "replace into tr_msgwatch( id_parent, id_user, sn_datemodified ) select id_parent, '{id_user}', sn_datemodified from tr_msgmain where id = '{id}'"; + + on_bookmark_drop = "delete from tr_msgwatch where id_user='{id_user}' and id_parent='{id}' "; + + on_bookmark_update = "update tr_msgwatch set sn_datemodified=now() where id_user='{id_user}' and id_parent='{id}'"; + + +} + + + + + + +table:"sxpagenews.overview" +{ + + on_overview = "select t1.id, t1.id id2, t1.id_state, t1.id_parent, t1.id_type, t1.id_user, t1.sn_msgsubject, + t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser xx_msgteaser, + t1.sn_msgbody, t1.sn_childcount xx_answercount, t1.sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.sn_nickname + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = '{id_type}' {sn_filter:and t1.id_state & 2 = 0} and t1.id_state & 196 = 0 + order by t1.sn_datemodified desc"; +} + + + +table:"sxpagenews.show" +{ + extends = "sxpagefaqs.show"; +} + + +table:"sxpagenews.comments" +{ + extends = "sxpagefaqs.comments"; +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +table:"sxpagesearch" +{ + + on_search = "select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_msgsubject, sn_msgbody xx_msgteaser, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + WHERE MATCH ( {field} ) AGAINST ('{sn_key}' IN BOOLEAN MODE ) {type} and id_group != 13 + and id_type != 'comments' {sn_filter} and {group} {questions} + group by id_parent + order by {orderby} limit 0, 200"; + + + threadwatch="select (t1.sn_datemodified > t2.sn_datemodified) xx_flag_new, t1.id_type, t1.id_state, t1.id_parent, + t1.id_user, t1.id_group, t1.sn_nickname, t1.sn_childcount xx_answercount, t1.sn_msgsubject xx_threadlink, + t1.sn_accesscount xx_hitcount, DATE_FORMAT( t1.sn_datemodified,'%d.%m.%Y') 'sn_date', t1.id, t1.sn_senderip + from tr_msgmain t1, tr_msgwatch t2 + WHERE t1.id = t2.id_parent and t2.id_user='{id}' + group by t2.id order by t2.id asc"; + + + +} + + + + + + + +table:"sxpagesearchadmin" +{ + on_search = "select id_type, id, id_state, id_parent, id_user, id_group, sn_nickname, sn_childcount xx_answercount, + sn_msgsubject xx_threadlink, sn_msgbody sn_block_article, sn_senderip, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y, %k:%i') 'sn_date' from tr_msgmain + WHERE 1 != 0 {flip} {flgroup} {fltype} {fldate1} {fldate2} {flnick} {flmail} {flsubject} {flbody} + order by sn_datemodified desc limit 0, 200"; + + on_reply_remove = "update tr_msgmain set id_state = 2 where id = '{id}'; + + update tr_msgmain set sn_childcount = sn_childcount - 1 where id = '{id_parent}'; + + update tr_msgcache set sn_childcount = sn_childcount - 1 where id_parent = '{id_parent}' "; + + on_remove = "update tr_msgmain set id_state = 2 where id_parent = '{id}'; + + update tr_msgcache set id_state = 2 where id_parent = '{id}' "; + + on_clean_user_content = "delete from tr_msgmain where (to_days(CURDATE()) - to_days(sn_datecreated)) > 1 and id_state = 64 and sn_msgbody=''"; + + on_show_user_content = "select id, id id2, id_state, id_type, id_type id_type2, id_user, sn_nickname, id_group, sn_msgsubject, DATE_FORMAT(sn_datecreated,'%d.%m.%Y') + 'sn_date' from tr_msgmain where id_state = 64 and sn_msgbody != '' order by sn_datecreated desc"; + + on_show_user_images = "select *, id_parent id_parent1, sn_imgname sn_imgname1, sn_imgname sn_imgname2,sn_imgname sn_imgname3, + sn_imgname sn_imgname4, sn_imgname sn_imgname5, DATE_FORMAT(sn_datecreated,'%d.%m.%Y')'sn_date', sn_threadpath sn_threadpath1, + sn_threadpath sn_threadpath2, sn_imgpath sn_imgpath1, sn_imgpath sn_imgpath2 + from tr_image order by sn_datecreated desc"; + + on_show_user_image_votes = "SELECT t1.*, t2.sn_nickname, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', + IF( t1.flag_good_vote = 1, 'Gut' , 'Schlecht' ) sn_flag_good_vote + from tr_imagevotecount t1 left join( users.tr_user t2 ) on (t1.id_user = t2.id ) + where t1.sn_imgname = '{sn_imgname}' + order by sn_datecreated desc"; + + + +} + + + + + +table:"sxpagemembers" +{ + + on_overview = "select id, id id_user, sn_nickname, sn_homepagehits, sn_memberbonus, sn_numquestions, sn_numanswers, + sn_numreasonable, sn_numsolutions, sn_numvotes, DATE_FORMAT( sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1 + from tr_user where {condition} order by {orderby} {mode} limit {count}, {max}"; + + on_admin_search = "select id, id id_user, sn_nickname, sn_firstname, sn_lastname, sn_homepagehits, + sn_memberbonus, sn_numquestions, sn_numanswers, sn_numreasonable, sn_numsolutions, sn_numvotes, sn_city, + DATE_FORMAT( sn_datecreated,'%d.%m.%Y') 'sn_datecreated1', sn_nickmail, sn_firstmail, sn_senderip, + DATE_FORMAT( sn_datelastlogin,'%d.%m.%Y') 'sn_datelastlogin1', + sn_homepagetext sn_homepage_short, sn_mailalert + from tr_user where {condition} order by {orderby} {mode} limit {count}, {max}"; + + + on_count = "select count(*) from tr_user where {conditon}"; + + member_show = "select IF ( flag_male = 0 ,'Herr', 'Frau' ) sn_sex, id id_parent, id, id id2, sn_nickname, sn_memberbonus, + sn_numquestions, sn_numanswers, sn_numreasonable, sn_numsolutions, sn_numvotes, + sn_firstname, sn_lastname, sn_street, sn_zipcode, sn_city, sn_firstmail, sn_senderip, + sn_nickmail, sn_icqs, DATE_FORMAT( sn_datelastlogin,'%d.%m.%Y') 'sn_datelastlogin', sn_street, flag_male, + DATE_FORMAT( sn_datecreated,'%d.%m.%Y') 'sn_datecreated', + sn_itemsperpage, sn_homepagetext, sn_homepagetext sn_block_article, sn_homepagelink , sn_homepagelink 'sn_homepagelink2', + sn_homepageimage, sn_homepagehits, + sn_addressbook, sn_googlechannel1, sn_googlechannel2 from tr_user where id='{id}'"; + + + select_votes="select ' ' sn_online, id, sn_nickname, sn_memberbonus, sn_numquestions, sn_numanswers, + sn_numreasonable, sn_numsolutions, sn_numvotes from tr_user order by {sort} desc limit {count}, {max}"; + + + member_guestbook = "select t1.id, t1.id_user, t1.id_sender, t1.sn_msgbody sn_block_posting, t2.sn_nickname, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date', t1.sn_senderip + from tr_guestbook t1, tr_user t2 where t1.id_user='{id_user}' and t1.id_sender = t2.id"; + + on_reply_create = "insert into tr_guestbook( id_user, id_sender, sn_msgbody, sn_datecreated, sn_senderip ) + values ( {id_user}, {id_sender}, '{sn_msgbody}', now(), '{sn_senderip}' )"; + + + + on_friend_invite="insert into tr_friends( id_user, id_friend, sn_datecreated ) values ( '{id_user}', '{id_friend}', now() )"; + + on_friend_accept="update tr_friends set id_state='accepted', sn_datecreated = now() + where id_user = '{id_user}' and id_friend='{id_friend}'"; + + on_friend_drop="update tr_friends set id_state='dropped', sn_datecreated = now() + where id_user = '{id_user}' and id_friend='{id_friend}'"; + + + member_invitations_sent = "select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_friend = '{id_user}' + and t1.id_user = t2.id"; + + member_invitations_received = "select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_user = '{id_user}' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5"; + + member_friends = "select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='accepted' and t1.id_user = '{id_user}' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5"; + + + member_visitors = "select t1.id_user, t1.sn_count sn_hits, t1.id_visitor, t2.sn_firstname, t2.sn_lastname, + t2.sn_homepagehits, t2.id, t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t2.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_visitors t1, tr_user t2 + where t1.id_user = '{id_user}' + and t1.id_visitor = t2.id + order by t1.sn_datemodified desc limit 5"; + + member_visitors_count = "select count(*) from tr_visitors + where id_user='{id_user}' and id_visitor='{id_visitor}'"; + + member_visitors_insert = "insert into tr_visitors( id_user, id_visitor, sn_datemodified ) + values ( '{id_user}', '{id_visitor}', now() ); + update tr_user set sn_homepagehits = sn_homepagehits + 1 where id = '{id_user}'"; + + member_visitors_update = "update tr_visitors set sn_count = sn_count + 1, sn_datemodified = now() + where id_user='{id_user}' and id_visitor='{id_visitor}'; + update tr_user set sn_homepagehits = sn_homepagehits + 1 where id = '{id_user}'"; + + update_msg_tmp = "update tr_msgtmp set sn_nickname = '{sn_nickname}' where sn_key = '{sn_key}' "; + + check_msg_tmp = "select sn_lastpath from users.tr_msgtmp where sn_nickname = '{sn_nickname}'"; + + copy_msg_tmp = "insert into {dbname}tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_msgsubject, sn_msgbody, + sn_datecreated, id_group, sn_senderip ) select id_type, id_state, {id_user}, sn_nickname, sn_msgsubject, sn_msgbody, + sn_datecreated, id_group, sn_senderip from users.tr_msgtmp where sn_nickname = '{sn_nickname}'; + delete from tr_msgtmp where sn_nickname = '{sn_nickname}' "; + + + +} + + +table:"sxpagemembers.content" +{ + + on_overview = "select id, id_type, id_state, id_parent, id_user, id_group, sn_nickname, sn_childcount xx_answercount ,sn_msgsubject, + sn_accesscount xx_hitcount, t2.sn_msgteaser xx_msgteaser, sn_msgbody, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' + from tr_msgmain t1, tr_msgext t2 + WHERE t1.id_parent = t2.id_main and id_user={id} and id_state & 2 = 0 + order by sn_datemodified desc limit 0, 200"; + + on_search = "select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + sn_msgsubject xx_threadlink, sn_msgsubject, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + WHERE MATCH ( {field} ) AGAINST ('{sn_key}' IN BOOLEAN MODE ) {type} and id_group != 13 + and id_type != 'comments' {sn_filter} and {group} {questions} + group by id_parent + order by {orderby} limit 0, 200"; + +} + + + + + +table:"sxpageadmin" +{ + + + + admin_pager_overview = "select *, DATE_FORMAT( sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date' + from users.tr_pager_admin order by sn_datecreated desc limit 50"; + + + admin_pager_kill_msg = "delete from users.tr_pager_admin where id='{id}'; + update tr_msgmain set id_state = id_state & ~4 where id='{id_parent}'; + update tr_msgcache set id_state = id_state & ~4 where id_parent='{id_parent}'"; + + + on_postings_overview = "select id_type, id, id_parent, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, sn_msgbody, + sn_accesscount, DATE_FORMAT(sn_datemodified,'%d.%m.%Y %k:%i') 'sn_date', + sn_senderip, id_state + from tr_msgmain WHERE id_state != 64 and id_group != 13 + order by sn_datecreated desc limit 0, 30"; + + on_votings_overview = "select t2.id_type, t2.id, t2.id_parent, t2.id_user, t2.id_group, t2.sn_nickname, + t2.sn_childcount, t2.sn_msgsubject, t2.sn_msgbody, t2.sn_accesscount, t2.sn_senderip, + DATE_FORMAT(t1.sn_datecreated,'%d.%m.%Y %k:%i') 'sn_datevote', + DATE_FORMAT(t2.sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date', t1.id_user id_voter, + t1.sn_senderip sn_voterip from tr_votecount t1, tr_msgmain t2 + where t1.id_posting = t2.id order by t1.sn_datecreated desc limit 0, 50"; + + admin_watch_add = "insert into tr_msgwatch( id_parent, id_user, sn_datemodified ) select id_parent, '{id_user}', sn_datemodified from tr_message where id = '{id}'"; + admin_watch_drop = "delete from tr_msgwatch where id_user='{id_user}' and id_parent='{id}'"; + admin_watch_update = "update tr_msgwatch set sn_datemodified=now() where id_user='{id_user}' and id_parent='{id}'"; + + admin_kill_entry = "delete from tr_msgmain where id='{id}'; + + delete from tr_msgext where id_main='{id}'; + + delete from tr_msgcache where id_parent='{id}'"; + + admin_get_uid = "select id_user from tr_msgmain where id='{id}'"; + + + + on_count_threads = "select count(*) from tr_msgmain t1 + where id_type = 'posting' and year(sn_datecreated) >= '2009' and id_group = '{grp}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0"; + + + on_count_thread_groups = "SELECT id_group, count(*) allentries + from tr_msgmain t1 + where year(sn_datecreated) >= 2009 and id_type = 'posting' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + group by id_group + order by allentries desc"; + + + on_list_threads = "select id, sn_msgsubject xx_threadlink, id_type, id_parent from tr_msgmain t1 + where id_type = 'posting' + and year(sn_datecreated) = '{year}' and month(sn_datecreated) = '{month}' + and dayofmonth(sn_datecreated) = '{day}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + and id_group != 13 + order by sn_datecreated asc"; + + + on_count_faqs = "select count(*) from tr_msgmain t1 + where id_type = 'faqs' + and year(sn_datecreated) = '{year}' and month(sn_datecreated) = '{month}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 "; + + on_list_faqs = "select id, sn_msgsubject xx_threadlink, id_type, id_parent from tr_msgmain t1 + where id_type = 'faqs' + and year(sn_datecreated) = '{year}' and month(sn_datecreated) = '{month}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datecreated asc + limit {page},{count}"; + + + on_list_thread_groups = "select id, sn_msgsubject xx_threadlink, id_type, id_parent, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and year(sn_datecreated) >= '2009' and id_group = '{grp}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified asc + limit {page},{count}"; + + + on_count_faq_groups = "select count(*) from tr_msgmain t1 + where id_type = 'faqs' + and id_group = '{grp}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 "; + + on_list_faq_groups = "select id, sn_msgsubject xx_threadlink, id_type, id_parent, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'faqs' and id_group = '{grp}' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datecreated asc + limit {page},{count}"; + + on_count_faq_entries = "SELECT id_group, count(*) allentries + from tr_msgmain t1 + where id_type = 'faqs' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + group by id_group + order by allentries desc"; + + +} + + + + +table:"sxpagerss" +{ + + rss_news = "select t1.id, t1.id id2, t1.id_user, t2.sn_msgteaser sn_block_article, t2.sn_msgteaser sn_msgbody, + t1.sn_childcount, t1.sn_msgsubject, + DATE_FORMAT(sn_datemodified,'%a, %d %b %Y %T GMT') sn_date + from tr_msgmain t1, tr_msgext t2 + WHERE t1.id_type = 'news' and t1.id = t2.id_main and t1.id_state & 1 != 0 + + order by t1.sn_datemodified desc limit 0,200"; + + rss_faqs = "select id, id id2, id_user, sn_nickname, sn_childcount, sn_msgsubject, + sn_msgbody, sn_msgbody sn_block_article, DATE_FORMAT(sn_datemodified,'%a, %d %b %Y %T GMT') sn_date + from tr_msgmain t1 + WHERE id_type = 'faqs' and id_state & 1 != 0 + order by sn_datemodified desc limit 0,200"; + + rss_forum = "select id, id id2, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, + sn_msgbody, sn_msgbody sn_block_article, DATE_FORMAT(sn_datemodified,'%a, %d %b %Y %T GMT') sn_date from tr_msgmain + where id_type='posting' and id_group != 13 and id_group != 2 and id_group != 1 + and id_state & 1 != 0 + order by sn_datemodified desc limit 0,200"; + + rss_groups = "select id, id id2, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, + sn_msgbody, sn_msgbody sn_block_article, DATE_FORMAT(sn_datemodified,'%a, %d %b %Y %T GMT') sn_date from tr_msgmain + where id_type='posting' and id_group != 13 and id_group != 2 and id_group != 1 + and id_state & 1 != 0 and id_group = '{id_group}' + order by sn_datemodified desc limit 0,200"; + + rss_groupfaqs = "select id, id id2, id_user, sn_nickname, sn_childcount, sn_msgsubject, + sn_msgbody, sn_msgbody sn_block_article, DATE_FORMAT(sn_datemodified,'%a, %d %b %Y %T GMT') sn_date + from tr_msgmain t1 + WHERE id_type = 'faqs' and id_group = '{id_group}' + and id_group != 13 and id_group != 2 and id_group != 1 and id_state & 1 != 0 + order by sn_datemodified desc limit 0,200"; + + +} + + + +table:"sxpagepager" +{ + + on_remove = "update users.tr_pager_xx set flag_visible_for_{type} = 0 where id='{id}'"; + + pager_postbox = "select *, ({id_user}=id_sender) xx_self_sender, DATE_FORMAT( sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date' + from users.tr_pager_xx + where (id_sender='{id_user}' and flag_visible_for_sender = 1 and id_receiver='{id_contact}' ) or + (id_receiver='{id_user}' and flag_visible_for_receiver = 1 and id_sender='{id_contact}' ) + order by sn_datecreated desc"; + +} + + +table:"sxpagepager.contacts" +{ + + + pager_contacts = "select *, count(*) sn_numentries from + ( + select id_receiver id_user, sn_nickreceiver sn_nickname, sn_datecreated newest + from users.tr_pager_xx + where (id_sender='{id}' and flag_visible_for_sender = 1) + + union all + + select id_sender id_user, sn_nicksender sn_nickname, sn_datecreated newest + from users.tr_pager_xx + where (id_receiver='{id}' and flag_visible_for_receiver = 1) + ) as t1 + + + group by id_user + order by newest desc"; + +} + + + +section:"err_msg" +{ + e0 = "Bitte wählen Sie einen 'nickname'."; + e1 = "Ungültige eMail Adresse"; + e2 = "Bitte eine Überschrift angeben!"; + e3 = "Geben Sie hier ihren Text ein."; + e4 = "Der Nickname existiert schon oder ist ungültig."; + e5 = "Bitte wählen Sie eine Gruppe."; + e6 = "Typfeld darf nicht leer sein."; + e7 = "ID-User darf nicht leer sein."; + e8 = "Kommentare ohne ID kann man nicht speichern!"; + e9 = "ID-SubType darf nicht leer sein."; + e10 = "Den Vornamen bitte auch angeben."; + e11 = "Den Nachnamen bitte auch angeben."; + e12 = "Den Ort bitte auch angeben."; + e13 = "Link bitte in der Form http://x.y.z!"; + e14 = "Passwort darf nicht leer sein."; + e15 = "Bitte mindestens 6 Zeichen eingeben."; + e16 = "Bitte maximal 150 Zeichen eingeben."; + e17 = "Bitte maximal 5000 Zeichen eingeben."; + e18 = "Bitte vor dem Absenden die Nutzungsbedingungen lesen und akzeptieren."; + e19 = "Hersteller darf nicht leer sein."; + e20 = "Homepagelink darf nicht leer sein."; + e21 = "Na na na! Keine Fake-Gruppen, bitte!"; + e22 = "Bitte maximal 20000 Zeichen eingeben."; + e23 = "Bitte maximal 500 Zeichen eingeben."; + e24 = "BRAINFUCK!"; + e25 = "Bitte geben Sie Frage ein."; + e26 = "Antwort darf nicht leer sein."; + e27 = "Bitte eine Gruppe wählen!"; + e28 = "Bitte maximal 10000 Zeichen eingeben."; + e29 = "Bitte maximal 100KB eingeben."; + e30 = "Childcount-Feld darf nicht leer sein."; + e31 = "Bitte nicht zu schnell nacheinander posten."; + e32 = "Bitte keine doppelten Nachrichten posten."; + e33 = "Dieser 'Nickname' existiert schon!"; + e34 = "Den Nickname bitte ohne Sonderzeichen, Umlaute und Leerzeichen angeben! Erlaubte Zeichen sind Buchstaben, Ziffern, Punkt, Binde- und Unterstrich."; + e35 = "Bitte maximal 10000 Zeichen eingeben."; + e36 = "Bitte maximal 15000 Zeichen eingeben."; + e37 = "Geben Sie hier eMail Adresse an, wenn Sie bei Antworten auf Frage benachrichtigt werden möchten. + Adresse wird nur für die Benachrichtigung verwendet und nicht veröffentlicht. + Die Benachrichtigung können sie mit einem einfachen Klick auf einen speziellen Link in der Benachrichtigungs-eMail abbestellen."; + e38 = "Bitte auch 'Zeitaufwand', 'Kosten' etc. angeben!"; + e39 = "Bitte auch einige 'Keywords' angeben!"; + e40 = "Bitte auch einige Schlüsselzeichen angeben!"; + e41 = "id_state ist ungütig."; + e42 = "Bitte mindestens 3 Zeichen verwenden."; + e43 = "Bitte maximal 16 Zeichen verwenden."; + e44 = "Dieser 'Nickname' existiert nicht!"; + e45 = "Hier bitte auch mindestens eine Kategorie vergeben!"; +} + + + +form:"check.sxpageforum" +{ + sn_nickname="not_empty:e0&bad_word:e24&nickname_exists:e33&minsize[3]:e42&maxsize[16]:e43&nickname_valid:e34"; + sn_nickmail="empty|nickmail_valid:e1"; + id_state="state_valid:e41"; + sn_mailalert="mail_alert:e37"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; + +} + + + +form:"check.sxpageforumold" +{ + sn_nickname="not_empty:e0&bad_word:e24&nickname_exists:e33&minsize[3]:e42&maxsize[16]:e43&nickname_valid:e34"; + sn_nickmail="empty|nickmail_valid:e1"; + id_state="state_valid:e41"; + sn_mailalert="mail_alert:e37"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; + +} + + + +form:"check.sxpageforumthread" +{ + sn_nickname="not_empty:e0&bad_word:e24&nickname_exists:e33&minsize[3]:e42&maxsize[16]:e43&nickname_valid:e34"; + sn_nickmail="empty|nickmail_valid:e1"; + id_state="state_valid:e41"; + sn_mailalert="mail_alert:e37"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; + +} + + + +form:"check.sxpageforumgroups" +{ + sn_nickname="not_empty:e0&bad_word:e24&nickname_exists:e33&minsize[3]:e42&maxsize[16]:e43&nickname_valid:e34"; + sn_nickmail="empty|nickmail_valid:e1"; + id_state="state_valid:e41"; + sn_mailalert="mail_alert:e37"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; + +} + + +form:"check.sxpageforumoverview" +{ + sn_nickname="not_empty:e0&bad_word:e24&nickname_exists:e33&minsize[3]:e42&maxsize[16]:e43&nickname_valid:e34"; + sn_nickmail="empty|nickmail_valid:e1"; + id_state="state_valid:e41"; + sn_mailalert="mail_alert:e37"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; + +} + + +form:"check.sxpageforumstart" +{ + sn_nickname="not_empty:e0&bad_word:e24&nickname_exists:e33&minsize[3]:e42&maxsize[16]:e43&nickname_valid:e34"; + sn_nickmail="empty|nickmail_valid:e1"; + id_state="state_valid:e41"; + sn_mailalert="mail_alert:e37"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; + +} + + + + +form:"check.posting" +{ + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&blocked_word:e24&bad_word:e24"; + sn_mailalert="mail_alert:e37"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; +} + + +form:"check.reply" +{ + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[150]:e16&is_subject:e24&blocked_word:e24&bad_word:e24"; + sn_mailalert="mail_alert:e37"; + id_group="not_empty:e5&group_valid:e21"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; +} + + +form:"check.comment" +{ + sn_mailalert="mail_alert:e37"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; +} + + + + +form:"check.sxpagefaqs" +{ + + id_user="not_empty:e7"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[255]:e16&blocked_word:e24&bad_word:e24"; + sn_msgteaser="not_empty:e2&minsize[3]:e15&maxsize[5000]:e17&blocked_word:e24&bad_word:e24"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[100000]:e29&blocked_word:e24&bad_word:e24"; + sn_msgtags="not_empty:e39"; + sn_childcount="not_empty:e30"; + sn_msgcategories="not_empty:e45"; + +} + + + + +form:"check.sxpagenews" +{ + id_user="not_empty:e7"; + sn_childcount="not_empty:e30"; + sn_msgsubject="not_empty:e2&minsize[3]:e15&maxsize[255]:e16&blocked_word:e24"; + sn_msgteaser="not_empty:e2&minsize[3]:e15&maxsize[5000]:e17&blocked_word:e24"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[15000]:e36&blocked_word:e24"; +} + + + +form:"check.user" +{ + sn_nickmail="nickmail_valid:e1"; + sn_firstname="not_empty:e10"; + sn_lastname="not_empty:e11"; +} + + + +form:"check.userhome" +{ + sn_homepagelink="empty|(contains[http]:e13&contains[.]:e13)"; +} + + + +form:"check.passwd" +{ + sn_passwd="not_empty:e14"; + sn_passwd1="not_empty:e14"; +} + + +form:"check.register" +{ + sn_nickname="not_empty:e0&bad_word:e24&new_nickname_exists:e33&new_nickname_valid:e34"; + sn_nickmail="nickmail_valid:e1"; + sn_disclaimer="accepting_terms:e18"; +} + + +form:"check.pager_create" +{ + sn_nickreceiver="not_empty:e0&user_is_member:e44"; + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; +} + + +form:"check.pager_reply" +{ + sn_msgbody="not_empty:e3&minsize[6]:e15&maxsize[10000]:e35&chain_posting:e31&blocked_word:e24&bad_word:e24&repeated_posting:e32"; +} + + + + + + + +tagblock:"sn_block_posting" +{ + + nofollow = true; + choptext = true; + + tag00 = "nb, "; + tag01 = "b,,"; + tag03 = "i,,"; + tag05 = "u,,"; + tag07 = "sub,,"; + tag09 = "sup,,"; + code = "code,
,
"; + tag13 = "quote,
Zitat:
,
"; + list = "list,"; + url = "url,,"; + xurl = "xurl,,"; + tag20 = "*,
  • ,
  • "; + tag22 = "br,

    "; + pic = "pic,"; + + +} + + +tagblock:"sn_block_posting_nnf" +{ + + extends = "sn_block_posting"; + + nofollow = false; + choptext = true; + +} + + +tagblock:"sn_block_article" +{ + + extends = "sn_block_posting"; + + nofollow = true; + choptext = true; + tag23 = "table,,
    "; + tag24 = "tr,,"; + tag25 = "td,,"; + tag29 = "color,,"; + + tag30 = "h1,,"; + tag32 = "h2,,"; + tag34 = "h3,,"; + + tag36 = "infor,
    ,
    "; + tag37 = "infol,
    ,
    "; + tag38 = "boxhead,,"; + + img = "img, |3|"; + imgl = "imgl,|3|"; + imgr = "imgr,|3|"; + + video = "video, + + + + + + + + "; + + youtube = "youtube, + + + + + "; + +} + + + +tagblock:"sn_block_article_nnf" +{ + extends = "sn_block_article"; + + nofollow = false; + choptext = true; + +} + + +tagblock:"sn_block_teaser" +{ + extends = "sn_block_article"; + + nofollow = false; + choptext = true; + +} + + +tagblock:"sn_block_teaser_flat" +{ + extends = "sn_block_article"; + + nofollow = false; + choptext = true; + +} + + diff --git a/dope.fifo b/dope.fifo new file mode 100644 index 0000000..960bdc7 --- /dev/null +++ b/dope.fifo @@ -0,0 +1 @@ +!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES!!YES! \ No newline at end of file diff --git a/mime.types b/mime.types new file mode 100644 index 0000000..25d85e9 --- /dev/null +++ b/mime.types @@ -0,0 +1,138 @@ +application/activemessage +application/andrew-inset ez +application/applefile +application/atomicmail +application/cu-seeme csm cu +application/dca-rft +application/dec-dx +application/excel xls +application/ghostview +application/mac-binhex40 hqx +application/mac-compactpro cpt +application/macwriteii +application/msword doc dot wrd +application/news-message-id +application/news-transmission +application/octet-stream bin dms lha lzh exe class +application/oda oda +application/pdf pdf +application/pgp pgp +application/pgp-signature pgp +application/postscript ai eps ps +application/powerpoint ppt +application/remote-printing +application/rtf rtf +application/slate +application/wita +application/wordperfect5.1 wp5 +application/x-123 wk +application/x-Wingz wz +application/x-bcpio bcpio +application/x-cdlink vcd +application/x-chess-pgn pgn +application/x-compress z Z +application/x-cpio cpio +application/x-csh csh +application/x-debian-package deb +application/x-director dcr dir dxr +application/x-dvi dvi +application/x-gtar gtar tgz +application/x-gunzip gz +application/x-gzip gz +application/x-hdf hdf +application/x-httpd-php phtml pht php +application/x-javascript js +application/x-koan skp skd skt skm +application/x-latex latex +application/x-maker frm maker frame fm fb book fbdoc +application/x-mif mif +application/x-msdos-program com exe bat +application/x-netcdf nc cdf +application/x-ns-proxy-autoconfig pac +application/x-perl pl pm +application/x-rad rad +application/x-sh sh +application/x-shar shar +application/x-stuffit sit +application/x-sv4cpio sv4cpio +application/x-sv4crc sv4crc +application/x-tar tar +application/x-tcl tcl +application/x-tex tex +application/x-texinfo texinfo texi +application/x-troff t tr roff +application/x-troff-man man +application/x-troff-me me +application/x-troff-ms ms +application/x-ustar ustar +application/x-wais-source src +application/zip zip +audio/midi mid midi kar +audio/mpeg mpga mp2 mp3 +audio/x-realaudio ra +chemical/x-pdb pdb xyz +image/gif gif +image/ief ief +image/jpeg jpeg jpg jpe +image/png png +image/tiff tiff tif +image/x-cmu-raster ras +image/x-portable-anymap pnm +image/x-portable-bitmap pbm +image/x-portable-graymap pgm +image/x-portable-pixmap ppm +image/x-rgb rgb +image/x-xbitmap xbm +image/x-xpixmap xpm +image/x-xwindowdump xwd +message/external-body +message/news +message/partial +message/rfc822 +model/iges igs iges +model/mesh msh mesh silo +model/vrml wrl vrml +multipart/alternative +multipart/appledouble +multipart/digest +multipart/mixed +multipart/parallel +text/css css +text/html html htm +text/plain asc txt c cc h hh cpp hpp +text/richtext rtx +text/tab-separated-values tsv +text/x-setext etx +text/x-sgml sgml sgm +text/x-vCalendar vcs +text/x-vCard vcf +text/xml xml dtd +video/dl dl +video/fli fli +video/gl gl +video/mpeg mp2 mpe mpeg mpg +video/quicktime qt mov +video/x-msvideo avi +video/x-sgi-movie movie +x-conference/x-cooltalk ice +x-world/x-vrml wrl vrml +audio/x-pn-realaudio rmm ram +audio/vnd.rn-realaudio ra +application/smil smi smil +text/vnd.rn-realtext rt +video/vnd.rn-realvideo rv +image/vnd.rn-realflash rf swf +application/x-shockwave-flash2-preview rf swf +application/sdp sdp +application/x-sdp sdp +application/vnd.rn-realmedia rm +image/vnd.rn-realpix rp +audio/wav wav +audio/x-wav wav +audio/x-pn-wav wav +audio/x-pn-windows-acm wav +audio/basic au +audio/x-pn-au au +audio/aiff aiff af +audio/x-aiff aiff af +audio/x-pn-aiff aiff af diff --git a/moo.sh b/moo.sh new file mode 100644 index 0000000..1e47831 --- /dev/null +++ b/moo.sh @@ -0,0 +1,3 @@ + +#!/bin/sh +./server > /dev/null 2>&1 diff --git a/nohup.out b/nohup.out new file mode 100644 index 0000000..20a0b69 --- /dev/null +++ b/nohup.out @@ -0,0 +1,16333 @@ +START: Tue 14 Jun 2022 03:51:34 PM CEST +[Tue Jun 14 15:51:34 2022] error:server ' supportware 1.9.150 / 10.06.2022' start at: Tue Jun 14 15:51:34 2022: No such file or directory +[Tue Jun 14 15:51:34 2022] server ' supportware 1.9.150 / 10.06.2022' start at: Tue Jun 14 15:51:34 2022 +change_user_root( const ddstring& user, const ddstring& newroot ) ABGESCHALTET! +--- db log: users: select: select id id_user, sn_nickname, sn_cryptopass, sn_nickmail, sn_addressbook, sn_googlechannel1, sn_googlechannel2, sn_itemsperpage, sn_mailalert, sn_properties from tr_user order by id +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_stats-- : --xx_box_members_stats.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_form-- : --xx_box_post_guestbook.html--: Not a directory +dditemset::create_by_key: section end not found:109dditemset::create_by_key: section end not found:379dditemset::create_by_key: section end not found:637[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_types-- : --sn_block_types.html--: Not a directory +dditemset::create_by_key: section end not found:109dditemset::create_by_key: section end not found:379dditemset::create_by_key: section end not found:637[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_admin-- : --sn_box_admin.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_user_content-- : --sx_box_user_content.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_about-- : --sx_box_about.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_partner-- : --sx_box_partner.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_header-- : --sx_block_header_forum.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_register-- : --sx_box_register_guest.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_search-- : --sx_box_search.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_stats-- : --xx_box_members_stats.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_form-- : --xx_box_post_guestbook.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_admin-- : --sn_box_admin.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_user_content-- : --sx_box_user_content.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_about-- : --sx_box_about.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_box_partner-- : --sx_box_partner.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_navigator-- : --sn_navigator2.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_domains-- : --sn_block_domains.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_tophead-- : --sx_block_tophead.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_footer-- : --sx_block_footer.html--: Not a directory +[Tue Jun 14 15:51:35 2022] error:dditemset::create_from_key: not found --sn_end-- : --sx_block_copyright.html--: Not a directory +--- db log: webgroupmgr: select: SELECT id, id_state, sn_groupname, sn_groupdescription, sn_groupkeys, sn_groupicon, sn_groupicon_small from tr_group order by sn_groupposition +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.categories: on_create_categories: select * from sn_computer.tr_msgcategories order by id +--- db log: webfilemanager: select: select * + from tr_image order by sn_datecreated desc +--- db log: sxpageforumstart.overview: create: drop table IF EXISTS tr_msgcache;CREATE TABLE tr_msgcache + select id id_parent, id_type, id_state, id_user, id_group, sn_nickname, sn_childcount, sn_msgsubject, + sn_datecreated, sn_datemodified, sn_accesscount from tr_msgmain where id_group != 13 + and (id_type = 'posting' or id_type = 'faqs' or id_type = 'news' ) and id_state != 64 order by sn_datemodified desc limit 0,5000; +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +--- db log: site.blocklist: select: select * from sn_computer.tr_blocklist +[Tue Jun 14 15:51:35 2022] error:server ' supportware 1.9.150 / 10.06.2022' running at: Tue Jun 14 15:51:34 2022: Resource temporarily unavailable +[Tue Jun 14 15:51:35 2022] server ' supportware 1.9.150 / 10.06.2022' running at: Tue Jun 14 15:51:34 2022 +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 30 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-13 23:15:02' + group by id_group +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:48 2022 +Content-Type: text/html +Content-Length: 29427 + + +80.132.174.18 - - [14/Jun/2022:15:51:48 +0200] "GET /" 200 29427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Tue Jun 14 15:51:48 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:48 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 15:51:48 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:48 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jun 14 15:51:48 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:48 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2330939' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2330939'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2330939' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-13 23:15:02' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2330939' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2289517,2289518,2275487,2200077,2200087 ) + +response for: GET: /t/2330939 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:50 2022 +Content-Type: text/html +Content-Length: 69879 + + +80.132.174.18 - - [14/Jun/2022:15:51:50 +0200] "GET /t/2330939" 200 69879 "http://sourceworx.org:8088/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Tue Jun 14 15:51:50 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:50 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='48' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '48' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-13 23:15:02' + group by id_group + +response for: GET: /groups/48 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:52 2022 +Content-Type: text/html +Content-Length: 26389 + + +80.132.174.18 - - [14/Jun/2022:15:51:52 +0200] "GET /groups/48" 200 26389 "http://sourceworx.org:8088/t/2330939" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Tue Jun 14 15:51:52 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 13:51:52 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 16:29:17 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 14:29:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 16:45:35 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 14:45:35 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpagenews.overview: on_overview: select t1.id, t1.id id2, t1.id_state, t1.id_parent, t1.id_type, t1.id_user, t1.sn_msgsubject, + t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser xx_msgteaser, + t1.sn_msgbody, t1.sn_childcount xx_answercount, t1.sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.sn_nickname + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by t1.sn_datemodified desc + +response for: GET: /news +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 19058 + + +80.132.174.18 - - [14/Jun/2022:17:02:01 +0200] "GET /news" 200 19058 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342664/01-News-Ray-Ozzie-Post-PC-Welt-Screenshot-Blog-Ausschnitt-40.png: Not a directory + +response for: GET: /articleimage/2342664/01-News-Ray-Ozzie-Post-PC-Welt-Screenshot-Blog-Ausschnitt-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 722 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342617/wolken_himmel_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2342617/wolken_himmel_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 599 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342594/Microsoft-Windows-8-80.gif: Not a directory + +response for: GET: /articleimage/2342594/Microsoft-Windows-8-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 608 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342453/00-News-WikiLeaks-Screenshot-Logo-80.png: Not a directory + +response for: GET: /articleimage/2342453/00-News-WikiLeaks-Screenshot-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 650 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342444/justitia_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2342444/justitia_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 584 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342432/finanzen-net-screenshot-80.png: Not a directory + +response for: GET: /articleimage/2342432/finanzen-net-screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 620 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342431/bildmobil-80.png: Not a directory + +response for: GET: /articleimage/2342431/bildmobil-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 578 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342425/Apple-iPhone-4-80.jpg: Not a directory + +response for: GET: /articleimage/2342425/Apple-iPhone-4-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 593 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341991/Software-des-Jahres-Softwareload-80.png: Not a directory + +response for: GET: /articleimage/2341991/Software-des-Jahres-Softwareload-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 647 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341988/sperrung_zensur_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341988/sperrung_zensur_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 605 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341879/01-Google-Street-View-Zahl-der_Widersprueche-Screenshot-der-Homepage-Street-View-Deutschland-80.png: Not a directory + +response for: GET: /articleimage/2341879/01-Google-Street-View-Zahl-der_Widersprueche-Screenshot-der-Homepage-Street-View-Deutschland-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 827 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341852/Apple-Mac-OS-X-Lion-Betriebssystem-80.gif: Not a directory + +response for: GET: /articleimage/2341852/Apple-Mac-OS-X-Lion-Betriebssystem-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 653 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341843/phishing_euro_tastatur_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341843/phishing_euro_tastatur_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 626 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341731/spam_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341731/spam_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 572 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341837/Bejeweled-Casual-Game-PopCap-80.png: Not a directory + +response for: GET: /articleimage/2341837/Bejeweled-Casual-Game-PopCap-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 635 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341828/Dutch-Ambiance-Technology-Tablet-PC-3G-Tablet-Touchpad-small-80.png: Not a directory + +response for: GET: /articleimage/2341828/Dutch-Ambiance-Technology-Tablet-PC-3G-Tablet-Touchpad-small-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 731 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341692/Supportnet-News-3D-Webbrowser-ix112010-80.jpg: Not a directory + +response for: GET: /articleimage/2341692/Supportnet-News-3D-Webbrowser-ix112010-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 665 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341687/Smartphone-Blackberry_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341687/Smartphone-Blackberry_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 623 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341683/wickie-80.png: Not a directory + +response for: GET: /articleimage/2341683/wickie-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 569 + + +[Tue Jun 14 17:02:01 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341680/features_start-80.png: Not a directory + +response for: GET: /articleimage/2341680/features_start-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:01 2022 +Content-Type: text/html +Content-Length: 593 + + +--- db log: sxpagenews.show: on_show: select t1.id, t1.id id2, t1.id_parent, t1.id_type, t1.id_user, t1.sn_nickname, t1.sn_msgsubject, t2.sn_msgvgwort, + t2.sn_msgteaser, t1.sn_msgbody sn_block_article, t1.sn_childcount xx_answercount, t1.sn_accesscount xx_hitcount, t1.id_state, t1.sn_datemodified, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.id_group, t1.sn_senderip + from tr_msgmain t1, tr_msgext t2 + where t1.id_parent = t2.id_main and t1.id_parent = '2341991' and t1.id_state & 1 != 0 order by t1.sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2341991'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2341991' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2341991' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2338144,2316906,2338151,2338155,2315803 ) + +response for: GET: /newsthread/2341991 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 12020 + + +80.132.174.18 - - [14/Jun/2022:17:02:08 +0200] "GET /newsthread/2341991" 200 12020 "http://sourceworx.org:8088/news" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341991/Software-des-Jahres-Softwareload-200.png: Not a directory + +response for: GET: /articleimage/2341991/Software-des-Jahres-Softwareload-200.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 650 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341991/TeamViewer-FReeware-200.png: Not a directory + +response for: GET: /articleimage/2341991/TeamViewer-FReeware-200.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 611 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2315803/Microsoft-Office_2010-Co-Author-Co-Authoring-Gemeinsame-Dokumentenerstellung-gemeinsame-Dokumentenbearbeitung_80.jpg: Not a directory + +response for: GET: /articleimage/2315803/Microsoft-Office_2010-Co-Author-Co-Authoring-Gemeinsame-Dokumentenerstellung-gemeinsame-Dokumentenbearbeitung_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 878 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2316906/01-Microsoft-Office-2010-Office2010-Outlook-Outlook2010-Menueband-Menue-Band-RibbonBar-Ribbon-Bar-Start_80.png: Not a directory + +response for: GET: /articleimage/2316906/01-Microsoft-Office-2010-Office2010-Outlook-Outlook2010-Menueband-Menue-Band-RibbonBar-Ribbon-Bar-Start_80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 860 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2338144/00-mail-owa-logo-80.jpg: Not a directory + +response for: GET: /articleimage/2338144/00-mail-owa-logo-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 599 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2338151/00-mail-owa-logo-80.jpg: Not a directory + +response for: GET: /articleimage/2338151/00-mail-owa-logo-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 599 + + +[Tue Jun 14 17:02:08 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2338155/00-mail-owa-logo-80.jpg: Not a directory + +response for: GET: /articleimage/2338155/00-mail-owa-logo-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:08 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumoverview.overview: on_overview: select id_parent, id_parent id, id_type, id_state, id_user, id_group, sn_nickname, t2.sn_msgteaser sn_block_teaser, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, t2.sn_msgteaser, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 left join tr_msgext t2 on ( t1.id_parent = t2.id_main ) + where id_group != 30 and id_group != 13 and t1.id_state & 196 = 0 + + and t1.id_state & 1 != 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumoverview.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 + +response for: GET: /forum +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:09 2022 +Content-Type: text/html +Content-Length: 17331 + + +80.132.174.18 - - [14/Jun/2022:17:02:09 +0200] "GET /forum" 200 17331 "http://sourceworx.org:8088/newsthread/2341991" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:09 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:09 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:02:09 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340692/screenshotcapture-80.png: Not a directory + +response for: GET: /articleimage/2340692/screenshotcapture-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:09 2022 +Content-Type: text/html +Content-Length: 602 + + +[Tue Jun 14 17:02:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png: Not a directory + +response for: GET: /articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:10 2022 +Content-Type: text/html +Content-Length: 731 + + +[Tue Jun 14 17:02:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png: Not a directory + +response for: GET: /articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:10 2022 +Content-Type: text/html +Content-Length: 734 + + +------- XXXXXXXXXXXXXX: sxpageFAQS::on_show_entry +--- db log: sxpagefaqs.show: on_show: select t1.id, t1.id id2, t1.id_parent, t1.id_type, t1.id_user, t1.sn_nickname, t1.sn_msgsubject, t2.sn_msgvgwort, + t2.sn_msgteaser, t1.sn_msgbody sn_block_article, t1.sn_childcount xx_answercount, t1.sn_accesscount xx_hitcount, t1.id_state, t1.sn_datemodified, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.id_group, t1.sn_senderip + from tr_msgmain t1, tr_msgext t2 + where t1.id_parent = t2.id_main and t1.id_parent = '2342437' and t1.id_state & 1 != 0 order by t1.sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2342437'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2342437' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2342437' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2340935,2341697,2340892,2341558,2341713 ) + +response for: GET: /faqsthread/2342437 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 15659 + + +80.132.174.18 - - [14/Jun/2022:17:02:11 +0200] "GET /faqsthread/2342437" 200 15659 "http://sourceworx.org:8088/forum" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/01-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Datei-installieren-200.png: Not a directory + +response for: GET: /articleimage/2342437/01-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Datei-installieren-200.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 776 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/02-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Icon-im-Systemtray-200.png: Not a directory + +response for: GET: /articleimage/2342437/02-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Icon-im-Systemtray-200.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 776 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/03-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-finden-470.png: Not a directory + +response for: GET: /articleimage/2342437/03-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-finden-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 740 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png: Not a directory + +response for: GET: /articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 731 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/04-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-finden2-470.png: Not a directory + +response for: GET: /articleimage/2342437/04-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-finden2-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 743 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/05-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Status-Writer-Uebersicht-470.png: Not a directory + +response for: GET: /articleimage/2342437/05-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Status-Writer-Uebersicht-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 794 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/06-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Status-Writer-Playback-470.png: Not a directory + +response for: GET: /articleimage/2342437/06-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Status-Writer-Playback-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 788 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340892/00-Quicktipp-Vollversionen-von_Microsoft-Office-Compatibility-Screenshot-Ausschnitt-Office-Logo-80.png: Not a directory + +response for: GET: /articleimage/2340892/00-Quicktipp-Vollversionen-von_Microsoft-Office-Compatibility-Screenshot-Ausschnitt-Office-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 836 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340935/00-Vollversionen-von-Microsoft-Process-Monitor-Name-Logo-40.png: Not a directory + +response for: GET: /articleimage/2340935/00-Vollversionen-von-Microsoft-Process-Monitor-Name-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 719 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341558/00-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshot-80.png: Not a directory + +response for: GET: /articleimage/2341558/00-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 734 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341713/00-kostenlose-Vollversionen-von-Microsoft-Live-Essentials-Screenshot-Logo-80.png: Not a directory + +response for: GET: /articleimage/2341713/00-kostenlose-Vollversionen-von-Microsoft-Live-Essentials-Screenshot-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 770 + + +[Tue Jun 14 17:02:11 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png: Not a directory + +response for: GET: /articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:11 2022 +Content-Type: text/html +Content-Length: 734 + + +[Tue Jun 14 17:02:14 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/04-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-finden2.png: Not a directory + +response for: GET: /articleimage/2342437/04-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-finden2.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:14 2022 +Content-Type: text/html +Content-Length: 731 + + +------- XXXXXXXXXXXXXX: sxpageFAQS::on_show_entry +--- db log: sxpagefaqs.show: on_show: select t1.id, t1.id id2, t1.id_parent, t1.id_type, t1.id_user, t1.sn_nickname, t1.sn_msgsubject, t2.sn_msgvgwort, + t2.sn_msgteaser, t1.sn_msgbody sn_block_article, t1.sn_childcount xx_answercount, t1.sn_accesscount xx_hitcount, t1.id_state, t1.sn_datemodified, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.id_group, t1.sn_senderip + from tr_msgmain t1, tr_msgext t2 + where t1.id_parent = t2.id_main and t1.id_parent = '2341558' and t1.id_state & 1 != 0 order by t1.sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2341558'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2341558' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2341558' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2340935,2340892,2340766,2334122,2341356 ) + +response for: GET: /faqsthread/2341558 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:21 2022 +Content-Type: text/html +Content-Length: 14018 + + +80.132.174.18 - - [14/Jun/2022:17:02:21 +0200] "GET /faqsthread/2341558" 200 14018 "http://sourceworx.org:8088/faqsthread/2342437" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:21 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:21 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341558/01-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-Desktops-konfigurieren-470.png: Not a directory + +response for: GET: /articleimage/2341558/01-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-Desktops-konfigurieren-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 809 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341558/02-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-System-Tray-Symbol-200.png: Not a directory + +response for: GET: /articleimage/2341558/02-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-System-Tray-Symbol-200.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 797 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341558/03-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-neue-Destops-kreieren-200.png: Not a directory + +response for: GET: /articleimage/2341558/03-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-neue-Destops-kreieren-200.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 806 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341558/04-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-vier-Desktops-470.png: Not a directory + +response for: GET: /articleimage/2341558/04-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-vier-Desktops-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 782 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341558/05-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-vier-Desktops2-470.png: Not a directory + +response for: GET: /articleimage/2341558/05-Kostenlose-Vollversionen-von-Microsoft-Desktops-Screenshots-vier-Desktops2-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 785 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340766/00-Vollversionen-von-Microsoft-Security-Essentials-Logo-80.png: Not a directory + +response for: GET: /articleimage/2340766/00-Vollversionen-von-Microsoft-Security-Essentials-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 716 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341356/00-Firefox-Installation-Teaser-80.gif: Not a directory + +response for: GET: /articleimage/2341356/00-Firefox-Installation-Teaser-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 641 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340892/00-Quicktipp-Vollversionen-von_Microsoft-Office-Compatibility-Screenshot-Ausschnitt-Office-Logo-80.png: Not a directory + +response for: GET: /articleimage/2340892/00-Quicktipp-Vollversionen-von_Microsoft-Office-Compatibility-Screenshot-Ausschnitt-Office-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 836 + + +[Tue Jun 14 17:02:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340935/00-Vollversionen-von-Microsoft-Process-Monitor-Name-Logo-40.png: Not a directory + +response for: GET: /articleimage/2340935/00-Vollversionen-von-Microsoft-Process-Monitor-Name-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:22 2022 +Content-Type: text/html +Content-Length: 719 + + +--- db log: sxpagenews.overview: on_overview: select t1.id, t1.id id2, t1.id_state, t1.id_parent, t1.id_type, t1.id_user, t1.sn_msgsubject, + t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser xx_msgteaser, + t1.sn_msgbody, t1.sn_childcount xx_answercount, t1.sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.sn_nickname + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by t1.sn_datemodified desc + +response for: GET: /news +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 19058 + + +80.132.174.18 - - [14/Jun/2022:17:02:44 +0200] "GET /news" 200 19058 "http://sourceworx.org:8088/faqsthread/2341558" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342664/01-News-Ray-Ozzie-Post-PC-Welt-Screenshot-Blog-Ausschnitt-40.png: Not a directory + +response for: GET: /articleimage/2342664/01-News-Ray-Ozzie-Post-PC-Welt-Screenshot-Blog-Ausschnitt-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 722 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342617/wolken_himmel_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2342617/wolken_himmel_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 599 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342594/Microsoft-Windows-8-80.gif: Not a directory + +response for: GET: /articleimage/2342594/Microsoft-Windows-8-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 608 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342453/00-News-WikiLeaks-Screenshot-Logo-80.png: Not a directory + +response for: GET: /articleimage/2342453/00-News-WikiLeaks-Screenshot-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 650 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342444/justitia_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2342444/justitia_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 584 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342432/finanzen-net-screenshot-80.png: Not a directory + +response for: GET: /articleimage/2342432/finanzen-net-screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 620 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342431/bildmobil-80.png: Not a directory + +response for: GET: /articleimage/2342431/bildmobil-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 578 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342425/Apple-iPhone-4-80.jpg: Not a directory + +response for: GET: /articleimage/2342425/Apple-iPhone-4-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 593 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341991/Software-des-Jahres-Softwareload-80.png: Not a directory + +response for: GET: /articleimage/2341991/Software-des-Jahres-Softwareload-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 647 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341988/sperrung_zensur_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341988/sperrung_zensur_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 605 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341879/01-Google-Street-View-Zahl-der_Widersprueche-Screenshot-der-Homepage-Street-View-Deutschland-80.png: Not a directory + +response for: GET: /articleimage/2341879/01-Google-Street-View-Zahl-der_Widersprueche-Screenshot-der-Homepage-Street-View-Deutschland-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 827 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341852/Apple-Mac-OS-X-Lion-Betriebssystem-80.gif: Not a directory + +response for: GET: /articleimage/2341852/Apple-Mac-OS-X-Lion-Betriebssystem-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 653 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341843/phishing_euro_tastatur_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341843/phishing_euro_tastatur_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 626 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341731/spam_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341731/spam_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 572 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341837/Bejeweled-Casual-Game-PopCap-80.png: Not a directory + +response for: GET: /articleimage/2341837/Bejeweled-Casual-Game-PopCap-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 635 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341828/Dutch-Ambiance-Technology-Tablet-PC-3G-Tablet-Touchpad-small-80.png: Not a directory + +response for: GET: /articleimage/2341828/Dutch-Ambiance-Technology-Tablet-PC-3G-Tablet-Touchpad-small-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 731 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341692/Supportnet-News-3D-Webbrowser-ix112010-80.jpg: Not a directory + +response for: GET: /articleimage/2341692/Supportnet-News-3D-Webbrowser-ix112010-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 665 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341687/Smartphone-Blackberry_XS-80.jpg: Not a directory + +response for: GET: /articleimage/2341687/Smartphone-Blackberry_XS-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 623 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341683/wickie-80.png: Not a directory + +response for: GET: /articleimage/2341683/wickie-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 569 + + +[Tue Jun 14 17:02:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341680/features_start-80.png: Not a directory + +response for: GET: /articleimage/2341680/features_start-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:44 2022 +Content-Type: text/html +Content-Length: 593 + + +--- db log: sxpagemembers: on_overview: select id, id id_user, sn_nickname, sn_homepagehits, sn_memberbonus, sn_numquestions, sn_numanswers, + sn_numreasonable, sn_numsolutions, sn_numvotes, DATE_FORMAT( sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1 + from tr_user where id>1 order by sn_datelastlogin desc limit 0, 20 + +response for: GET: /members +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:45 2022 +Content-Type: text/html +Content-Length: 28203 + + +80.132.174.18 - - [14/Jun/2022:17:02:45 +0200] "GET /members" 200 28203 "http://sourceworx.org:8088/news" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:45 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:45 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpagemembers: member_show: select IF ( flag_male = 0 ,'Herr', 'Frau' ) sn_sex, id id_parent, id, id id2, sn_nickname, sn_memberbonus, + sn_numquestions, sn_numanswers, sn_numreasonable, sn_numsolutions, sn_numvotes, + sn_firstname, sn_lastname, sn_street, sn_zipcode, sn_city, sn_firstmail, sn_senderip, + sn_nickmail, sn_icqs, DATE_FORMAT( sn_datelastlogin,'%d.%m.%Y') 'sn_datelastlogin', sn_street, flag_male, + DATE_FORMAT( sn_datecreated,'%d.%m.%Y') 'sn_datecreated', + sn_itemsperpage, sn_homepagetext, sn_homepagetext sn_block_article, sn_homepagelink , sn_homepagelink 'sn_homepagelink2', + sn_homepageimage, sn_homepagehits, + sn_addressbook, sn_googlechannel1, sn_googlechannel2 from tr_user where id='62718' +--- db log: sxpagemembers: member_friends: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='accepted' and t1.id_user = '1' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_visitors_count: select count(*) from tr_visitors + where id_user='62718' and id_visitor='1' +--- db log: sxpagemembers: member_visitors_insert: insert into tr_visitors( id_user, id_visitor, sn_datemodified ) + values ( '62718', '1', now() ); + update tr_user set sn_homepagehits = sn_homepagehits + 1 where id = '62718' +--- db log: sxpagemembers: member_visitors: select t1.id_user, t1.sn_count sn_hits, t1.id_visitor, t2.sn_firstname, t2.sn_lastname, + t2.sn_homepagehits, t2.id, t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t2.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_visitors t1, tr_user t2 + where t1.id_user = '62718' + and t1.id_visitor = t2.id + order by t1.sn_datemodified desc limit 5 +--- db log: sxpagemembers: member_invitations_received: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_user = '1' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_invitations_sent: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_friend = '1' + and t1.id_user = t2.id + +response for: GET: /member/62718 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:47 2022 +Content-Type: text/html +Content-Length: 8592 + + +80.132.174.18 - - [14/Jun/2022:17:02:47 +0200] "GET /member/62718" 200 8592 "http://sourceworx.org:8088/members" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:47 2022] error:site error: sendfile: can't open: sn_computer/html/memberimage/blank.gif: Not a directory + +response for: GET: /memberimage/blank.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:47 2022 +Content-Type: text/html +Content-Length: 530 + + +[Tue Jun 14 17:02:47 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:47 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpagemembers.content: on_overview: select id, id_type, id_state, id_parent, id_user, id_group, sn_nickname, sn_childcount xx_answercount ,sn_msgsubject, + sn_accesscount xx_hitcount, t2.sn_msgteaser xx_msgteaser, sn_msgbody, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' + from tr_msgmain t1, tr_msgext t2 + WHERE t1.id_parent = t2.id_main and id_user=62718 and id_state & 2 = 0 + order by sn_datemodified desc limit 0, 200 +--- db log: sxpagemembers: member_friends: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='accepted' and t1.id_user = '1' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_visitors_count: select count(*) from tr_visitors + where id_user='62718' and id_visitor='1' +--- db log: sxpagemembers: member_visitors: select t1.id_user, t1.sn_count sn_hits, t1.id_visitor, t2.sn_firstname, t2.sn_lastname, + t2.sn_homepagehits, t2.id, t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t2.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_visitors t1, tr_user t2 + where t1.id_user = '62718' + and t1.id_visitor = t2.id + order by t1.sn_datemodified desc limit 5 +--- db log: sxpagemembers: member_invitations_received: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_user = '1' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_invitations_sent: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_friend = '1' + and t1.id_user = t2.id + +response for: GET: /beitraege/62718 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:52 2022 +Content-Type: text/html +Content-Length: 4965 + + +80.132.174.18 - - [14/Jun/2022:17:02:52 +0200] "GET /beitraege/62718" 200 4965 "http://sourceworx.org:8088/member/62718" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:52 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:52 2022 +Content-Type: text/html +Content-Length: 506 + + + +response for: GET: /member_login +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:57 2022 +Content-Type: text/html +Content-Length: 4592 + + +80.132.174.18 - - [14/Jun/2022:17:02:57 +0200] "GET /member_login" 200 4592 "http://sourceworx.org:8088/beitraege/62718" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:02:57 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:02:57 2022 +Content-Type: text/html +Content-Length: 506 + + + +response for: POST: /member_login +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:02 2022 +Content-Type: text/html +Content-Length: 4592 + + +80.132.174.18 - - [14/Jun/2022:17:03:02 +0200] "POST /member_login" 200 4592 "http://sourceworx.org:8088/member_login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:03:02 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:02 2022 +Content-Type: text/html +Content-Length: 506 + + + +response for: POST: /member_login +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:02 2022 +Content-Type: text/html +Content-Length: 4592 + + +80.132.174.18 - - [14/Jun/2022:17:03:02 +0200] "POST /member_login" 200 4592 "http://sourceworx.org:8088/member_login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:03:02 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:02 2022 +Content-Type: text/html +Content-Length: 506 + + + +response for: POST: /member_login +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:04 2022 +Content-Type: text/html +Content-Length: 4592 + + +80.132.174.18 - - [14/Jun/2022:17:03:04 +0200] "POST /member_login" 200 4592 "http://sourceworx.org:8088/member_login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36" +[Tue Jun 14 17:03:04 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:04 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumoverview.overview: on_overview: select id_parent, id_parent id, id_type, id_state, id_user, id_group, sn_nickname, t2.sn_msgteaser sn_block_teaser, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, t2.sn_msgteaser, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 left join tr_msgext t2 on ( t1.id_parent = t2.id_main ) + where id_group != 30 and id_group != 13 and t1.id_state & 196 = 0 + + and t1.id_state & 1 != 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumoverview.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 + +response for: GET: /forum +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:13 2022 +Content-Type: text/html +Content-Length: 17331 + + +80.132.174.18 - - [14/Jun/2022:17:03:13 +0200] "GET /forum" 200 17331 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" +[Tue Jun 14 17:03:13 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:13 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:03:13 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:13 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:03:13 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png: Not a directory + +response for: GET: /articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:13 2022 +Content-Type: text/html +Content-Length: 734 + + +[Tue Jun 14 17:03:13 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png: Not a directory + +response for: GET: /articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:13 2022 +Content-Type: text/html +Content-Length: 731 + + +[Tue Jun 14 17:03:13 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340692/screenshotcapture-80.png: Not a directory + +response for: GET: /articleimage/2340692/screenshotcapture-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:13 2022 +Content-Type: text/html +Content-Length: 602 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2342383' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2342383'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2342383' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2342383' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2335589,2335488,2250882,2232850,2233056 ) + +response for: GET: /t/2342383 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:18 2022 +Content-Type: text/html +Content-Length: 38576 + + +80.132.174.18 - - [14/Jun/2022:17:03:18 +0200] "GET /t/2342383" 200 38576 "http://sourceworx.org:8088/forum" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0" +[Tue Jun 14 17:03:18 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:18 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jun 14 17:03:18 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2335488/Teaser-Auf_FAT32-unter-Windows-XP-formatieren-80.jpg: Not a directory + +response for: GET: /articleimage/2335488/Teaser-Auf_FAT32-unter-Windows-XP-formatieren-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:18 2022 +Content-Type: text/html +Content-Length: 686 + + +[Tue Jun 14 17:03:18 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2335589/Teaser-Festplatten-groesser-als-32-GByte-auf-FAT32-Formatierung-mit-GPARTED-80.jpg: Not a directory + +response for: GET: /articleimage/2335589/Teaser-Festplatten-groesser-als-32-GByte-auf-FAT32-Formatierung-mit-GPARTED-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:03:18 2022 +Content-Type: text/html +Content-Length: 776 + + +[Tue Jun 14 17:55:12 2022] error:site error: domain not found: 127.0.0.1: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 15:55:12 2022 +Content-Type: text/html +Content-Length: 443 + + +[Tue Jun 14 18:16:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 16:16:54 2022 +Content-Type: text/html +Content-Length: 467 + + +[Tue Jun 14 18:40:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 16:40:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 18:52:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 16:52:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 20:33:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 18:33:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 20:53:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 18:53:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 22:50:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 20:50:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 23:10:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 21:10:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 14 23:23:13 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 21:23:13 2022 +Content-Type: text/html +Content-Length: 490 + + +[Tue Jun 14 23:23:13 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 21:23:13 2022 +Content-Type: text/html +Content-Length: 490 + + +[Tue Jun 14 23:23:13 2022] error:site error: ddwebrequest::parse_header(): bad path:http://pv.sohu.com/cityjson: Not a directory + +response for: GET: http://pv.sohu.com/cityjson +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 21:23:13 2022 +Content-Type: text/html +Content-Length: 551 + + +[Tue Jun 14 23:23:15 2022] error:site error: ddwebrequest::parse_header(): bad path:http://110.242.68.4/: Not a directory + +response for: HEAD: http://110.242.68.4/ +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 21:23:15 2022 +Content-Type: text/html +Content-Length: 530 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-14.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-14.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-14.old: Not a directory +[Wed Jun 15 01:04:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 23:04:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 01:32:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 14 23:32:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 03:07:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 01:07:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 03:07:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 01:07:23 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 03:07:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 01:07:23 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 03:07:24 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 01:07:24 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jun 15 03:25:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 01:25:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 05:04:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 03:04:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 05:17:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 03:17:32 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 05:17:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 03:17:32 2022 +Content-Type: text/html +Content-Length: 462 + + +[Wed Jun 15 05:17:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /robots.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 03:17:33 2022 +Content-Type: text/html +Content-Length: 461 + + +[Wed Jun 15 05:17:34 2022] error:site error: ddwebrequest::parse_header(): bad path:/.well-known/security.txt: Not a directory + +response for: GET: /.well-known/security.txt +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 03:17:34 2022 +Content-Type: text/html +Content-Length: 545 + + +[Wed Jun 15 05:22:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 03:22:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 06:20:26 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 04:20:26 2022 +Content-Type: text/html +Content-Length: 457 + + +[Wed Jun 15 06:59:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 04:59:32 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 07:08:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 05:08:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 07:37:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 05:37:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 08:39:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 06:39:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 09:10:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 07:10:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 09:32:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 07:32:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 09:46:24 2022] error:site error: domain not found: 1.117.217.252: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 07:46:24 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 10:24:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 08:24:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 10:39:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 08:39:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 11:34:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 09:34:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 11:53:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 09:53:02 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='29' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '29' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-14 15:51:48' + group by id_group + +response for: GET: /groups/29 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:04 2022 +Content-Type: text/html +Content-Length: 26439 + + +80.132.174.18 - - [15/Jun/2022:12:28:04 +0200] "GET /groups/29" 200 26439 "http://sourceworx.org:8088/groups/48" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 12:28:05 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:05 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2326443' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2326443'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2326443' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-14 15:51:48' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2326443' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2282780,2282781,2301059,2300886,2283684 ) + +response for: GET: /t/2326443 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:10 2022 +Content-Type: text/html +Content-Length: 13986 + + +80.132.174.18 - - [15/Jun/2022:12:28:10 +0200] "GET /t/2326443" 200 13986 "http://sourceworx.org:8088/groups/29" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 12:28:10 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:10 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 12:28:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2282781/Screenshot_Windows7_Leerer_Desktop_80.jpg: Not a directory + +response for: GET: /articleimage/2282781/Screenshot_Windows7_Leerer_Desktop_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:10 2022 +Content-Type: text/html +Content-Length: 653 + + +[Wed Jun 15 12:28:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2300886/Windows7-Systemvoraussetzungen-Vista-XP-Download-Windows-Upgrade-Advisor_1_80.png: Not a directory + +response for: GET: /articleimage/2300886/Windows7-Systemvoraussetzungen-Vista-XP-Download-Windows-Upgrade-Advisor_1_80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:10 2022 +Content-Type: text/html +Content-Length: 773 + + +[Wed Jun 15 12:28:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2301059/4-upgrade-vista-auf-windows7-screenshot_80.gif: Not a directory + +response for: GET: /articleimage/2301059/4-upgrade-vista-auf-windows7-screenshot_80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:28:10 2022 +Content-Type: text/html +Content-Length: 668 + + +[Wed Jun 15 12:41:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:41:19 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='21' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '21' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 12:28:04' + group by id_group + +response for: GET: /groups/21 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:53:02 2022 +Content-Type: text/html +Content-Length: 26814 + + +80.132.174.18 - - [15/Jun/2022:12:53:02 +0200] "GET /groups/21" 200 26814 "http://sourceworx.org:8088/t/2326443" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 12:53:02 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:53:02 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2339980' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2339980'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2339980' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 12:28:04' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2339980' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2296673,2337924,2331415,2289516,2220890 ) + +response for: GET: /t/2339980 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:53:04 2022 +Content-Type: text/html +Content-Length: 19736 + + +80.132.174.18 - - [15/Jun/2022:12:53:04 +0200] "GET /t/2339980" 200 19736 "http://sourceworx.org:8088/groups/21" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 12:53:04 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:53:04 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 12:54:55 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 10:54:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 13:11:06 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 11:11:06 2022 +Content-Type: text/html +Content-Length: 467 + + +[Wed Jun 15 13:49:10 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 11:49:10 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 13:57:00 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 11:57:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 14:55:16 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 12:55:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 15:13:19 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 13:13:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 15:30:39 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 13:30:39 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 15:30:39 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 13:30:39 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 15 15:30:39 2022] error:site error: wrong number of request lines: No such file or directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 13:30:39 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jun 15 15:59:34 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 13:59:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 16:33:04 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 14:33:04 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpagenews: on_user_create: insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'news', 160, 62718, 'hypermoo', 'christoph.holzheuer@gmail.com', 'Titel', '', now(), now(), '80.132.174.18' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) +--- db log: site.usercontent: contentcount: select count(*) from tr_msgmain where id_state=64 and sn_msgbody != '' + +response for: GET: /news/2342881?sx_action=on_user_edit +HTTP/1.1 302 Moved Temporarily +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:05 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/news/2342881?sx_action=on_user_edit + + +80.132.174.18 - - [15/Jun/2022:17:54:05 +0200] "GET /news/2342881?sx_action=on_user_edit" 302 0 "http://sourceworx.org:8088/t/2339980" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +--- db log: sxpagefaqs: on_user_create: insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'faqs', 160, 62718, 'hypermoo', 'christoph.holzheuer@gmail.com', 'Titel', '', now(), now(), '80.132.174.18' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) +--- db log: site.usercontent: contentcount: select count(*) from tr_msgmain where id_state=64 and sn_msgbody != '' + +response for: GET: /faqs/2342882?sx_action=on_user_edit +HTTP/1.1 302 Moved Temporarily +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:06 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/faqs/2342882?sx_action=on_user_edit + + +80.132.174.18 - - [15/Jun/2022:17:54:06 +0200] "GET /faqs/2342882?sx_action=on_user_edit" 302 0 "http://sourceworx.org:8088/t/2339980" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +--- db log: sxpagefaqs: on_user_create: insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'faqs', 160, 62718, 'hypermoo', 'christoph.holzheuer@gmail.com', 'Titel', '', now(), now(), '80.132.174.18' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) +--- db log: site.usercontent: contentcount: select count(*) from tr_msgmain where id_state=64 and sn_msgbody != '' + +response for: GET: /faqs/2342883?sx_action=on_user_edit +HTTP/1.1 302 Moved Temporarily +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:07 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/faqs/2342883?sx_action=on_user_edit + + +80.132.174.18 - - [15/Jun/2022:17:54:07 +0200] "GET /faqs/2342883?sx_action=on_user_edit" 302 0 "http://sourceworx.org:8088/t/2339980" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +--- db log: sxpagefaqs: on_user_create: insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'faqs', 160, 62718, 'hypermoo', 'christoph.holzheuer@gmail.com', 'Titel', '', now(), now(), '80.132.174.18' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) +--- db log: site.usercontent: contentcount: select count(*) from tr_msgmain where id_state=64 and sn_msgbody != '' + +response for: GET: /faqs/2342884?sx_action=on_user_edit +HTTP/1.1 302 Moved Temporarily +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:08 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/faqs/2342884?sx_action=on_user_edit + + +80.132.174.18 - - [15/Jun/2022:17:54:08 +0200] "GET /faqs/2342884?sx_action=on_user_edit" 302 0 "http://sourceworx.org:8088/t/2339980" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +--- db log: sxpagefaqs: on_user_create: insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'faqs', 160, 62718, 'hypermoo', 'christoph.holzheuer@gmail.com', 'Titel', '', now(), now(), '80.132.174.18' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) +--- db log: site.usercontent: contentcount: select count(*) from tr_msgmain where id_state=64 and sn_msgbody != '' + +response for: GET: /faqs/2342885?sx_action=on_user_edit +HTTP/1.1 302 Moved Temporarily +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:08 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/faqs/2342885?sx_action=on_user_edit + + +80.132.174.18 - - [15/Jun/2022:17:54:08 +0200] "GET /faqs/2342885?sx_action=on_user_edit" 302 0 "http://sourceworx.org:8088/t/2339980" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='31' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '31' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 12:53:02' + group by id_group + +response for: GET: /groups/31 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:13 2022 +Content-Type: text/html +Content-Length: 26053 + + +80.132.174.18 - - [15/Jun/2022:17:54:13 +0200] "GET /groups/31" 200 26053 "http://sourceworx.org:8088/t/2339980" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:54:13 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:13 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpagefaqs: on_user_create: insert into tr_msgmain( id_type, id_state, id_user, sn_nickname, sn_nickmail, sn_msgsubject, sn_msgbody, + sn_datecreated, sn_datemodified, sn_senderip ) + values ( 'faqs', 160, 62718, 'hypermoo', 'christoph.holzheuer@gmail.com', 'Titel', '', now(), now(), '80.132.174.18' ); + + update tr_msgmain set id_parent=LAST_INSERT_ID() where id=LAST_INSERT_ID(); + + insert into tr_msgext( id_main, sn_msgteaser ) values ( last_insert_id(), 'Einleitung' ) +--- db log: site.usercontent: contentcount: select count(*) from tr_msgmain where id_state=64 and sn_msgbody != '' + +response for: GET: /faqs/2342886?sx_action=on_user_edit +HTTP/1.1 302 Moved Temporarily +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:15 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/faqs/2342886?sx_action=on_user_edit + + +80.132.174.18 - - [15/Jun/2022:17:54:15 +0200] "GET /faqs/2342886?sx_action=on_user_edit" 302 0 "http://sourceworx.org:8088/groups/31" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +--- db log: sxpagefaqs: on_edit: SELECT * from tr_msgmain t1, tr_msgext t2 where t1.id = t2.id_main and t1.id = '2342886' +--- db log: sxpagefaqs: on_edit_categories: SELECT group_concat( id_cat ) sn_msgcategories, group_concat( sn_categoryname ) sn_msgcatpath + FROM tr_msgcatmap t1, tr_msgcategories t2 where t1.id_faq ='2342886' and t2.id = t1.id_cat + +response for: GET: /faqs/2342886?sx_action=on_user_edit +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:15 2022 +Content-Type: text/html +Content-Length: 25057 + + +80.132.174.18 - - [15/Jun/2022:17:54:15 +0200] "GET /faqs/2342886?sx_action=on_user_edit" 200 25057 "http://sourceworx.org:8088/groups/31" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:54:15 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:15 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 17:54:16 2022] error:site error: sendfile: can't open: sn_computer/html/editor_stuff/plugin/snstuff/editor_plugin.js: Not a directory + +response for: GET: /editor_stuff/plugin/snstuff/editor_plugin.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:16 2022 +Content-Type: text/html +Content-Length: 599 + + +[Wed Jun 15 17:54:16 2022] error:site error: sendfile: can't open: sn_computer/html/editor_stuff/plugin/bbcode/editor_plugin.js: Not a directory + +response for: GET: /editor_stuff/plugin/bbcode/editor_plugin.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:16 2022 +Content-Type: text/html +Content-Length: 596 + + +[Wed Jun 15 17:54:16 2022] error:site error: sendfile: can't open: sn_computer/html/editor_stuff/plugin/liststyle/editor_plugin.js: Not a directory + +response for: GET: /editor_stuff/plugin/liststyle/editor_plugin.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:16 2022 +Content-Type: text/html +Content-Length: 605 + + +[Wed Jun 15 17:54:16 2022] error:site error: sendfile: can't open: sn_computer/html/editor_stuff/plugin/advimagescale/editor_plugin.js: Not a directory + +response for: GET: /editor_stuff/plugin/advimagescale/editor_plugin.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:16 2022 +Content-Type: text/html +Content-Length: 617 + + +--- db log: sxpageforumoverview.overview: on_overview: select id_parent, id_parent id, id_type, id_state, id_user, id_group, sn_nickname, t2.sn_msgteaser sn_block_teaser, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, t2.sn_msgteaser, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 left join tr_msgext t2 on ( t1.id_parent = t2.id_main ) + where id_group != 30 and id_group != 13 and t1.id_state & 196 = 0 + + and t1.id_state & 1 != 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumoverview.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 12:53:02' + group by id_group + +response for: GET: /forum +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:28 2022 +Content-Type: text/html +Content-Length: 22418 + + +80.132.174.18 - - [15/Jun/2022:17:54:28 +0200] "GET /forum" 200 22418 "http://sourceworx.org:8088/faqs/2342886?sx_action=on_user_edit" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:54:28 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:28 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 17:54:28 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340692/screenshotcapture-80.png: Not a directory + +response for: GET: /articleimage/2340692/screenshotcapture-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:28 2022 +Content-Type: text/html +Content-Length: 602 + + +[Wed Jun 15 17:54:28 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png: Not a directory + +response for: GET: /articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:28 2022 +Content-Type: text/html +Content-Length: 731 + + +[Wed Jun 15 17:54:28 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png: Not a directory + +response for: GET: /articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:28 2022 +Content-Type: text/html +Content-Length: 734 + + +------- XXXXXXXXXXXXXX: sxpageFAQS::on_show_entry +--- db log: sxpagefaqs.show: on_show: select t1.id, t1.id id2, t1.id_parent, t1.id_type, t1.id_user, t1.sn_nickname, t1.sn_msgsubject, t2.sn_msgvgwort, + t2.sn_msgteaser, t1.sn_msgbody sn_block_article, t1.sn_childcount xx_answercount, t1.sn_accesscount xx_hitcount, t1.id_state, t1.sn_datemodified, + DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y') 'sn_date', t1.id_group, t1.sn_senderip + from tr_msgmain t1, tr_msgext t2 + where t1.id_parent = t2.id_main and t1.id_parent = '2340692' and t1.id_state & 1 != 0 order by t1.sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2340692'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2340692' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2340692' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2227021,2227848,2228857,2229269,2229559 ) + +response for: GET: /faqsthread/2340692 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:30 2022 +Content-Type: text/html +Content-Length: 14283 + + +80.132.174.18 - - [15/Jun/2022:17:54:30 +0200] "GET /faqsthread/2340692" 200 14283 "http://sourceworx.org:8088/forum" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:54:31 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:31 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 17:54:31 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340692/screenshotcaptor1-470.png: Not a directory + +response for: GET: /articleimage/2340692/screenshotcaptor1-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:31 2022 +Content-Type: text/html +Content-Length: 605 + + +[Wed Jun 15 17:54:31 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340692/screenshotcaptor2-470.png: Not a directory + +response for: GET: /articleimage/2340692/screenshotcaptor2-470.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:31 2022 +Content-Type: text/html +Content-Length: 605 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 30 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 12:53:02' + group by id_group +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:44 2022 +Content-Type: text/html +Content-Length: 29438 + + +80.132.174.18 - - [15/Jun/2022:17:54:44 +0200] "GET /index.html" 200 29438 "http://sourceworx.org:8088/faqsthread/2340692" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:54:44 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:44 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 17:54:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:44 2022 +Content-Type: text/html +Content-Length: 566 + + +[Wed Jun 15 17:54:44 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:54:44 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpagemembers: member_show: select IF ( flag_male = 0 ,'Herr', 'Frau' ) sn_sex, id id_parent, id, id id2, sn_nickname, sn_memberbonus, + sn_numquestions, sn_numanswers, sn_numreasonable, sn_numsolutions, sn_numvotes, + sn_firstname, sn_lastname, sn_street, sn_zipcode, sn_city, sn_firstmail, sn_senderip, + sn_nickmail, sn_icqs, DATE_FORMAT( sn_datelastlogin,'%d.%m.%Y') 'sn_datelastlogin', sn_street, flag_male, + DATE_FORMAT( sn_datecreated,'%d.%m.%Y') 'sn_datecreated', + sn_itemsperpage, sn_homepagetext, sn_homepagetext sn_block_article, sn_homepagelink , sn_homepagelink 'sn_homepagelink2', + sn_homepageimage, sn_homepagehits, + sn_addressbook, sn_googlechannel1, sn_googlechannel2 from tr_user where id='59540' +--- db log: sxpagemembers: member_friends: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='accepted' and t1.id_user = '62718' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_visitors_count: select count(*) from tr_visitors + where id_user='59540' and id_visitor='62718' +--- db log: sxpagemembers: member_visitors_insert: insert into tr_visitors( id_user, id_visitor, sn_datemodified ) + values ( '59540', '62718', now() ); + update tr_user set sn_homepagehits = sn_homepagehits + 1 where id = '59540' +--- db log: sxpagemembers: member_visitors: select t1.id_user, t1.sn_count sn_hits, t1.id_visitor, t2.sn_firstname, t2.sn_lastname, + t2.sn_homepagehits, t2.id, t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t2.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_visitors t1, tr_user t2 + where t1.id_user = '59540' + and t1.id_visitor = t2.id + order by t1.sn_datemodified desc limit 5 +--- db log: sxpagemembers: member_invitations_received: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_user = '62718' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_invitations_sent: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_friend = '62718' + and t1.id_user = t2.id + +response for: GET: /member/59540 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:00 2022 +Content-Type: text/html +Content-Length: 8752 + + +80.132.174.18 - - [15/Jun/2022:17:55:00 +0200] "GET /member/59540" 200 8752 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:55:00 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:00 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 17:55:00 2022] error:site error: sendfile: can't open: sn_computer/html/memberimage/: Not a directory + +response for: GET: /memberimage/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:00 2022 +Content-Type: text/html +Content-Length: 503 + + +[Wed Jun 15 17:55:00 2022] error:site error: sendfile: can't open: sn_computer/html/memberimage/blank.gif: Not a directory + +response for: GET: /memberimage/blank.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:00 2022 +Content-Type: text/html +Content-Length: 530 + + +--- db log: sxpagemembers: member_show: select IF ( flag_male = 0 ,'Herr', 'Frau' ) sn_sex, id id_parent, id, id id2, sn_nickname, sn_memberbonus, + sn_numquestions, sn_numanswers, sn_numreasonable, sn_numsolutions, sn_numvotes, + sn_firstname, sn_lastname, sn_street, sn_zipcode, sn_city, sn_firstmail, sn_senderip, + sn_nickmail, sn_icqs, DATE_FORMAT( sn_datelastlogin,'%d.%m.%Y') 'sn_datelastlogin', sn_street, flag_male, + DATE_FORMAT( sn_datecreated,'%d.%m.%Y') 'sn_datecreated', + sn_itemsperpage, sn_homepagetext, sn_homepagetext sn_block_article, sn_homepagelink , sn_homepagelink 'sn_homepagelink2', + sn_homepageimage, sn_homepagehits, + sn_addressbook, sn_googlechannel1, sn_googlechannel2 from tr_user where id='62718' +--- db log: sxpagemembers: member_friends: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='accepted' and t1.id_user = '62718' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_visitors_count: select count(*) from tr_visitors + where id_user='62718' and id_visitor='62718' +--- db log: sxpagemembers: member_visitors: select t1.id_user, t1.sn_count sn_hits, t1.id_visitor, t2.sn_firstname, t2.sn_lastname, + t2.sn_homepagehits, t2.id, t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t2.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_visitors t1, tr_user t2 + where t1.id_user = '62718' + and t1.id_visitor = t2.id + order by t1.sn_datemodified desc limit 5 +--- db log: sxpagemembers: member_invitations_received: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_user = '62718' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 +--- db log: sxpagemembers: member_invitations_sent: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_friend = '62718' + and t1.id_user = t2.id + +response for: GET: /member/62718 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:03 2022 +Content-Type: text/html +Content-Length: 8874 + + +80.132.174.18 - - [15/Jun/2022:17:55:03 +0200] "GET /member/62718" 200 8874 "http://sourceworx.org:8088/member/59540" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Wed Jun 15 17:55:03 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:03 2022 +Content-Type: text/html +Content-Length: 506 + + +[Wed Jun 15 17:55:03 2022] error:site error: sendfile: can't open: sn_computer/html/memberimage/blank.gif: Not a directory + +response for: GET: /memberimage/blank.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 15:55:03 2022 +Content-Type: text/html +Content-Length: 530 + + +[Wed Jun 15 18:01:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 16:01:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 18:23:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 16:23:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 19:10:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 17:10:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 19:28:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 17:28:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 20:32:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 18:32:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 21:07:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 19:07:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 22:18:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 20:18:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 22:46:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 20:46:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 23:36:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 21:36:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 15 23:48:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 21:48:09 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-15.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-15.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-15.old: Not a directory +[Thu Jun 16 00:19:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 22:19:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 00:44:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 22:44:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 01:08:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:08:56 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpagemembers: member_invitations_received: select t1.id_user, t1.id_friend, t2.sn_firstname, t2.sn_lastname, t2.sn_homepagehits, t2.id, + t2.sn_memberbonus, t2.sn_numquestions, t2.sn_numanswers, + t2.sn_numreasonable, t2.sn_numsolutions, t2.sn_numvotes, DATE_FORMAT( t2.sn_datecreated, '%d.%m.%Y' ) sn_datecreated1, + DATE_FORMAT( t2.sn_datelastlogin, '%d.%m.%Y') sn_datelastlogin1, + t2.sn_nickname, t2.sn_city, DATE_FORMAT( t1.sn_datecreated,'%d.%m.%Y %k:%i') sn_date + from tr_friends t1, tr_user t2 + where t1.id_state='invited' and t1.id_user = '62718' + and t1.id_friend = t2.id order by t1.sn_datecreated desc limit 5 + +response for: GET: /list_invitations_received +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:12:56 2022 +Content-Type: text/html +Content-Length: 3802 + + +80.132.174.18 - - [16/Jun/2022:01:12:56 +0200] "GET /list_invitations_received" 200 3802 "http://sourceworx.org:8088/member/62718" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:12:57 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:12:57 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumoverview.overview: on_overview: select id_parent, id_parent id, id_type, id_state, id_user, id_group, sn_nickname, t2.sn_msgteaser sn_block_teaser, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, t2.sn_msgteaser, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 left join tr_msgext t2 on ( t1.id_parent = t2.id_main ) + where id_group != 30 and id_group != 13 and t1.id_state & 196 = 0 + + and t1.id_state & 1 != 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumoverview.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /forum +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:00 2022 +Content-Type: text/html +Content-Length: 22412 + + +80.132.174.18 - - [16/Jun/2022:01:13:00 +0200] "GET /forum" 200 22412 "http://sourceworx.org:8088/list_invitations_received" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:00 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:00 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 01:13:00 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2340692/screenshotcapture-80.png: Not a directory + +response for: GET: /articleimage/2340692/screenshotcapture-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:00 2022 +Content-Type: text/html +Content-Length: 602 + + +[Thu Jun 16 01:13:00 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png: Not a directory + +response for: GET: /articleimage/2342437/00-kostenlose-Vollversionen-von_Microsoft-Personal-Vibe-Logo-40.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:00 2022 +Content-Type: text/html +Content-Length: 731 + + +[Thu Jun 16 01:13:00 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png: Not a directory + +response for: GET: /articleimage/2341697/00-kostenlose-Vollversionen-von-Microsoft-Autoruns-Screenshot-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:00 2022 +Content-Type: text/html +Content-Length: 734 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='17' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '17' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/17 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:04 2022 +Content-Type: text/html +Content-Length: 26480 + + +80.132.174.18 - - [16/Jun/2022:01:13:04 +0200] "GET /groups/17" 200 26480 "http://sourceworx.org:8088/forum" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:04 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:04 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2339959' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2339959'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2339959' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2339959' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2259612,1032,2184962,2338696,2223558 ) + +response for: GET: /t/2339959 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:07 2022 +Content-Type: text/html +Content-Length: 30157 + + +80.132.174.18 - - [16/Jun/2022:01:13:07 +0200] "GET /t/2339959" 200 30157 "http://sourceworx.org:8088/groups/17" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:08 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:08 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='50' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '50' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/50 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:10 2022 +Content-Type: text/html +Content-Length: 25956 + + +80.132.174.18 - - [16/Jun/2022:01:13:10 +0200] "GET /groups/50" 200 25956 "http://sourceworx.org:8088/t/2339959" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:10 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:10 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2341278' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2341278'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2341278' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2341278' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2297945,2307400,2224990,2225138,2225530 ) + +response for: GET: /t/2341278 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:12 2022 +Content-Type: text/html +Content-Length: 15462 + + +80.132.174.18 - - [16/Jun/2022:01:13:12 +0200] "GET /t/2341278" 200 15462 "http://sourceworx.org:8088/groups/50" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:12 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:12 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='54' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '54' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/54 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:44 2022 +Content-Type: text/html +Content-Length: 26284 + + +80.132.174.18 - - [16/Jun/2022:01:13:44 +0200] "GET /groups/54" 200 26284 "http://sourceworx.org:8088/t/2341278" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:44 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:44 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2342116' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2342116'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2342116' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2342116' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2258809,2334220,2331194,2333112,2335464 ) + +response for: GET: /t/2342116 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:46 2022 +Content-Type: text/html +Content-Length: 20396 + + +80.132.174.18 - - [16/Jun/2022:01:13:46 +0200] "GET /t/2342116" 200 20396 "http://sourceworx.org:8088/groups/54" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:46 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:46 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 01:13:46 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2331194/03-WLAN-Speedport-W920-V-absichern-80.jpg: Not a directory + +response for: GET: /articleimage/2331194/03-WLAN-Speedport-W920-V-absichern-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:46 2022 +Content-Type: text/html +Content-Length: 653 + + +[Thu Jun 16 01:13:46 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2333112/01-WLAN-fritzbox-7170-absichern-80.jpg: Not a directory + +response for: GET: /articleimage/2333112/01-WLAN-fritzbox-7170-absichern-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:46 2022 +Content-Type: text/html +Content-Length: 644 + + +[Thu Jun 16 01:13:46 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2334220/01-WLAN-Fritzbox-7170-Router-von-AVM-als-Repeater-einsetzen-80.jpg: Not a directory + +response for: GET: /articleimage/2334220/01-WLAN-Fritzbox-7170-Router-von-AVM-als-Repeater-einsetzen-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:46 2022 +Content-Type: text/html +Content-Length: 728 + + +[Thu Jun 16 01:13:46 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2335464/internet-device-Vista_256-80.png: Not a directory + +response for: GET: /articleimage/2335464/internet-device-Vista_256-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:46 2022 +Content-Type: text/html +Content-Length: 626 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='7' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '7' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/7 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:48 2022 +Content-Type: text/html +Content-Length: 26409 + + +80.132.174.18 - - [16/Jun/2022:01:13:48 +0200] "GET /groups/7" 200 26409 "http://sourceworx.org:8088/t/2342116" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:48 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:48 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2341081' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2341081'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2341081' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2341081' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2321016,2321105,2321149,2321239,2321311 ) + +response for: GET: /t/2341081 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 13918 + + +80.132.174.18 - - [16/Jun/2022:01:13:50 +0200] "GET /t/2341081" 200 13918 "http://sourceworx.org:8088/groups/7" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:50 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 01:13:50 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2321016/Logo-Windows-Live-Mail-80.jpg: Not a directory + +response for: GET: /articleimage/2321016/Logo-Windows-Live-Mail-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 617 + + +[Thu Jun 16 01:13:50 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2321105/Logo-Windows-Live-Mail-80.jpg: Not a directory + +response for: GET: /articleimage/2321105/Logo-Windows-Live-Mail-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 617 + + +[Thu Jun 16 01:13:50 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2321149/Logo-Windows-Live-Mail.jpg: Not a directory + +response for: GET: /articleimage/2321149/Logo-Windows-Live-Mail.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 608 + + +[Thu Jun 16 01:13:50 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2321239/Logo-Windows-Live-Mail-80.jpg: Not a directory + +response for: GET: /articleimage/2321239/Logo-Windows-Live-Mail-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 617 + + +[Thu Jun 16 01:13:50 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2321311/Logo-Windows-Live-Mail-80.jpg: Not a directory + +response for: GET: /articleimage/2321311/Logo-Windows-Live-Mail-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:50 2022 +Content-Type: text/html +Content-Length: 617 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='18' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '18' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/18 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:52 2022 +Content-Type: text/html +Content-Length: 26672 + + +80.132.174.18 - - [16/Jun/2022:01:13:52 +0200] "GET /groups/18" 200 26672 "http://sourceworx.org:8088/t/2341081" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:52 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:52 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2341419' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2341419'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2341419' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2341419' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2141559,2135545,2334653,2331447,2335776 ) + +response for: GET: /t/2341419 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:54 2022 +Content-Type: text/html +Content-Length: 12200 + + +80.132.174.18 - - [16/Jun/2022:01:13:54 +0200] "GET /t/2341419" 200 12200 "http://sourceworx.org:8088/groups/18" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:54 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:54 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 01:13:54 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2135545/planet_80.gif: Not a directory + +response for: GET: /articleimage/2135545/planet_80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:54 2022 +Content-Type: text/html +Content-Length: 569 + + +[Thu Jun 16 01:13:54 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2331447/00-Bildbearbeitungsprogramm-GIMP-Teil1-Installation-Teaser-80.gif: Not a directory + +response for: GET: /articleimage/2331447/00-Bildbearbeitungsprogramm-GIMP-Teil1-Installation-Teaser-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:54 2022 +Content-Type: text/html +Content-Length: 725 + + +[Thu Jun 16 01:13:54 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2334653/00-Bildbearbeitungsprogramm-GIMP-Teil2-Benutzeroberflaeche-Teaser-80.gif: Not a directory + +response for: GET: /articleimage/2334653/00-Bildbearbeitungsprogramm-GIMP-Teil2-Benutzeroberflaeche-Teaser-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:54 2022 +Content-Type: text/html +Content-Length: 746 + + +[Thu Jun 16 01:13:54 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2335776/00-Bildbearbeitungsprogramm-GIMP-Teil6-Bilder-fuer-das-Web-Teaser-80.gif: Not a directory + +response for: GET: /articleimage/2335776/00-Bildbearbeitungsprogramm-GIMP-Teil6-Bilder-fuer-das-Web-Teaser-80.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:54 2022 +Content-Type: text/html +Content-Length: 746 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='17' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '17' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/17 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:56 2022 +Content-Type: text/html +Content-Length: 26480 + + +80.132.174.18 - - [16/Jun/2022:01:13:56 +0200] "GET /groups/17" 200 26480 "http://sourceworx.org:8088/t/2341419" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:13:56 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:13:56 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2339163' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2339163'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2339163' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2339163' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2124035,2238561,2260986,2301751,2238703 ) + +response for: GET: /t/2339163 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:02 2022 +Content-Type: text/html +Content-Length: 17770 + + +80.132.174.18 - - [16/Jun/2022:01:14:02 +0200] "GET /t/2339163" 200 17770 "http://sourceworx.org:8088/groups/17" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:14:02 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:02 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 01:14:02 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2124035/ps_logo_228x52.gif: Not a directory + +response for: GET: /articleimage/2124035/ps_logo_228x52.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:02 2022 +Content-Type: text/html +Content-Length: 584 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='50' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '50' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group + +response for: GET: /groups/50 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:03 2022 +Content-Type: text/html +Content-Length: 25956 + + +80.132.174.18 - - [16/Jun/2022:01:14:03 +0200] "GET /groups/50" 200 25956 "http://sourceworx.org:8088/t/2339163" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:14:03 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:03 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2342008' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2342008'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2342008' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-15 17:54:05' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2342008' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2239731,2285276,2322070,2340654,2256276 ) + +response for: GET: /t/2342008 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:07 2022 +Content-Type: text/html +Content-Length: 20262 + + +80.132.174.18 - - [16/Jun/2022:01:14:07 +0200] "GET /t/2342008" 200 20262 "http://sourceworx.org:8088/groups/50" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 01:14:07 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:14:07 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 01:54:54 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 15 23:54:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 02:05:30 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 00:05:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 02:12:28 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 00:12:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 02:58:08 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 00:58:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 03:00:17 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 01:00:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 03:16:13 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 01:16:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 03:35:45 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 01:35:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 04:07:41 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 02:07:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 04:19:54 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 02:19:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 05:12:55 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 03:12:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 05:33:57 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 03:33:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 05:50:34 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 03:50:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 06:37:25 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 04:37:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 06:44:38 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 04:44:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 08:25:17 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 06:25:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 08:30:33 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 06:30:33 2022 +Content-Type: text/html +Content-Length: 467 + + +[Thu Jun 16 08:45:55 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 06:45:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 09:35:14 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 07:35:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 09:46:21 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 07:46:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 10:43:58 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 08:43:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 10:50:50 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 08:50:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 11:12:10 2022] error:site error: wrong number of request lines: No such file or directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:10 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 16 11:12:12 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /system_api.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:12 2022 +Content-Type: text/html +Content-Length: 465 + + +[Thu Jun 16 11:12:13 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:13 2022 +Content-Type: text/html +Content-Length: 463 + + +[Thu Jun 16 11:12:15 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /streaming/clients_live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:15 2022 +Content-Type: text/html +Content-Length: 477 + + +[Thu Jun 16 11:12:16 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /stalker_portal/c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:16 2022 +Content-Type: text/html +Content-Length: 478 + + +[Thu Jun 16 11:12:18 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /stream/live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:18 2022 +Content-Type: text/html +Content-Length: 466 + + +[Thu Jun 16 11:12:19 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /flu/403.html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:19 2022 +Content-Type: text/html +Content-Length: 463 + + +[Thu Jun 16 11:12:21 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:12:21 2022 +Content-Type: text/html +Content-Length: 451 + + +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='48' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 30 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '48' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-16 01:12:56' + group by id_group + +response for: GET: /groups/48 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:03 2022 +Content-Type: text/html +Content-Length: 26389 + + +80.132.174.18 - - [16/Jun/2022:11:47:03 +0200] "GET /groups/48" 200 26389 "http://sourceworx.org:8088/t/2342008" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 11:47:03 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:03 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2342454' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2342454'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2342454' +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-16 01:12:56' + group by id_group +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2342454' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2335790,2312468,2331949,2331979,2332153 ) + +response for: GET: /t/2342454 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:04 2022 +Content-Type: text/html +Content-Length: 14355 + + +80.132.174.18 - - [16/Jun/2022:11:47:04 +0200] "GET /t/2342454" 200 14355 "http://sourceworx.org:8088/groups/48" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 11:47:05 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:05 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 11:47:05 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2331949/Google-Street-View-Deutschland-Auto-Logo-80.jpg: Not a directory + +response for: GET: /articleimage/2331949/Google-Street-View-Deutschland-Auto-Logo-80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:05 2022 +Content-Type: text/html +Content-Length: 671 + + +[Thu Jun 16 11:47:05 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2331979/Google-Street-View-Maps-Widerspruch-Datenschutz-80.png: Not a directory + +response for: GET: /articleimage/2331979/Google-Street-View-Maps-Widerspruch-Datenschutz-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:05 2022 +Content-Type: text/html +Content-Length: 692 + + +[Thu Jun 16 11:47:05 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2332153/analytics_logo-200.gif: Not a directory + +response for: GET: /articleimage/2332153/analytics_logo-200.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:05 2022 +Content-Type: text/html +Content-Length: 596 + + +[Thu Jun 16 11:47:05 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2335790/00-Die-neuen-Browser-Google-Chrome-6-Logo-80.png: Not a directory + +response for: GET: /articleimage/2335790/00-Die-neuen-Browser-Google-Chrome-6-Logo-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:47:05 2022 +Content-Type: text/html +Content-Length: 674 + + +[Thu Jun 16 11:55:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 09:55:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 12:19:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 10:19:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 13:46:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 11:46:51 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 16 13:46:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 11:46:51 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 16 13:46:51 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 11:46:51 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 16 14:06:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 12:06:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 14:40:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 12:40:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 16:14:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 14:14:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 16:23:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 14:23:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 16:28:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 14:28:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 16:34:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 14:34:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 16:41:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 14:41:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 17:08:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 15:08:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 18:22:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 16:22:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 19:04:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 17:04:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 19:08:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 17:08:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 20:39:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 18:39:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 21:14:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 19:14:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 22:12:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 20:12:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 22:50:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 20:50:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 22:55:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 20:55:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 16 23:06:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 21:06:02 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: users: last_login: select sn_datelastlogin from tr_user where id = '62718' +--- db log: users: update_single1: update tr_user set sn_datelastlogin= now() where id = '62718' +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 30 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: newpostings: select: SELECT id_group, count(*) FROM sn_computer.tr_msgmain + where sn_datecreated > '2022-06-16 11:47:02' + group by id_group +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 21:21:57 2022 +Content-Type: text/html +Content-Length: 29427 + + +80.132.174.18 - - [16/Jun/2022:23:21:57 +0200] "GET /" 200 29427 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36" +[Thu Jun 16 23:21:57 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 21:21:57 2022 +Content-Type: text/html +Content-Length: 506 + + +[Thu Jun 16 23:21:57 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 21:21:57 2022 +Content-Type: text/html +Content-Length: 566 + + +[Thu Jun 16 23:21:57 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 21:21:57 2022 +Content-Type: text/html +Content-Length: 599 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-16.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-16.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-16.old: Not a directory +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:14:51 2022 +Content-Type: text/html +Content-Length: 24142 + + +80.132.174.18 - - [17/Jun/2022:00:14:51 +0200] "GET /" 200 24142 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" +[Fri Jun 17 00:14:52 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:14:52 2022 +Content-Type: text/html +Content-Length: 506 + + +[Fri Jun 17 00:14:52 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:14:52 2022 +Content-Type: text/html +Content-Length: 566 + + +[Fri Jun 17 00:14:52 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:14:52 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2308245' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2308245'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2308245' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2308245' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2293335,2250353,2213761,2231454,2150228 ) + +response for: GET: /t/2308245 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:14:56 2022 +Content-Type: text/html +Content-Length: 37405 + + +80.132.174.18 - - [17/Jun/2022:00:14:56 +0200] "GET /t/2308245" 200 37405 "http://sourceworx.org:8088/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" +[Fri Jun 17 00:14:56 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:14:56 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumold.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2150228' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2150228'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2150228' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2150228' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 1039,843,2124020,2125041,973 ) + +response for: GET: /threads/2150228 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:15:04 2022 +Content-Type: text/html +Content-Length: 9960 + + +80.132.174.18 - - [17/Jun/2022:00:15:04 +0200] "GET /threads/2150228" 200 9960 "http://sourceworx.org:8088/t/2308245" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" +[Fri Jun 17 00:15:04 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:15:04 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='39' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '39' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + +response for: GET: /groups/39 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:15:08 2022 +Content-Type: text/html +Content-Length: 21320 + + +80.132.174.18 - - [17/Jun/2022:00:15:08 +0200] "GET /groups/39" 200 21320 "http://sourceworx.org:8088/threads/2150228" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" +[Fri Jun 17 00:15:08 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:15:08 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2339806' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2339806'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2339806' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2339806' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2221299,2221896,2221959,2222385,2223338 ) + +response for: GET: /t/2339806 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:15:10 2022 +Content-Type: text/html +Content-Length: 12548 + + +80.132.174.18 - - [17/Jun/2022:00:15:10 +0200] "GET /t/2339806" 200 12548 "http://sourceworx.org:8088/groups/39" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" +[Fri Jun 17 00:15:10 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:15:10 2022 +Content-Type: text/html +Content-Length: 506 + + +[Fri Jun 17 00:57:45 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:57:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 00:58:16 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 22:58:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 01:28:14 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 16 23:28:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 02:11:47 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 00:11:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 03:07:56 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 01:07:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 03:19:26 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 01:19:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 03:31:44 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 01:31:44 2022 +Content-Type: text/html +Content-Length: 467 + + +[Fri Jun 17 04:08:56 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 02:08:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 04:33:01 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 02:33:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 05:21:41 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 03:21:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 05:32:32 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 03:32:32 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 17 05:32:32 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 03:32:32 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 17 05:32:32 2022] error:site error: wrong number of request lines: No such file or directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 03:32:32 2022 +Content-Type: text/html +Content-Length: 450 + + +[Fri Jun 17 05:38:29 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 03:38:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 06:29:45 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 04:29:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 06:54:23 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 04:54:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 07:21:42 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 05:21:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 07:44:21 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 05:44:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 08:02:54 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 06:02:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 08:35:31 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 06:35:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 10:00:06 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 08:00:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 10:12:30 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 08:12:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 10:53:32 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 08:53:32 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 17 10:53:32 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 08:53:32 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 17 10:53:33 2022] error:site error: wrong number of request lines: No such file or directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 08:53:33 2022 +Content-Type: text/html +Content-Length: 450 + + +[Fri Jun 17 12:16:31 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 10:16:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 12:50:40 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 10:50:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 14:00:11 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 12:00:11 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 12:57:28 2022 +Content-Type: text/html +Content-Length: 24142 + + +205.210.31.153 - - [17/Jun/2022:14:57:28 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Fri Jun 17 15:40:45 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 13:40:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 16:24:39 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 14:24:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 18:06:16 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 16:06:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 18:35:46 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 16:35:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 18:41:29 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 16:41:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 20:11:08 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 18:11:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 20:35:31 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 18:35:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 20:48:29 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 18:48:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 22:34:50 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 20:34:50 2022 +Content-Type: text/html +Content-Length: 467 + + +[Fri Jun 17 22:52:30 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 20:52:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 17 23:12:05 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 21:12:05 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-17.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-17.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-17.old: Not a directory +[Sat Jun 18 01:11:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 23:11:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 01:24:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 17 23:24:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 03:02:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 01:02:20 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 18 03:13:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 01:13:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 03:24:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 01:24:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 04:21:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 02:21:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 05:19:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 03:19:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 06:01:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 04:01:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 06:38:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 04:38:33 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sat Jun 18 06:38:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 04:38:33 2022 +Content-Type: text/html +Content-Length: 456 + + +[Sat Jun 18 06:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 04:38:34 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sat Jun 18 06:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 04:38:34 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sat Jun 18 06:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 04:38:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 07:09:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 05:09:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 07:43:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 05:43:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 08:25:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 06:25:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 08:54:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 06:54:44 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 18 09:29:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 07:29:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 09:49:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 07:49:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 10:15:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 08:15:50 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 18 10:16:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 08:16:08 2022 +Content-Type: text/html +Content-Length: 462 + + +[Sat Jun 18 10:16:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /robots.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 08:16:26 2022 +Content-Type: text/html +Content-Length: 461 + + +[Sat Jun 18 10:16:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /sitemap.xml +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 08:16:46 2022 +Content-Type: text/html +Content-Length: 462 + + +[Sat Jun 18 10:19:02 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 08:19:02 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sat Jun 18 10:36:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 08:36:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 12:04:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 10:04:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 12:50:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 10:50:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 13:27:20 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 11:27:20 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jun 18 13:27:29 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 11:27:29 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jun 18 13:27:30 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 11:27:30 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jun 18 13:27:30 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 11:27:30 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jun 18 13:27:49 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 11:27:49 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jun 18 13:27:56 2022] error:site error: ddwebrequest::parse_header(): bad request:OPTIONS: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 11:27:56 2022 +Content-Type: text/html +Content-Length: 490 + + +[Sat Jun 18 14:18:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 12:18:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 14:51:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 12:51:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 15:33:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 13:33:22 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 18 16:34:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 14:34:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 16:56:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 14:56:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 17:13:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 15:13:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 17:26:18 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 15:26:18 2022 +Content-Type: text/html +Content-Length: 429 + + +[Sat Jun 18 17:30:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 15:30:16 2022 +Content-Type: text/html +Content-Length: 467 + + +[Sat Jun 18 18:41:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 16:41:21 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 18 18:41:21 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 16:41:21 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jun 18 19:06:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 17:06:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 19:20:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 17:20:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 21:30:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 19:30:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 21:46:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 19:46:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 23:27:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 21:27:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 18 23:42:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 21:42:57 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-18.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-18.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-18.old: Not a directory +[Sun Jun 19 00:16:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 22:16:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 01:08:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 23:08:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 01:50:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 18 23:50:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 02:11:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 00:11:42 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 19 02:11:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 00:11:42 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 19 02:11:42 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 00:11:42 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sun Jun 19 02:11:48 2022] error:site error: domain not found: 1.116.199.70: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 00:11:48 2022 +Content-Type: text/html +Content-Length: 449 + + +[Sun Jun 19 02:35:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 00:35:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 03:42:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 01:42:01 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 19 03:54:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 01:54:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 04:12:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 02:12:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 05:58:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 03:58:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 06:30:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 04:30:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 06:57:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 04:57:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 08:06:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 06:06:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 08:45:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 06:45:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 10:16:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 08:16:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 10:45:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 08:45:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 12:16:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 10:16:32 2022 +Content-Type: text/html +Content-Length: 467 + + +[Sun Jun 19 12:36:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 10:36:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 13:06:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 11:06:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 14:10:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 12:10:13 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 19 14:55:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 12:55:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 15:03:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 13:03:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 15:24:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 13:24:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 19 15:24:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 13:24:59 2022 +Content-Type: text/html +Content-Length: 462 + + +[Sun Jun 19 17:09:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 15:09:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 17:51:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 15:51:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 19:45:31 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 17:45:31 2022 +Content-Type: text/html +Content-Length: 490 + + +[Sun Jun 19 19:45:31 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 17:45:31 2022 +Content-Type: text/html +Content-Length: 490 + + +[Sun Jun 19 19:45:31 2022] error:site error: ddwebrequest::parse_header(): bad path:http://qzone-music.qq.com/fcg-bin/cgi_playlist_xml.fcg: Not a directory + +response for: GET: http://qzone-music.qq.com/fcg-bin/cgi_playlist_xml.fcg?uin=38374815&json=1&g_tk=1655660731 +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 17:45:31 2022 +Content-Type: text/html +Content-Length: 668 + + +[Sun Jun 19 19:45:49 2022] error:site error: ddwebrequest::parse_header(): bad path:http://110.242.68.4/: Not a directory + +response for: HEAD: http://110.242.68.4/ +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 17:45:49 2022 +Content-Type: text/html +Content-Length: 530 + + +[Sun Jun 19 20:10:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 18:10:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 20:51:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 18:51:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 20:51:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 18:51:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 21:33:11 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 19:33:11 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sun Jun 19 22:04:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 20:04:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 22:29:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 20:29:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 19 23:06:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 21:06:44 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-19.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-19.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-19.old: Not a directory +[Mon Jun 20 00:37:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 22:37:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 00:43:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 22:43:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 01:04:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 19 23:04:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 02:44:10 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 00:44:10 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 03:01:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 01:01:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 04:41:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 02:41:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 04:57:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 02:57:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 06:18:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 04:18:01 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 20 06:35:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 04:35:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 07:04:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 05:04:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 07:16:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 05:16:45 2022 +Content-Type: text/html +Content-Length: 467 + + +[Mon Jun 20 08:35:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 06:35:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 08:48:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 06:48:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 09:19:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 07:19:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 09:46:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/text/list +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 07:46:56 2022 +Content-Type: text/html +Content-Length: 468 + + +[Mon Jun 20 10:26:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 08:26:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 11:00:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 09:00:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 11:25:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 09:25:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 11:27:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 09:27:54 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jun 20 12:23:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 10:23:25 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 20 12:23:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 10:23:25 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 20 12:23:25 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 10:23:25 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jun 20 13:11:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 11:11:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 13:47:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 11:47:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 15:23:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 13:23:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 15:42:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 13:42:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 17:08:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 15:08:49 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 20 17:08:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 15:08:49 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 20 17:08:50 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 15:08:50 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jun 20 17:31:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 15:31:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 17:57:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 15:57:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 19:06:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 17:06:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 19:56:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 17:56:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 20:19:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 18:19:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 20:50:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 18:50:16 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 20 22:10:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 20:10:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 20 22:47:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 20:47:18 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-20.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-20.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-20.old: Not a directory +[Tue Jun 21 00:21:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 22:21:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 00:55:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 20 22:55:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 02:17:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 00:17:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 02:47:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 00:47:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 02:53:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 00:53:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 04:10:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 02:10:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 04:39:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 02:39:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 06:06:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 04:06:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 06:23:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 04:23:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 08:09:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 06:09:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 08:49:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 06:49:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 10:19:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 08:19:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 10:32:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 08:32:36 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jun 21 10:50:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 08:50:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 11:40:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 09:40:45 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jun 21 12:19:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 10:19:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 12:37:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 10:37:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 14:23:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 12:23:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 14:54:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 12:54:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 16:26:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 14:26:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 16:52:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 14:52:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 17:34:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 15:34:37 2022 +Content-Type: text/html +Content-Length: 457 + + +[Tue Jun 21 17:34:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 15:34:37 2022 +Content-Type: text/html +Content-Length: 456 + + +[Tue Jun 21 17:34:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 15:34:38 2022 +Content-Type: text/html +Content-Length: 464 + + +[Tue Jun 21 17:34:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 15:34:38 2022 +Content-Type: text/html +Content-Length: 463 + + +[Tue Jun 21 17:34:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 15:34:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 18:29:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 16:29:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 18:44:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 16:44:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 19:18:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 17:18:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 20:52:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 18:52:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 21:09:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 19:09:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 23:02:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 21:02:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 21 23:13:06 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 21:13:06 2022 +Content-Type: text/html +Content-Length: 457 + + +[Tue Jun 21 23:24:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 21:24:23 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-21.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-21.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-21.old: Not a directory +[Wed Jun 22 01:03:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 23:03:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 01:03:27 2022] error:site error: domain not found: smilecollect.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 23:03:27 2022 +Content-Type: text/html +Content-Length: 455 + + +[Wed Jun 22 01:03:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 23:03:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 01:19:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 21 23:19:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 02:56:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 00:56:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 03:12:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 01:12:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 04:51:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 02:51:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 05:05:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 03:05:35 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 03:08:28 2022 +Content-Type: text/html +Content-Length: 24142 + + +198.235.24.5 - - [22/Jun/2022:05:08:28 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Wed Jun 22 06:04:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 04:04:35 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 06:46:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 04:46:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 07:15:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 05:15:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 08:49:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 06:49:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 09:09:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 07:09:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 10:58:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 08:58:35 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 10:59:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 08:59:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 11:08:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 09:08:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 11:45:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 09:45:08 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 11:45:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 09:45:09 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 12:43:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 10:43:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 13:08:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 11:08:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 13:29:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 11:29:58 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 13:29:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 11:29:58 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 13:29:58 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 11:29:58 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jun 22 14:52:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 12:52:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 15:14:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 13:14:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 16:09:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 14:09:07 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 16:49:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 14:49:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 16:58:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 14:58:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 17:34:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 15:34:29 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 17:34:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 15:34:29 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 22 17:34:29 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 15:34:29 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jun 22 18:55:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 16:55:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 19:27:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 17:27:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 21:05:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 19:05:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 21:14:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 19:14:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 23:10:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 21:10:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 22 23:34:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 21:34:29 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-22.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-22.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-22.old: Not a directory +[Thu Jun 23 00:19:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /ws/v1/cluster +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 22:19:05 2022 +Content-Type: text/html +Content-Length: 464 + + +[Thu Jun 23 01:15:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 23:15:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 01:37:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 23:37:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 01:53:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 22 23:53:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 02:46:25 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 00:46:25 2022 +Content-Type: text/html +Content-Length: 429 + + +[Thu Jun 23 03:24:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 01:24:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 03:50:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 01:50:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 05:25:54 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:54 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 23 05:25:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /system_api.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:55 2022 +Content-Type: text/html +Content-Length: 465 + + +[Thu Jun 23 05:25:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:56 2022 +Content-Type: text/html +Content-Length: 463 + + +[Thu Jun 23 05:25:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /streaming/clients_live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:56 2022 +Content-Type: text/html +Content-Length: 477 + + +[Thu Jun 23 05:25:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /stalker_portal/c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:57 2022 +Content-Type: text/html +Content-Length: 478 + + +[Thu Jun 23 05:25:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /stream/live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:58 2022 +Content-Type: text/html +Content-Length: 466 + + +[Thu Jun 23 05:25:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /flu/403.html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:58 2022 +Content-Type: text/html +Content-Length: 463 + + +[Thu Jun 23 05:25:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:25:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 05:44:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 03:44:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 06:27:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 04:27:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 07:50:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 05:50:06 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 07:50:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 05:50:06 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 07:50:07 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 05:50:07 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 23 07:52:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 05:52:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 08:30:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 06:30:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 09:59:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 07:59:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 10:27:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 08:27:22 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 10:27:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 08:27:22 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 10:27:22 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 08:27:22 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 23 10:34:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 08:34:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 10:46:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 08:46:43 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 11:24:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 09:24:04 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 11:51:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 09:51:53 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 11:59:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 09:59:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 12:43:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 10:43:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 14:17:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 12:17:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 14:51:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 12:51:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 16:35:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 14:35:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 17:15:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 15:15:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 18:54:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 16:54:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 19:24:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 17:24:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 21:11:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:11:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 21:21:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:21:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 21:45:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:45:41 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 21:58:11 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:58:11 2022 +Content-Type: text/html +Content-Length: 490 + + +[Thu Jun 23 21:58:11 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:58:11 2022 +Content-Type: text/html +Content-Length: 490 + + +[Thu Jun 23 21:58:11 2022] error:site error: ddwebrequest::parse_header(): bad path:http://zz.bdstatic.com/linksubmit/push.js: Not a directory + +response for: GET: http://zz.bdstatic.com/linksubmit/push.js +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:58:11 2022 +Content-Type: text/html +Content-Length: 593 + + +[Thu Jun 23 21:58:12 2022] error:site error: ddwebrequest::parse_header(): bad path:http://110.242.68.4/: Not a directory + +response for: HEAD: http://110.242.68.4/ +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 19:58:12 2022 +Content-Type: text/html +Content-Length: 530 + + +[Thu Jun 23 22:10:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 20:10:01 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 23 23:27:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 21:27:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 23:27:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 21:27:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 23 23:53:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 21:53:13 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-23.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-23.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-23.old: Not a directory +[Fri Jun 24 00:03:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 22:03:27 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 24 00:03:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 22:03:27 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 24 00:03:27 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 22:03:27 2022 +Content-Type: text/html +Content-Length: 450 + + +[Fri Jun 24 01:33:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 23:33:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 01:44:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 23 23:44:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 03:36:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 01:36:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 04:01:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 02:01:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 05:31:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 03:31:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 06:03:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 04:03:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 07:29:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 05:29:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 07:59:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 05:59:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 08:35:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 06:35:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 09:38:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 07:38:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 09:55:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 07:55:36 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 08:32:30 2022 +Content-Type: text/html +Content-Length: 24142 + + +198.235.24.140 - - [24/Jun/2022:10:32:30 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Fri Jun 24 11:11:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 09:11:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 24 11:11:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 09:11:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jun 24 11:11:59 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 09:11:59 2022 +Content-Type: text/html +Content-Length: 450 + + +[Fri Jun 24 11:40:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 09:40:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 12:14:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 10:14:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 14:06:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 12:06:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 14:33:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 12:33:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 16:18:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 14:18:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 16:29:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 14:29:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 18:29:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 16:29:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 18:51:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 16:51:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 19:12:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 17:12:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 19:57:13 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 17:57:13 2022 +Content-Type: text/html +Content-Length: 457 + + +[Fri Jun 24 20:38:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 18:38:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 21:18:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 19:18:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 22:21:43 2022] error:site error: domain not found: smilecollect.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 20:21:43 2022 +Content-Type: text/html +Content-Length: 455 + + +[Fri Jun 24 22:46:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 20:46:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jun 24 23:11:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 21:11:43 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-24.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-24.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-24.old: Not a directory +[Sat Jun 25 00:12:22 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 22:12:22 2022 +Content-Type: text/html +Content-Length: 429 + + +[Sat Jun 25 00:57:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 22:57:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 01:27:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jun 24 23:27:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 02:26:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 00:26:33 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sat Jun 25 02:26:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 00:26:33 2022 +Content-Type: text/html +Content-Length: 456 + + +[Sat Jun 25 02:26:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 00:26:34 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sat Jun 25 02:26:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 00:26:34 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sat Jun 25 02:26:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 00:26:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 03:18:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 01:18:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 03:55:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 01:55:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 05:27:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 03:27:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 05:39:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 03:39:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 07:29:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 05:29:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 07:52:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 05:52:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 07:59:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 05:59:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 09:34:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 07:34:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 10:03:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 08:03:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 11:59:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 09:59:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 12:21:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 10:21:02 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 25 12:41:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 10:41:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 14:13:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 12:13:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 14:52:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 12:52:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 16:26:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 14:26:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 17:07:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 15:07:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 18:35:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 16:35:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 18:45:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 16:45:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 20:43:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 18:43:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 21:26:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 19:26:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 21:55:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 19:55:09 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 25 21:56:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 19:56:02 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jun 25 22:48:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 20:48:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jun 25 23:30:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 21:30:02 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-25.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-25.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-25.old: Not a directory +[Sun Jun 26 01:10:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 23:10:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 01:50:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jun 25 23:50:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 03:07:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 01:07:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 03:18:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 01:18:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 03:47:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 01:47:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 04:46:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /ws/v1/cluster +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 02:46:30 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sun Jun 26 04:46:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 02:46:30 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 26 05:16:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 03:16:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 05:44:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 03:44:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 07:19:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 05:19:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 07:41:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 05:41:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 09:37:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 07:37:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 10:13:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 08:13:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 11:50:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 09:50:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 12:13:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 10:13:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 14:06:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 12:06:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 14:18:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 12:18:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 15:31:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 13:31:37 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 26 15:31:37 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 13:31:37 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sun Jun 26 15:40:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 13:40:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 16:20:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 14:20:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 16:38:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 14:38:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 17:05:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 15:05:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 18:29:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 16:29:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 18:39:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 16:39:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 26 18:39:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 16:39:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 26 18:39:59 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 16:39:59 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sun Jun 26 18:54:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 16:54:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 20:21:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 18:21:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 20:42:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 18:42:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 21:12:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 19:12:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 21:34:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 19:34:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 26 21:35:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /HNAP1/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 19:35:00 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sun Jun 26 22:37:10 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 20:37:10 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jun 26 23:00:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 21:00:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jun 26 23:39:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 21:39:43 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-26.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-26.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-26.old: Not a directory +[Mon Jun 27 01:14:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 23:14:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 01:23:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 23:23:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 01:24:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 23:24:00 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 01:24:00 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 23:24:00 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jun 27 01:33:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jun 26 23:33:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 03:17:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 01:17:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 03:31:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 01:31:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 04:32:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 02:32:01 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 04:32:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 02:32:22 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 05:20:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 03:20:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 06:01:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 04:01:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 06:18:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 04:18:58 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 07:31:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 05:31:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 07:47:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 05:47:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 09:36:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 07:36:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 09:41:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 07:41:20 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 09:41:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 07:41:21 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 09:41:21 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 07:41:21 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jun 27 09:46:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 07:46:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 09:47:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/text/list +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 07:47:30 2022 +Content-Type: text/html +Content-Length: 468 + + +[Mon Jun 27 10:11:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 08:11:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 10:21:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 08:21:50 2022 +Content-Type: text/html +Content-Length: 457 + + +[Mon Jun 27 10:21:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 08:21:51 2022 +Content-Type: text/html +Content-Length: 456 + + +[Mon Jun 27 10:21:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 08:21:51 2022 +Content-Type: text/html +Content-Length: 464 + + +[Mon Jun 27 10:21:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 08:21:51 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jun 27 10:21:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 08:21:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 11:29:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 09:29:37 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jun 27 11:45:14 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 09:45:14 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jun 27 11:54:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 09:54:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 12:10:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 10:10:00 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jun 27 12:13:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 10:13:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 12:49:34 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 10:49:34 2022 +Content-Type: text/html +Content-Length: 490 + + +[Mon Jun 27 12:49:34 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: HEAD: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 10:49:34 2022 +Content-Type: text/html +Content-Length: 490 + + +[Mon Jun 27 12:49:34 2022] error:site error: ddwebrequest::parse_header(): bad path:http://qzone-music.qq.com/fcg-bin/cgi_playlist_xml.fcg: Not a directory + +response for: GET: http://qzone-music.qq.com/fcg-bin/cgi_playlist_xml.fcg?uin=33373145&json=1&g_tk=1656326974 +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 10:49:34 2022 +Content-Type: text/html +Content-Length: 668 + + +[Mon Jun 27 12:55:42 2022] error:site error: ddwebrequest::parse_header(): bad path:http://110.242.68.4/: Not a directory + +response for: HEAD: http://110.242.68.4/ +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 10:55:42 2022 +Content-Type: text/html +Content-Length: 530 + + +[Mon Jun 27 14:05:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 12:05:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 14:22:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 12:22:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 16:19:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 14:19:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 16:31:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 14:31:18 2022 +Content-Type: text/html +Content-Length: 467 + + +[Mon Jun 27 16:41:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 14:41:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 18:34:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 16:34:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 18:55:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 16:55:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 20:39:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 18:39:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 20:53:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 18:53:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 21:16:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 19:16:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 23:12:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 21:12:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jun 27 23:47:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 21:47:09 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-27.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-27.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-27.old: Not a directory +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 22:29:37 2022 +Content-Type: text/html +Content-Length: 24142 + + +198.235.24.27 - - [28/Jun/2022:00:29:37 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Tue Jun 28 01:24:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 23:24:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 01:56:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jun 27 23:56:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 03:27:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 01:27:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 04:04:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 02:04:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 05:30:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 03:30:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 05:59:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 03:59:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 07:30:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 05:30:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 07:54:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 05:54:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 09:43:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 07:43:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 09:57:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 07:57:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 11:00:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 09:00:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 11:58:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 09:58:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 12:12:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 10:12:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 12:27:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 10:27:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 13:18:18 2022] error:site error: domain not found: smilecollect.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 11:18:18 2022 +Content-Type: text/html +Content-Length: 455 + + +[Tue Jun 28 14:13:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 12:13:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 14:18:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 12:18:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 16:20:07 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 14:20:07 2022 +Content-Type: text/html +Content-Length: 429 + + +[Tue Jun 28 18:01:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 16:01:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 19:39:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 17:39:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 19:59:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 17:59:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 19:59:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 17:59:30 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jun 28 21:31:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 19:31:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 21:52:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 19:52:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 22:20:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 20:20:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jun 28 23:38:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 21:38:28 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jun 28 23:38:29 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 21:38:29 2022 +Content-Type: text/html +Content-Length: 450 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-28.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-28.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-28.old: Not a directory +[Wed Jun 29 00:03:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 22:03:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 00:44:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jun 28 22:44:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 02:04:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 00:04:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 02:19:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 00:19:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 04:03:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 02:03:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 04:42:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 02:42:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 04:44:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 02:44:15 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 29 04:44:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 02:44:17 2022 +Content-Type: text/html +Content-Length: 462 + + +[Wed Jun 29 04:44:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /robots.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 02:44:17 2022 +Content-Type: text/html +Content-Length: 461 + + +[Wed Jun 29 04:44:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /sitemap.xml +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 02:44:18 2022 +Content-Type: text/html +Content-Length: 462 + + +[Wed Jun 29 05:54:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 03:54:34 2022 +Content-Type: text/html +Content-Length: 467 + + +[Wed Jun 29 06:13:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 04:13:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 06:30:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 04:30:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 08:20:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 06:20:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 08:53:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 06:53:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 09:56:29 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 07:56:29 2022 +Content-Type: text/html +Content-Length: 457 + + +[Wed Jun 29 10:13:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 08:13:43 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 29 10:26:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 08:26:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 10:55:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 08:55:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 12:25:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 10:25:49 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jun 29 12:50:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 10:50:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 14:35:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 12:35:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 14:57:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 12:57:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 16:39:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 14:39:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 17:12:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 15:12:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 17:49:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 15:49:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 18:06:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 16:06:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 19:42:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 17:42:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 20:06:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 18:06:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 21:24:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /phpmyadmin/index.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 19:24:56 2022 +Content-Type: text/html +Content-Length: 471 + + +[Wed Jun 29 21:54:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 19:54:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 22:08:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 20:08:34 2022 +Content-Type: text/html +Content-Length: 457 + + +[Wed Jun 29 22:08:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 20:08:34 2022 +Content-Type: text/html +Content-Length: 456 + + +[Wed Jun 29 22:08:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 20:08:34 2022 +Content-Type: text/html +Content-Length: 464 + + +[Wed Jun 29 22:08:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 20:08:34 2022 +Content-Type: text/html +Content-Length: 463 + + +[Wed Jun 29 22:08:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 20:08:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jun 29 22:37:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 20:37:00 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-29.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-29.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-29.old: Not a directory +[Thu Jun 30 00:02:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 22:02:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 00:16:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jun 29 22:16:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 02:04:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 00:04:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 02:24:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 00:24:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 02:55:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 00:55:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 04:32:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 02:32:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 04:52:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 02:52:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 06:35:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 04:35:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 06:49:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 04:49:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 08:42:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:42:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 08:54:39 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:39 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 08:54:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /system_api.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:40 2022 +Content-Type: text/html +Content-Length: 465 + + +[Thu Jun 30 08:54:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:40 2022 +Content-Type: text/html +Content-Length: 463 + + +[Thu Jun 30 08:54:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /streaming/clients_live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:40 2022 +Content-Type: text/html +Content-Length: 477 + + +[Thu Jun 30 08:54:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /stalker_portal/c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:41 2022 +Content-Type: text/html +Content-Length: 478 + + +[Thu Jun 30 08:54:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /stream/live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:41 2022 +Content-Type: text/html +Content-Length: 466 + + +[Thu Jun 30 08:54:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /flu/403.html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:42 2022 +Content-Type: text/html +Content-Length: 463 + + +[Thu Jun 30 08:54:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 06:54:42 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 09:11:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 07:11:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 09:32:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 07:32:57 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 09:32:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 07:32:57 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 09:32:58 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 07:32:58 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 10:28:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 08:28:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 11:00:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 09:00:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 11:23:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 09:23:15 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 12:37:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 10:37:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 12:55:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 10:55:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 14:54:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 12:54:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 15:03:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 13:03:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 16:15:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 14:15:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 16:40:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 14:40:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 17:18:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 15:18:38 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 17:18:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 15:18:38 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 17:18:38 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 15:18:38 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 17:35:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 15:35:47 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jun 30 18:09:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 16:09:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 18:25:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 16:25:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 20:13:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 18:13:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 20:25:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 18:25:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 22:17:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 20:17:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 22:17:13 2022] error:site error: domain not found: smilecollect.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 20:17:13 2022 +Content-Type: text/html +Content-Length: 455 + + +[Thu Jun 30 22:31:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 20:31:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jun 30 22:58:27 2022] error:site error: domain not found: www.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 20:58:27 2022 +Content-Type: text/html +Content-Length: 461 + + +[Thu Jun 30 23:12:07 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 21:12:07 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 23:12:16 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 21:12:16 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 23:12:16 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 21:12:16 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 23:12:16 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 21:12:16 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 23:12:33 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 21:12:33 2022 +Content-Type: text/html +Content-Length: 450 + + +[Thu Jun 30 23:12:38 2022] error:site error: ddwebrequest::parse_header(): bad request:OPTIONS: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 21:12:38 2022 +Content-Type: text/html +Content-Length: 490 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-06-30.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-06-30.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-06-30.old: Not a directory +[Fri Jul 1 00:24:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 22:24:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 00:35:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jun 30 22:35:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 02:25:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 00:25:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 02:47:10 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 00:47:10 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 04:24:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 02:24:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 04:53:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 02:53:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 05:52:16 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 03:52:16 2022 +Content-Type: text/html +Content-Length: 457 + + +[Fri Jul 1 06:04:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 04:04:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 06:48:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 04:48:14 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 1 07:52:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 05:52:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 08:11:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 06:11:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 08:39:17 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 06:39:17 2022 +Content-Type: text/html +Content-Length: 463 + + +[Fri Jul 1 10:02:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 08:02:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 10:19:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 08:19:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 10:41:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 08:41:58 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 1 10:41:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 08:41:58 2022 +Content-Type: text/html +Content-Length: 462 + + +[Fri Jul 1 12:12:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 10:12:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 13:45:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 11:45:33 2022 +Content-Type: text/html +Content-Length: 457 + + +[Fri Jul 1 13:45:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 11:45:33 2022 +Content-Type: text/html +Content-Length: 456 + + +[Fri Jul 1 13:45:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 11:45:33 2022 +Content-Type: text/html +Content-Length: 464 + + +[Fri Jul 1 13:45:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 11:45:33 2022 +Content-Type: text/html +Content-Length: 463 + + +[Fri Jul 1 13:45:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 11:45:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 13:58:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 11:58:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 14:18:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 12:18:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 16:14:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 14:14:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 16:26:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 14:26:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 18:24:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 16:24:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 19:10:10 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 17:10:10 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 20:56:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 18:56:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 21:02:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 19:02:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 1 22:04:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 20:04:48 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 20:56:20 2022 +Content-Type: text/html +Content-Length: 24142 + + +205.210.31.128 - - [01/Jul/2022:22:56:20 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Fri Jul 1 23:30:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 21:30:47 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 1 23:30:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 21:30:47 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 1 23:30:47 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 21:30:47 2022 +Content-Type: text/html +Content-Length: 450 + + +[Fri Jul 1 23:47:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 21:47:00 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-01.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-01.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-01.old: Not a directory +[Sat Jul 2 00:08:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 22:08:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 01:18:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 23:18:33 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 01:18:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 23:18:33 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 01:18:33 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 23:18:33 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 2 01:54:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 1 23:54:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 02:18:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 00:18:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 03:56:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 01:56:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 04:45:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 02:45:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 06:09:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 04:09:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 06:40:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 04:40:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 07:44:04 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 05:44:04 2022 +Content-Type: text/html +Content-Length: 429 + + +[Sat Jul 2 08:21:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 06:21:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 08:35:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 06:35:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 10:24:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 08:24:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 10:55:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 08:55:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 12:31:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 10:31:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 12:45:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 10:45:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 14:37:01 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:01 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 2 14:37:11 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:11 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 2 14:37:11 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:11 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 2 14:37:11 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:11 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 2 14:37:59 2022] error:site error: ddwebrequest::parse_header(): bad request:OPTIONS: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:59 2022 +Content-Type: text/html +Content-Length: 490 + + +[Sat Jul 2 14:37:59 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: POST: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:59 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sat Jul 2 14:37:59 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /CSS/Miniweb.css +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:37:59 2022 +Content-Type: text/html +Content-Length: 478 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 474 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /menu.shtml +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 473 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /server-status +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 476 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /default.cgi +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 474 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /tomcatwar.jsp +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 476 + + +[Sat Jul 2 14:38:00 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /localstart.pl +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:00 2022 +Content-Type: text/html +Content-Length: 476 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /tomcatwar.jsp?pwd=j&cmd=id +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 489 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /admin.cfm +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 472 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /inicio.aspx +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 474 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /ghksjdghdfksanitycheckqwerjlhfgjksdghlid +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 503 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /menu.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /readme.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 473 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /home.jhtml +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 473 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 504 + + +[Sat Jul 2 14:38:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /base.cfm +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:01 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:02 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /localstart.asp +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:02 2022 +Content-Type: text/html +Content-Length: 477 + + +[Sat Jul 2 14:38:02 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:02 2022 +Content-Type: text/html +Content-Length: 504 + + +[Sat Jul 2 14:38:02 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /main.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:02 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:02 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /localstart.cgi +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:02 2022 +Content-Type: text/html +Content-Length: 477 + + +[Sat Jul 2 14:38:03 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /localstart.html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:03 2022 +Content-Type: text/html +Content-Length: 478 + + +[Sat Jul 2 14:38:03 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /admin.pl +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:03 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:03 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /admin.cgi +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:03 2022 +Content-Type: text/html +Content-Length: 472 + + +[Sat Jul 2 14:38:03 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /admin.jsp +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:03 2022 +Content-Type: text/html +Content-Length: 472 + + +[Sat Jul 2 14:38:04 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /base.shtml +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:04 2022 +Content-Type: text/html +Content-Length: 473 + + +[Sat Jul 2 14:38:04 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /localstart.jsp +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:04 2022 +Content-Type: text/html +Content-Length: 477 + + +[Sat Jul 2 14:38:04 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /menu.asp +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:04 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:05 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /menu.cfm +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:05 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:05 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /Portal0000.htm +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:05 2022 +Content-Type: text/html +Content-Length: 477 + + +[Sat Jul 2 14:38:05 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /admin.html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:05 2022 +Content-Type: text/html +Content-Length: 473 + + +[Sat Jul 2 14:38:05 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /__Additional +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:05 2022 +Content-Type: text/html +Content-Length: 475 + + +[Sat Jul 2 14:38:05 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /main.jsp +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:05 2022 +Content-Type: text/html +Content-Length: 471 + + +[Sat Jul 2 14:38:06 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /HNAP1 +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:06 2022 +Content-Type: text/html +Content-Length: 468 + + +[Sat Jul 2 14:38:06 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /admin.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:06 2022 +Content-Type: text/html +Content-Length: 472 + + +[Sat Jul 2 14:38:06 2022] error:site error: ddwebrequest::parse_header(): bad path:/.git/HEAD: Not a directory + +response for: GET: /.git/HEAD +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:06 2022 +Content-Type: text/html +Content-Length: 500 + + +[Sat Jul 2 14:38:11 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /default.cfm +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:11 2022 +Content-Type: text/html +Content-Length: 474 + + +[Sat Jul 2 14:38:11 2022] error:site error: domain not found: www: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:11 2022 +Content-Type: text/html +Content-Length: 431 + + +[Sat Jul 2 14:38:12 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /Portal/Portal.mwsl +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:12 2022 +Content-Type: text/html +Content-Length: 481 + + +[Sat Jul 2 14:38:12 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: POST: /sdk +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:12 2022 +Content-Type: text/html +Content-Length: 466 + + +[Sat Jul 2 14:38:12 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: /docs/cplugError.html/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:12 2022 +Content-Type: text/html +Content-Length: 484 + + +[Sat Jul 2 14:38:12 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:38:12 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sat Jul 2 14:39:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 12:39:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 15:01:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 13:01:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 15:51:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 13:51:47 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 15:51:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 13:51:47 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 15:51:47 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 13:51:47 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 2 17:07:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 15:07:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 17:17:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 15:17:50 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 17:17:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 15:17:50 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 17:17:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 15:17:50 2022 +Content-Type: text/html +Content-Length: 462 + + +[Sat Jul 2 17:17:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /robots.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 15:17:51 2022 +Content-Type: text/html +Content-Length: 461 + + +[Sat Jul 2 17:40:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 15:40:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 19:24:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 17:24:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 19:36:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 17:36:53 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 19:59:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 17:59:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 21:30:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 19:30:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 22:02:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 20:02:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 2 23:01:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 21:01:53 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 23:20:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 21:20:18 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 2 23:44:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 21:44:11 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-02.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-02.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-02.old: Not a directory +[Sun Jul 3 00:25:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 22:25:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 01:17:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 23:17:33 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jul 3 01:50:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 2 23:50:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 02:29:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 00:29:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 03:49:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 01:49:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 04:14:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 02:14:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 04:28:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 02:28:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 05:51:32 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 03:51:32 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sun Jul 3 05:55:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 03:55:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 06:14:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 04:14:22 2022 +Content-Type: text/html +Content-Length: 467 + + +[Sun Jul 3 06:39:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 04:39:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 08:12:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 06:12:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 08:40:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 06:40:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 09:23:37 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 07:23:37 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sun Jul 3 10:23:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 08:23:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 10:50:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 08:50:45 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 11:09:08 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 09:09:08 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sun Jul 3 12:33:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 10:33:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 13:12:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 11:12:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 13:45:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 11:45:06 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jul 3 14:23:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 12:23:26 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jul 3 14:23:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 12:23:26 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jul 3 14:23:26 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 12:23:26 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sun Jul 3 14:51:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 12:51:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 15:01:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 13:01:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 16:59:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 14:59:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 17:36:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 15:36:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 16:48:33 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sun Jul 3 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 16:48:33 2022 +Content-Type: text/html +Content-Length: 456 + + +[Sun Jul 3 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 16:48:33 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sun Jul 3 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 16:48:33 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sun Jul 3 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 16:48:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 19:06:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 17:06:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 19:52:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 17:52:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 21:29:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 19:29:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 21:39:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 19:39:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 23:16:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 21:16:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 3 23:42:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 21:42:57 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-03.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-03.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-03.old: Not a directory +[Mon Jul 4 00:13:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 22:13:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 01:58:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 3 23:58:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 02:13:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 00:13:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 02:29:40 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 00:29:40 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jul 4 03:05:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 01:05:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 03:19:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 01:19:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 03:33:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 01:33:09 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 04:05:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 02:05:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 04:26:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 02:26:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 06:05:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:05:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 06:12:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:12:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 06:19:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:19:13 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 06:21:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /cluster/cluster/ +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:21:34 2022 +Content-Type: text/html +Content-Length: 467 + + +[Mon Jul 4 06:35:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:35:42 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 06:35:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:35:43 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 06:35:43 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:35:43 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jul 4 06:56:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 04:56:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 08:21:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 06:21:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 09:54:10 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 07:54:10 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 09:56:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/text/list +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 07:56:33 2022 +Content-Type: text/html +Content-Length: 468 + + +[Mon Jul 4 10:21:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 08:21:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 11:30:45 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 09:30:45 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jul 4 12:10:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 10:10:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 14:01:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 12:01:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 14:02:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 12:02:50 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 14:02:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 12:02:51 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 14:02:51 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 12:02:51 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jul 4 14:37:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 12:37:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 15:55:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 13:55:08 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 16:03:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 14:03:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 16:14:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 14:14:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 18:08:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 16:08:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 18:33:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 16:33:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 18:33:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 16:33:24 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 18:33:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 16:33:24 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 4 18:33:25 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 16:33:25 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jul 4 20:05:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 18:05:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 20:14:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 18:14:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 22:10:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 20:10:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 4 22:54:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 20:54:25 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-04.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-04.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-04.old: Not a directory +[Tue Jul 5 00:24:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 22:24:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 01:03:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 4 23:03:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 02:08:39 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 00:08:39 2022 +Content-Type: text/html +Content-Length: 429 + + +[Tue Jul 5 02:21:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 00:21:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 02:37:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 00:37:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 03:49:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 01:49:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 04:16:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 02:16:54 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 5 05:05:12 2022] error:site error: domain not found: www.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 03:05:12 2022 +Content-Type: text/html +Content-Length: 461 + + +[Tue Jul 5 05:20:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 03:20:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 06:22:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 04:22:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 07:44:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 05:44:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 07:56:18 2022] error:site error: domain not found: smilecollect.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 05:56:18 2022 +Content-Type: text/html +Content-Length: 455 + + +[Tue Jul 5 08:39:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 06:39:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 10:01:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 08:01:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 10:22:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 08:22:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 12:12:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 10:12:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 12:47:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 10:47:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 14:16:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 12:16:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 14:29:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 12:29:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 16:25:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 14:25:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 16:35:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 14:35:19 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 5 16:49:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 14:49:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 18:27:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 16:27:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 18:28:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 16:28:06 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 5 18:37:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 16:37:11 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 5 18:37:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 16:37:11 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 5 18:57:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 16:57:09 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 17:53:08 2022 +Content-Type: text/html +Content-Length: 24142 + + +205.210.31.151 - - [05/Jul/2022:19:53:08 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Tue Jul 5 20:42:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 18:42:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 21:22:37 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 19:22:37 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 22:51:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 20:51:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 5 23:32:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 21:32:25 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-05.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-05.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-05.old: Not a directory +[Wed Jul 6 00:04:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 22:04:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 01:05:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 23:05:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 01:18:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 23:18:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 01:26:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 5 23:26:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 02:43:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 00:43:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 02:44:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 00:44:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 02:58:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 00:58:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 03:51:01 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 01:51:01 2022 +Content-Type: text/html +Content-Length: 463 + + +[Wed Jul 6 04:41:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 02:41:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 05:03:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 03:03:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 06:48:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 04:48:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 07:06:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 05:06:56 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 08:52:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 06:52:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 10:13:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 08:13:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 10:18:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 08:18:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 11:47:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 09:47:08 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jul 6 11:47:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 09:47:08 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jul 6 11:47:08 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 09:47:08 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jul 6 12:13:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 10:13:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 12:34:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 10:34:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 13:20:22 2022] error:site error: ddwebrequest::parse_header(): bad path:http://txt.go.sohu.com/ip/soip: Not a directory + +response for: GET: http://txt.go.sohu.com/ip/soip +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 11:20:22 2022 +Content-Type: text/html +Content-Length: 560 + + +[Wed Jul 6 13:20:22 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 11:20:22 2022 +Content-Type: text/html +Content-Length: 490 + + +[Wed Jul 6 13:20:22 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 11:20:22 2022 +Content-Type: text/html +Content-Length: 490 + + +[Wed Jul 6 13:35:54 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 11:35:54 2022 +Content-Type: text/html +Content-Length: 457 + + +[Wed Jul 6 14:14:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 12:14:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 14:28:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 12:28:29 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jul 6 14:28:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 12:28:29 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jul 6 14:28:29 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 12:28:29 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jul 6 14:45:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 12:45:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 16:20:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 14:20:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 16:25:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 14:25:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 16:51:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 14:51:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 18:27:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 16:27:17 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jul 6 18:27:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 16:27:32 2022 +Content-Type: text/html +Content-Length: 462 + + +[Wed Jul 6 18:27:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /robots.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 16:27:47 2022 +Content-Type: text/html +Content-Length: 461 + + +[Wed Jul 6 18:27:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /sitemap.xml +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 16:27:52 2022 +Content-Type: text/html +Content-Length: 462 + + +[Wed Jul 6 18:28:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 16:28:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 18:34:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 16:34:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 19:23:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 17:23:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 21:07:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 19:07:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 21:16:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 19:16:12 2022 +Content-Type: text/html +Content-Length: 451 + + +[Wed Jul 6 21:23:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 19:23:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 23:14:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:14:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 23:28:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:28:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Wed Jul 6 23:32:38 2022] error:site error: wrong number of request lines: Not a directory + +response for: POST: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:38 2022 +Content-Type: text/html +Content-Length: 450 + + +[Wed Jul 6 23:32:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /system_api.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:40 2022 +Content-Type: text/html +Content-Length: 465 + + +[Wed Jul 6 23:32:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:42 2022 +Content-Type: text/html +Content-Length: 463 + + +[Wed Jul 6 23:32:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /streaming/clients_live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:44 2022 +Content-Type: text/html +Content-Length: 477 + + +[Wed Jul 6 23:32:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /stalker_portal/c/version.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:46 2022 +Content-Type: text/html +Content-Length: 478 + + +[Wed Jul 6 23:32:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /stream/live.php +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:48 2022 +Content-Type: text/html +Content-Length: 466 + + +[Wed Jul 6 23:32:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /flu/403.html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:50 2022 +Content-Type: text/html +Content-Length: 463 + + +[Wed Jul 6 23:32:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 21:32:52 2022 +Content-Type: text/html +Content-Length: 451 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-06.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-06.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-06.old: Not a directory +[Thu Jul 7 01:14:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 23:14:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 01:34:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Wed Jul 6 23:34:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 02:12:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 00:12:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 03:04:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 01:04:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 03:16:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 01:16:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 04:11:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 02:11:39 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jul 7 04:11:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 02:11:39 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jul 7 04:11:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 02:11:40 2022 +Content-Type: text/html +Content-Length: 462 + + +[Thu Jul 7 04:11:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /robots.txt +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 02:11:40 2022 +Content-Type: text/html +Content-Length: 461 + + +[Thu Jul 7 05:04:10 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 03:04:10 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 05:17:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 03:17:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 07:04:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 05:04:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 07:15:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 05:15:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 07:52:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 05:52:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 09:13:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 07:13:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 09:18:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 07:18:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 09:40:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 07:40:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 09:51:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 07:51:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 10:26:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 08:26:55 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jul 7 11:49:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 09:49:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 12:13:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 10:13:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 13:15:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 11:15:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 15:02:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 13:02:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 15:23:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 13:23:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 16:55:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 14:55:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 17:24:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 15:24:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 18:54:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 16:54:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 19:27:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 17:27:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 20:49:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 18:49:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 21:31:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 19:31:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 22:23:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 20:23:58 2022 +Content-Type: text/html +Content-Length: 451 + + +[Thu Jul 7 22:59:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 20:59:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Thu Jul 7 23:41:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 21:41:02 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-07.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-07.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-07.old: Not a directory +[Fri Jul 8 01:06:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 23:06:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 01:16:04 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Thu Jul 7 23:16:04 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 02:18:58 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 00:18:58 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 02:44:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 00:44:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 04:00:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 02:00:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 04:04:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 02:04:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 04:28:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 02:28:53 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 05:54:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 03:54:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 06:24:21 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 04:24:21 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 07:47:01 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 05:47:01 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 07:50:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 05:50:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 08:12:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 06:12:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 09:52:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 07:52:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 10:06:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 08:06:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 12:03:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 10:03:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 12:36:54 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 10:36:54 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 12:51:35 2022] error:site error: domain not found: smilecollect.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 10:51:35 2022 +Content-Type: text/html +Content-Length: 455 + + +[Fri Jul 8 13:16:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 11:16:33 2022 +Content-Type: text/html +Content-Length: 457 + + +[Fri Jul 8 13:16:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 11:16:33 2022 +Content-Type: text/html +Content-Length: 456 + + +[Fri Jul 8 13:16:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 11:16:33 2022 +Content-Type: text/html +Content-Length: 464 + + +[Fri Jul 8 13:16:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 11:16:34 2022 +Content-Type: text/html +Content-Length: 463 + + +[Fri Jul 8 13:16:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 11:16:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 14:16:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 12:16:13 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 15:04:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 13:04:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 15:15:24 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 13:15:24 2022 +Content-Type: text/html +Content-Length: 457 + + +[Fri Jul 8 16:19:22 2022] error:site error: domain not found: mail.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 14:19:22 2022 +Content-Type: text/html +Content-Length: 463 + + +[Fri Jul 8 16:26:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 14:26:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 17:02:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 15:02:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 18:18:37 2022] error:site error: domain not found: www.sourceworx.org: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 16:18:37 2022 +Content-Type: text/html +Content-Length: 461 + + +[Fri Jul 8 18:34:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 16:34:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 18:57:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 16:57:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 19:14:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 17:14:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 20:31:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 18:31:26 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 8 20:42:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 18:42:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 21:21:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 19:21:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 21:27:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 19:27:46 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 8 21:38:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 19:38:06 2022 +Content-Type: text/html +Content-Length: 451 + + +[Fri Jul 8 21:38:06 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 19:38:06 2022 +Content-Type: text/html +Content-Length: 450 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 20:49:50 2022 +Content-Type: text/html +Content-Length: 24142 + + +198.235.24.156 - - [08/Jul/2022:22:49:50 +0200] "GET /" 200 24142 "-" "Expanse, a Palo Alto Networks company, searches across the global IPv4 space multiple times per day to identify customers' presences on the Internet. If you would like to be excluded from our scans, please send IP addresses/domains to: scaninfo@paloaltonetworks.com" +[Fri Jul 8 22:54:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 20:54:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Fri Jul 8 23:33:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 21:33:53 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-08.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-08.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-08.old: Not a directory +[Sat Jul 9 01:03:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 23:03:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 01:24:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 23:24:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 01:45:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Fri Jul 8 23:45:09 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 02:55:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 00:55:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 03:03:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 01:03:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 03:06:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 01:06:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 03:41:03 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 01:41:03 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 04:24:09 2022] error:site error: Host part missing : Not a directory + +response for: GET: / +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 02:24:09 2022 +Content-Type: text/html +Content-Length: 429 + + +[Sat Jul 9 04:55:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 02:55:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 05:20:24 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 03:20:24 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 06:52:05 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 04:52:05 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 07:10:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 05:10:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 07:49:45 2022] error:site error: ddwebrequest::parse_header(): bad path:http://dianying.taobao.com/cityAction.json: Not a directory + +response for: GET: http://dianying.taobao.com/cityAction.json?city=&_ksTS=5547554459837_17&jsoncallback=jsonp20&action=cityAction&n_s=new&event_submit_doLocate=true +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 05:49:45 2022 +Content-Type: text/html +Content-Length: 699 + + +[Sat Jul 9 07:49:45 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 05:49:45 2022 +Content-Type: text/html +Content-Length: 490 + + +[Sat Jul 9 07:49:45 2022] error:site error: ddwebrequest::parse_header(): bad request:CONNECT: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 05:49:45 2022 +Content-Type: text/html +Content-Length: 490 + + +[Sat Jul 9 08:51:25 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 06:51:25 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 09:26:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 07:26:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 10:01:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 08:01:14 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 11:01:15 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 09:01:15 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 11:21:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 09:21:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 12:43:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 10:43:34 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sat Jul 9 12:43:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 10:43:34 2022 +Content-Type: text/html +Content-Length: 456 + + +[Sat Jul 9 12:43:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 10:43:35 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sat Jul 9 12:43:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 10:43:35 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sat Jul 9 12:43:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 10:43:35 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 13:32:57 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 11:32:57 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 15:24:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 13:24:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 15:48:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 13:48:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 17:21:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 15:21:44 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 17:21:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 15:21:44 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 17:21:44 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 15:21:44 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 9 17:29:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 15:29:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 18:07:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 16:07:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 19:31:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 17:31:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 19:45:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 17:45:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 21:36:28 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 19:36:28 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 21:40:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 19:40:12 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 22:20:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 20:20:52 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sat Jul 9 23:35:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 21:35:56 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 23:35:56 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 21:35:56 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sat Jul 9 23:35:57 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 21:35:57 2022 +Content-Type: text/html +Content-Length: 450 + + +[Sat Jul 9 23:48:53 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 21:48:53 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-09.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-09.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-09.old: Not a directory +[Sun Jul 10 00:35:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sat Jul 9 22:35:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 02:02:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 00:02:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 02:20:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 00:20:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 02:41:44 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 00:41:44 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 02:58:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 00:58:39 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 03:17:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 01:17:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 04:04:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 02:04:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 04:18:47 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 02:18:47 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 05:22:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 03:22:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 05:41:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /ws/v1/cluster +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 03:41:38 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sun Jul 10 05:41:39 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 03:41:39 2022 +Content-Type: text/html +Content-Length: 451 + + +[Sun Jul 10 05:53:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 03:53:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 06:15:22 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 04:15:22 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 08:12:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 06:12:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 08:59:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 06:59:02 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 10:19:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 08:19:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 10:51:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 08:51:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 12:31:27 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 10:31:27 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 13:09:40 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 11:09:40 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 14:50:31 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 12:50:31 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 15:44:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 13:44:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 15:57:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 13:57:32 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 17:06:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 15:06:59 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 17:51:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 15:51:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 19:03:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:03:35 2022 +Content-Type: text/html +Content-Length: 457 + + +[Sun Jul 10 19:03:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:03:35 2022 +Content-Type: text/html +Content-Length: 456 + + +[Sun Jul 10 19:03:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:03:35 2022 +Content-Type: text/html +Content-Length: 464 + + +[Sun Jul 10 19:03:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:03:36 2022 +Content-Type: text/html +Content-Length: 463 + + +[Sun Jul 10 19:03:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:03:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 19:12:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:12:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 19:45:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 17:45:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 21:38:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 19:38:06 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 22:04:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 20:04:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 22:09:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 20:09:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Sun Jul 10 23:46:02 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 21:46:02 2022 +Content-Type: text/html +Content-Length: 485 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-10.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-10.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-10.old: Not a directory +[Mon Jul 11 00:17:50 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 22:17:50 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 01:45:43 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Sun Jul 10 23:45:43 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 02:06:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 00:06:07 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 02:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 00:38:34 2022 +Content-Type: text/html +Content-Length: 457 + + +[Mon Jul 11 02:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 00:38:34 2022 +Content-Type: text/html +Content-Length: 456 + + +[Mon Jul 11 02:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 00:38:34 2022 +Content-Type: text/html +Content-Length: 464 + + +[Mon Jul 11 02:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 00:38:34 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jul 11 02:38:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 00:38:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 03:46:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 01:46:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 04:31:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 02:31:08 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 05:52:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 03:52:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 06:19:59 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 04:19:59 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 11 06:27:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 04:27:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 07:08:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 05:08:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 08:06:00 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 06:06:00 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 08:39:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 06:39:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 09:59:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/text/list +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 07:59:30 2022 +Content-Type: text/html +Content-Length: 468 + + +[Mon Jul 11 10:13:46 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 08:13:46 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 10:41:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 08:41:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 11:08:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 09:08:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 11:31:13 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 09:31:13 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jul 11 12:22:06 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 10:22:06 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 11 12:22:07 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 10:22:07 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 11 12:22:07 2022] error:site error: wrong number of request lines: Not a directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 10:22:07 2022 +Content-Type: text/html +Content-Length: 450 + + +[Mon Jul 11 12:37:09 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 10:37:09 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 13:00:29 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 11:00:29 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 14:29:42 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 12:29:42 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 14:51:11 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 12:51:11 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 15:16:23 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 13:16:23 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 17:08:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 15:08:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 17:21:38 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 15:21:38 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 17:31:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 15:31:33 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 11 17:41:08 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 15:41:08 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 11 17:59:26 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 15:59:26 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 18:48:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /script +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 16:48:32 2022 +Content-Type: text/html +Content-Length: 457 + + +[Mon Jul 11 18:48:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 16:48:32 2022 +Content-Type: text/html +Content-Length: 456 + + +[Mon Jul 11 18:48:32 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /jenkins/login +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 16:48:32 2022 +Content-Type: text/html +Content-Length: 464 + + +[Mon Jul 11 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: /manager/html +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 16:48:33 2022 +Content-Type: text/html +Content-Length: 463 + + +[Mon Jul 11 18:48:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 16:48:33 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 19:41:20 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 17:41:20 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 20:11:17 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 18:11:17 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 20:51:12 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 18:51:12 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 21:54:14 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 19:54:14 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 22:03:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 20:03:48 2022 +Content-Type: text/html +Content-Length: 485 + + +[Mon Jul 11 22:11:33 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 20:11:33 2022 +Content-Type: text/html +Content-Length: 451 + + +[Mon Jul 11 23:41:48 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 21:41:48 2022 +Content-Type: text/html +Content-Length: 451 + + +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.main.log: sn_computer/livelogs/computer.main.log.2022-07-11.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.admin.log: sn_computer/livelogs/computer.admin.log.2022-07-11.old: Not a directory +ddlogdevice::rotate_log_streams: rename: sn_computer/livelogs/computer.search.log: sn_computer/livelogs/computer.search.log.2022-07-11.old: Not a directory +[Tue Jul 12 00:01:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 22:01:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 00:35:16 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 22:35:16 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 01:14:30 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 23:14:30 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 01:56:19 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Mon Jul 11 23:56:19 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 02:31:45 2022] error:site error: domain not found: propellerkatz.de: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 00:31:45 2022 +Content-Type: text/html +Content-Length: 457 + + +[Tue Jul 12 03:21:51 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 01:21:51 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 03:37:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 01:37:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 03:39:18 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 01:39:18 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 03:56:52 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 01:56:52 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 12 05:20:34 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 03:20:34 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 05:51:36 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 03:51:36 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 06:03:55 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 04:03:55 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 07:33:41 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 05:33:41 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 08:02:49 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:02:49 2022 +Content-Type: text/html +Content-Length: 485 + + +[Tue Jul 12 08:03:35 2022] error:site error: domain not found: 188.34.199.32: Not a directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:03:35 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:09 2022 +Content-Type: text/html +Content-Length: 24142 + + +80.132.169.138 - - [12/Jul/2022:08:14:09 +0200] "GET /" 200 24142 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:10 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:10 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:14:10 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:10 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:14:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:10 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:14:10 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:10 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2308245' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2308245'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2308245' + +response for: GET: /t/2308245 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:13 2022 +Content-Type: text/html +Content-Length: 37405 + + +80.132.169.138 - - [12/Jul/2022:08:14:13 +0200] "GET /t/2308245" 200 37405 "http://sourceworx.org:8088/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:13 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:13 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='21' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '21' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + +response for: GET: /groups/21 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:18 2022 +Content-Type: text/html +Content-Length: 21924 + + +80.132.169.138 - - [12/Jul/2022:08:14:18 +0200] "GET /groups/21" 200 21924 "http://sourceworx.org:8088/t/2308245" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:18 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:18 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2341462' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2341462'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2341462' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2341462' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2315803,2339872,2329084,2333773,2337663 ) + +response for: GET: /t/2341462 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:20 2022 +Content-Type: text/html +Content-Length: 17389 + + +80.132.169.138 - - [12/Jul/2022:08:14:20 +0200] "GET /t/2341462" 200 17389 "http://sourceworx.org:8088/groups/21" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:20 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:20 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:14:20 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2315803/Microsoft-Office_2010-Co-Author-Co-Authoring-Gemeinsame-Dokumentenerstellung-gemeinsame-Dokumentenbearbeitung_80.jpg: Not a directory + +response for: GET: /articleimage/2315803/Microsoft-Office_2010-Co-Author-Co-Authoring-Gemeinsame-Dokumentenerstellung-gemeinsame-Dokumentenbearbeitung_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:20 2022 +Content-Type: text/html +Content-Length: 878 + + +[Tue Jul 12 08:14:20 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2339872/Teaser-MS-Office-Microsoft-Word-2010-Screenshot-einfuegen-80.png: Not a directory + +response for: GET: /articleimage/2339872/Teaser-MS-Office-Microsoft-Word-2010-Screenshot-einfuegen-80.png +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:20 2022 +Content-Type: text/html +Content-Length: 722 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:22 2022 +Content-Type: text/html +Content-Length: 24153 + + +80.132.169.138 - - [12/Jul/2022:08:14:22 +0200] "GET /index.html" 200 24153 "http://sourceworx.org:8088/t/2341462" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:22 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:22 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:14:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:22 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:14:22 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:22 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2333375' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2333375'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2333375' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2333375' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2205227,2205501,2205576,2205784,2205939 ) + +response for: GET: /t/2333375 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:33 2022 +Content-Type: text/html +Content-Length: 51764 + + +80.132.169.138 - - [12/Jul/2022:08:14:33 +0200] "GET /t/2333375" 200 51764 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:33 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:33 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='16' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '16' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + +response for: GET: /groups/16 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:46 2022 +Content-Type: text/html +Content-Length: 21503 + + +80.132.169.138 - - [12/Jul/2022:08:14:46 +0200] "GET /groups/16" 200 21503 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:46 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:46 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='56' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '56' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + +response for: GET: /groups/56 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:52 2022 +Content-Type: text/html +Content-Length: 20904 + + +80.132.169.138 - - [12/Jul/2022:08:14:52 +0200] "GET /groups/56" 200 20904 "http://sourceworx.org:8088/groups/16" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:52 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:52 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:56 2022 +Content-Type: text/html +Content-Length: 24153 + + +80.132.169.138 - - [12/Jul/2022:08:14:56 +0200] "GET /index.html" 200 24153 "http://sourceworx.org:8088/groups/56" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:14:56 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:56 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:14:56 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:56 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:14:56 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:14:56 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2308245' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2308245'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2308245' + +response for: GET: /t/2308245 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:15:00 2022 +Content-Type: text/html +Content-Length: 37405 + + +80.132.169.138 - - [12/Jul/2022:08:15:00 +0200] "GET /t/2308245" 200 37405 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:15:00 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:15:00 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:27 2022 +Content-Type: text/html +Content-Length: 24153 + + +80.132.169.138 - - [12/Jul/2022:08:16:27 +0200] "GET /index.html" 200 24153 "http://sourceworx.org:8088/t/2308245" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:16:27 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:27 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:16:28 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:28 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:16:28 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:28 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2308245' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2308245'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2308245' + +response for: GET: /linknotfound?sn_key=%2Ft%2F2308245 +HTTP/1.1 301 Moved Permanently +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:32 2022 +Content-Type: text/html +Content-Length: 0 +Location: http://sourceworx.org:8088/linknotfound?sn_key=%2Ft%2F2308245 + + +80.132.169.138 - - [12/Jul/2022:08:16:32 +0200] "GET /linknotfound?sn_key=%2Ft%2F2308245" 301 0 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" + +response for: GET: /linknotfound?sn_key=%2Ft%2F2308245 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:32 2022 +Content-Type: text/html +Content-Length: 6617 + + +80.132.169.138 - - [12/Jul/2022:08:16:32 +0200] "GET /linknotfound?sn_key=%2Ft%2F2308245" 200 6617 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:16:32 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:32 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:36 2022 +Content-Type: text/html +Content-Length: 24153 + + +80.132.169.138 - - [12/Jul/2022:08:16:36 +0200] "GET /index.html" 200 24153 "http://sourceworx.org:8088/linknotfound?sn_key=%2Ft%2F2308245" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:16:36 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:36 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:16:36 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:36 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:16:36 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:36 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 24153 + + +80.132.169.138 - - [12/Jul/2022:08:16:40 +0200] "GET /index.html" 200 24153 "http://sourceworx.org:8088/linknotfound?sn_key=%2Ft%2F2308245" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:16:40 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:16:40 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:16:40 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 599 + + +[Tue Jul 12 08:16:40 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:16:40 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:16:40 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:40 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 24197 + + +80.132.169.138 - - [12/Jul/2022:08:16:59 +0200] "GET /index.html" 200 24197 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:16:59 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:16:59 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:16:59 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: /index.html +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 24197 + + +80.132.169.138 - - [12/Jul/2022:08:16:59 +0200] "GET /index.html" 200 24197 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:16:59 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:16:59 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: Not a directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:16:59 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: Not a directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:16:59 2022 +Content-Type: text/html +Content-Length: 599 + + +--- db log: sxpageforumgroups.groups: on_show_group: select id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgmain t1 + where id_type = 'posting' and id_group='27' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 0, 20 +--- db log: sxpageforumgroups.groups: on_count: select count(*) from tr_msgmain t1 where id_type = 'posting' and + id_group = '27' and t1.id_state & 1 != 0 and t1.id_state & 196 = 0 + +response for: GET: /groups/27 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:17:10 2022 +Content-Type: text/html +Content-Length: 21486 + + +80.132.169.138 - - [12/Jul/2022:08:17:10 +0200] "GET /groups/27" 200 21486 "http://sourceworx.org:8088/index.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:17:10 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:17:10 2022 +Content-Type: text/html +Content-Length: 506 + + +--- db log: sxpageforumthread.show: on_show: select id_group, id_type, id_user, id, id_parent, id_state, sn_nickname, sn_nickname, sn_nickmail, + sn_msgsubject, sn_msgbody sn_block_article, sn_accesscount xx_hitcount, DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date', + sn_datecreated, sn_senderip, (to_days(CURDATE()) - to_days(sn_datemodified)) 'sn_age', + sn_votecount from tr_msgmain t1 where id_parent='2340674' and t1.id_state & 1 != 0 and t1.id_group != 13 + order by sn_datecreated; + + update tr_msgmain set sn_accesscount = sn_accesscount + 1 where id = '2340674'; + + update tr_msgcache set sn_accesscount = sn_accesscount + 1 where id_parent = '2340674' +--- db log: site.searchrelated: fetch: select sn_relatedlinks from tr_relatedlinks where id_parent = '2340674' +--- db log: site.searchrelated: select: select id, id_parent, id_state, id_type, id_parent, id_user, id_group, sn_nickname, + t2.sn_msgteaser sn_block_teaser, + sn_childcount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, sn_childcount xx_answercount, + DATE_FORMAT(sn_datemodified,'%d.%m.%Y') 'sn_date' from tr_msgmain t1 + left join ( tr_msgext t2 ) on ( t1.id = t2.id_main ) + where id in ( 2291148,2183440,2242334,2332253,2255857 ) + +response for: GET: /t/2340674 +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:17:12 2022 +Content-Type: text/html +Content-Length: 13846 + + +80.132.169.138 - - [12/Jul/2022:08:17:12 +0200] "GET /t/2340674" 200 13846 "http://sourceworx.org:8088/groups/27" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0" +[Tue Jul 12 08:17:12 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:17:12 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:20:50 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: POST: /ws/v1/cluster/apps/new-application +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:20:50 2022 +Content-Type: text/html +Content-Length: 485 + + +--- db log: sxpageforumstart.overview: on_overview: select id_parent id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%d.%m.%Y, %H:%i') 'sn_date' from tr_msgcache t1 + where id_group != 30 and id_group != 13 + and t1.id_state & 1 != 0 + order by sn_childcount desc limit 0, 20 +--- db log: sxpageforumstart.overview: on_count: select count(*) from tr_msgcache t1 + where id_group != 30 and id_group != 13 and id_type = 'posting' + + and t1.id_state & 1 != 0 +--- db log: sxpageforumstart: on_fetch_top_news: select id, id id1, id id2, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date', t2.sn_msgteaser sn_block_teaser, t2.sn_msgteaser sn_block_teaser_short + from tr_msgmain t1, tr_msgext t2 + where t1.id = t2.id_main and t1.id_type = 'news' and t1.id_state & 2 = 0 + and t1.id_state & 196 = 0 + order by xx_hitcount desc limit 3 +--- db log: sxpageforumstart: on_fetch_news: select id, id_parent, id_type, id_state, id_user, id_group, sn_nickname, + sn_childcount xx_answercount, sn_msgsubject, sn_msgsubject xx_threadlink, sn_accesscount xx_hitcount, + DATE_FORMAT(sn_datecreated,'%H:%i') 'sn_date' + from tr_msgmain t1 + where t1.id_type = 'news' and t1.id_state & 2 = 0 and t1.id_state & 196 = 0 + order by sn_datemodified desc limit 5 + +response for: GET: / +HTTP/1.1 200 OK +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 24186 + + +80.132.169.138 - - [12/Jul/2022:08:41:17 +0200] "GET /" 200 24186 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/xx_main.css: No such file or directory + +response for: GET: /xx_main.css +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 500 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/sn_main0.js: No such file or directory + +response for: GET: /sn_main0.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 500 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/wz_tooltip.js: No such file or directory + +response for: GET: /wz_tooltip.js +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 506 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/supportware.gif: No such file or directory + +response for: GET: /pix/supportware.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 524 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/suche-btn.gif: No such file or directory + +response for: GET: /pix/suche-btn.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 518 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/weiter-btn.gif: No such file or directory + +response for: GET: /pix/weiter-btn.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 521 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Windows-XP.gif: No such file or directory + +response for: GET: /pix/Forum-Windows-XP.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 539 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Plauderecke.gif: No such file or directory + +response for: GET: /pix/Forum-Plauderecke.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 542 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Linux.gif: No such file or directory + +response for: GET: /pix/Forum-Linux.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 524 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-PC-Sonstiges.gif: No such file or directory + +response for: GET: /pix/Forum-PC-Sonstiges.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 545 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-W-Lan.gif: No such file or directory + +response for: GET: /pix/Forum-W-Lan.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 524 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Excel.gif: No such file or directory + +response for: GET: /pix/Forum-Excel.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 524 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Hardware-Sonstiges.gif: No such file or directory + +response for: GET: /pix/Forum-Hardware-Sonstiges.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 563 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Software-Sonstige.gif: No such file or directory + +response for: GET: /pix/Forum-Software-Sonstige.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 560 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Vista.gif: No such file or directory + +response for: GET: /pix/Forum-Vista.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 524 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Windows-7.gif: No such file or directory + +response for: GET: /pix/Forum-Windows-7.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 536 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Bildbearbeitung.gif: No such file or directory + +response for: GET: /pix/Forum-Bildbearbeitung.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 554 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2161266/S500i_80.jpg: No such file or directory + +response for: GET: /articleimage/2161266/S500i_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 566 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/articleimage/2158199/ib-mp3010hw_rear_80.jpg: No such file or directory + +response for: GET: /articleimage/2158199/ib-mp3010hw_rear_80.jpg +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 599 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/mp_ic13.gif: No such file or directory + +response for: GET: /pix/mp_ic13.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 512 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/image/pfeil1.gif: No such file or directory + +response for: GET: /image/pfeil1.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 515 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/weiter-btn-2.gif: No such file or directory + +response for: GET: /pix/weiter-btn-2.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 527 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Windows-XP.gif: No such file or directory + +response for: GET: /pix/Forum-Windows-XP.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 539 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Plauderecke.gif: No such file or directory + +response for: GET: /pix/Forum-Plauderecke.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 542 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Excel.gif: No such file or directory + +response for: GET: /pix/Forum-Excel.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 524 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/pix/Forum-Hardware-Sonstiges.gif: No such file or directory + +response for: GET: /pix/Forum-Hardware-Sonstiges.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 563 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/image/pfeil1.gif: No such file or directory + +response for: GET: /image/pfeil1.gif +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 515 + + +[Tue Jul 12 08:41:17 2022] error:site error: sendfile: can't open: sn_computer/html/favicon.ico: No such file or directory + +response for: GET: /favicon.ico +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:41:17 2022 +Content-Type: text/html +Content-Length: 500 + + +[Tue Jul 12 08:46:50 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:46:50 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 12 08:46:50 2022] error:site error: domain not found: 188.34.199.32: No such file or directory + +response for: GET: / +HTTP/1.1 404 Not Found +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:46:50 2022 +Content-Type: text/html +Content-Length: 451 + + +[Tue Jul 12 08:46:50 2022] error:site error: wrong number of request lines: No such file or directory + +response for: GET: +HTTP/1.1 400 Bad Request +Server: supportware 1.9.150 / 10.06.2022 +Date: Tue Jul 12 06:46:50 2022 +Content-Type: text/html +Content-Length: 450 + + diff --git a/restarter.sh b/restarter.sh new file mode 100644 index 0000000..4e0f5a3 --- /dev/null +++ b/restarter.sh @@ -0,0 +1,12 @@ +#!/bin/sh + + +while true +do + echo START: `date` + ./server /dev/null 2>&1 + echo CRASH: `date` + echo CRASH: `date` >> crash.log + sleep 3 +done +echo EXIT: `date` diff --git a/restarter_proxy.sh b/restarter_proxy.sh new file mode 100644 index 0000000..d014792 --- /dev/null +++ b/restarter_proxy.sh @@ -0,0 +1,14 @@ +#!/bin/sh + + +while true +do + echo START: `date` + ./server -p 8088 -u snuser > /dev/null 2>&1 + echo CRASH: `date` + echo CRASH: `date` >> crash.log + sleep 3 +done +echo EXIT: `date` + + diff --git a/server b/server new file mode 100644 index 0000000..e9cb284 --- /dev/null +++ b/server @@ -0,0 +1 @@ +supportware/src/supportware \ No newline at end of file diff --git a/sn_computer/.computer.cfg.kate-swp b/sn_computer/.computer.cfg.kate-swp new file mode 100644 index 0000000..1929d80 Binary files /dev/null and b/sn_computer/.computer.cfg.kate-swp differ diff --git a/sn_computer/computer.cfg b/sn_computer/computer.cfg new file mode 100644 index 0000000..4241b24 --- /dev/null +++ b/sn_computer/computer.cfg @@ -0,0 +1,80 @@ +section:"main" +{ + aliases="panik;localhost;sourceworx.org"; + master_domain="http://sourceworx.org"; + doc_root="html"; + mail_root="mail"; + mail_command="/usr/bin/mail -s"; + index_page="index.html"; + connectstring="sn_computer;localhost;chris;kpdrZ49$#"; + error_key="sn_error"; + error_symbol=""; + censor_string="*Z*"; + posting_delay=10; + evilchars="@#;,.<>-_´`|§$%&/=\\[{}]():+!?'*"; + word_to_link_ratio=5; + max_links_to_replace=2; + replace_link_occurence=1; + show_archive_links_news=3000000; + show_archive_links_faqs=2000000; + show_archive_links_forum=3000000; + use_faqs_overlay_images=false; + use_news_overlay_images=false; + use_forum_overlay_images=true; + use_faqs_overlay_links=false; + use_news_overlay_links=false; + use_forum_overlay_links=true; + items_per_page = 20; + max_ad_includes = 0; + ad_include_ratio = 0; + vg_wort_tag = "Ich bin das Autorentag: [|1|] "; +} + + + +section:"pagemap" +{ + snautopages = "sx_admin_hits.html;sx_admin_sessions.html"; + sxpagehelp = "short_help3.html;short_help2.html;s"; +} + + +section:"translations" +{ + ad1="sn_x_werbung_stat.html"; + ad2="sn_x_sky_stat.html"; + ad3="sn_x_copyright_stat.html"; + ad4="sn_x_werbung1.html"; + ad5="sn_x_werbung2.html"; + ad6="sn_x_werbung3.html"; + ad7="sn_x_werbung4.html"; + ad8="sn_x_werbung5.html"; + ad9="sn_x_werbung6.html"; + ad10="sn_x_werbung7.html"; + ad11="sn_x_werbung_def.html"; +} + + +section:"admin" +{ + cyc = 16382; + Locke = 15342; + Mickey = 15342; + MixMax = 15342; + Rangoo = 15342; + steffen2 = 15342; + toutdesuit = 8194; + Birgit = 8194; + Mark = 8194; + hrhr = 8194; + tonja = 4674; + HobbyTuxer = 4674; + Dr.Ma-Busen = 4674; + news = 578; + joni = 578; + cyc_tonja = 4674; +} + + + + diff --git a/sn_computer/html/.webprj b/sn_computer/html/.webprj new file mode 100644 index 0000000..29a14af --- /dev/null +++ b/sn_computer/html/.webprj @@ -0,0 +1,10 @@ + + + + + + + -//W3C//DTD HTML 4.01 Transitional//EN + + + diff --git a/sn_computer/html/Scripts/iepngfix.htc b/sn_computer/html/Scripts/iepngfix.htc new file mode 100644 index 0000000..75cb7e8 --- /dev/null +++ b/sn_computer/html/Scripts/iepngfix.htc @@ -0,0 +1,187 @@ + + + diff --git a/sn_computer/html/Scripts/iepngfix_tilebg.js b/sn_computer/html/Scripts/iepngfix_tilebg.js new file mode 100644 index 0000000..41dc831 --- /dev/null +++ b/sn_computer/html/Scripts/iepngfix_tilebg.js @@ -0,0 +1,173 @@ +// IE5.5+ PNG Alpha Fix v2.0 Alpha: Background Tiling Support +// (c) 2008 Angus Turnbull http://www.twinhelix.com + +// This is licensed under the GNU LGPL, version 2.1 or later. +// For details, see: http://creativecommons.org/licenses/LGPL/2.1/ + +var IEPNGFix = window.IEPNGFix || {}; + +IEPNGFix.tileBG = function(elm, pngSrc, ready) { + // Params: A reference to a DOM element, the PNG src file pathname, and a + // hidden "ready-to-run" passed when called back after image preloading. + + var data = this.data[elm.uniqueID], + elmW = Math.max(elm.clientWidth, elm.scrollWidth), + elmH = Math.max(elm.clientHeight, elm.scrollHeight), + bgX = elm.currentStyle.backgroundPositionX, + bgY = elm.currentStyle.backgroundPositionY, + bgR = elm.currentStyle.backgroundRepeat; + + // Cache of DIVs created per element, and image preloader/data. + if (!data.tiles) { + data.tiles = { + elm: elm, + src: '', + cache: [], + img: new Image(), + old: {} + }; + } + var tiles = data.tiles, + pngW = tiles.img.width, + pngH = tiles.img.height; + + if (pngSrc) { + if (!ready && pngSrc != tiles.src) { + // New image? Preload it with a callback to detect dimensions. + tiles.img.onload = function() { + this.onload = null; + IEPNGFix.tileBG(elm, pngSrc, 1); + }; + return tiles.img.src = pngSrc; + } + } else { + // No image? + if (tiles.src) ready = 1; + pngW = pngH = 0; + } + tiles.src = pngSrc; + + if (!ready && elmW == tiles.old.w && elmH == tiles.old.h && + bgX == tiles.old.x && bgY == tiles.old.y && bgR == tiles.old.r) { + return; + } + + // Convert English and percentage positions to pixels. + var pos = { + top: '0%', + left: '0%', + center: '50%', + bottom: '100%', + right: '100%' + }, + x, + y, + pc; + x = pos[bgX] || bgX; + y = pos[bgY] || bgY; + if (pc = x.match(/(\d+)%/)) { + x = Math.round((elmW - pngW) * (parseInt(pc[1]) / 100)); + } + if (pc = y.match(/(\d+)%/)) { + y = Math.round((elmH - pngH) * (parseInt(pc[1]) / 100)); + } + x = parseInt(x); + y = parseInt(y); + + // Handle backgroundRepeat. + var repeatX = { 'repeat': 1, 'repeat-x': 1 }[bgR], + repeatY = { 'repeat': 1, 'repeat-y': 1 }[bgR]; + if (repeatX) { + x %= pngW; + if (x > 0) x -= pngW; + } + if (repeatY) { + y %= pngH; + if (y > 0) y -= pngH; + } + + // Go! + this.hook.enabled = 0; + if (!({ relative: 1, absolute: 1 }[elm.currentStyle.position])) { + elm.style.position = 'relative'; + } + var count = 0, + xPos, + maxX = repeatX ? elmW : x + 0.1, + yPos, + maxY = repeatY ? elmH : y + 0.1, + d, + s, + isNew; + if (pngW && pngH) { + for (xPos = x; xPos < maxX; xPos += pngW) { + for (yPos = y; yPos < maxY; yPos += pngH) { + isNew = 0; + if (!tiles.cache[count]) { + tiles.cache[count] = document.createElement('div'); + isNew = 1; + } + var clipR = (xPos + pngW > elmW ? elmW - xPos : pngW), + clipB = (yPos + pngH > elmH ? elmH - yPos : pngH); + d = tiles.cache[count]; + s = d.style; + s.behavior = 'none'; + s.left = xPos + 'px'; + s.top = yPos + 'px'; + s.width = clipR + 'px'; + s.height = clipB + 'px'; + s.clip = 'rect(' + + (yPos < 0 ? 0 - yPos : 0) + 'px,' + + clipR + 'px,' + + clipB + 'px,' + + (xPos < 0 ? 0 - xPos : 0) + 'px)'; + s.display = 'block'; + if (isNew) { + s.position = 'absolute'; + s.zIndex = -999; + if (elm.firstChild) { + elm.insertBefore(d, elm.firstChild); + } else { + elm.appendChild(d); + } + } + this.fix(d, pngSrc, 0); + count++; + } + } + } + while (count < tiles.cache.length) { + this.fix(tiles.cache[count], '', 0); + tiles.cache[count++].style.display = 'none'; + } + + this.hook.enabled = 1; + + // Cache so updates are infrequent. + tiles.old = { + w: elmW, + h: elmH, + x: bgX, + y: bgY, + r: bgR + }; +}; + + +IEPNGFix.update = function() { + // Update all PNG backgrounds. + for (var i in IEPNGFix.data) { + var t = IEPNGFix.data[i].tiles; + if (t && t.elm && t.src) { + IEPNGFix.tileBG(t.elm, t.src); + } + } +}; +IEPNGFix.update.timer = 0; + +if (window.attachEvent && !window.opera) { + window.attachEvent('onresize', function() { + clearTimeout(IEPNGFix.update.timer); + IEPNGFix.update.timer = setTimeout(IEPNGFix.update, 100); + }); +} diff --git a/sn_computer/html/_database b/sn_computer/html/_database new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/abuse/event.gif b/sn_computer/html/abuse/event.gif new file mode 100644 index 0000000..ea95185 Binary files /dev/null and b/sn_computer/html/abuse/event.gif differ diff --git a/sn_computer/html/abuse/event.html b/sn_computer/html/abuse/event.html new file mode 100644 index 0000000..644df61 --- /dev/null +++ b/sn_computer/html/abuse/event.html @@ -0,0 +1,13 @@ + + + + + Untitled + + + + + + + + diff --git a/sn_computer/html/ajax b/sn_computer/html/ajax new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/articleimage b/sn_computer/html/articleimage new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/befreundete-seiten.html b/sn_computer/html/befreundete-seiten.html new file mode 100644 index 0000000..ad8aa89 --- /dev/null +++ b/sn_computer/html/befreundete-seiten.html @@ -0,0 +1,63 @@ + + +Befreundete Seitent + + + + + + + + +
    + + An dieser Stelle m�chten wir unseren Lesern einige befreundete Seiten vorstellen, mit denen wir schon l�nger erfolgreich zusammenarbeitet. Diese k�nnen auch f�r Sie sicher interessant sein. +

    + + + WinFuture.de - Das Windows Online Magazin + +

    + + Winfuture.de berichtet über alle Neuigkeiten im Bereich Windows und Computer. Die Nachrichten sind eine erfrischende und kompetente Alternative zu den Printmedien, eigentlich immer viel schneller und mit viel Hintergrundwissen verstehen es die Redakteure die interessanten Themen wie aktuelle Betriebssysteme (Windows7) oder Zusammenhänge darzustellen. +

    + Mit vielen Specials zu den aktuellsten Themen wie gerade Windows 7. Die Redaktion von WinFuture.de zählt sicher zu den schnellsten und kompetentesten Nachrichtenredaktionen im deutschsprachigen Raum. +

    + Die Macher von Winfuture.de beschränken sich aber nicht nur auf News sondern bieten z.B. auch als Download den für Neuinstallierer unverzichtbaren Windows Update Pack an. Viele weitere Downloads warten auf den Besucher der Seite. +

    + Wie man an den Themen schon sieht nicht umsonst eine befreundete Seite, die Macher sind bei Ihrer Seite genau so Idealisten geblieben und mit dem Thema an sich so verbandelt wie wir. +

    + Link: WinFuture.de - Das Windows Online Magazin +



    + + jamaipa.de die Googlesuche ohne Spam und Shops +

    + + Jamaipa.de ist eine Google Customized Search Engine bei der ich sehr viele Shopping- und Spamseiten ausgefiltert habe. Inzwischen arbeiten einige Mitglieder mit an der Aktualisierung des Filters. Zusammen erreichen wir so eine erstaunliche Erkennungsrate von Spam- und Shoppingseiten.

    + Hintergrund sind die, bei einer Recherche nach Informationen, störenden Suchergebnisse von Shoppingseiten und Spamseiten, die man leider immer wieder mühsam überlesen muss. Das soll sich mit jamaipa.de ändern. +

    + Die Suchergebnisse sind einfach manuell durch eine Blackliste gefiltert, enthalten also keine Seiten von Shops, Verzeichnissen, Preisvergleichsseiten und sonstigen Seiten, die man bei einer Informationsrecherche nicht braucht. +

    + Wer dann doch noch den Preis wissen will, kann sich bei den enstprechenden Preisvergleichsportalen ja einen Überblick verschaffen. +

    + Link: jamaipa.de die Googlesuche ohne Spam- und Shoppingseiten +



    + + Paules-PC-Forum.de ist auch ein Forum rund um den Computer +

    + + Paules-PC-Forum.de ist auch ein gutes PC Forum. Paul ist wie der Name schon sagt der sehr engagierte Betreiber dieser Plattform. Er bietet aber nicht nur Onlinehilfe sondenr auch Telefonhilfe direkt über seine Hotline. Dort löst er Probleme über Telefon und per Fernwartung. +

    + Link: Paules-PC-Forum.de +









    + + treiberupdate.de ist wie der Name schon sagt eine Plattform für Treiberdownloads +

    + + Immer wieder passiert einem das, der Sound geht nach einer Neuinstallation nicht mehr und die Treiber CD ist irgendwo in einem Karton verschollen. In solchen kritischen Momenten hilft die Seite Treiberupdate.de fast immer weiter. Hier kann man sich kostenlos die aktuellsten oder schon angestaubten Treiber für seine Geräte downloaden. +

    + Link: treiberupdate.de +



    + + + diff --git a/sn_computer/html/css/style.css b/sn_computer/html/css/style.css new file mode 100644 index 0000000..3e894fa --- /dev/null +++ b/sn_computer/html/css/style.css @@ -0,0 +1,111 @@ +/*common css */ +body{ + margin: 0px; + background: #f8f8f8; +} +td{ + font: normal 12px/18px Verdana, Geneva, sans-serif; + color: #000000; + text-align: left; + vertical-align: top; +} +img{ + border: 0px; +} +h1{ + font: bold 18px Verdana, Geneva, sans-serif; + color: #000000; + padding: 0 26px; + margin: 0px; +} +h2{ + font: bold 18px/41px Verdana, Geneva, sans-serif; + color: #3b7fc1; + padding: 0px; + margin: 0px; + vertical-align: middle; +} +/*general css*/ +.center_align{ + text-align: center; +} +.padding26px{ + padding: 0 26px; +} +input.txtbox1{ + width: 220px; + height: 24px; + border: 0px; + padding: 5px 0px 0px 4px; + text-align: left; + font: bold 11px Arial, Helvetica, sans-serif; + color: #565656; + background:url(../images/txtbox_bg.gif) left top no-repeat; +} +.txt2{ + font: bold 12px/22px Arial, Helvetica, sans-serif; + vertical-align: middle; + padding: 0px 2px 0px 4px; + color: #565656; +} + +/*maintable*/ +table.maintable{ + width: 780px; + height: auto; + clear: both; + float: none; + margin: auto; + border: 0px; + background: none; +} +/*header*/ +table.header{ + width: 100%; + height: 84px; + border: 0px; +} +table.header td{ + vertical-align: middle; + font: bold 20px Arial, Helvetica, sans-serif; + color: #333333; +} +table.header span{ + color: #408fbf; +} +/*body*/ +table.body{ + width: 100%; + height: auto; + background: #fff; + border-right: 1px solid #dbdbdb; + border-left: 1px solid #dbdbdb; +} +table.body td.right{ + background: url(../images/right_bg.gif) left top repeat-x #dad8d9; + border-left: 1px solid #dbdbdb; +} +table.body td.txt1{ + font: normal 10px/15px Verdana, Geneva, sans-serif; +} + +/*footer*/ +table.footer{ + width: 100%; + height: 104px; + border: 0px; +} +table.footer td{ + text-align: center; + padding-top:20px; + color: #414141; +} +table.footer td a{ + vertical-align: center; + color: #f38900; + font: 12px Verdana, Geneva, sans-serif; + text-decoration: none; +} +table.footer td a:hover{ + text-decoration: underline; +} \ No newline at end of file diff --git a/sn_computer/html/direkt b/sn_computer/html/direkt new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/download b/sn_computer/html/download new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/editor_stuff b/sn_computer/html/editor_stuff new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/favicon.ico b/sn_computer/html/favicon.ico new file mode 100644 index 0000000..b971241 Binary files /dev/null and b/sn_computer/html/favicon.ico differ diff --git a/sn_computer/html/fresh b/sn_computer/html/fresh new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/image/.directory b/sn_computer/html/image/.directory new file mode 100644 index 0000000..78b50b5 --- /dev/null +++ b/sn_computer/html/image/.directory @@ -0,0 +1,2 @@ +[URL properties] +IconSize=0 diff --git a/sn_computer/html/image/140_300.swf b/sn_computer/html/image/140_300.swf new file mode 100644 index 0000000..a2cabda Binary files /dev/null and b/sn_computer/html/image/140_300.swf differ diff --git a/sn_computer/html/image/1_9.gif b/sn_computer/html/image/1_9.gif new file mode 100644 index 0000000..dec083d Binary files /dev/null and b/sn_computer/html/image/1_9.gif differ diff --git a/sn_computer/html/image/1_9_a.gif b/sn_computer/html/image/1_9_a.gif new file mode 100644 index 0000000..c24b4df Binary files /dev/null and b/sn_computer/html/image/1_9_a.gif differ diff --git a/sn_computer/html/image/a.gif b/sn_computer/html/image/a.gif new file mode 100644 index 0000000..4ea8cef Binary files /dev/null and b/sn_computer/html/image/a.gif differ diff --git a/sn_computer/html/image/a_a.gif b/sn_computer/html/image/a_a.gif new file mode 100644 index 0000000..d979cbd Binary files /dev/null and b/sn_computer/html/image/a_a.gif differ diff --git a/sn_computer/html/image/active.gif b/sn_computer/html/image/active.gif new file mode 100644 index 0000000..e73128b Binary files /dev/null and b/sn_computer/html/image/active.gif differ diff --git a/sn_computer/html/image/active10.gif b/sn_computer/html/image/active10.gif new file mode 100644 index 0000000..f76ecf1 Binary files /dev/null and b/sn_computer/html/image/active10.gif differ diff --git a/sn_computer/html/image/active16.gif b/sn_computer/html/image/active16.gif new file mode 100644 index 0000000..471baea Binary files /dev/null and b/sn_computer/html/image/active16.gif differ diff --git a/sn_computer/html/image/adimage.gif b/sn_computer/html/image/adimage.gif new file mode 100644 index 0000000..b28fe9c Binary files /dev/null and b/sn_computer/html/image/adimage.gif differ diff --git a/sn_computer/html/image/aendern.gif b/sn_computer/html/image/aendern.gif new file mode 100644 index 0000000..f8f0194 Binary files /dev/null and b/sn_computer/html/image/aendern.gif differ diff --git a/sn_computer/html/image/alphabetische_reihe1.gif b/sn_computer/html/image/alphabetische_reihe1.gif new file mode 100644 index 0000000..4cdba2f Binary files /dev/null and b/sn_computer/html/image/alphabetische_reihe1.gif differ diff --git a/sn_computer/html/image/alphabetische_reihe1_a.gif b/sn_computer/html/image/alphabetische_reihe1_a.gif new file mode 100644 index 0000000..06207e5 Binary files /dev/null and b/sn_computer/html/image/alphabetische_reihe1_a.gif differ diff --git a/sn_computer/html/image/alphabetische_reihe2.gif b/sn_computer/html/image/alphabetische_reihe2.gif new file mode 100644 index 0000000..ae464aa Binary files /dev/null and b/sn_computer/html/image/alphabetische_reihe2.gif differ diff --git a/sn_computer/html/image/alphabetische_reihe2_a.gif b/sn_computer/html/image/alphabetische_reihe2_a.gif new file mode 100644 index 0000000..4b54fba Binary files /dev/null and b/sn_computer/html/image/alphabetische_reihe2_a.gif differ diff --git a/sn_computer/html/image/angry.gif b/sn_computer/html/image/angry.gif new file mode 100644 index 0000000..f5a6c83 Binary files /dev/null and b/sn_computer/html/image/angry.gif differ diff --git a/sn_computer/html/image/anmeldebox.gif b/sn_computer/html/image/anmeldebox.gif new file mode 100644 index 0000000..9f776a4 Binary files /dev/null and b/sn_computer/html/image/anmeldebox.gif differ diff --git a/sn_computer/html/image/anmeldung.gif b/sn_computer/html/image/anmeldung.gif new file mode 100644 index 0000000..8079625 Binary files /dev/null and b/sn_computer/html/image/anmeldung.gif differ diff --git a/sn_computer/html/image/anmeldung1.gif b/sn_computer/html/image/anmeldung1.gif new file mode 100644 index 0000000..7981a4d Binary files /dev/null and b/sn_computer/html/image/anmeldung1.gif differ diff --git a/sn_computer/html/image/anmeldung2.gif b/sn_computer/html/image/anmeldung2.gif new file mode 100644 index 0000000..ba8d089 Binary files /dev/null and b/sn_computer/html/image/anmeldung2.gif differ diff --git a/sn_computer/html/image/anverkauf.gif b/sn_computer/html/image/anverkauf.gif new file mode 100644 index 0000000..3be69c3 Binary files /dev/null and b/sn_computer/html/image/anverkauf.gif differ diff --git a/sn_computer/html/image/anverkauf_60.gif b/sn_computer/html/image/anverkauf_60.gif new file mode 100644 index 0000000..9a8e879 Binary files /dev/null and b/sn_computer/html/image/anverkauf_60.gif differ diff --git a/sn_computer/html/image/arrow.png b/sn_computer/html/image/arrow.png new file mode 100644 index 0000000..4d84554 Binary files /dev/null and b/sn_computer/html/image/arrow.png differ diff --git a/sn_computer/html/image/autoren.gif b/sn_computer/html/image/autoren.gif new file mode 100644 index 0000000..e5bd4fa Binary files /dev/null and b/sn_computer/html/image/autoren.gif differ diff --git a/sn_computer/html/image/b.gif b/sn_computer/html/image/b.gif new file mode 100644 index 0000000..98c8508 Binary files /dev/null and b/sn_computer/html/image/b.gif differ diff --git a/sn_computer/html/image/b_a.gif b/sn_computer/html/image/b_a.gif new file mode 100644 index 0000000..64796e3 Binary files /dev/null and b/sn_computer/html/image/b_a.gif differ diff --git a/sn_computer/html/image/bb_bold.gif b/sn_computer/html/image/bb_bold.gif new file mode 100644 index 0000000..cc4a1c4 Binary files /dev/null and b/sn_computer/html/image/bb_bold.gif differ diff --git a/sn_computer/html/image/bb_center.gif b/sn_computer/html/image/bb_center.gif new file mode 100644 index 0000000..85db0f5 Binary files /dev/null and b/sn_computer/html/image/bb_center.gif differ diff --git a/sn_computer/html/image/bb_charlist.gif b/sn_computer/html/image/bb_charlist.gif new file mode 100644 index 0000000..18dd6c6 Binary files /dev/null and b/sn_computer/html/image/bb_charlist.gif differ diff --git a/sn_computer/html/image/bb_code.gif b/sn_computer/html/image/bb_code.gif new file mode 100644 index 0000000..a4fc3b4 Binary files /dev/null and b/sn_computer/html/image/bb_code.gif differ diff --git a/sn_computer/html/image/bb_email.gif b/sn_computer/html/image/bb_email.gif new file mode 100644 index 0000000..7a8143f Binary files /dev/null and b/sn_computer/html/image/bb_email.gif differ diff --git a/sn_computer/html/image/bb_image.gif b/sn_computer/html/image/bb_image.gif new file mode 100644 index 0000000..a30cd53 Binary files /dev/null and b/sn_computer/html/image/bb_image.gif differ diff --git a/sn_computer/html/image/bb_italicize.gif b/sn_computer/html/image/bb_italicize.gif new file mode 100644 index 0000000..ba3ade5 Binary files /dev/null and b/sn_computer/html/image/bb_italicize.gif differ diff --git a/sn_computer/html/image/bb_line.gif b/sn_computer/html/image/bb_line.gif new file mode 100644 index 0000000..9204d45 Binary files /dev/null and b/sn_computer/html/image/bb_line.gif differ diff --git a/sn_computer/html/image/bb_list.gif b/sn_computer/html/image/bb_list.gif new file mode 100644 index 0000000..d612a4a Binary files /dev/null and b/sn_computer/html/image/bb_list.gif differ diff --git a/sn_computer/html/image/bb_numlist.gif b/sn_computer/html/image/bb_numlist.gif new file mode 100644 index 0000000..0e79c0f Binary files /dev/null and b/sn_computer/html/image/bb_numlist.gif differ diff --git a/sn_computer/html/image/bb_phpcode.gif b/sn_computer/html/image/bb_phpcode.gif new file mode 100644 index 0000000..7d6cc4b Binary files /dev/null and b/sn_computer/html/image/bb_phpcode.gif differ diff --git a/sn_computer/html/image/bb_quote.gif b/sn_computer/html/image/bb_quote.gif new file mode 100644 index 0000000..acf5e2c Binary files /dev/null and b/sn_computer/html/image/bb_quote.gif differ diff --git a/sn_computer/html/image/bb_underline.gif b/sn_computer/html/image/bb_underline.gif new file mode 100644 index 0000000..0be8ca5 Binary files /dev/null and b/sn_computer/html/image/bb_underline.gif differ diff --git a/sn_computer/html/image/bb_url.gif b/sn_computer/html/image/bb_url.gif new file mode 100644 index 0000000..2b1d3f6 Binary files /dev/null and b/sn_computer/html/image/bb_url.gif differ diff --git a/sn_computer/html/image/beitrag_erstellen.gif b/sn_computer/html/image/beitrag_erstellen.gif new file mode 100644 index 0000000..c4b76e1 Binary files /dev/null and b/sn_computer/html/image/beitrag_erstellen.gif differ diff --git a/sn_computer/html/image/beitrag_erstellen_b.gif b/sn_computer/html/image/beitrag_erstellen_b.gif new file mode 100644 index 0000000..a0d1204 Binary files /dev/null and b/sn_computer/html/image/beitrag_erstellen_b.gif differ diff --git a/sn_computer/html/image/bg.gif b/sn_computer/html/image/bg.gif new file mode 100644 index 0000000..a7167fa Binary files /dev/null and b/sn_computer/html/image/bg.gif differ diff --git a/sn_computer/html/image/bg_tab_hor11.gif b/sn_computer/html/image/bg_tab_hor11.gif new file mode 100644 index 0000000..398a025 Binary files /dev/null and b/sn_computer/html/image/bg_tab_hor11.gif differ diff --git a/sn_computer/html/image/blank.gif b/sn_computer/html/image/blank.gif new file mode 100644 index 0000000..606787a Binary files /dev/null and b/sn_computer/html/image/blank.gif differ diff --git a/sn_computer/html/image/bobbel_blau.gif b/sn_computer/html/image/bobbel_blau.gif new file mode 100644 index 0000000..cb31097 Binary files /dev/null and b/sn_computer/html/image/bobbel_blau.gif differ diff --git a/sn_computer/html/image/bobbel_blau_dunkel.gif b/sn_computer/html/image/bobbel_blau_dunkel.gif new file mode 100644 index 0000000..23135e2 Binary files /dev/null and b/sn_computer/html/image/bobbel_blau_dunkel.gif differ diff --git a/sn_computer/html/image/bobbel_cheats.gif b/sn_computer/html/image/bobbel_cheats.gif new file mode 100644 index 0000000..3404db9 Binary files /dev/null and b/sn_computer/html/image/bobbel_cheats.gif differ diff --git a/sn_computer/html/image/bobbel_faqs.gif b/sn_computer/html/image/bobbel_faqs.gif new file mode 100644 index 0000000..50eae6f Binary files /dev/null and b/sn_computer/html/image/bobbel_faqs.gif differ diff --git a/sn_computer/html/image/bobbel_gelb.gif b/sn_computer/html/image/bobbel_gelb.gif new file mode 100644 index 0000000..0306204 Binary files /dev/null and b/sn_computer/html/image/bobbel_gelb.gif differ diff --git a/sn_computer/html/image/bobbel_gelb_dunkel.gif b/sn_computer/html/image/bobbel_gelb_dunkel.gif new file mode 100644 index 0000000..5c391ea Binary files /dev/null and b/sn_computer/html/image/bobbel_gelb_dunkel.gif differ diff --git a/sn_computer/html/image/bobbel_gruen.gif b/sn_computer/html/image/bobbel_gruen.gif new file mode 100644 index 0000000..c639477 Binary files /dev/null and b/sn_computer/html/image/bobbel_gruen.gif differ diff --git a/sn_computer/html/image/bobbel_gruen_dunkel.gif b/sn_computer/html/image/bobbel_gruen_dunkel.gif new file mode 100644 index 0000000..8ef34ef Binary files /dev/null and b/sn_computer/html/image/bobbel_gruen_dunkel.gif differ diff --git a/sn_computer/html/image/bobbel_news.gif b/sn_computer/html/image/bobbel_news.gif new file mode 100644 index 0000000..a339cc7 Binary files /dev/null and b/sn_computer/html/image/bobbel_news.gif differ diff --git a/sn_computer/html/image/bobbel_recipes.gif b/sn_computer/html/image/bobbel_recipes.gif new file mode 100644 index 0000000..879d0e0 Binary files /dev/null and b/sn_computer/html/image/bobbel_recipes.gif differ diff --git a/sn_computer/html/image/bobbel_rot.gif b/sn_computer/html/image/bobbel_rot.gif new file mode 100644 index 0000000..23ec448 Binary files /dev/null and b/sn_computer/html/image/bobbel_rot.gif differ diff --git a/sn_computer/html/image/bobbel_rot_dunkel.gif b/sn_computer/html/image/bobbel_rot_dunkel.gif new file mode 100644 index 0000000..20826be Binary files /dev/null and b/sn_computer/html/image/bobbel_rot_dunkel.gif differ diff --git a/sn_computer/html/image/bobbel_solutions.gif b/sn_computer/html/image/bobbel_solutions.gif new file mode 100644 index 0000000..796f195 Binary files /dev/null and b/sn_computer/html/image/bobbel_solutions.gif differ diff --git a/sn_computer/html/image/bobbel_solved.gif b/sn_computer/html/image/bobbel_solved.gif new file mode 100644 index 0000000..02ee3be Binary files /dev/null and b/sn_computer/html/image/bobbel_solved.gif differ diff --git a/sn_computer/html/image/bobbel_tuerkis.gif b/sn_computer/html/image/bobbel_tuerkis.gif new file mode 100644 index 0000000..433defa Binary files /dev/null and b/sn_computer/html/image/bobbel_tuerkis.gif differ diff --git a/sn_computer/html/image/bobbel_tuerkis_dunkel.gif b/sn_computer/html/image/bobbel_tuerkis_dunkel.gif new file mode 100644 index 0000000..879d0e0 Binary files /dev/null and b/sn_computer/html/image/bobbel_tuerkis_dunkel.gif differ diff --git a/sn_computer/html/image/box_bg1.gif b/sn_computer/html/image/box_bg1.gif new file mode 100644 index 0000000..a4582c2 Binary files /dev/null and b/sn_computer/html/image/box_bg1.gif differ diff --git a/sn_computer/html/image/box_bg1.jpg b/sn_computer/html/image/box_bg1.jpg new file mode 100644 index 0000000..43fbbf9 Binary files /dev/null and b/sn_computer/html/image/box_bg1.jpg differ diff --git a/sn_computer/html/image/box_bg158.jpg b/sn_computer/html/image/box_bg158.jpg new file mode 100644 index 0000000..b9a8bb8 Binary files /dev/null and b/sn_computer/html/image/box_bg158.jpg differ diff --git a/sn_computer/html/image/box_bg1_articles.gif b/sn_computer/html/image/box_bg1_articles.gif new file mode 100644 index 0000000..0c546a1 Binary files /dev/null and b/sn_computer/html/image/box_bg1_articles.gif differ diff --git a/sn_computer/html/image/box_bg1_articles.jpg b/sn_computer/html/image/box_bg1_articles.jpg new file mode 100644 index 0000000..0c546a1 Binary files /dev/null and b/sn_computer/html/image/box_bg1_articles.jpg differ diff --git a/sn_computer/html/image/box_bg1_driver.gif b/sn_computer/html/image/box_bg1_driver.gif new file mode 100644 index 0000000..e097282 Binary files /dev/null and b/sn_computer/html/image/box_bg1_driver.gif differ diff --git a/sn_computer/html/image/box_bg1_faqs.gif b/sn_computer/html/image/box_bg1_faqs.gif new file mode 100644 index 0000000..d178c77 Binary files /dev/null and b/sn_computer/html/image/box_bg1_faqs.gif differ diff --git a/sn_computer/html/image/box_bg1_faqs.jpg b/sn_computer/html/image/box_bg1_faqs.jpg new file mode 100644 index 0000000..3869c1b Binary files /dev/null and b/sn_computer/html/image/box_bg1_faqs.jpg differ diff --git a/sn_computer/html/image/box_bg1_forum.gif b/sn_computer/html/image/box_bg1_forum.gif new file mode 100644 index 0000000..00e4002 Binary files /dev/null and b/sn_computer/html/image/box_bg1_forum.gif differ diff --git a/sn_computer/html/image/box_bg1_guestbook.gif b/sn_computer/html/image/box_bg1_guestbook.gif new file mode 100644 index 0000000..a4582c2 Binary files /dev/null and b/sn_computer/html/image/box_bg1_guestbook.gif differ diff --git a/sn_computer/html/image/box_bg1_help.gif b/sn_computer/html/image/box_bg1_help.gif new file mode 100644 index 0000000..2ba01c1 Binary files /dev/null and b/sn_computer/html/image/box_bg1_help.gif differ diff --git a/sn_computer/html/image/box_bg1_help.jpg b/sn_computer/html/image/box_bg1_help.jpg new file mode 100644 index 0000000..1f7af17 Binary files /dev/null and b/sn_computer/html/image/box_bg1_help.jpg differ diff --git a/sn_computer/html/image/box_bg1_hilfe.gif b/sn_computer/html/image/box_bg1_hilfe.gif new file mode 100644 index 0000000..1f7af17 Binary files /dev/null and b/sn_computer/html/image/box_bg1_hilfe.gif differ diff --git a/sn_computer/html/image/box_bg1_news.gif b/sn_computer/html/image/box_bg1_news.gif new file mode 100644 index 0000000..1ac5057 Binary files /dev/null and b/sn_computer/html/image/box_bg1_news.gif differ diff --git a/sn_computer/html/image/box_bg1_news.jpg b/sn_computer/html/image/box_bg1_news.jpg new file mode 100644 index 0000000..22c38dd Binary files /dev/null and b/sn_computer/html/image/box_bg1_news.jpg differ diff --git a/sn_computer/html/image/box_bg1_sale.gif b/sn_computer/html/image/box_bg1_sale.gif new file mode 100644 index 0000000..16f700b Binary files /dev/null and b/sn_computer/html/image/box_bg1_sale.gif differ diff --git a/sn_computer/html/image/box_bg490.jpg b/sn_computer/html/image/box_bg490.jpg new file mode 100644 index 0000000..27a3cae Binary files /dev/null and b/sn_computer/html/image/box_bg490.jpg differ diff --git a/sn_computer/html/image/boxhead_200.gif b/sn_computer/html/image/boxhead_200.gif new file mode 100644 index 0000000..0c460c7 Binary files /dev/null and b/sn_computer/html/image/boxhead_200.gif differ diff --git a/sn_computer/html/image/boxhead_200.jpg b/sn_computer/html/image/boxhead_200.jpg new file mode 100644 index 0000000..5425185 Binary files /dev/null and b/sn_computer/html/image/boxhead_200.jpg differ diff --git a/sn_computer/html/image/boxhead_200_articles.gif b/sn_computer/html/image/boxhead_200_articles.gif new file mode 100644 index 0000000..2ac6309 Binary files /dev/null and b/sn_computer/html/image/boxhead_200_articles.gif differ diff --git a/sn_computer/html/image/boxhead_200_driver.gif b/sn_computer/html/image/boxhead_200_driver.gif new file mode 100644 index 0000000..2db93ec Binary files /dev/null and b/sn_computer/html/image/boxhead_200_driver.gif differ diff --git a/sn_computer/html/image/boxhead_200_faqs.gif b/sn_computer/html/image/boxhead_200_faqs.gif new file mode 100644 index 0000000..ce9f551 Binary files /dev/null and b/sn_computer/html/image/boxhead_200_faqs.gif differ diff --git a/sn_computer/html/image/boxhead_200_forum.gif b/sn_computer/html/image/boxhead_200_forum.gif new file mode 100644 index 0000000..79f4119 Binary files /dev/null and b/sn_computer/html/image/boxhead_200_forum.gif differ diff --git a/sn_computer/html/image/boxhead_200_guestbook.gif b/sn_computer/html/image/boxhead_200_guestbook.gif new file mode 100644 index 0000000..ce9f551 Binary files /dev/null and b/sn_computer/html/image/boxhead_200_guestbook.gif differ diff --git a/sn_computer/html/image/boxhead_200_help.gif b/sn_computer/html/image/boxhead_200_help.gif new file mode 100644 index 0000000..bbc466b Binary files /dev/null and b/sn_computer/html/image/boxhead_200_help.gif differ diff --git a/sn_computer/html/image/boxhead_200_help.jpg b/sn_computer/html/image/boxhead_200_help.jpg new file mode 100644 index 0000000..8aed2b6 Binary files /dev/null and b/sn_computer/html/image/boxhead_200_help.jpg differ diff --git a/sn_computer/html/image/boxhead_200_help_1.gif b/sn_computer/html/image/boxhead_200_help_1.gif new file mode 100644 index 0000000..bbc466b Binary files /dev/null and b/sn_computer/html/image/boxhead_200_help_1.gif differ diff --git a/sn_computer/html/image/boxhead_200_news.gif b/sn_computer/html/image/boxhead_200_news.gif new file mode 100644 index 0000000..7239fd9 Binary files /dev/null and b/sn_computer/html/image/boxhead_200_news.gif differ diff --git a/sn_computer/html/image/boxhead_200_sale.gif b/sn_computer/html/image/boxhead_200_sale.gif new file mode 100644 index 0000000..56c030b Binary files /dev/null and b/sn_computer/html/image/boxhead_200_sale.gif differ diff --git a/sn_computer/html/image/boxhead_530.gif b/sn_computer/html/image/boxhead_530.gif new file mode 100644 index 0000000..18791f7 Binary files /dev/null and b/sn_computer/html/image/boxhead_530.gif differ diff --git a/sn_computer/html/image/boxhead_530.jpg b/sn_computer/html/image/boxhead_530.jpg new file mode 100644 index 0000000..a093ec6 Binary files /dev/null and b/sn_computer/html/image/boxhead_530.jpg differ diff --git a/sn_computer/html/image/boxhead_530_articles.gif b/sn_computer/html/image/boxhead_530_articles.gif new file mode 100644 index 0000000..a030c8e Binary files /dev/null and b/sn_computer/html/image/boxhead_530_articles.gif differ diff --git a/sn_computer/html/image/boxhead_530_articles.jpg b/sn_computer/html/image/boxhead_530_articles.jpg new file mode 100644 index 0000000..a030c8e Binary files /dev/null and b/sn_computer/html/image/boxhead_530_articles.jpg differ diff --git a/sn_computer/html/image/boxhead_530_driver.gif b/sn_computer/html/image/boxhead_530_driver.gif new file mode 100644 index 0000000..578b3ac Binary files /dev/null and b/sn_computer/html/image/boxhead_530_driver.gif differ diff --git a/sn_computer/html/image/boxhead_530_faqs.gif b/sn_computer/html/image/boxhead_530_faqs.gif new file mode 100644 index 0000000..3e49623 Binary files /dev/null and b/sn_computer/html/image/boxhead_530_faqs.gif differ diff --git a/sn_computer/html/image/boxhead_530_faqs.jpg b/sn_computer/html/image/boxhead_530_faqs.jpg new file mode 100644 index 0000000..39498ff Binary files /dev/null and b/sn_computer/html/image/boxhead_530_faqs.jpg differ diff --git a/sn_computer/html/image/boxhead_530_forum.gif b/sn_computer/html/image/boxhead_530_forum.gif new file mode 100644 index 0000000..f170321 Binary files /dev/null and b/sn_computer/html/image/boxhead_530_forum.gif differ diff --git a/sn_computer/html/image/boxhead_530_guestbook.gif b/sn_computer/html/image/boxhead_530_guestbook.gif new file mode 100644 index 0000000..3e49623 Binary files /dev/null and b/sn_computer/html/image/boxhead_530_guestbook.gif differ diff --git a/sn_computer/html/image/boxhead_530_guestbook.jpg b/sn_computer/html/image/boxhead_530_guestbook.jpg new file mode 100644 index 0000000..39498ff Binary files /dev/null and b/sn_computer/html/image/boxhead_530_guestbook.jpg differ diff --git a/sn_computer/html/image/boxhead_530_help.gif b/sn_computer/html/image/boxhead_530_help.gif new file mode 100644 index 0000000..37dd2d7 Binary files /dev/null and b/sn_computer/html/image/boxhead_530_help.gif differ diff --git a/sn_computer/html/image/boxhead_530_help.jpg b/sn_computer/html/image/boxhead_530_help.jpg new file mode 100644 index 0000000..db7a901 Binary files /dev/null and b/sn_computer/html/image/boxhead_530_help.jpg differ diff --git a/sn_computer/html/image/boxhead_530_news.gif b/sn_computer/html/image/boxhead_530_news.gif new file mode 100644 index 0000000..b66bade Binary files /dev/null and b/sn_computer/html/image/boxhead_530_news.gif differ diff --git a/sn_computer/html/image/boxhead_530_news.jpg b/sn_computer/html/image/boxhead_530_news.jpg new file mode 100644 index 0000000..81b8a93 Binary files /dev/null and b/sn_computer/html/image/boxhead_530_news.jpg differ diff --git a/sn_computer/html/image/boxhead_530_sale.gif b/sn_computer/html/image/boxhead_530_sale.gif new file mode 100644 index 0000000..324cd9a Binary files /dev/null and b/sn_computer/html/image/boxhead_530_sale.gif differ diff --git a/sn_computer/html/image/boxhead_800.jpg b/sn_computer/html/image/boxhead_800.jpg new file mode 100644 index 0000000..a522aab Binary files /dev/null and b/sn_computer/html/image/boxhead_800.jpg differ diff --git a/sn_computer/html/image/boxhead_800_u.gif b/sn_computer/html/image/boxhead_800_u.gif new file mode 100644 index 0000000..e945b79 Binary files /dev/null and b/sn_computer/html/image/boxhead_800_u.gif differ diff --git a/sn_computer/html/image/btblock.png b/sn_computer/html/image/btblock.png new file mode 100644 index 0000000..eac427f Binary files /dev/null and b/sn_computer/html/image/btblock.png differ diff --git a/sn_computer/html/image/btkill.png b/sn_computer/html/image/btkill.png new file mode 100644 index 0000000..edf5f76 Binary files /dev/null and b/sn_computer/html/image/btkill.png differ diff --git a/sn_computer/html/image/btnew.png b/sn_computer/html/image/btnew.png new file mode 100644 index 0000000..120f2ff Binary files /dev/null and b/sn_computer/html/image/btnew.png differ diff --git a/sn_computer/html/image/btsave.png b/sn_computer/html/image/btsave.png new file mode 100644 index 0000000..3e28d5d Binary files /dev/null and b/sn_computer/html/image/btsave.png differ diff --git a/sn_computer/html/image/c.gif b/sn_computer/html/image/c.gif new file mode 100644 index 0000000..5383ec2 Binary files /dev/null and b/sn_computer/html/image/c.gif differ diff --git a/sn_computer/html/image/c_a.gif b/sn_computer/html/image/c_a.gif new file mode 100644 index 0000000..c2e0b53 Binary files /dev/null and b/sn_computer/html/image/c_a.gif differ diff --git a/sn_computer/html/image/chat.gif b/sn_computer/html/image/chat.gif new file mode 100644 index 0000000..d9cbc79 Binary files /dev/null and b/sn_computer/html/image/chat.gif differ diff --git a/sn_computer/html/image/chat1.gif b/sn_computer/html/image/chat1.gif new file mode 100644 index 0000000..969ce0b Binary files /dev/null and b/sn_computer/html/image/chat1.gif differ diff --git a/sn_computer/html/image/chat_gast.gif b/sn_computer/html/image/chat_gast.gif new file mode 100644 index 0000000..376127f Binary files /dev/null and b/sn_computer/html/image/chat_gast.gif differ diff --git a/sn_computer/html/image/chat_gast1.gif b/sn_computer/html/image/chat_gast1.gif new file mode 100644 index 0000000..4291578 Binary files /dev/null and b/sn_computer/html/image/chat_gast1.gif differ diff --git a/sn_computer/html/image/cheesy.gif b/sn_computer/html/image/cheesy.gif new file mode 100644 index 0000000..d394b47 Binary files /dev/null and b/sn_computer/html/image/cheesy.gif differ diff --git a/sn_computer/html/image/choise.gif b/sn_computer/html/image/choise.gif new file mode 100644 index 0000000..aee420c Binary files /dev/null and b/sn_computer/html/image/choise.gif differ diff --git a/sn_computer/html/image/computer.gif b/sn_computer/html/image/computer.gif new file mode 100644 index 0000000..2ced4d9 Binary files /dev/null and b/sn_computer/html/image/computer.gif differ diff --git a/sn_computer/html/image/cool.gif b/sn_computer/html/image/cool.gif new file mode 100644 index 0000000..a6fd873 Binary files /dev/null and b/sn_computer/html/image/cool.gif differ diff --git a/sn_computer/html/image/cry.gif b/sn_computer/html/image/cry.gif new file mode 100644 index 0000000..ba84f4f Binary files /dev/null and b/sn_computer/html/image/cry.gif differ diff --git a/sn_computer/html/image/d.gif b/sn_computer/html/image/d.gif new file mode 100644 index 0000000..259ecc2 Binary files /dev/null and b/sn_computer/html/image/d.gif differ diff --git a/sn_computer/html/image/d_a.gif b/sn_computer/html/image/d_a.gif new file mode 100644 index 0000000..54f1f11 Binary files /dev/null and b/sn_computer/html/image/d_a.gif differ diff --git a/sn_computer/html/image/daten_aendern.gif b/sn_computer/html/image/daten_aendern.gif new file mode 100644 index 0000000..8744768 Binary files /dev/null and b/sn_computer/html/image/daten_aendern.gif differ diff --git a/sn_computer/html/image/doppelpfeil.gif b/sn_computer/html/image/doppelpfeil.gif new file mode 100644 index 0000000..80bf885 Binary files /dev/null and b/sn_computer/html/image/doppelpfeil.gif differ diff --git a/sn_computer/html/image/dotline.gif b/sn_computer/html/image/dotline.gif new file mode 100644 index 0000000..35f46bc Binary files /dev/null and b/sn_computer/html/image/dotline.gif differ diff --git a/sn_computer/html/image/down.png b/sn_computer/html/image/down.png new file mode 100644 index 0000000..f545e03 Binary files /dev/null and b/sn_computer/html/image/down.png differ diff --git a/sn_computer/html/image/e.gif b/sn_computer/html/image/e.gif new file mode 100644 index 0000000..8985c44 Binary files /dev/null and b/sn_computer/html/image/e.gif differ diff --git a/sn_computer/html/image/e_a.gif b/sn_computer/html/image/e_a.gif new file mode 100644 index 0000000..4e9be8a Binary files /dev/null and b/sn_computer/html/image/e_a.gif differ diff --git a/sn_computer/html/image/edit.gif b/sn_computer/html/image/edit.gif new file mode 100644 index 0000000..f15e122 Binary files /dev/null and b/sn_computer/html/image/edit.gif differ diff --git a/sn_computer/html/image/embarassed.gif b/sn_computer/html/image/embarassed.gif new file mode 100644 index 0000000..78e5f68 Binary files /dev/null and b/sn_computer/html/image/embarassed.gif differ diff --git a/sn_computer/html/image/exit.gif b/sn_computer/html/image/exit.gif new file mode 100644 index 0000000..11def4d Binary files /dev/null and b/sn_computer/html/image/exit.gif differ diff --git a/sn_computer/html/image/f.gif b/sn_computer/html/image/f.gif new file mode 100644 index 0000000..05d7b3b Binary files /dev/null and b/sn_computer/html/image/f.gif differ diff --git a/sn_computer/html/image/f_a.gif b/sn_computer/html/image/f_a.gif new file mode 100644 index 0000000..7f19cf0 Binary files /dev/null and b/sn_computer/html/image/f_a.gif differ diff --git a/sn_computer/html/image/faq_60.gif b/sn_computer/html/image/faq_60.gif new file mode 100644 index 0000000..8c3faf0 Binary files /dev/null and b/sn_computer/html/image/faq_60.gif differ diff --git a/sn_computer/html/image/faq_60.jpg b/sn_computer/html/image/faq_60.jpg new file mode 100644 index 0000000..29bf329 Binary files /dev/null and b/sn_computer/html/image/faq_60.jpg differ diff --git a/sn_computer/html/image/faq_gruppenuebersicht.gif b/sn_computer/html/image/faq_gruppenuebersicht.gif new file mode 100644 index 0000000..1e0d36f Binary files /dev/null and b/sn_computer/html/image/faq_gruppenuebersicht.gif differ diff --git a/sn_computer/html/image/farben.gif b/sn_computer/html/image/farben.gif new file mode 100644 index 0000000..4bb1214 Binary files /dev/null and b/sn_computer/html/image/farben.gif differ diff --git a/sn_computer/html/image/favoriten.gif b/sn_computer/html/image/favoriten.gif new file mode 100644 index 0000000..1ee1909 Binary files /dev/null and b/sn_computer/html/image/favoriten.gif differ diff --git a/sn_computer/html/image/favoriten_add.gif b/sn_computer/html/image/favoriten_add.gif new file mode 100644 index 0000000..21c2b76 Binary files /dev/null and b/sn_computer/html/image/favoriten_add.gif differ diff --git a/sn_computer/html/image/favoriten_grey.gif b/sn_computer/html/image/favoriten_grey.gif new file mode 100644 index 0000000..00b0b1d Binary files /dev/null and b/sn_computer/html/image/favoriten_grey.gif differ diff --git a/sn_computer/html/image/firtz_wlansubstick.gif b/sn_computer/html/image/firtz_wlansubstick.gif new file mode 100644 index 0000000..e6ca0e8 Binary files /dev/null and b/sn_computer/html/image/firtz_wlansubstick.gif differ diff --git a/sn_computer/html/image/formatierungsbuttons.gif b/sn_computer/html/image/formatierungsbuttons.gif new file mode 100644 index 0000000..b0c4843 Binary files /dev/null and b/sn_computer/html/image/formatierungsbuttons.gif differ diff --git a/sn_computer/html/image/forum.gif b/sn_computer/html/image/forum.gif new file mode 100644 index 0000000..c4937ae Binary files /dev/null and b/sn_computer/html/image/forum.gif differ diff --git a/sn_computer/html/image/forum_60.gif b/sn_computer/html/image/forum_60.gif new file mode 100644 index 0000000..9b1130e Binary files /dev/null and b/sn_computer/html/image/forum_60.gif differ diff --git a/sn_computer/html/image/forum_lesen.gif b/sn_computer/html/image/forum_lesen.gif new file mode 100644 index 0000000..639eb15 Binary files /dev/null and b/sn_computer/html/image/forum_lesen.gif differ diff --git a/sn_computer/html/image/fragestellen_bg.gif b/sn_computer/html/image/fragestellen_bg.gif new file mode 100644 index 0000000..72f92ef Binary files /dev/null and b/sn_computer/html/image/fragestellen_bg.gif differ diff --git a/sn_computer/html/image/g.gif b/sn_computer/html/image/g.gif new file mode 100644 index 0000000..5250757 Binary files /dev/null and b/sn_computer/html/image/g.gif differ diff --git a/sn_computer/html/image/g_a.gif b/sn_computer/html/image/g_a.gif new file mode 100644 index 0000000..ed86741 Binary files /dev/null and b/sn_computer/html/image/g_a.gif differ diff --git a/sn_computer/html/image/g_bg.gif b/sn_computer/html/image/g_bg.gif new file mode 100644 index 0000000..3fb558a Binary files /dev/null and b/sn_computer/html/image/g_bg.gif differ diff --git a/sn_computer/html/image/g_bg_o.gif b/sn_computer/html/image/g_bg_o.gif new file mode 100644 index 0000000..5ce164c Binary files /dev/null and b/sn_computer/html/image/g_bg_o.gif differ diff --git a/sn_computer/html/image/gaestebuchspam.gif b/sn_computer/html/image/gaestebuchspam.gif new file mode 100644 index 0000000..3399146 Binary files /dev/null and b/sn_computer/html/image/gaestebuchspam.gif differ diff --git a/sn_computer/html/image/games.gif b/sn_computer/html/image/games.gif new file mode 100644 index 0000000..59b896e Binary files /dev/null and b/sn_computer/html/image/games.gif differ diff --git a/sn_computer/html/image/gewinnspiel.jpg b/sn_computer/html/image/gewinnspiel.jpg new file mode 100644 index 0000000..3d72dba Binary files /dev/null and b/sn_computer/html/image/gewinnspiel.jpg differ diff --git a/sn_computer/html/image/go.gif b/sn_computer/html/image/go.gif new file mode 100644 index 0000000..65507c7 Binary files /dev/null and b/sn_computer/html/image/go.gif differ diff --git a/sn_computer/html/image/grin.gif b/sn_computer/html/image/grin.gif new file mode 100644 index 0000000..742a549 Binary files /dev/null and b/sn_computer/html/image/grin.gif differ diff --git a/sn_computer/html/image/h.gif b/sn_computer/html/image/h.gif new file mode 100644 index 0000000..b456416 Binary files /dev/null and b/sn_computer/html/image/h.gif differ diff --git a/sn_computer/html/image/h_a.gif b/sn_computer/html/image/h_a.gif new file mode 100644 index 0000000..40533cc Binary files /dev/null and b/sn_computer/html/image/h_a.gif differ diff --git a/sn_computer/html/image/halfstone.jpg b/sn_computer/html/image/halfstone.jpg new file mode 100644 index 0000000..240a657 Binary files /dev/null and b/sn_computer/html/image/halfstone.jpg differ diff --git a/sn_computer/html/image/hilfe.gif b/sn_computer/html/image/hilfe.gif new file mode 100644 index 0000000..87c1d08 Binary files /dev/null and b/sn_computer/html/image/hilfe.gif differ diff --git a/sn_computer/html/image/hilfe_60.gif b/sn_computer/html/image/hilfe_60.gif new file mode 100644 index 0000000..7632df0 Binary files /dev/null and b/sn_computer/html/image/hilfe_60.gif differ diff --git a/sn_computer/html/image/home.gif b/sn_computer/html/image/home.gif new file mode 100644 index 0000000..c0f827e Binary files /dev/null and b/sn_computer/html/image/home.gif differ diff --git a/sn_computer/html/image/home_60.gif b/sn_computer/html/image/home_60.gif new file mode 100644 index 0000000..44b58a8 Binary files /dev/null and b/sn_computer/html/image/home_60.gif differ diff --git a/sn_computer/html/image/huh.gif b/sn_computer/html/image/huh.gif new file mode 100644 index 0000000..98b503f Binary files /dev/null and b/sn_computer/html/image/huh.gif differ diff --git a/sn_computer/html/image/i.gif b/sn_computer/html/image/i.gif new file mode 100644 index 0000000..0d997a6 Binary files /dev/null and b/sn_computer/html/image/i.gif differ diff --git a/sn_computer/html/image/i_a.gif b/sn_computer/html/image/i_a.gif new file mode 100644 index 0000000..793cb85 Binary files /dev/null and b/sn_computer/html/image/i_a.gif differ diff --git a/sn_computer/html/image/image.gif b/sn_computer/html/image/image.gif new file mode 100644 index 0000000..f82a7fc Binary files /dev/null and b/sn_computer/html/image/image.gif differ diff --git a/sn_computer/html/image/impressum.gif b/sn_computer/html/image/impressum.gif new file mode 100644 index 0000000..3fc254e Binary files /dev/null and b/sn_computer/html/image/impressum.gif differ diff --git a/sn_computer/html/image/j.gif b/sn_computer/html/image/j.gif new file mode 100644 index 0000000..ade9839 Binary files /dev/null and b/sn_computer/html/image/j.gif differ diff --git a/sn_computer/html/image/j_a.gif b/sn_computer/html/image/j_a.gif new file mode 100644 index 0000000..0c69138 Binary files /dev/null and b/sn_computer/html/image/j_a.gif differ diff --git a/sn_computer/html/image/k.gif b/sn_computer/html/image/k.gif new file mode 100644 index 0000000..89d93f2 Binary files /dev/null and b/sn_computer/html/image/k.gif differ diff --git a/sn_computer/html/image/k_a.gif b/sn_computer/html/image/k_a.gif new file mode 100644 index 0000000..cd2d0c9 Binary files /dev/null and b/sn_computer/html/image/k_a.gif differ diff --git a/sn_computer/html/image/kill.gif b/sn_computer/html/image/kill.gif new file mode 100644 index 0000000..ef18b4a Binary files /dev/null and b/sn_computer/html/image/kill.gif differ diff --git a/sn_computer/html/image/kiss.gif b/sn_computer/html/image/kiss.gif new file mode 100644 index 0000000..dea8c73 Binary files /dev/null and b/sn_computer/html/image/kiss.gif differ diff --git a/sn_computer/html/image/klotz0.gif b/sn_computer/html/image/klotz0.gif new file mode 100644 index 0000000..b6bdd8c Binary files /dev/null and b/sn_computer/html/image/klotz0.gif differ diff --git a/sn_computer/html/image/klotz1.gif b/sn_computer/html/image/klotz1.gif new file mode 100644 index 0000000..0b7f622 Binary files /dev/null and b/sn_computer/html/image/klotz1.gif differ diff --git a/sn_computer/html/image/klotz2.gif b/sn_computer/html/image/klotz2.gif new file mode 100644 index 0000000..b6bdd8c Binary files /dev/null and b/sn_computer/html/image/klotz2.gif differ diff --git a/sn_computer/html/image/kochen.gif b/sn_computer/html/image/kochen.gif new file mode 100644 index 0000000..0c38687 Binary files /dev/null and b/sn_computer/html/image/kochen.gif differ diff --git a/sn_computer/html/image/l.gif b/sn_computer/html/image/l.gif new file mode 100644 index 0000000..28dcece Binary files /dev/null and b/sn_computer/html/image/l.gif differ diff --git a/sn_computer/html/image/l_a.gif b/sn_computer/html/image/l_a.gif new file mode 100644 index 0000000..cd85667 Binary files /dev/null and b/sn_computer/html/image/l_a.gif differ diff --git a/sn_computer/html/image/leer.gif b/sn_computer/html/image/leer.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/sn_computer/html/image/leer.gif differ diff --git a/sn_computer/html/image/li.gif b/sn_computer/html/image/li.gif new file mode 100644 index 0000000..9befa31 Binary files /dev/null and b/sn_computer/html/image/li.gif differ diff --git a/sn_computer/html/image/linie480.gif b/sn_computer/html/image/linie480.gif new file mode 100644 index 0000000..96d8f18 Binary files /dev/null and b/sn_computer/html/image/linie480.gif differ diff --git a/sn_computer/html/image/linie_senkrecht250.gif b/sn_computer/html/image/linie_senkrecht250.gif new file mode 100644 index 0000000..3d6e482 Binary files /dev/null and b/sn_computer/html/image/linie_senkrecht250.gif differ diff --git a/sn_computer/html/image/links.gif b/sn_computer/html/image/links.gif new file mode 100644 index 0000000..286ee24 Binary files /dev/null and b/sn_computer/html/image/links.gif differ diff --git a/sn_computer/html/image/lipsrsealed.gif b/sn_computer/html/image/lipsrsealed.gif new file mode 100644 index 0000000..bae8adb Binary files /dev/null and b/sn_computer/html/image/lipsrsealed.gif differ diff --git a/sn_computer/html/image/loeschen-ip.gif b/sn_computer/html/image/loeschen-ip.gif new file mode 100644 index 0000000..ad9dec1 Binary files /dev/null and b/sn_computer/html/image/loeschen-ip.gif differ diff --git a/sn_computer/html/image/logo.jpg b/sn_computer/html/image/logo.jpg new file mode 100644 index 0000000..7d62f51 Binary files /dev/null and b/sn_computer/html/image/logo.jpg differ diff --git a/sn_computer/html/image/logo100.gif b/sn_computer/html/image/logo100.gif new file mode 100644 index 0000000..7d4be30 Binary files /dev/null and b/sn_computer/html/image/logo100.gif differ diff --git a/sn_computer/html/image/logo2.gif b/sn_computer/html/image/logo2.gif new file mode 100644 index 0000000..4a4447f Binary files /dev/null and b/sn_computer/html/image/logo2.gif differ diff --git a/sn_computer/html/image/logo3.gif b/sn_computer/html/image/logo3.gif new file mode 100644 index 0000000..31a7819 Binary files /dev/null and b/sn_computer/html/image/logo3.gif differ diff --git a/sn_computer/html/image/logo9b1.jpg b/sn_computer/html/image/logo9b1.jpg new file mode 100644 index 0000000..756d772 Binary files /dev/null and b/sn_computer/html/image/logo9b1.jpg differ diff --git a/sn_computer/html/image/logo_games.gif b/sn_computer/html/image/logo_games.gif new file mode 100644 index 0000000..6f7fcf4 Binary files /dev/null and b/sn_computer/html/image/logo_games.gif differ diff --git a/sn_computer/html/image/logo_grau.jpg b/sn_computer/html/image/logo_grau.jpg new file mode 100644 index 0000000..2323349 Binary files /dev/null and b/sn_computer/html/image/logo_grau.jpg differ diff --git a/sn_computer/html/image/logo_grau1.jpg b/sn_computer/html/image/logo_grau1.jpg new file mode 100644 index 0000000..6bcd719 Binary files /dev/null and b/sn_computer/html/image/logo_grau1.jpg differ diff --git a/sn_computer/html/image/m.gif b/sn_computer/html/image/m.gif new file mode 100644 index 0000000..64391bb Binary files /dev/null and b/sn_computer/html/image/m.gif differ diff --git a/sn_computer/html/image/m_a.gif b/sn_computer/html/image/m_a.gif new file mode 100644 index 0000000..cccb71e Binary files /dev/null and b/sn_computer/html/image/m_a.gif differ diff --git a/sn_computer/html/image/magazin.gif b/sn_computer/html/image/magazin.gif new file mode 100644 index 0000000..44ffaae Binary files /dev/null and b/sn_computer/html/image/magazin.gif differ diff --git a/sn_computer/html/image/magazin_60.gif b/sn_computer/html/image/magazin_60.gif new file mode 100644 index 0000000..a3e7d72 Binary files /dev/null and b/sn_computer/html/image/magazin_60.gif differ diff --git a/sn_computer/html/image/mediacenter_470.gif b/sn_computer/html/image/mediacenter_470.gif new file mode 100644 index 0000000..6c1d872 Binary files /dev/null and b/sn_computer/html/image/mediacenter_470.gif differ diff --git a/sn_computer/html/image/meineantworten.gif b/sn_computer/html/image/meineantworten.gif new file mode 100644 index 0000000..6a7b6de Binary files /dev/null and b/sn_computer/html/image/meineantworten.gif differ diff --git a/sn_computer/html/image/meinefragen.gif b/sn_computer/html/image/meinefragen.gif new file mode 100644 index 0000000..e3c7d01 Binary files /dev/null and b/sn_computer/html/image/meinefragen.gif differ diff --git a/sn_computer/html/image/member.gif b/sn_computer/html/image/member.gif new file mode 100644 index 0000000..3772c3f Binary files /dev/null and b/sn_computer/html/image/member.gif differ diff --git a/sn_computer/html/image/member_60.gif b/sn_computer/html/image/member_60.gif new file mode 100644 index 0000000..4d9a5e3 Binary files /dev/null and b/sn_computer/html/image/member_60.gif differ diff --git a/sn_computer/html/image/missbrauch.gif b/sn_computer/html/image/missbrauch.gif new file mode 100644 index 0000000..dafd1ee Binary files /dev/null and b/sn_computer/html/image/missbrauch.gif differ diff --git a/sn_computer/html/image/moderator_grey.gif b/sn_computer/html/image/moderator_grey.gif new file mode 100644 index 0000000..dafd1ee Binary files /dev/null and b/sn_computer/html/image/moderator_grey.gif differ diff --git a/sn_computer/html/image/n.gif b/sn_computer/html/image/n.gif new file mode 100644 index 0000000..57a30eb Binary files /dev/null and b/sn_computer/html/image/n.gif differ diff --git a/sn_computer/html/image/n_a.gif b/sn_computer/html/image/n_a.gif new file mode 100644 index 0000000..0694263 Binary files /dev/null and b/sn_computer/html/image/n_a.gif differ diff --git a/sn_computer/html/image/naechster_beitrag.gif b/sn_computer/html/image/naechster_beitrag.gif new file mode 100644 index 0000000..db29a7e Binary files /dev/null and b/sn_computer/html/image/naechster_beitrag.gif differ diff --git a/sn_computer/html/image/news.gif b/sn_computer/html/image/news.gif new file mode 100644 index 0000000..bc3edf5 Binary files /dev/null and b/sn_computer/html/image/news.gif differ diff --git a/sn_computer/html/image/news0.gif b/sn_computer/html/image/news0.gif new file mode 100644 index 0000000..be59b75 Binary files /dev/null and b/sn_computer/html/image/news0.gif differ diff --git a/sn_computer/html/image/news2.gif b/sn_computer/html/image/news2.gif new file mode 100644 index 0000000..74ce470 Binary files /dev/null and b/sn_computer/html/image/news2.gif differ diff --git a/sn_computer/html/image/news3.gif b/sn_computer/html/image/news3.gif new file mode 100644 index 0000000..b5ebeb0 Binary files /dev/null and b/sn_computer/html/image/news3.gif differ diff --git a/sn_computer/html/image/news_60.gif b/sn_computer/html/image/news_60.gif new file mode 100644 index 0000000..e5e27d4 Binary files /dev/null and b/sn_computer/html/image/news_60.gif differ diff --git a/sn_computer/html/image/nomail.gif b/sn_computer/html/image/nomail.gif new file mode 100644 index 0000000..4eca3e4 Binary files /dev/null and b/sn_computer/html/image/nomail.gif differ diff --git a/sn_computer/html/image/normal.gif b/sn_computer/html/image/normal.gif new file mode 100644 index 0000000..731d09d Binary files /dev/null and b/sn_computer/html/image/normal.gif differ diff --git a/sn_computer/html/image/o.gif b/sn_computer/html/image/o.gif new file mode 100644 index 0000000..14e417e Binary files /dev/null and b/sn_computer/html/image/o.gif differ diff --git a/sn_computer/html/image/o_a.gif b/sn_computer/html/image/o_a.gif new file mode 100644 index 0000000..6f3c8d6 Binary files /dev/null and b/sn_computer/html/image/o_a.gif differ diff --git a/sn_computer/html/image/p.gif b/sn_computer/html/image/p.gif new file mode 100644 index 0000000..51f1244 Binary files /dev/null and b/sn_computer/html/image/p.gif differ diff --git a/sn_computer/html/image/p_a.gif b/sn_computer/html/image/p_a.gif new file mode 100644 index 0000000..6bc427d Binary files /dev/null and b/sn_computer/html/image/p_a.gif differ diff --git a/sn_computer/html/image/pagerhelpadressbuchsel.gif b/sn_computer/html/image/pagerhelpadressbuchsel.gif new file mode 100644 index 0000000..7be10e1 Binary files /dev/null and b/sn_computer/html/image/pagerhelpadressbuchsel.gif differ diff --git a/sn_computer/html/image/pagerhelpausgangleer.gif b/sn_computer/html/image/pagerhelpausgangleer.gif new file mode 100644 index 0000000..0ec7e71 Binary files /dev/null and b/sn_computer/html/image/pagerhelpausgangleer.gif differ diff --git a/sn_computer/html/image/pagerhelpausgangmail.gif b/sn_computer/html/image/pagerhelpausgangmail.gif new file mode 100644 index 0000000..fca106f Binary files /dev/null and b/sn_computer/html/image/pagerhelpausgangmail.gif differ diff --git a/sn_computer/html/image/pagerhelpeingangleer.gif b/sn_computer/html/image/pagerhelpeingangleer.gif new file mode 100644 index 0000000..dcf9d48 Binary files /dev/null and b/sn_computer/html/image/pagerhelpeingangleer.gif differ diff --git a/sn_computer/html/image/pagerhelpeingangmail.gif b/sn_computer/html/image/pagerhelpeingangmail.gif new file mode 100644 index 0000000..92c49b5 Binary files /dev/null and b/sn_computer/html/image/pagerhelpeingangmail.gif differ diff --git a/sn_computer/html/image/pagerhelpeinstellungen.gif b/sn_computer/html/image/pagerhelpeinstellungen.gif new file mode 100644 index 0000000..d9d85d1 Binary files /dev/null and b/sn_computer/html/image/pagerhelpeinstellungen.gif differ diff --git a/sn_computer/html/image/pagerhelpgeschrieben.gif b/sn_computer/html/image/pagerhelpgeschrieben.gif new file mode 100644 index 0000000..e70618b Binary files /dev/null and b/sn_computer/html/image/pagerhelpgeschrieben.gif differ diff --git a/sn_computer/html/image/pagerhelpmenu2.gif b/sn_computer/html/image/pagerhelpmenu2.gif new file mode 100644 index 0000000..19f95db Binary files /dev/null and b/sn_computer/html/image/pagerhelpmenu2.gif differ diff --git a/sn_computer/html/image/pagerhelpnachricht.gif b/sn_computer/html/image/pagerhelpnachricht.gif new file mode 100644 index 0000000..a13b792 Binary files /dev/null and b/sn_computer/html/image/pagerhelpnachricht.gif differ diff --git a/sn_computer/html/image/pagerhelpschreiben.gif b/sn_computer/html/image/pagerhelpschreiben.gif new file mode 100644 index 0000000..5a52509 Binary files /dev/null and b/sn_computer/html/image/pagerhelpschreiben.gif differ diff --git a/sn_computer/html/image/pass.gif b/sn_computer/html/image/pass.gif new file mode 100644 index 0000000..d3e4bd8 Binary files /dev/null and b/sn_computer/html/image/pass.gif differ diff --git a/sn_computer/html/image/pfeil.gif b/sn_computer/html/image/pfeil.gif new file mode 100644 index 0000000..c3069fe Binary files /dev/null and b/sn_computer/html/image/pfeil.gif differ diff --git a/sn_computer/html/image/pfeil1.gif b/sn_computer/html/image/pfeil1.gif new file mode 100644 index 0000000..758419a Binary files /dev/null and b/sn_computer/html/image/pfeil1.gif differ diff --git a/sn_computer/html/image/pixel.gif b/sn_computer/html/image/pixel.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/sn_computer/html/image/pixel.gif differ diff --git a/sn_computer/html/image/point.gif b/sn_computer/html/image/point.gif new file mode 100644 index 0000000..d5f8506 Binary files /dev/null and b/sn_computer/html/image/point.gif differ diff --git a/sn_computer/html/image/profisuche.gif b/sn_computer/html/image/profisuche.gif new file mode 100644 index 0000000..862e8fd Binary files /dev/null and b/sn_computer/html/image/profisuche.gif differ diff --git a/sn_computer/html/image/q.gif b/sn_computer/html/image/q.gif new file mode 100644 index 0000000..b09ec4a Binary files /dev/null and b/sn_computer/html/image/q.gif differ diff --git a/sn_computer/html/image/q_a.gif b/sn_computer/html/image/q_a.gif new file mode 100644 index 0000000..4109423 Binary files /dev/null and b/sn_computer/html/image/q_a.gif differ diff --git a/sn_computer/html/image/r.gif b/sn_computer/html/image/r.gif new file mode 100644 index 0000000..2506ee7 Binary files /dev/null and b/sn_computer/html/image/r.gif differ diff --git a/sn_computer/html/image/r_a.gif b/sn_computer/html/image/r_a.gif new file mode 100644 index 0000000..98a1bb5 Binary files /dev/null and b/sn_computer/html/image/r_a.gif differ diff --git a/sn_computer/html/image/rechts.gif b/sn_computer/html/image/rechts.gif new file mode 100644 index 0000000..c873298 Binary files /dev/null and b/sn_computer/html/image/rechts.gif differ diff --git a/sn_computer/html/image/reload.png b/sn_computer/html/image/reload.png new file mode 100644 index 0000000..5c6a26d Binary files /dev/null and b/sn_computer/html/image/reload.png differ diff --git a/sn_computer/html/image/rightarrow.png b/sn_computer/html/image/rightarrow.png new file mode 100644 index 0000000..29585b0 Binary files /dev/null and b/sn_computer/html/image/rightarrow.png differ diff --git a/sn_computer/html/image/rolleyes.gif b/sn_computer/html/image/rolleyes.gif new file mode 100644 index 0000000..9a4df7b Binary files /dev/null and b/sn_computer/html/image/rolleyes.gif differ diff --git a/sn_computer/html/image/roundedbox_lo.gif b/sn_computer/html/image/roundedbox_lo.gif new file mode 100644 index 0000000..bf27434 Binary files /dev/null and b/sn_computer/html/image/roundedbox_lo.gif differ diff --git a/sn_computer/html/image/roundedbox_lu.gif b/sn_computer/html/image/roundedbox_lu.gif new file mode 100644 index 0000000..32a7d7f Binary files /dev/null and b/sn_computer/html/image/roundedbox_lu.gif differ diff --git a/sn_computer/html/image/roundedbox_ro.gif b/sn_computer/html/image/roundedbox_ro.gif new file mode 100644 index 0000000..5116d5e Binary files /dev/null and b/sn_computer/html/image/roundedbox_ro.gif differ diff --git a/sn_computer/html/image/roundedbox_ru.gif b/sn_computer/html/image/roundedbox_ru.gif new file mode 100644 index 0000000..16c8407 Binary files /dev/null and b/sn_computer/html/image/roundedbox_ru.gif differ diff --git a/sn_computer/html/image/s.gif b/sn_computer/html/image/s.gif new file mode 100644 index 0000000..562a9bb Binary files /dev/null and b/sn_computer/html/image/s.gif differ diff --git a/sn_computer/html/image/s_a.gif b/sn_computer/html/image/s_a.gif new file mode 100644 index 0000000..a380135 Binary files /dev/null and b/sn_computer/html/image/s_a.gif differ diff --git a/sn_computer/html/image/sad.gif b/sn_computer/html/image/sad.gif new file mode 100644 index 0000000..4c1d9b5 Binary files /dev/null and b/sn_computer/html/image/sad.gif differ diff --git a/sn_computer/html/image/sale.gif b/sn_computer/html/image/sale.gif new file mode 100644 index 0000000..f74f496 Binary files /dev/null and b/sn_computer/html/image/sale.gif differ diff --git a/sn_computer/html/image/screen.gif b/sn_computer/html/image/screen.gif new file mode 100644 index 0000000..8f6abcf Binary files /dev/null and b/sn_computer/html/image/screen.gif differ diff --git a/sn_computer/html/image/send1.gif b/sn_computer/html/image/send1.gif new file mode 100644 index 0000000..2feadc8 Binary files /dev/null and b/sn_computer/html/image/send1.gif differ diff --git a/sn_computer/html/image/send2.gif b/sn_computer/html/image/send2.gif new file mode 100644 index 0000000..a47106a Binary files /dev/null and b/sn_computer/html/image/send2.gif differ diff --git a/sn_computer/html/image/shocked.gif b/sn_computer/html/image/shocked.gif new file mode 100644 index 0000000..3f75582 Binary files /dev/null and b/sn_computer/html/image/shocked.gif differ diff --git a/sn_computer/html/image/smile.gif b/sn_computer/html/image/smile.gif new file mode 100644 index 0000000..faaed06 Binary files /dev/null and b/sn_computer/html/image/smile.gif differ diff --git a/sn_computer/html/image/smiley.gif b/sn_computer/html/image/smiley.gif new file mode 100644 index 0000000..af4bd45 Binary files /dev/null and b/sn_computer/html/image/smiley.gif differ diff --git a/sn_computer/html/image/sn_main.css b/sn_computer/html/image/sn_main.css new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/image/spacer.gif b/sn_computer/html/image/spacer.gif new file mode 100644 index 0000000..c95709f Binary files /dev/null and b/sn_computer/html/image/spacer.gif differ diff --git a/sn_computer/html/image/stern.gif b/sn_computer/html/image/stern.gif new file mode 100644 index 0000000..e30187d Binary files /dev/null and b/sn_computer/html/image/stern.gif differ diff --git a/sn_computer/html/image/suchbox_guest.gif b/sn_computer/html/image/suchbox_guest.gif new file mode 100644 index 0000000..74e00b0 Binary files /dev/null and b/sn_computer/html/image/suchbox_guest.gif differ diff --git a/sn_computer/html/image/suchbox_member.gif b/sn_computer/html/image/suchbox_member.gif new file mode 100644 index 0000000..fb53579 Binary files /dev/null and b/sn_computer/html/image/suchbox_member.gif differ diff --git a/sn_computer/html/image/suche.gif b/sn_computer/html/image/suche.gif new file mode 100644 index 0000000..5875f4d Binary files /dev/null and b/sn_computer/html/image/suche.gif differ diff --git a/sn_computer/html/image/sym1.png b/sn_computer/html/image/sym1.png new file mode 100644 index 0000000..4a3e761 Binary files /dev/null and b/sn_computer/html/image/sym1.png differ diff --git a/sn_computer/html/image/sym2.png b/sn_computer/html/image/sym2.png new file mode 100644 index 0000000..e5f9601 Binary files /dev/null and b/sn_computer/html/image/sym2.png differ diff --git a/sn_computer/html/image/t.gif b/sn_computer/html/image/t.gif new file mode 100644 index 0000000..400280a Binary files /dev/null and b/sn_computer/html/image/t.gif differ diff --git a/sn_computer/html/image/t_a.gif b/sn_computer/html/image/t_a.gif new file mode 100644 index 0000000..9450568 Binary files /dev/null and b/sn_computer/html/image/t_a.gif differ diff --git a/sn_computer/html/image/tasse.gif b/sn_computer/html/image/tasse.gif new file mode 100644 index 0000000..eb4a122 Binary files /dev/null and b/sn_computer/html/image/tasse.gif differ diff --git a/sn_computer/html/image/tb_event_head1.gif b/sn_computer/html/image/tb_event_head1.gif new file mode 100644 index 0000000..98079c9 Binary files /dev/null and b/sn_computer/html/image/tb_event_head1.gif differ diff --git a/sn_computer/html/image/tb_event_head2.gif b/sn_computer/html/image/tb_event_head2.gif new file mode 100644 index 0000000..fb36257 Binary files /dev/null and b/sn_computer/html/image/tb_event_head2.gif differ diff --git a/sn_computer/html/image/tongue.gif b/sn_computer/html/image/tongue.gif new file mode 100644 index 0000000..afa61cf Binary files /dev/null and b/sn_computer/html/image/tongue.gif differ diff --git a/sn_computer/html/image/tool_name.gif b/sn_computer/html/image/tool_name.gif new file mode 100644 index 0000000..4985750 Binary files /dev/null and b/sn_computer/html/image/tool_name.gif differ diff --git a/sn_computer/html/image/tooltips.gif b/sn_computer/html/image/tooltips.gif new file mode 100644 index 0000000..5fa62fe Binary files /dev/null and b/sn_computer/html/image/tooltips.gif differ diff --git a/sn_computer/html/image/topnav_bg.jpg b/sn_computer/html/image/topnav_bg.jpg new file mode 100644 index 0000000..ae399aa Binary files /dev/null and b/sn_computer/html/image/topnav_bg.jpg differ diff --git a/sn_computer/html/image/topnav_bg1.jpg b/sn_computer/html/image/topnav_bg1.jpg new file mode 100644 index 0000000..49b08cd Binary files /dev/null and b/sn_computer/html/image/topnav_bg1.jpg differ diff --git a/sn_computer/html/image/topnav_bg_a.jpg b/sn_computer/html/image/topnav_bg_a.jpg new file mode 100644 index 0000000..c43e2d4 Binary files /dev/null and b/sn_computer/html/image/topnav_bg_a.jpg differ diff --git a/sn_computer/html/image/treiber.gif b/sn_computer/html/image/treiber.gif new file mode 100644 index 0000000..bee9a6d Binary files /dev/null and b/sn_computer/html/image/treiber.gif differ diff --git a/sn_computer/html/image/treiber1.gif b/sn_computer/html/image/treiber1.gif new file mode 100644 index 0000000..b73972d Binary files /dev/null and b/sn_computer/html/image/treiber1.gif differ diff --git a/sn_computer/html/image/treiber_60.gif b/sn_computer/html/image/treiber_60.gif new file mode 100644 index 0000000..e2b90d8 Binary files /dev/null and b/sn_computer/html/image/treiber_60.gif differ diff --git a/sn_computer/html/image/tricks.gif b/sn_computer/html/image/tricks.gif new file mode 100644 index 0000000..301e729 Binary files /dev/null and b/sn_computer/html/image/tricks.gif differ diff --git a/sn_computer/html/image/u.gif b/sn_computer/html/image/u.gif new file mode 100644 index 0000000..a9ceef2 Binary files /dev/null and b/sn_computer/html/image/u.gif differ diff --git a/sn_computer/html/image/u1.gif b/sn_computer/html/image/u1.gif new file mode 100644 index 0000000..9a01bb8 Binary files /dev/null and b/sn_computer/html/image/u1.gif differ diff --git a/sn_computer/html/image/u2.gif b/sn_computer/html/image/u2.gif new file mode 100644 index 0000000..bb0d753 Binary files /dev/null and b/sn_computer/html/image/u2.gif differ diff --git a/sn_computer/html/image/u3.gif b/sn_computer/html/image/u3.gif new file mode 100644 index 0000000..702450a Binary files /dev/null and b/sn_computer/html/image/u3.gif differ diff --git a/sn_computer/html/image/u_a.gif b/sn_computer/html/image/u_a.gif new file mode 100644 index 0000000..681f8ad Binary files /dev/null and b/sn_computer/html/image/u_a.gif differ diff --git a/sn_computer/html/image/undecided.gif b/sn_computer/html/image/undecided.gif new file mode 100644 index 0000000..4dee584 Binary files /dev/null and b/sn_computer/html/image/undecided.gif differ diff --git a/sn_computer/html/image/up.png b/sn_computer/html/image/up.png new file mode 100644 index 0000000..adb6cf6 Binary files /dev/null and b/sn_computer/html/image/up.png differ diff --git a/sn_computer/html/image/users.gif b/sn_computer/html/image/users.gif new file mode 100644 index 0000000..fa0a0ba Binary files /dev/null and b/sn_computer/html/image/users.gif differ diff --git a/sn_computer/html/image/v.gif b/sn_computer/html/image/v.gif new file mode 100644 index 0000000..f47bda4 Binary files /dev/null and b/sn_computer/html/image/v.gif differ diff --git a/sn_computer/html/image/v_a.gif b/sn_computer/html/image/v_a.gif new file mode 100644 index 0000000..d24e8aa Binary files /dev/null and b/sn_computer/html/image/v_a.gif differ diff --git a/sn_computer/html/image/view_text.png b/sn_computer/html/image/view_text.png new file mode 100644 index 0000000..6ed1c59 Binary files /dev/null and b/sn_computer/html/image/view_text.png differ diff --git a/sn_computer/html/image/vorheriger_beitrag.gif b/sn_computer/html/image/vorheriger_beitrag.gif new file mode 100644 index 0000000..8030679 Binary files /dev/null and b/sn_computer/html/image/vorheriger_beitrag.gif differ diff --git a/sn_computer/html/image/votebalken_e.gif b/sn_computer/html/image/votebalken_e.gif new file mode 100644 index 0000000..1f05b58 Binary files /dev/null and b/sn_computer/html/image/votebalken_e.gif differ diff --git a/sn_computer/html/image/votebalken_m.gif b/sn_computer/html/image/votebalken_m.gif new file mode 100644 index 0000000..116c422 Binary files /dev/null and b/sn_computer/html/image/votebalken_m.gif differ diff --git a/sn_computer/html/image/w.gif b/sn_computer/html/image/w.gif new file mode 100644 index 0000000..9bbdcd8 Binary files /dev/null and b/sn_computer/html/image/w.gif differ diff --git a/sn_computer/html/image/w_a.gif b/sn_computer/html/image/w_a.gif new file mode 100644 index 0000000..77d6270 Binary files /dev/null and b/sn_computer/html/image/w_a.gif differ diff --git a/sn_computer/html/image/webchat_logo.gif b/sn_computer/html/image/webchat_logo.gif new file mode 100644 index 0000000..252371c Binary files /dev/null and b/sn_computer/html/image/webchat_logo.gif differ diff --git a/sn_computer/html/image/weitersagen.gif b/sn_computer/html/image/weitersagen.gif new file mode 100644 index 0000000..be5e388 Binary files /dev/null and b/sn_computer/html/image/weitersagen.gif differ diff --git a/sn_computer/html/image/winfuture.gif b/sn_computer/html/image/winfuture.gif new file mode 100644 index 0000000..6bde4bf Binary files /dev/null and b/sn_computer/html/image/winfuture.gif differ diff --git a/sn_computer/html/image/wink.gif b/sn_computer/html/image/wink.gif new file mode 100644 index 0000000..213c7c9 Binary files /dev/null and b/sn_computer/html/image/wink.gif differ diff --git a/sn_computer/html/image/winkel.gif b/sn_computer/html/image/winkel.gif new file mode 100644 index 0000000..aa579bd Binary files /dev/null and b/sn_computer/html/image/winkel.gif differ diff --git a/sn_computer/html/image/x.gif b/sn_computer/html/image/x.gif new file mode 100644 index 0000000..e58d2b6 Binary files /dev/null and b/sn_computer/html/image/x.gif differ diff --git a/sn_computer/html/image/x_a.gif b/sn_computer/html/image/x_a.gif new file mode 100644 index 0000000..5438333 Binary files /dev/null and b/sn_computer/html/image/x_a.gif differ diff --git a/sn_computer/html/image/y.gif b/sn_computer/html/image/y.gif new file mode 100644 index 0000000..cb3c643 Binary files /dev/null and b/sn_computer/html/image/y.gif differ diff --git a/sn_computer/html/image/y_a.gif b/sn_computer/html/image/y_a.gif new file mode 100644 index 0000000..ac33198 Binary files /dev/null and b/sn_computer/html/image/y_a.gif differ diff --git a/sn_computer/html/image/z.gif b/sn_computer/html/image/z.gif new file mode 100644 index 0000000..b38123b Binary files /dev/null and b/sn_computer/html/image/z.gif differ diff --git a/sn_computer/html/image/z_a.gif b/sn_computer/html/image/z_a.gif new file mode 100644 index 0000000..667430e Binary files /dev/null and b/sn_computer/html/image/z_a.gif differ diff --git a/sn_computer/html/images/ana.gif b/sn_computer/html/images/ana.gif new file mode 100644 index 0000000..3daab71 Binary files /dev/null and b/sn_computer/html/images/ana.gif differ diff --git a/sn_computer/html/images/ani.gif b/sn_computer/html/images/ani.gif new file mode 100644 index 0000000..36887cb Binary files /dev/null and b/sn_computer/html/images/ani.gif differ diff --git a/sn_computer/html/images/ani1.gif b/sn_computer/html/images/ani1.gif new file mode 100644 index 0000000..3d41481 Binary files /dev/null and b/sn_computer/html/images/ani1.gif differ diff --git a/sn_computer/html/images/ani_1.gif b/sn_computer/html/images/ani_1.gif new file mode 100644 index 0000000..cc9a843 Binary files /dev/null and b/sn_computer/html/images/ani_1.gif differ diff --git a/sn_computer/html/images/ani_2.gif b/sn_computer/html/images/ani_2.gif new file mode 100644 index 0000000..83bf24b Binary files /dev/null and b/sn_computer/html/images/ani_2.gif differ diff --git a/sn_computer/html/images/ani_3.gif b/sn_computer/html/images/ani_3.gif new file mode 100644 index 0000000..2aa1b01 Binary files /dev/null and b/sn_computer/html/images/ani_3.gif differ diff --git a/sn_computer/html/images/ani_4.gif b/sn_computer/html/images/ani_4.gif new file mode 100644 index 0000000..16f5d97 Binary files /dev/null and b/sn_computer/html/images/ani_4.gif differ diff --git a/sn_computer/html/images/ani_5.gif b/sn_computer/html/images/ani_5.gif new file mode 100644 index 0000000..d5d4469 Binary files /dev/null and b/sn_computer/html/images/ani_5.gif differ diff --git a/sn_computer/html/images/ani_6.gif b/sn_computer/html/images/ani_6.gif new file mode 100644 index 0000000..243480c Binary files /dev/null and b/sn_computer/html/images/ani_6.gif differ diff --git a/sn_computer/html/images/ani_7.gif b/sn_computer/html/images/ani_7.gif new file mode 100644 index 0000000..e0d03b4 Binary files /dev/null and b/sn_computer/html/images/ani_7.gif differ diff --git a/sn_computer/html/images/anitest.gif b/sn_computer/html/images/anitest.gif new file mode 100644 index 0000000..55e20fe Binary files /dev/null and b/sn_computer/html/images/anitest.gif differ diff --git a/sn_computer/html/images/banner1.gif b/sn_computer/html/images/banner1.gif new file mode 100644 index 0000000..1473023 Binary files /dev/null and b/sn_computer/html/images/banner1.gif differ diff --git a/sn_computer/html/images/banner2.gif b/sn_computer/html/images/banner2.gif new file mode 100644 index 0000000..60cabc7 Binary files /dev/null and b/sn_computer/html/images/banner2.gif differ diff --git a/sn_computer/html/images/banner3.gif b/sn_computer/html/images/banner3.gif new file mode 100644 index 0000000..1f63740 Binary files /dev/null and b/sn_computer/html/images/banner3.gif differ diff --git a/sn_computer/html/images/bt_01.gif b/sn_computer/html/images/bt_01.gif new file mode 100644 index 0000000..7510d2e Binary files /dev/null and b/sn_computer/html/images/bt_01.gif differ diff --git a/sn_computer/html/images/curve_bottom.gif b/sn_computer/html/images/curve_bottom.gif new file mode 100644 index 0000000..e853268 Binary files /dev/null and b/sn_computer/html/images/curve_bottom.gif differ diff --git a/sn_computer/html/images/curve_top.gif b/sn_computer/html/images/curve_top.gif new file mode 100644 index 0000000..b95e264 Binary files /dev/null and b/sn_computer/html/images/curve_top.gif differ diff --git a/sn_computer/html/images/doc.gif b/sn_computer/html/images/doc.gif new file mode 100644 index 0000000..6af2946 Binary files /dev/null and b/sn_computer/html/images/doc.gif differ diff --git a/sn_computer/html/images/free.png b/sn_computer/html/images/free.png new file mode 100644 index 0000000..e90abf4 Binary files /dev/null and b/sn_computer/html/images/free.png differ diff --git a/sn_computer/html/images/free2.gif b/sn_computer/html/images/free2.gif new file mode 100644 index 0000000..48385c7 Binary files /dev/null and b/sn_computer/html/images/free2.gif differ diff --git a/sn_computer/html/images/free2.png b/sn_computer/html/images/free2.png new file mode 100644 index 0000000..02ccff0 Binary files /dev/null and b/sn_computer/html/images/free2.png differ diff --git a/sn_computer/html/images/globe.gif b/sn_computer/html/images/globe.gif new file mode 100644 index 0000000..b2aa399 Binary files /dev/null and b/sn_computer/html/images/globe.gif differ diff --git a/sn_computer/html/images/gluecksschwein.jpg b/sn_computer/html/images/gluecksschwein.jpg new file mode 100644 index 0000000..76396a2 Binary files /dev/null and b/sn_computer/html/images/gluecksschwein.jpg differ diff --git a/sn_computer/html/images/icon.gif b/sn_computer/html/images/icon.gif new file mode 100644 index 0000000..b4becf9 Binary files /dev/null and b/sn_computer/html/images/icon.gif differ diff --git a/sn_computer/html/images/join.gif b/sn_computer/html/images/join.gif new file mode 100644 index 0000000..62ac253 Binary files /dev/null and b/sn_computer/html/images/join.gif differ diff --git a/sn_computer/html/images/lebens-check.gif b/sn_computer/html/images/lebens-check.gif new file mode 100644 index 0000000..925b8b5 Binary files /dev/null and b/sn_computer/html/images/lebens-check.gif differ diff --git a/sn_computer/html/images/logo.gif b/sn_computer/html/images/logo.gif new file mode 100644 index 0000000..71fab28 Binary files /dev/null and b/sn_computer/html/images/logo.gif differ diff --git a/sn_computer/html/images/news-img1.gif b/sn_computer/html/images/news-img1.gif new file mode 100644 index 0000000..366e7a3 Binary files /dev/null and b/sn_computer/html/images/news-img1.gif differ diff --git a/sn_computer/html/images/news-img2.gif b/sn_computer/html/images/news-img2.gif new file mode 100644 index 0000000..0816794 Binary files /dev/null and b/sn_computer/html/images/news-img2.gif differ diff --git a/sn_computer/html/images/news-img3.gif b/sn_computer/html/images/news-img3.gif new file mode 100644 index 0000000..2d2e6b1 Binary files /dev/null and b/sn_computer/html/images/news-img3.gif differ diff --git a/sn_computer/html/images/question.gif b/sn_computer/html/images/question.gif new file mode 100644 index 0000000..9b13e4f Binary files /dev/null and b/sn_computer/html/images/question.gif differ diff --git a/sn_computer/html/images/right_bg.gif b/sn_computer/html/images/right_bg.gif new file mode 100644 index 0000000..f76b4e0 Binary files /dev/null and b/sn_computer/html/images/right_bg.gif differ diff --git a/sn_computer/html/images/spacer.gif b/sn_computer/html/images/spacer.gif new file mode 100644 index 0000000..35d42e8 Binary files /dev/null and b/sn_computer/html/images/spacer.gif differ diff --git a/sn_computer/html/images/txtbox_bg.gif b/sn_computer/html/images/txtbox_bg.gif new file mode 100644 index 0000000..ca5bd40 Binary files /dev/null and b/sn_computer/html/images/txtbox_bg.gif differ diff --git a/sn_computer/html/images/ui-bg-pop-cntnt.png b/sn_computer/html/images/ui-bg-pop-cntnt.png new file mode 100644 index 0000000..9e6dd84 Binary files /dev/null and b/sn_computer/html/images/ui-bg-pop-cntnt.png differ diff --git a/sn_computer/html/images/ui-bg-pop.png b/sn_computer/html/images/ui-bg-pop.png new file mode 100644 index 0000000..f23b7b4 Binary files /dev/null and b/sn_computer/html/images/ui-bg-pop.png differ diff --git a/sn_computer/html/images/ui-bg-pop_1.png b/sn_computer/html/images/ui-bg-pop_1.png new file mode 100644 index 0000000..7a4b264 Binary files /dev/null and b/sn_computer/html/images/ui-bg-pop_1.png differ diff --git a/sn_computer/html/images/ui-bg-pop_2.png b/sn_computer/html/images/ui-bg-pop_2.png new file mode 100644 index 0000000..a18eb12 Binary files /dev/null and b/sn_computer/html/images/ui-bg-pop_2.png differ diff --git a/sn_computer/html/images/ui-bg-pop_2_1.png b/sn_computer/html/images/ui-bg-pop_2_1.png new file mode 100644 index 0000000..3c45fae Binary files /dev/null and b/sn_computer/html/images/ui-bg-pop_2_1.png differ diff --git a/sn_computer/html/images/ui-bg-pop_2_2.png b/sn_computer/html/images/ui-bg-pop_2_2.png new file mode 100644 index 0000000..f23b7b4 Binary files /dev/null and b/sn_computer/html/images/ui-bg-pop_2_2.png differ diff --git a/sn_computer/html/images/ui-bg_flat_0_aaaaaa_40x100.png b/sn_computer/html/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 0000000..5b5dab2 Binary files /dev/null and b/sn_computer/html/images/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/sn_computer/html/images/ui-bg_flat_75_ffffff_40x100.png b/sn_computer/html/images/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 0000000..ac8b229 Binary files /dev/null and b/sn_computer/html/images/ui-bg_flat_75_ffffff_40x100.png differ diff --git a/sn_computer/html/images/ui-bg_glass_55_fbf9ee_1x400.png b/sn_computer/html/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 0000000..ad3d634 Binary files /dev/null and b/sn_computer/html/images/ui-bg_glass_55_fbf9ee_1x400.png differ diff --git a/sn_computer/html/images/ui-bg_glass_65_ffffff_1x400.png b/sn_computer/html/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 0000000..42ccba2 Binary files /dev/null and b/sn_computer/html/images/ui-bg_glass_65_ffffff_1x400.png differ diff --git a/sn_computer/html/images/ui-bg_glass_75_dadada_1x400.png b/sn_computer/html/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 0000000..a23baad Binary files /dev/null and b/sn_computer/html/images/ui-bg_glass_75_dadada_1x400.png differ diff --git a/sn_computer/html/images/ui-bg_glass_75_e6e6e6_1x400.png b/sn_computer/html/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 0000000..86c2baa Binary files /dev/null and b/sn_computer/html/images/ui-bg_glass_75_e6e6e6_1x400.png differ diff --git a/sn_computer/html/images/ui-bg_glass_95_fef1ec_1x400.png b/sn_computer/html/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 0000000..4443fdc Binary files /dev/null and b/sn_computer/html/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/sn_computer/html/images/ui-bg_highlight-hard_35_ffed61_1x100-c.png b/sn_computer/html/images/ui-bg_highlight-hard_35_ffed61_1x100-c.png new file mode 100644 index 0000000..9d1b041 Binary files /dev/null and b/sn_computer/html/images/ui-bg_highlight-hard_35_ffed61_1x100-c.png differ diff --git a/sn_computer/html/images/ui-bg_highlight-soft_100_fffcb3_1x100-d.png b/sn_computer/html/images/ui-bg_highlight-soft_100_fffcb3_1x100-d.png new file mode 100644 index 0000000..0b3c402 Binary files /dev/null and b/sn_computer/html/images/ui-bg_highlight-soft_100_fffcb3_1x100-d.png differ diff --git a/sn_computer/html/images/ui-bg_highlight-soft_75_cccccc_1x100-b.png b/sn_computer/html/images/ui-bg_highlight-soft_75_cccccc_1x100-b.png new file mode 100644 index 0000000..7c9fa6c Binary files /dev/null and b/sn_computer/html/images/ui-bg_highlight-soft_75_cccccc_1x100-b.png differ diff --git a/sn_computer/html/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/sn_computer/html/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 0000000..359397a Binary files /dev/null and b/sn_computer/html/images/ui-bg_highlight-soft_75_cccccc_1x100.png differ diff --git a/sn_computer/html/images/ui-bg_highlight-soft_75_ffe45c_1x1-00-a.png b/sn_computer/html/images/ui-bg_highlight-soft_75_ffe45c_1x1-00-a.png new file mode 100644 index 0000000..359397a Binary files /dev/null and b/sn_computer/html/images/ui-bg_highlight-soft_75_ffe45c_1x1-00-a.png differ diff --git a/sn_computer/html/images/ui-icons_222222_256x240.png b/sn_computer/html/images/ui-icons_222222_256x240.png new file mode 100644 index 0000000..41cb97c Binary files /dev/null and b/sn_computer/html/images/ui-icons_222222_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_222222_256x240.png_ui-icons_ef8c08_256x240.png b/sn_computer/html/images/ui-icons_222222_256x240.png_ui-icons_ef8c08_256x240.png new file mode 100644 index 0000000..67560da Binary files /dev/null and b/sn_computer/html/images/ui-icons_222222_256x240.png_ui-icons_ef8c08_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_228ef1_256x240.png b/sn_computer/html/images/ui-icons_228ef1_256x240.png new file mode 100644 index 0000000..7c09067 Binary files /dev/null and b/sn_computer/html/images/ui-icons_228ef1_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_2e83ff_256x240.png b/sn_computer/html/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000..b425c44 Binary files /dev/null and b/sn_computer/html/images/ui-icons_2e83ff_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_454545_256x240.png b/sn_computer/html/images/ui-icons_454545_256x240.png new file mode 100644 index 0000000..e4e3a3c Binary files /dev/null and b/sn_computer/html/images/ui-icons_454545_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_454545_256x240.png_ui-icons_ef981a_256x240.png b/sn_computer/html/images/ui-icons_454545_256x240.png_ui-icons_ef981a_256x240.png new file mode 100644 index 0000000..0cd64a2 Binary files /dev/null and b/sn_computer/html/images/ui-icons_454545_256x240.png_ui-icons_ef981a_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_888888_256x240.png b/sn_computer/html/images/ui-icons_888888_256x240.png new file mode 100644 index 0000000..3d12259 Binary files /dev/null and b/sn_computer/html/images/ui-icons_888888_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_888888_256x240.png_ui-icons_ffd27a_256x240.png b/sn_computer/html/images/ui-icons_888888_256x240.png_ui-icons_ffd27a_256x240.png new file mode 100644 index 0000000..2e5180e Binary files /dev/null and b/sn_computer/html/images/ui-icons_888888_256x240.png_ui-icons_ffd27a_256x240.png differ diff --git a/sn_computer/html/images/ui-icons_cd0a0a_256x240.png b/sn_computer/html/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 0000000..2db88b7 Binary files /dev/null and b/sn_computer/html/images/ui-icons_cd0a0a_256x240.png differ diff --git a/sn_computer/html/images/unfreez.gif b/sn_computer/html/images/unfreez.gif new file mode 100644 index 0000000..6b008ae Binary files /dev/null and b/sn_computer/html/images/unfreez.gif differ diff --git a/sn_computer/html/jquery.flow.1.2.js b/sn_computer/html/jquery.flow.1.2.js new file mode 100644 index 0000000..a8dda08 --- /dev/null +++ b/sn_computer/html/jquery.flow.1.2.js @@ -0,0 +1,137 @@ +/* Copyright (c) 2008 Kean Loong Tan http://www.gimiti.com/kltan + * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * jFlow + * Version: 1.2 (July 7, 2008) + * Requires: jQuery 1.2+ + */ + +(function($) { + + $.fn.jFlow = function(options) { + var opts = $.extend({}, $.fn.jFlow.defaults, options); + var randNum = Math.floor(Math.random()*11); + var jFC = opts.controller; + var jFS = opts.slideWrapper; + var jSel = opts.selectedWrapper; + + var cur = 0; + var maxi = $(jFC).length; + // sliding function + var slide = function (dur, i) { + $(opts.slides).children().css({ + overflow:"hidden" + }); + $(opts.slides + " iframe").hide().addClass("temp_hide"); + $(opts.slides).animate({ + marginLeft: "-" + (i * $(opts.slides).find(":first-child").width() + "px")}, + opts.duration*(dur), + opts.easing, + function(){ + $(opts.slides).children().css({ + overflow:"auto" + }); + $(".temp_hide").show(); + } + ); + + } + $(this).find(jFC).each(function(i){ + $(this).click(function(){ + if ($(opts.slides).is(":not(:animated)")) { + $(jFC).removeClass(jSel); + $(this).addClass(jSel); + var dur = Math.abs(cur-i); + slide(dur,i); + cur = i; + } + }); + }); + + $(opts.slides).before('
    ').appendTo(jFS); + + $(opts.slides).find("div").each(function(){ + $(this).before('
    ').appendTo($(this).prev()); + }); + + //initialize the controller + $(jFC).eq(cur).addClass(jSel); + + var resize = function (x){ + $(jFS).css({ + position:"relative", + width: opts.width, + height: opts.height, + overflow: "hidden" + }); + //opts.slides or #mySlides container + $(opts.slides).css({ + position:"relative", + width: $(jFS).width()*$(jFC).length+"px", + height: $(jFS).height()+"px", + overflow: "hidden" + }); + // jFlowSlideContainer + $(opts.slides).children().css({ + position:"relative", + width: $(jFS).width()+"px", + height: $(jFS).height()+"px", + "float":"left", + overflow:"auto" + }); + + $(opts.slides).css({ + marginLeft: "-" + (cur * $(opts.slides).find(":eq(0)").width() + "px") + }); + } + + // sets initial size + resize(); + + // resets size + $(window).resize(function(){ + resize(); + }); + + $(opts.prev).click(function(){ + if ($(opts.slides).is(":not(:animated)")) { + var dur = 1; + if (cur > 0) + cur--; + else { + cur = maxi -1; + dur = cur; + } + $(jFC).removeClass(jSel); + slide(dur,cur); + $(jFC).eq(cur).addClass(jSel); + } + }); + + $(opts.next).click(function(){ + if ($(opts.slides).is(":not(:animated)")) { + var dur = 1; + if (cur < maxi - 1) + cur++; + else { + cur = 0; + dur = maxi -1; + } + $(jFC).removeClass(jSel); + slide(dur, cur); + $(jFC).eq(cur).addClass(jSel); + } + }); + }; + + $.fn.jFlow.defaults = { + controller: ".jFlowControl", // must be class, use . sign + slideWrapper : "#jFlowSlide", // must be id, use # sign + selectedWrapper: "jFlowSelected", // just pure text, no sign + easing: "swing", + duration: 400, + width: "100%", + prev: ".jFlowPrev", // must be class, use . sign + next: ".jFlowNext" // must be class, use . sign + }; + +})(jQuery); diff --git a/sn_computer/html/jquery.min.js b/sn_computer/html/jquery.min.js new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/jquery.ui.css b/sn_computer/html/jquery.ui.css new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/jquery.ui.js b/sn_computer/html/jquery.ui.js new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/memberimage b/sn_computer/html/memberimage new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/newstat b/sn_computer/html/newstat new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/overlayimage b/sn_computer/html/overlayimage new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/pix/14_128-6.png b/sn_computer/html/pix/14_128-6.png new file mode 100644 index 0000000..bc4587b Binary files /dev/null and b/sn_computer/html/pix/14_128-6.png differ diff --git a/sn_computer/html/pix/a128.png b/sn_computer/html/pix/a128.png new file mode 100644 index 0000000..8ee2f9f Binary files /dev/null and b/sn_computer/html/pix/a128.png differ diff --git a/sn_computer/html/pix/advertising.gif b/sn_computer/html/pix/advertising.gif new file mode 100644 index 0000000..14f7a07 Binary files /dev/null and b/sn_computer/html/pix/advertising.gif differ diff --git a/sn_computer/html/pix/anmelden-btn.gif b/sn_computer/html/pix/anmelden-btn.gif new file mode 100644 index 0000000..e0a8ec9 Binary files /dev/null and b/sn_computer/html/pix/anmelden-btn.gif differ diff --git a/sn_computer/html/pix/benutzerkonto-btn.gif b/sn_computer/html/pix/benutzerkonto-btn.gif new file mode 100644 index 0000000..4d1d40f Binary files /dev/null and b/sn_computer/html/pix/benutzerkonto-btn.gif differ diff --git a/sn_computer/html/pix/bg.gif b/sn_computer/html/pix/bg.gif new file mode 100644 index 0000000..7a59068 Binary files /dev/null and b/sn_computer/html/pix/bg.gif differ diff --git a/sn_computer/html/pix/box1-btm.gif b/sn_computer/html/pix/box1-btm.gif new file mode 100644 index 0000000..d81bcb7 Binary files /dev/null and b/sn_computer/html/pix/box1-btm.gif differ diff --git a/sn_computer/html/pix/box1-mdl.gif b/sn_computer/html/pix/box1-mdl.gif new file mode 100644 index 0000000..73757b7 Binary files /dev/null and b/sn_computer/html/pix/box1-mdl.gif differ diff --git a/sn_computer/html/pix/box1-top.gif b/sn_computer/html/pix/box1-top.gif new file mode 100644 index 0000000..e7100d3 Binary files /dev/null and b/sn_computer/html/pix/box1-top.gif differ diff --git a/sn_computer/html/pix/box2-2-left-btm.gif b/sn_computer/html/pix/box2-2-left-btm.gif new file mode 100644 index 0000000..183249f Binary files /dev/null and b/sn_computer/html/pix/box2-2-left-btm.gif differ diff --git a/sn_computer/html/pix/box2-2-left-mdl.gif b/sn_computer/html/pix/box2-2-left-mdl.gif new file mode 100644 index 0000000..0da10a2 Binary files /dev/null and b/sn_computer/html/pix/box2-2-left-mdl.gif differ diff --git a/sn_computer/html/pix/box2-2-left-top.gif b/sn_computer/html/pix/box2-2-left-top.gif new file mode 100644 index 0000000..dd20502 Binary files /dev/null and b/sn_computer/html/pix/box2-2-left-top.gif differ diff --git a/sn_computer/html/pix/box2-2-right-btm.gif b/sn_computer/html/pix/box2-2-right-btm.gif new file mode 100644 index 0000000..ff6f6d4 Binary files /dev/null and b/sn_computer/html/pix/box2-2-right-btm.gif differ diff --git a/sn_computer/html/pix/box2-2-right-mdl.gif b/sn_computer/html/pix/box2-2-right-mdl.gif new file mode 100644 index 0000000..6093802 Binary files /dev/null and b/sn_computer/html/pix/box2-2-right-mdl.gif differ diff --git a/sn_computer/html/pix/box2-2-right-top.gif b/sn_computer/html/pix/box2-2-right-top.gif new file mode 100644 index 0000000..fbcf9c2 Binary files /dev/null and b/sn_computer/html/pix/box2-2-right-top.gif differ diff --git a/sn_computer/html/pix/box2-left-btm.gif b/sn_computer/html/pix/box2-left-btm.gif new file mode 100644 index 0000000..790ce79 Binary files /dev/null and b/sn_computer/html/pix/box2-left-btm.gif differ diff --git a/sn_computer/html/pix/box2-left-mdl.gif b/sn_computer/html/pix/box2-left-mdl.gif new file mode 100644 index 0000000..258f1a2 Binary files /dev/null and b/sn_computer/html/pix/box2-left-mdl.gif differ diff --git a/sn_computer/html/pix/box2-left-top.gif b/sn_computer/html/pix/box2-left-top.gif new file mode 100644 index 0000000..7de190b Binary files /dev/null and b/sn_computer/html/pix/box2-left-top.gif differ diff --git a/sn_computer/html/pix/box2-right-btm.gif b/sn_computer/html/pix/box2-right-btm.gif new file mode 100644 index 0000000..0400134 Binary files /dev/null and b/sn_computer/html/pix/box2-right-btm.gif differ diff --git a/sn_computer/html/pix/box2-right-mdl.gif b/sn_computer/html/pix/box2-right-mdl.gif new file mode 100644 index 0000000..6e71fcb Binary files /dev/null and b/sn_computer/html/pix/box2-right-mdl.gif differ diff --git a/sn_computer/html/pix/box2-right-top.gif b/sn_computer/html/pix/box2-right-top.gif new file mode 100644 index 0000000..e4b910c Binary files /dev/null and b/sn_computer/html/pix/box2-right-top.gif differ diff --git a/sn_computer/html/pix/box3-center-btm.gif b/sn_computer/html/pix/box3-center-btm.gif new file mode 100644 index 0000000..a58acfa Binary files /dev/null and b/sn_computer/html/pix/box3-center-btm.gif differ diff --git a/sn_computer/html/pix/box3-center-mdl.gif b/sn_computer/html/pix/box3-center-mdl.gif new file mode 100644 index 0000000..13b33db Binary files /dev/null and b/sn_computer/html/pix/box3-center-mdl.gif differ diff --git a/sn_computer/html/pix/box3-center-top.gif b/sn_computer/html/pix/box3-center-top.gif new file mode 100644 index 0000000..1025ef3 Binary files /dev/null and b/sn_computer/html/pix/box3-center-top.gif differ diff --git a/sn_computer/html/pix/box3-left-btm.gif b/sn_computer/html/pix/box3-left-btm.gif new file mode 100644 index 0000000..b876d07 Binary files /dev/null and b/sn_computer/html/pix/box3-left-btm.gif differ diff --git a/sn_computer/html/pix/box3-left-mdl.gif b/sn_computer/html/pix/box3-left-mdl.gif new file mode 100644 index 0000000..4410b44 Binary files /dev/null and b/sn_computer/html/pix/box3-left-mdl.gif differ diff --git a/sn_computer/html/pix/box3-left-top.gif b/sn_computer/html/pix/box3-left-top.gif new file mode 100644 index 0000000..a46aaba Binary files /dev/null and b/sn_computer/html/pix/box3-left-top.gif differ diff --git a/sn_computer/html/pix/box3-right-btm.gif b/sn_computer/html/pix/box3-right-btm.gif new file mode 100644 index 0000000..790ce79 Binary files /dev/null and b/sn_computer/html/pix/box3-right-btm.gif differ diff --git a/sn_computer/html/pix/box3-right-mdl.gif b/sn_computer/html/pix/box3-right-mdl.gif new file mode 100644 index 0000000..258f1a2 Binary files /dev/null and b/sn_computer/html/pix/box3-right-mdl.gif differ diff --git a/sn_computer/html/pix/box3-right-top.gif b/sn_computer/html/pix/box3-right-top.gif new file mode 100644 index 0000000..7de190b Binary files /dev/null and b/sn_computer/html/pix/box3-right-top.gif differ diff --git a/sn_computer/html/pix/btm-img1.gif b/sn_computer/html/pix/btm-img1.gif new file mode 100644 index 0000000..5c4edd3 Binary files /dev/null and b/sn_computer/html/pix/btm-img1.gif differ diff --git a/sn_computer/html/pix/buton1.gif b/sn_computer/html/pix/buton1.gif new file mode 100644 index 0000000..381cc4f Binary files /dev/null and b/sn_computer/html/pix/buton1.gif differ diff --git a/sn_computer/html/pix/buttons.png b/sn_computer/html/pix/buttons.png new file mode 100644 index 0000000..c9f21e8 Binary files /dev/null and b/sn_computer/html/pix/buttons.png differ diff --git a/sn_computer/html/pix/c-ic-1.gif b/sn_computer/html/pix/c-ic-1.gif new file mode 100644 index 0000000..ba450e1 Binary files /dev/null and b/sn_computer/html/pix/c-ic-1.gif differ diff --git a/sn_computer/html/pix/c-ic-2.gif b/sn_computer/html/pix/c-ic-2.gif new file mode 100644 index 0000000..af268b8 Binary files /dev/null and b/sn_computer/html/pix/c-ic-2.gif differ diff --git a/sn_computer/html/pix/c-ic-3.gif b/sn_computer/html/pix/c-ic-3.gif new file mode 100644 index 0000000..bc3aa9e Binary files /dev/null and b/sn_computer/html/pix/c-ic-3.gif differ diff --git a/sn_computer/html/pix/c-ic-4.gif b/sn_computer/html/pix/c-ic-4.gif new file mode 100644 index 0000000..56ba66c Binary files /dev/null and b/sn_computer/html/pix/c-ic-4.gif differ diff --git a/sn_computer/html/pix/c-ic-5.gif b/sn_computer/html/pix/c-ic-5.gif new file mode 100644 index 0000000..8d466bd Binary files /dev/null and b/sn_computer/html/pix/c-ic-5.gif differ diff --git a/sn_computer/html/pix/c-ic-6.gif b/sn_computer/html/pix/c-ic-6.gif new file mode 100644 index 0000000..3c55049 Binary files /dev/null and b/sn_computer/html/pix/c-ic-6.gif differ diff --git a/sn_computer/html/pix/c-ic-7.gif b/sn_computer/html/pix/c-ic-7.gif new file mode 100644 index 0000000..255559e Binary files /dev/null and b/sn_computer/html/pix/c-ic-7.gif differ diff --git a/sn_computer/html/pix/c-ic-8.gif b/sn_computer/html/pix/c-ic-8.gif new file mode 100644 index 0000000..3670b30 Binary files /dev/null and b/sn_computer/html/pix/c-ic-8.gif differ diff --git a/sn_computer/html/pix/calendar.gif b/sn_computer/html/pix/calendar.gif new file mode 100644 index 0000000..d0abaa7 Binary files /dev/null and b/sn_computer/html/pix/calendar.gif differ diff --git a/sn_computer/html/pix/chameleon64.png b/sn_computer/html/pix/chameleon64.png new file mode 100644 index 0000000..569df2e Binary files /dev/null and b/sn_computer/html/pix/chameleon64.png differ diff --git a/sn_computer/html/pix/close-ic.gif b/sn_computer/html/pix/close-ic.gif new file mode 100644 index 0000000..511fc83 Binary files /dev/null and b/sn_computer/html/pix/close-ic.gif differ diff --git a/sn_computer/html/pix/commentr-270.gif b/sn_computer/html/pix/commentr-270.gif new file mode 100644 index 0000000..e41c13d Binary files /dev/null and b/sn_computer/html/pix/commentr-270.gif differ diff --git a/sn_computer/html/pix/editcopy.png b/sn_computer/html/pix/editcopy.png new file mode 100644 index 0000000..a332961 Binary files /dev/null and b/sn_computer/html/pix/editcopy.png differ diff --git a/sn_computer/html/pix/eraser.png b/sn_computer/html/pix/eraser.png new file mode 100644 index 0000000..cd66cae Binary files /dev/null and b/sn_computer/html/pix/eraser.png differ diff --git a/sn_computer/html/pix/field-343.gif b/sn_computer/html/pix/field-343.gif new file mode 100644 index 0000000..c791c34 Binary files /dev/null and b/sn_computer/html/pix/field-343.gif differ diff --git a/sn_computer/html/pix/field-home.gif b/sn_computer/html/pix/field-home.gif new file mode 100644 index 0000000..9cb28bc Binary files /dev/null and b/sn_computer/html/pix/field-home.gif differ diff --git a/sn_computer/html/pix/field-top.gif b/sn_computer/html/pix/field-top.gif new file mode 100644 index 0000000..db38b27 Binary files /dev/null and b/sn_computer/html/pix/field-top.gif differ diff --git a/sn_computer/html/pix/fieldr-270.gif b/sn_computer/html/pix/fieldr-270.gif new file mode 100644 index 0000000..c73e6be Binary files /dev/null and b/sn_computer/html/pix/fieldr-270.gif differ diff --git a/sn_computer/html/pix/forum-an-und-verkauf.gif b/sn_computer/html/pix/forum-an-und-verkauf.gif new file mode 100644 index 0000000..fdd6a23 Binary files /dev/null and b/sn_computer/html/pix/forum-an-und-verkauf.gif differ diff --git a/sn_computer/html/pix/forum-audio-mp3-video.gif b/sn_computer/html/pix/forum-audio-mp3-video.gif new file mode 100644 index 0000000..9c2dda2 Binary files /dev/null and b/sn_computer/html/pix/forum-audio-mp3-video.gif differ diff --git a/sn_computer/html/pix/forum-betriebssystem-sonstige.gif b/sn_computer/html/pix/forum-betriebssystem-sonstige.gif new file mode 100644 index 0000000..c970781 Binary files /dev/null and b/sn_computer/html/pix/forum-betriebssystem-sonstige.gif differ diff --git a/sn_computer/html/pix/forum-bildbearbeitung.gif b/sn_computer/html/pix/forum-bildbearbeitung.gif new file mode 100644 index 0000000..1f74e8f Binary files /dev/null and b/sn_computer/html/pix/forum-bildbearbeitung.gif differ diff --git a/sn_computer/html/pix/forum-datenbanken.gif b/sn_computer/html/pix/forum-datenbanken.gif new file mode 100644 index 0000000..f59b03f Binary files /dev/null and b/sn_computer/html/pix/forum-datenbanken.gif differ diff --git a/sn_computer/html/pix/forum-digitalkameras.gif b/sn_computer/html/pix/forum-digitalkameras.gif new file mode 100644 index 0000000..ef24d4d Binary files /dev/null and b/sn_computer/html/pix/forum-digitalkameras.gif differ diff --git a/sn_computer/html/pix/forum-dsl-favorit.gif b/sn_computer/html/pix/forum-dsl-favorit.gif new file mode 100644 index 0000000..e39e808 Binary files /dev/null and b/sn_computer/html/pix/forum-dsl-favorit.gif differ diff --git a/sn_computer/html/pix/forum-dsl.gif b/sn_computer/html/pix/forum-dsl.gif new file mode 100644 index 0000000..573e7a3 Binary files /dev/null and b/sn_computer/html/pix/forum-dsl.gif differ diff --git a/sn_computer/html/pix/forum-e-mail-outlook-favorit.gif b/sn_computer/html/pix/forum-e-mail-outlook-favorit.gif new file mode 100644 index 0000000..b3f8a81 Binary files /dev/null and b/sn_computer/html/pix/forum-e-mail-outlook-favorit.gif differ diff --git a/sn_computer/html/pix/forum-e-mail-outlook.gif b/sn_computer/html/pix/forum-e-mail-outlook.gif new file mode 100644 index 0000000..de4f5af Binary files /dev/null and b/sn_computer/html/pix/forum-e-mail-outlook.gif differ diff --git a/sn_computer/html/pix/forum-excel-favorit.gif b/sn_computer/html/pix/forum-excel-favorit.gif new file mode 100644 index 0000000..9cdbbdc Binary files /dev/null and b/sn_computer/html/pix/forum-excel-favorit.gif differ diff --git a/sn_computer/html/pix/forum-excel.gif b/sn_computer/html/pix/forum-excel.gif new file mode 100644 index 0000000..9cab4b8 Binary files /dev/null and b/sn_computer/html/pix/forum-excel.gif differ diff --git a/sn_computer/html/pix/forum-grafikkarten.gif b/sn_computer/html/pix/forum-grafikkarten.gif new file mode 100644 index 0000000..2e3effa Binary files /dev/null and b/sn_computer/html/pix/forum-grafikkarten.gif differ diff --git a/sn_computer/html/pix/forum-hardware-sonstiges.gif b/sn_computer/html/pix/forum-hardware-sonstiges.gif new file mode 100644 index 0000000..ab8e684 Binary files /dev/null and b/sn_computer/html/pix/forum-hardware-sonstiges.gif differ diff --git a/sn_computer/html/pix/forum-hardware.gif b/sn_computer/html/pix/forum-hardware.gif new file mode 100644 index 0000000..c9c9d4e Binary files /dev/null and b/sn_computer/html/pix/forum-hardware.gif differ diff --git a/sn_computer/html/pix/forum-ic1.gif b/sn_computer/html/pix/forum-ic1.gif new file mode 100644 index 0000000..9cab4b8 Binary files /dev/null and b/sn_computer/html/pix/forum-ic1.gif differ diff --git a/sn_computer/html/pix/forum-ic2.gif b/sn_computer/html/pix/forum-ic2.gif new file mode 100644 index 0000000..c9c9d4e Binary files /dev/null and b/sn_computer/html/pix/forum-ic2.gif differ diff --git a/sn_computer/html/pix/forum-ic3.gif b/sn_computer/html/pix/forum-ic3.gif new file mode 100644 index 0000000..367c283 Binary files /dev/null and b/sn_computer/html/pix/forum-ic3.gif differ diff --git a/sn_computer/html/pix/forum-ic4.gif b/sn_computer/html/pix/forum-ic4.gif new file mode 100644 index 0000000..d337636 Binary files /dev/null and b/sn_computer/html/pix/forum-ic4.gif differ diff --git a/sn_computer/html/pix/forum-ic5.gif b/sn_computer/html/pix/forum-ic5.gif new file mode 100644 index 0000000..1a7c4df Binary files /dev/null and b/sn_computer/html/pix/forum-ic5.gif differ diff --git a/sn_computer/html/pix/forum-internet-browser-favorit.gif b/sn_computer/html/pix/forum-internet-browser-favorit.gif new file mode 100644 index 0000000..0572f55 Binary files /dev/null and b/sn_computer/html/pix/forum-internet-browser-favorit.gif differ diff --git a/sn_computer/html/pix/forum-internet-browser.gif b/sn_computer/html/pix/forum-internet-browser.gif new file mode 100644 index 0000000..3227c76 Binary files /dev/null and b/sn_computer/html/pix/forum-internet-browser.gif differ diff --git a/sn_computer/html/pix/forum-kuehlung-modding.gif b/sn_computer/html/pix/forum-kuehlung-modding.gif new file mode 100644 index 0000000..cb139be Binary files /dev/null and b/sn_computer/html/pix/forum-kuehlung-modding.gif differ diff --git a/sn_computer/html/pix/forum-laptop-notebook.gif b/sn_computer/html/pix/forum-laptop-notebook.gif new file mode 100644 index 0000000..a43be31 Binary files /dev/null and b/sn_computer/html/pix/forum-laptop-notebook.gif differ diff --git a/sn_computer/html/pix/forum-linux.gif b/sn_computer/html/pix/forum-linux.gif new file mode 100644 index 0000000..e026464 Binary files /dev/null and b/sn_computer/html/pix/forum-linux.gif differ diff --git a/sn_computer/html/pix/forum-mainboard-cpu-ram.gif b/sn_computer/html/pix/forum-mainboard-cpu-ram.gif new file mode 100644 index 0000000..3d527bd Binary files /dev/null and b/sn_computer/html/pix/forum-mainboard-cpu-ram.gif differ diff --git a/sn_computer/html/pix/forum-netzwerk-sonstiges.gif b/sn_computer/html/pix/forum-netzwerk-sonstiges.gif new file mode 100644 index 0000000..1f4a355 Binary files /dev/null and b/sn_computer/html/pix/forum-netzwerk-sonstiges.gif differ diff --git a/sn_computer/html/pix/forum-netzwerk.gif b/sn_computer/html/pix/forum-netzwerk.gif new file mode 100644 index 0000000..1a7c4df Binary files /dev/null and b/sn_computer/html/pix/forum-netzwerk.gif differ diff --git a/sn_computer/html/pix/forum-pc-sonstiges.gif b/sn_computer/html/pix/forum-pc-sonstiges.gif new file mode 100644 index 0000000..1469ce8 Binary files /dev/null and b/sn_computer/html/pix/forum-pc-sonstiges.gif differ diff --git a/sn_computer/html/pix/forum-peripherie.gif b/sn_computer/html/pix/forum-peripherie.gif new file mode 100644 index 0000000..ef867ea Binary files /dev/null and b/sn_computer/html/pix/forum-peripherie.gif differ diff --git a/sn_computer/html/pix/forum-plauderecke.gif b/sn_computer/html/pix/forum-plauderecke.gif new file mode 100644 index 0000000..d5e0215 Binary files /dev/null and b/sn_computer/html/pix/forum-plauderecke.gif differ diff --git a/sn_computer/html/pix/forum-praesentation.gif b/sn_computer/html/pix/forum-praesentation.gif new file mode 100644 index 0000000..38d491e Binary files /dev/null and b/sn_computer/html/pix/forum-praesentation.gif differ diff --git a/sn_computer/html/pix/forum-programmierung-anwendungen-java-c.gif b/sn_computer/html/pix/forum-programmierung-anwendungen-java-c.gif new file mode 100644 index 0000000..eb3120b Binary files /dev/null and b/sn_computer/html/pix/forum-programmierung-anwendungen-java-c.gif differ diff --git a/sn_computer/html/pix/forum-programmierung-scripte-php-perl.gif b/sn_computer/html/pix/forum-programmierung-scripte-php-perl.gif new file mode 100644 index 0000000..1b02c67 Binary files /dev/null and b/sn_computer/html/pix/forum-programmierung-scripte-php-perl.gif differ diff --git a/sn_computer/html/pix/forum-programmierung-webseiten-html.gif b/sn_computer/html/pix/forum-programmierung-webseiten-html.gif new file mode 100644 index 0000000..6dfca68 Binary files /dev/null and b/sn_computer/html/pix/forum-programmierung-webseiten-html.gif differ diff --git a/sn_computer/html/pix/forum-security-viren.gif b/sn_computer/html/pix/forum-security-viren.gif new file mode 100644 index 0000000..e153399 Binary files /dev/null and b/sn_computer/html/pix/forum-security-viren.gif differ diff --git a/sn_computer/html/pix/forum-sn-intern.gif b/sn_computer/html/pix/forum-sn-intern.gif new file mode 100644 index 0000000..3103840 Binary files /dev/null and b/sn_computer/html/pix/forum-sn-intern.gif differ diff --git a/sn_computer/html/pix/forum-software-sonstige.gif b/sn_computer/html/pix/forum-software-sonstige.gif new file mode 100644 index 0000000..fe67c4f Binary files /dev/null and b/sn_computer/html/pix/forum-software-sonstige.gif differ diff --git a/sn_computer/html/pix/forum-telekommunikation.gif b/sn_computer/html/pix/forum-telekommunikation.gif new file mode 100644 index 0000000..091dc14 Binary files /dev/null and b/sn_computer/html/pix/forum-telekommunikation.gif differ diff --git a/sn_computer/html/pix/forum-textbearbeitung-favorit.gif b/sn_computer/html/pix/forum-textbearbeitung-favorit.gif new file mode 100644 index 0000000..cb7aa6a Binary files /dev/null and b/sn_computer/html/pix/forum-textbearbeitung-favorit.gif differ diff --git a/sn_computer/html/pix/forum-textverarbeitung.gif b/sn_computer/html/pix/forum-textverarbeitung.gif new file mode 100644 index 0000000..b689cd9 Binary files /dev/null and b/sn_computer/html/pix/forum-textverarbeitung.gif differ diff --git a/sn_computer/html/pix/forum-vista.gif b/sn_computer/html/pix/forum-vista.gif new file mode 100644 index 0000000..367c283 Binary files /dev/null and b/sn_computer/html/pix/forum-vista.gif differ diff --git a/sn_computer/html/pix/forum-w-lan.gif b/sn_computer/html/pix/forum-w-lan.gif new file mode 100644 index 0000000..3fd30d4 Binary files /dev/null and b/sn_computer/html/pix/forum-w-lan.gif differ diff --git a/sn_computer/html/pix/forum-windows-2000.gif b/sn_computer/html/pix/forum-windows-2000.gif new file mode 100644 index 0000000..a56ac26 Binary files /dev/null and b/sn_computer/html/pix/forum-windows-2000.gif differ diff --git a/sn_computer/html/pix/forum-windows-7.gif b/sn_computer/html/pix/forum-windows-7.gif new file mode 100644 index 0000000..d337636 Binary files /dev/null and b/sn_computer/html/pix/forum-windows-7.gif differ diff --git a/sn_computer/html/pix/forum-windows-95.gif b/sn_computer/html/pix/forum-windows-95.gif new file mode 100644 index 0000000..610948a Binary files /dev/null and b/sn_computer/html/pix/forum-windows-95.gif differ diff --git a/sn_computer/html/pix/forum-windows-98.gif b/sn_computer/html/pix/forum-windows-98.gif new file mode 100644 index 0000000..610948a Binary files /dev/null and b/sn_computer/html/pix/forum-windows-98.gif differ diff --git a/sn_computer/html/pix/forum-windows-me.gif b/sn_computer/html/pix/forum-windows-me.gif new file mode 100644 index 0000000..610948a Binary files /dev/null and b/sn_computer/html/pix/forum-windows-me.gif differ diff --git a/sn_computer/html/pix/forum-windows-nt.gif b/sn_computer/html/pix/forum-windows-nt.gif new file mode 100644 index 0000000..3ac64db Binary files /dev/null and b/sn_computer/html/pix/forum-windows-nt.gif differ diff --git a/sn_computer/html/pix/forum-windows-xp-favorit.gif b/sn_computer/html/pix/forum-windows-xp-favorit.gif new file mode 100644 index 0000000..923181d Binary files /dev/null and b/sn_computer/html/pix/forum-windows-xp-favorit.gif differ diff --git a/sn_computer/html/pix/forum-windows-xp.gif b/sn_computer/html/pix/forum-windows-xp.gif new file mode 100644 index 0000000..7495edc Binary files /dev/null and b/sn_computer/html/pix/forum-windows-xp.gif differ diff --git a/sn_computer/html/pix/groupicons/an-verkauf.gif b/sn_computer/html/pix/groupicons/an-verkauf.gif new file mode 100644 index 0000000..7709158 Binary files /dev/null and b/sn_computer/html/pix/groupicons/an-verkauf.gif differ diff --git a/sn_computer/html/pix/groupicons/anwendungen.gif b/sn_computer/html/pix/groupicons/anwendungen.gif new file mode 100644 index 0000000..62c9670 Binary files /dev/null and b/sn_computer/html/pix/groupicons/anwendungen.gif differ diff --git a/sn_computer/html/pix/groupicons/audio-mp3-video.gif b/sn_computer/html/pix/groupicons/audio-mp3-video.gif new file mode 100644 index 0000000..65637d1 Binary files /dev/null and b/sn_computer/html/pix/groupicons/audio-mp3-video.gif differ diff --git a/sn_computer/html/pix/groupicons/betriebssysteme.gif b/sn_computer/html/pix/groupicons/betriebssysteme.gif new file mode 100644 index 0000000..76b8929 Binary files /dev/null and b/sn_computer/html/pix/groupicons/betriebssysteme.gif differ diff --git a/sn_computer/html/pix/groupicons/bildbearbeitung.gif b/sn_computer/html/pix/groupicons/bildbearbeitung.gif new file mode 100644 index 0000000..dd0a1e6 Binary files /dev/null and b/sn_computer/html/pix/groupicons/bildbearbeitung.gif differ diff --git a/sn_computer/html/pix/groupicons/datenbanken.gif b/sn_computer/html/pix/groupicons/datenbanken.gif new file mode 100644 index 0000000..43527de Binary files /dev/null and b/sn_computer/html/pix/groupicons/datenbanken.gif differ diff --git a/sn_computer/html/pix/groupicons/digitalkameras.gif b/sn_computer/html/pix/groupicons/digitalkameras.gif new file mode 100644 index 0000000..abb57d1 Binary files /dev/null and b/sn_computer/html/pix/groupicons/digitalkameras.gif differ diff --git a/sn_computer/html/pix/groupicons/dsl.gif b/sn_computer/html/pix/groupicons/dsl.gif new file mode 100644 index 0000000..b6446ff Binary files /dev/null and b/sn_computer/html/pix/groupicons/dsl.gif differ diff --git a/sn_computer/html/pix/groupicons/e-mail-outlook.gif b/sn_computer/html/pix/groupicons/e-mail-outlook.gif new file mode 100644 index 0000000..224dd6d Binary files /dev/null and b/sn_computer/html/pix/groupicons/e-mail-outlook.gif differ diff --git a/sn_computer/html/pix/groupicons/excel.gif b/sn_computer/html/pix/groupicons/excel.gif new file mode 100644 index 0000000..5b88f64 Binary files /dev/null and b/sn_computer/html/pix/groupicons/excel.gif differ diff --git a/sn_computer/html/pix/groupicons/grafikkarten.gif b/sn_computer/html/pix/groupicons/grafikkarten.gif new file mode 100644 index 0000000..1904948 Binary files /dev/null and b/sn_computer/html/pix/groupicons/grafikkarten.gif differ diff --git a/sn_computer/html/pix/groupicons/hardware-sonstige.gif b/sn_computer/html/pix/groupicons/hardware-sonstige.gif new file mode 100644 index 0000000..d75a06d Binary files /dev/null and b/sn_computer/html/pix/groupicons/hardware-sonstige.gif differ diff --git a/sn_computer/html/pix/groupicons/internet-browser.gif b/sn_computer/html/pix/groupicons/internet-browser.gif new file mode 100644 index 0000000..79c440f Binary files /dev/null and b/sn_computer/html/pix/groupicons/internet-browser.gif differ diff --git a/sn_computer/html/pix/groupicons/kuehlung-modding.gif b/sn_computer/html/pix/groupicons/kuehlung-modding.gif new file mode 100644 index 0000000..a1a8c54 Binary files /dev/null and b/sn_computer/html/pix/groupicons/kuehlung-modding.gif differ diff --git a/sn_computer/html/pix/groupicons/laptop.gif b/sn_computer/html/pix/groupicons/laptop.gif new file mode 100644 index 0000000..5f308b7 Binary files /dev/null and b/sn_computer/html/pix/groupicons/laptop.gif differ diff --git a/sn_computer/html/pix/groupicons/linux.gif b/sn_computer/html/pix/groupicons/linux.gif new file mode 100644 index 0000000..6019897 Binary files /dev/null and b/sn_computer/html/pix/groupicons/linux.gif differ diff --git a/sn_computer/html/pix/groupicons/mainboard-cpu-ram.gif b/sn_computer/html/pix/groupicons/mainboard-cpu-ram.gif new file mode 100644 index 0000000..f328d75 Binary files /dev/null and b/sn_computer/html/pix/groupicons/mainboard-cpu-ram.gif differ diff --git a/sn_computer/html/pix/groupicons/nw-sonstiges.gif b/sn_computer/html/pix/groupicons/nw-sonstiges.gif new file mode 100644 index 0000000..c7844d7 Binary files /dev/null and b/sn_computer/html/pix/groupicons/nw-sonstiges.gif differ diff --git a/sn_computer/html/pix/groupicons/pc-sonstiges.gif b/sn_computer/html/pix/groupicons/pc-sonstiges.gif new file mode 100644 index 0000000..3e6659d Binary files /dev/null and b/sn_computer/html/pix/groupicons/pc-sonstiges.gif differ diff --git a/sn_computer/html/pix/groupicons/pda-mobile.gif b/sn_computer/html/pix/groupicons/pda-mobile.gif new file mode 100644 index 0000000..6381d9f Binary files /dev/null and b/sn_computer/html/pix/groupicons/pda-mobile.gif differ diff --git a/sn_computer/html/pix/groupicons/peripherie.gif b/sn_computer/html/pix/groupicons/peripherie.gif new file mode 100644 index 0000000..b4f34c2 Binary files /dev/null and b/sn_computer/html/pix/groupicons/peripherie.gif differ diff --git a/sn_computer/html/pix/groupicons/plauderecke.gif b/sn_computer/html/pix/groupicons/plauderecke.gif new file mode 100644 index 0000000..c123eeb Binary files /dev/null and b/sn_computer/html/pix/groupicons/plauderecke.gif differ diff --git a/sn_computer/html/pix/groupicons/praesentation.gif b/sn_computer/html/pix/groupicons/praesentation.gif new file mode 100644 index 0000000..38646b1 Binary files /dev/null and b/sn_computer/html/pix/groupicons/praesentation.gif differ diff --git a/sn_computer/html/pix/groupicons/security-viren.gif b/sn_computer/html/pix/groupicons/security-viren.gif new file mode 100644 index 0000000..4a5e5f9 Binary files /dev/null and b/sn_computer/html/pix/groupicons/security-viren.gif differ diff --git a/sn_computer/html/pix/groupicons/skripte.gif b/sn_computer/html/pix/groupicons/skripte.gif new file mode 100644 index 0000000..0b67d2d Binary files /dev/null and b/sn_computer/html/pix/groupicons/skripte.gif differ diff --git a/sn_computer/html/pix/groupicons/sn-intern.gif b/sn_computer/html/pix/groupicons/sn-intern.gif new file mode 100644 index 0000000..72de986 Binary files /dev/null and b/sn_computer/html/pix/groupicons/sn-intern.gif differ diff --git a/sn_computer/html/pix/groupicons/software-sonstige.gif b/sn_computer/html/pix/groupicons/software-sonstige.gif new file mode 100644 index 0000000..523dd91 Binary files /dev/null and b/sn_computer/html/pix/groupicons/software-sonstige.gif differ diff --git a/sn_computer/html/pix/groupicons/sonstiges.gif b/sn_computer/html/pix/groupicons/sonstiges.gif new file mode 100644 index 0000000..73e0f2d Binary files /dev/null and b/sn_computer/html/pix/groupicons/sonstiges.gif differ diff --git a/sn_computer/html/pix/groupicons/sport.gif b/sn_computer/html/pix/groupicons/sport.gif new file mode 100644 index 0000000..ec88b07 Binary files /dev/null and b/sn_computer/html/pix/groupicons/sport.gif differ diff --git a/sn_computer/html/pix/groupicons/telekommunikation-isdn-modem.gif b/sn_computer/html/pix/groupicons/telekommunikation-isdn-modem.gif new file mode 100644 index 0000000..544c901 Binary files /dev/null and b/sn_computer/html/pix/groupicons/telekommunikation-isdn-modem.gif differ diff --git a/sn_computer/html/pix/groupicons/test.gif b/sn_computer/html/pix/groupicons/test.gif new file mode 100644 index 0000000..9c8767c Binary files /dev/null and b/sn_computer/html/pix/groupicons/test.gif differ diff --git a/sn_computer/html/pix/groupicons/textverarbeitung.gif b/sn_computer/html/pix/groupicons/textverarbeitung.gif new file mode 100644 index 0000000..20f9f8b Binary files /dev/null and b/sn_computer/html/pix/groupicons/textverarbeitung.gif differ diff --git a/sn_computer/html/pix/groupicons/w-lan.gif b/sn_computer/html/pix/groupicons/w-lan.gif new file mode 100644 index 0000000..8c1a180 Binary files /dev/null and b/sn_computer/html/pix/groupicons/w-lan.gif differ diff --git a/sn_computer/html/pix/groupicons/webseiten_html.gif b/sn_computer/html/pix/groupicons/webseiten_html.gif new file mode 100644 index 0000000..3b513c6 Binary files /dev/null and b/sn_computer/html/pix/groupicons/webseiten_html.gif differ diff --git a/sn_computer/html/pix/groupicons/windows-7.gif b/sn_computer/html/pix/groupicons/windows-7.gif new file mode 100644 index 0000000..56cd08d Binary files /dev/null and b/sn_computer/html/pix/groupicons/windows-7.gif differ diff --git a/sn_computer/html/pix/groupicons/windows-95-98.gif b/sn_computer/html/pix/groupicons/windows-95-98.gif new file mode 100644 index 0000000..7c76126 Binary files /dev/null and b/sn_computer/html/pix/groupicons/windows-95-98.gif differ diff --git a/sn_computer/html/pix/groupicons/windows-vista.gif b/sn_computer/html/pix/groupicons/windows-vista.gif new file mode 100644 index 0000000..b192bfb Binary files /dev/null and b/sn_computer/html/pix/groupicons/windows-vista.gif differ diff --git a/sn_computer/html/pix/groupicons/windows-xp.gif b/sn_computer/html/pix/groupicons/windows-xp.gif new file mode 100644 index 0000000..66dd8e2 Binary files /dev/null and b/sn_computer/html/pix/groupicons/windows-xp.gif differ diff --git a/sn_computer/html/pix/header-bg.gif b/sn_computer/html/pix/header-bg.gif new file mode 100644 index 0000000..2009bdd Binary files /dev/null and b/sn_computer/html/pix/header-bg.gif differ diff --git a/sn_computer/html/pix/help-ic.gif b/sn_computer/html/pix/help-ic.gif new file mode 100644 index 0000000..50cba5c Binary files /dev/null and b/sn_computer/html/pix/help-ic.gif differ diff --git a/sn_computer/html/pix/help-ic2.gif b/sn_computer/html/pix/help-ic2.gif new file mode 100644 index 0000000..dc13380 Binary files /dev/null and b/sn_computer/html/pix/help-ic2.gif differ diff --git a/sn_computer/html/pix/home-sprite.png b/sn_computer/html/pix/home-sprite.png new file mode 100644 index 0000000..021061f Binary files /dev/null and b/sn_computer/html/pix/home-sprite.png differ diff --git a/sn_computer/html/pix/ic-1.gif b/sn_computer/html/pix/ic-1.gif new file mode 100644 index 0000000..1fa6c12 Binary files /dev/null and b/sn_computer/html/pix/ic-1.gif differ diff --git a/sn_computer/html/pix/ic-2.gif b/sn_computer/html/pix/ic-2.gif new file mode 100644 index 0000000..710dafc Binary files /dev/null and b/sn_computer/html/pix/ic-2.gif differ diff --git a/sn_computer/html/pix/ic-3.gif b/sn_computer/html/pix/ic-3.gif new file mode 100644 index 0000000..76c2829 Binary files /dev/null and b/sn_computer/html/pix/ic-3.gif differ diff --git a/sn_computer/html/pix/ic-4.gif b/sn_computer/html/pix/ic-4.gif new file mode 100644 index 0000000..08fcd4e Binary files /dev/null and b/sn_computer/html/pix/ic-4.gif differ diff --git a/sn_computer/html/pix/ic-5.gif b/sn_computer/html/pix/ic-5.gif new file mode 100644 index 0000000..8bda469 Binary files /dev/null and b/sn_computer/html/pix/ic-5.gif differ diff --git a/sn_computer/html/pix/ic-pm.gif b/sn_computer/html/pix/ic-pm.gif new file mode 100644 index 0000000..938c797 Binary files /dev/null and b/sn_computer/html/pix/ic-pm.gif differ diff --git a/sn_computer/html/pix/icons-sprite.gif b/sn_computer/html/pix/icons-sprite.gif new file mode 100644 index 0000000..183e06d Binary files /dev/null and b/sn_computer/html/pix/icons-sprite.gif differ diff --git a/sn_computer/html/pix/icons-sprite.png b/sn_computer/html/pix/icons-sprite.png new file mode 100644 index 0000000..e2ca0df Binary files /dev/null and b/sn_computer/html/pix/icons-sprite.png differ diff --git a/sn_computer/html/pix/img-1.jpg b/sn_computer/html/pix/img-1.jpg new file mode 100644 index 0000000..435c3a6 Binary files /dev/null and b/sn_computer/html/pix/img-1.jpg differ diff --git a/sn_computer/html/pix/keepass_48x48.gif b/sn_computer/html/pix/keepass_48x48.gif new file mode 100644 index 0000000..984416d Binary files /dev/null and b/sn_computer/html/pix/keepass_48x48.gif differ diff --git a/sn_computer/html/pix/line.gif b/sn_computer/html/pix/line.gif new file mode 100644 index 0000000..c07603d Binary files /dev/null and b/sn_computer/html/pix/line.gif differ diff --git a/sn_computer/html/pix/line2.gif b/sn_computer/html/pix/line2.gif new file mode 100644 index 0000000..ca0cd51 Binary files /dev/null and b/sn_computer/html/pix/line2.gif differ diff --git a/sn_computer/html/pix/logo.gif b/sn_computer/html/pix/logo.gif new file mode 100644 index 0000000..fbeb361 Binary files /dev/null and b/sn_computer/html/pix/logo.gif differ diff --git a/sn_computer/html/pix/logo_icon_trans_sf.png b/sn_computer/html/pix/logo_icon_trans_sf.png new file mode 100644 index 0000000..0f0f757 Binary files /dev/null and b/sn_computer/html/pix/logo_icon_trans_sf.png differ diff --git a/sn_computer/html/pix/m-icon.gif b/sn_computer/html/pix/m-icon.gif new file mode 100644 index 0000000..113412a Binary files /dev/null and b/sn_computer/html/pix/m-icon.gif differ diff --git a/sn_computer/html/pix/message-top.png b/sn_computer/html/pix/message-top.png new file mode 100644 index 0000000..4e31f5a Binary files /dev/null and b/sn_computer/html/pix/message-top.png differ diff --git a/sn_computer/html/pix/move_task_down.png b/sn_computer/html/pix/move_task_down.png new file mode 100644 index 0000000..1cde549 Binary files /dev/null and b/sn_computer/html/pix/move_task_down.png differ diff --git a/sn_computer/html/pix/move_task_up.png b/sn_computer/html/pix/move_task_up.png new file mode 100644 index 0000000..9d71025 Binary files /dev/null and b/sn_computer/html/pix/move_task_up.png differ diff --git a/sn_computer/html/pix/mp_ic1.gif b/sn_computer/html/pix/mp_ic1.gif new file mode 100644 index 0000000..16040cd Binary files /dev/null and b/sn_computer/html/pix/mp_ic1.gif differ diff --git a/sn_computer/html/pix/mp_ic13.gif b/sn_computer/html/pix/mp_ic13.gif new file mode 100644 index 0000000..e03f341 Binary files /dev/null and b/sn_computer/html/pix/mp_ic13.gif differ diff --git a/sn_computer/html/pix/mp_ic2.gif b/sn_computer/html/pix/mp_ic2.gif new file mode 100644 index 0000000..7999de7 Binary files /dev/null and b/sn_computer/html/pix/mp_ic2.gif differ diff --git a/sn_computer/html/pix/mp_ic3.gif b/sn_computer/html/pix/mp_ic3.gif new file mode 100644 index 0000000..ec511e3 Binary files /dev/null and b/sn_computer/html/pix/mp_ic3.gif differ diff --git a/sn_computer/html/pix/mp_ic6.gif b/sn_computer/html/pix/mp_ic6.gif new file mode 100644 index 0000000..fb5438b Binary files /dev/null and b/sn_computer/html/pix/mp_ic6.gif differ diff --git a/sn_computer/html/pix/nav-bg.gif b/sn_computer/html/pix/nav-bg.gif new file mode 100644 index 0000000..e9e202e Binary files /dev/null and b/sn_computer/html/pix/nav-bg.gif differ diff --git a/sn_computer/html/pix/nav-ic1.gif b/sn_computer/html/pix/nav-ic1.gif new file mode 100644 index 0000000..d8e7d82 Binary files /dev/null and b/sn_computer/html/pix/nav-ic1.gif differ diff --git a/sn_computer/html/pix/nav-ic2.gif b/sn_computer/html/pix/nav-ic2.gif new file mode 100644 index 0000000..7c50cef Binary files /dev/null and b/sn_computer/html/pix/nav-ic2.gif differ diff --git a/sn_computer/html/pix/nav-ic3.gif b/sn_computer/html/pix/nav-ic3.gif new file mode 100644 index 0000000..777f668 Binary files /dev/null and b/sn_computer/html/pix/nav-ic3.gif differ diff --git a/sn_computer/html/pix/nav-ic4.gif b/sn_computer/html/pix/nav-ic4.gif new file mode 100644 index 0000000..2e8fb29 Binary files /dev/null and b/sn_computer/html/pix/nav-ic4.gif differ diff --git a/sn_computer/html/pix/nav-ic5.gif b/sn_computer/html/pix/nav-ic5.gif new file mode 100644 index 0000000..d110af7 Binary files /dev/null and b/sn_computer/html/pix/nav-ic5.gif differ diff --git a/sn_computer/html/pix/nav-line.gif b/sn_computer/html/pix/nav-line.gif new file mode 100644 index 0000000..0a79ea2 Binary files /dev/null and b/sn_computer/html/pix/nav-line.gif differ diff --git a/sn_computer/html/pix/nav-sprite.png b/sn_computer/html/pix/nav-sprite.png new file mode 100644 index 0000000..bc0ed77 Binary files /dev/null and b/sn_computer/html/pix/nav-sprite.png differ diff --git a/sn_computer/html/pix/new_contact_green.gif b/sn_computer/html/pix/new_contact_green.gif new file mode 100644 index 0000000..6eef40d Binary files /dev/null and b/sn_computer/html/pix/new_contact_green.gif differ diff --git a/sn_computer/html/pix/next.gif b/sn_computer/html/pix/next.gif new file mode 100644 index 0000000..543549c Binary files /dev/null and b/sn_computer/html/pix/next.gif differ diff --git a/sn_computer/html/pix/next2.gif b/sn_computer/html/pix/next2.gif new file mode 100644 index 0000000..91e835e Binary files /dev/null and b/sn_computer/html/pix/next2.gif differ diff --git a/sn_computer/html/pix/ok-ic.gif b/sn_computer/html/pix/ok-ic.gif new file mode 100644 index 0000000..c4ee064 Binary files /dev/null and b/sn_computer/html/pix/ok-ic.gif differ diff --git a/sn_computer/html/pix/online.gif b/sn_computer/html/pix/online.gif new file mode 100644 index 0000000..5ab26e2 Binary files /dev/null and b/sn_computer/html/pix/online.gif differ diff --git a/sn_computer/html/pix/option-ic.gif b/sn_computer/html/pix/option-ic.gif new file mode 100644 index 0000000..1a7e3d7 Binary files /dev/null and b/sn_computer/html/pix/option-ic.gif differ diff --git a/sn_computer/html/pix/optionsbox-btm.gif b/sn_computer/html/pix/optionsbox-btm.gif new file mode 100644 index 0000000..3320cdc Binary files /dev/null and b/sn_computer/html/pix/optionsbox-btm.gif differ diff --git a/sn_computer/html/pix/optionsbox-mdl.gif b/sn_computer/html/pix/optionsbox-mdl.gif new file mode 100644 index 0000000..936d79c Binary files /dev/null and b/sn_computer/html/pix/optionsbox-mdl.gif differ diff --git a/sn_computer/html/pix/optionsbox-top.gif b/sn_computer/html/pix/optionsbox-top.gif new file mode 100644 index 0000000..071e774 Binary files /dev/null and b/sn_computer/html/pix/optionsbox-top.gif differ diff --git a/sn_computer/html/pix/optionsboxgreen-btm.gif b/sn_computer/html/pix/optionsboxgreen-btm.gif new file mode 100644 index 0000000..4280914 Binary files /dev/null and b/sn_computer/html/pix/optionsboxgreen-btm.gif differ diff --git a/sn_computer/html/pix/optionsboxgreen-mdl.gif b/sn_computer/html/pix/optionsboxgreen-mdl.gif new file mode 100644 index 0000000..ff2420d Binary files /dev/null and b/sn_computer/html/pix/optionsboxgreen-mdl.gif differ diff --git a/sn_computer/html/pix/optionsboxgreen-top.gif b/sn_computer/html/pix/optionsboxgreen-top.gif new file mode 100644 index 0000000..86d0d7c Binary files /dev/null and b/sn_computer/html/pix/optionsboxgreen-top.gif differ diff --git a/sn_computer/html/pix/peazip_ico.png b/sn_computer/html/pix/peazip_ico.png new file mode 100644 index 0000000..c5c8a62 Binary files /dev/null and b/sn_computer/html/pix/peazip_ico.png differ diff --git a/sn_computer/html/pix/pm-box1-btm.gif b/sn_computer/html/pix/pm-box1-btm.gif new file mode 100644 index 0000000..e7a4bd1 Binary files /dev/null and b/sn_computer/html/pix/pm-box1-btm.gif differ diff --git a/sn_computer/html/pix/pm-box1-date.gif b/sn_computer/html/pix/pm-box1-date.gif new file mode 100644 index 0000000..8e905a5 Binary files /dev/null and b/sn_computer/html/pix/pm-box1-date.gif differ diff --git a/sn_computer/html/pix/pm-box1-mdl.gif b/sn_computer/html/pix/pm-box1-mdl.gif new file mode 100644 index 0000000..7198d48 Binary files /dev/null and b/sn_computer/html/pix/pm-box1-mdl.gif differ diff --git a/sn_computer/html/pix/pm-box1-top.gif b/sn_computer/html/pix/pm-box1-top.gif new file mode 100644 index 0000000..eb1dd71 Binary files /dev/null and b/sn_computer/html/pix/pm-box1-top.gif differ diff --git a/sn_computer/html/pix/pm-box2-btm.gif b/sn_computer/html/pix/pm-box2-btm.gif new file mode 100644 index 0000000..ba8ff4e Binary files /dev/null and b/sn_computer/html/pix/pm-box2-btm.gif differ diff --git a/sn_computer/html/pix/pm-box2-date.gif b/sn_computer/html/pix/pm-box2-date.gif new file mode 100644 index 0000000..9e1fa09 Binary files /dev/null and b/sn_computer/html/pix/pm-box2-date.gif differ diff --git a/sn_computer/html/pix/pm-box2-mdl.gif b/sn_computer/html/pix/pm-box2-mdl.gif new file mode 100644 index 0000000..3e38be8 Binary files /dev/null and b/sn_computer/html/pix/pm-box2-mdl.gif differ diff --git a/sn_computer/html/pix/pm-box2-top.gif b/sn_computer/html/pix/pm-box2-top.gif new file mode 100644 index 0000000..6ed481d Binary files /dev/null and b/sn_computer/html/pix/pm-box2-top.gif differ diff --git a/sn_computer/html/pix/prev.gif b/sn_computer/html/pix/prev.gif new file mode 100644 index 0000000..1bc6152 Binary files /dev/null and b/sn_computer/html/pix/prev.gif differ diff --git a/sn_computer/html/pix/prev2.gif b/sn_computer/html/pix/prev2.gif new file mode 100644 index 0000000..1de0070 Binary files /dev/null and b/sn_computer/html/pix/prev2.gif differ diff --git a/sn_computer/html/pix/question-ic.gif b/sn_computer/html/pix/question-ic.gif new file mode 100644 index 0000000..223c7da Binary files /dev/null and b/sn_computer/html/pix/question-ic.gif differ diff --git a/sn_computer/html/pix/right_nav_li.png b/sn_computer/html/pix/right_nav_li.png new file mode 100644 index 0000000..d6d8290 Binary files /dev/null and b/sn_computer/html/pix/right_nav_li.png differ diff --git a/sn_computer/html/pix/right_nav_line.gif b/sn_computer/html/pix/right_nav_line.gif new file mode 100644 index 0000000..1aed103 Binary files /dev/null and b/sn_computer/html/pix/right_nav_line.gif differ diff --git a/sn_computer/html/pix/s2btn-315.gif b/sn_computer/html/pix/s2btn-315.gif new file mode 100644 index 0000000..0ecea89 Binary files /dev/null and b/sn_computer/html/pix/s2btn-315.gif differ diff --git a/sn_computer/html/pix/scummvm_icon.png b/sn_computer/html/pix/scummvm_icon.png new file mode 100644 index 0000000..ef439ca Binary files /dev/null and b/sn_computer/html/pix/scummvm_icon.png differ diff --git a/sn_computer/html/pix/send-btn.gif b/sn_computer/html/pix/send-btn.gif new file mode 100644 index 0000000..1094888 Binary files /dev/null and b/sn_computer/html/pix/send-btn.gif differ diff --git a/sn_computer/html/pix/sidenav-ic.gif b/sn_computer/html/pix/sidenav-ic.gif new file mode 100644 index 0000000..fad4a5a Binary files /dev/null and b/sn_computer/html/pix/sidenav-ic.gif differ diff --git a/sn_computer/html/pix/spam-ic.gif b/sn_computer/html/pix/spam-ic.gif new file mode 100644 index 0000000..0c1cb14 Binary files /dev/null and b/sn_computer/html/pix/spam-ic.gif differ diff --git a/sn_computer/html/pix/sub.gif b/sn_computer/html/pix/sub.gif new file mode 100644 index 0000000..bc1277c Binary files /dev/null and b/sn_computer/html/pix/sub.gif differ diff --git a/sn_computer/html/pix/sub2.gif b/sn_computer/html/pix/sub2.gif new file mode 100644 index 0000000..160b6b3 Binary files /dev/null and b/sn_computer/html/pix/sub2.gif differ diff --git a/sn_computer/html/pix/suche-btn.gif b/sn_computer/html/pix/suche-btn.gif new file mode 100644 index 0000000..77fe9ba Binary files /dev/null and b/sn_computer/html/pix/suche-btn.gif differ diff --git a/sn_computer/html/pix/supportware.gif b/sn_computer/html/pix/supportware.gif new file mode 100644 index 0000000..cb19fb7 Binary files /dev/null and b/sn_computer/html/pix/supportware.gif differ diff --git a/sn_computer/html/pix/tabs-bg.gif b/sn_computer/html/pix/tabs-bg.gif new file mode 100644 index 0000000..5d83e4b Binary files /dev/null and b/sn_computer/html/pix/tabs-bg.gif differ diff --git a/sn_computer/html/pix/test.gif b/sn_computer/html/pix/test.gif new file mode 100644 index 0000000..9c8767c Binary files /dev/null and b/sn_computer/html/pix/test.gif differ diff --git a/sn_computer/html/pix/thread_image_sample.gif b/sn_computer/html/pix/thread_image_sample.gif new file mode 100644 index 0000000..afa373b Binary files /dev/null and b/sn_computer/html/pix/thread_image_sample.gif differ diff --git a/sn_computer/html/pix/time-470.gif b/sn_computer/html/pix/time-470.gif new file mode 100644 index 0000000..89b0fdf Binary files /dev/null and b/sn_computer/html/pix/time-470.gif differ diff --git a/sn_computer/html/pix/top-gb-1.jpg b/sn_computer/html/pix/top-gb-1.jpg new file mode 100644 index 0000000..2229920 Binary files /dev/null and b/sn_computer/html/pix/top-gb-1.jpg differ diff --git a/sn_computer/html/pix/transparent.gif b/sn_computer/html/pix/transparent.gif new file mode 100644 index 0000000..583637c Binary files /dev/null and b/sn_computer/html/pix/transparent.gif differ diff --git a/sn_computer/html/pix/tvbrowser48.jpg b/sn_computer/html/pix/tvbrowser48.jpg new file mode 100644 index 0000000..24391af Binary files /dev/null and b/sn_computer/html/pix/tvbrowser48.jpg differ diff --git a/sn_computer/html/pix/txc.png b/sn_computer/html/pix/txc.png new file mode 100644 index 0000000..4397f49 Binary files /dev/null and b/sn_computer/html/pix/txc.png differ diff --git a/sn_computer/html/pix/weiter-btn-2.gif b/sn_computer/html/pix/weiter-btn-2.gif new file mode 100644 index 0000000..dd709ca Binary files /dev/null and b/sn_computer/html/pix/weiter-btn-2.gif differ diff --git a/sn_computer/html/pix/weiter-btn.gif b/sn_computer/html/pix/weiter-btn.gif new file mode 100644 index 0000000..db3de7e Binary files /dev/null and b/sn_computer/html/pix/weiter-btn.gif differ diff --git a/sn_computer/html/pix/windows7-logo.gif b/sn_computer/html/pix/windows7-logo.gif new file mode 100644 index 0000000..e7aa56c Binary files /dev/null and b/sn_computer/html/pix/windows7-logo.gif differ diff --git a/sn_computer/html/robots.txt b/sn_computer/html/robots.txt new file mode 100644 index 0000000..6e485e9 --- /dev/null +++ b/sn_computer/html/robots.txt @@ -0,0 +1,7 @@ +User-agent: Mediapartners-Google +Disallow: +User-agent: * +Disallow: / +ser-agent: Mediapartners-Google +Disallow: + diff --git a/sn_computer/html/sn.computer.session b/sn_computer/html/sn.computer.session new file mode 100644 index 0000000..05c04a5 --- /dev/null +++ b/sn_computer/html/sn.computer.session @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/sn_computer/html/sn_box_archive.html b/sn_computer/html/sn_box_archive.html new file mode 100644 index 0000000..443856c --- /dev/null +++ b/sn_computer/html/sn_box_archive.html @@ -0,0 +1,351 @@ + + + + +07063 +07064 +07065 +07066 +07067 +07051 +07052 +07053 +07054 +07055 +07056 +07057 +07041 +07042 +07043 +07044 +07045 +07046 +07047 +07031 +07032 +07033 +07034 +07035 +07036 +07037 +07038 +07021 +07022 +07023 +07024 +07025 +07026 +07027 +07028 +07011 +07012 +07013 +07014 +07015 +07016 +07017 +07018 +07019 +0701a +06121 +06122 +06123 +06124 +06125 +06126 +06127 +06128 +06129 +06111 +06112 +06113 +06114 +06115 +06116 +06117 +06118 +06119 +0611a +06101 +06102 +06103 +06104 +06105 +06106 +06107 +06108 +06109 +0610a +06091 +06092 +06093 +06094 +06095 +06096 +06097 +06098 +06099 +06081 +06082 +06083 +06084 +06085 +06086 +06087 +06088 +06089 +06071 +06072 +06073 +06074 +06075 +06076 +06077 +06078 +06061 +06062 +06063 +06064 +06065 +06066 +06067 +06068 +06051 +06052 +06053 +06054 +06055 +06056 +06057 +06058 +06059 +06041 +06042 +06043 +06044 +06045 +06046 +06047 +06048 +06049 +060410 +06031 +06032 +06033 +06034 +06035 +06036 +06037 +06038 +06039 +060310 +060311 +06021 +06022 +06023 +06024 +06025 +06026 +06027 +06028 +06029 +060210 +060211 +06011 +06012 +06013 +06014 +06015 +06016 +06017 +06018 +06019 +060110 +060111 +05121 +05122 +05123 +05124 +05125 +05126 +05127 +05128 +05129 +05129a +05129b +05111 +05112 +05113 +05114 +05115 +05116 +05117 +05118 +05119 +0511a +05101 +05102 +05103 +05104 +05105 +05106 +05107 +05108 +05109 +0510a +05091 +05092 +05093 +05094 +05095 +05096 +05097 +05098 +05099 +0509a +05081 +05082 +05083 +05084 +05085 +05086 +05087 +05088 +05089 +05071 +05072 +05073 +05074 +05075 +05076 +05077 +05061 +05062 +05063 +05064 +05065 +05066 +05051 +05052 +05053 +05054 +05055 +05056 +05041 +05042 +05043 +05044 +05045 +05046 +05031 +05032 +05033 +05034 +05035 +05036 +05037 +05038 +ntldr_fehlt +05021 +05022 +05023 +05024 +05025 +05026 +05027 +05028 +05011 +05012 +05013 +05014 +05015 +05016 +05017 +05018 +05019 + +04o00 +04o01 +04o02 +04o03 +04o04 +04o05 +04o06 +04o07 +04o08 +04o09 +04o10 +04o11 +04o12 +04o13 +04o14 +04o15 +04o16 +04o17 +04o18 +04o19 +04o20 +04o21 +04o22 +04o23 +04o24 +04o25 +04o26 +04o27 +04o28 +04o29 +04o30 +04o31 +04o32 +04o33 +04o34 +04o35 +04o36 +04o37 +04o38 +04o39 +04o40 +04o41 +04o42 +04o43 +04o44 +04o45 +04o46 +04o47 +04o48 +04o49 +04o50 +04o51 +04o52 +04o53 +04o54 +03o00 +03o01 +03o02 +03o03 +03o04 +03o05 +03o06 +03o07 +03o08 +03o09 +03o00 +03o11 +03o12 +03o13 +03o14 +03o15 +03o16 +03o17 +03o18 +03o19 +02o1 +02o2 +02o3 +02o4 +02o5 +02o6 +02o7 +02o8 + + diff --git a/sn_computer/html/sn_box_archive_small.html b/sn_computer/html/sn_box_archive_small.html new file mode 100644 index 0000000..5ca5a15 --- /dev/null +++ b/sn_computer/html/sn_box_archive_small.html @@ -0,0 +1,15 @@ + + + + + + +05031 +05032 +05033 +05034 +05035 +05036 +05037 + + \ No newline at end of file diff --git a/sn_computer/html/sn_box_archive_sub.html b/sn_computer/html/sn_box_archive_sub.html new file mode 100644 index 0000000..064f907 --- /dev/null +++ b/sn_computer/html/sn_box_archive_sub.html @@ -0,0 +1,11 @@ + + + + +Windows 7 FAQ
    +Windows Vista FAQ
    +E-Mail FAQ
    +Datenrettung FAQ
    +Irfanview FAQ
    +Direktlinks
    + diff --git a/sn_computer/html/sn_main.css b/sn_computer/html/sn_main.css new file mode 100644 index 0000000..461bd06 --- /dev/null +++ b/sn_computer/html/sn_main.css @@ -0,0 +1,176 @@ +BODY {FONT-SIZE: 12px; MARGIN: 11px; FONT-FAMILY: Arial, Verdana, Helvetica, sans-serif; BACKGROUND-COLOR: #8A9DAE; COLOR: #000000;} +.codestyle {font-family: verdana, arial, helvetica, sans-serif;} +/*quote*/ +.quote {BACKGROUND-COLOR: #D8D8D8; MARGIN-RIGHT: 10px; MARGIN-LEFT: 10px} +/*Hinweis Zitat:*/ +.quotefont {FONT-SIZE: 9px; FONT-WEIGHT: bold} + +/*Allgemeine Links*/ +A {TEXT-DECORATION: none} +A:link {COLOR: #000000 } +A:visited {COLOR: #000000} +A:hover {COLOR: #ff0000; TEXT-DECORATION: underline} +A:active {COLOR: #000000} + +/*Links im Hauptmenu*/ +A.top_nav_links {PADDING-LEFT: 5px; FONT-SIZE: 9pt; COLOR: #000000; LINE-HEIGHT: 17px; TEXT-DECORATION: none} +A.top_nav_links:visited {COLOR: #000000} +A.top_nav_links:hover {COLOR: #ff0000; TEXT-DECORATION: none} +A.top_nav_links_active {PADDING-LEFT: 5px; FONT-SIZE: 9pt; FONT-WEIGHT: bold; COLOR: #ff0000; LINE-HEIGHT: 17px; TEXT-DECORATION: none} +A.top_nav_links_active:visited {PADDING-LEFT: 5px; FONT-SIZE: 9pt; FONT-WEIGHT: bold; COLOR: #ff0000; LINE-HEIGHT: 17px; TEXT-DECORATION: none} +A.top_nav_links_active:hover {PADDING-LEFT: 5px; FONT-SIZE: 9pt; FONT-WEIGHT: bold; COLOR: #ff0000; LINE-HEIGHT: 17px; TEXT-DECORATION: none} + +/*Alle Links im Content einer Box (Gruppen, Adminlinks...*/ +A.sn_info {COLOR: #2267F4; TEXT-DECORATION: underline} +A.sn_info:visited {COLOR: #2267F4; TEXT-DECORATION: underline} +A.sn_info:hover {COLOR: #ff0000; TEXT-DECORATION: underline} + +/*Alle Links im Content einer Box in der mittleren Spalte*/ +A.sn_cont {COLOR: #2267F4; TEXT-DECORATION: underline} +A.sn_cont:visited {COLOR: #2267F4} +A.sn_cont:hover {COLOR: #ff0000} +/*Überschriften der Boxen Breadcrump*/ +A.box_title_bc {FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em; TEXT-DECORATION: underline} +A.box_title_bc:visited {FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em; TEXT-DECORATION: underline} +A.box_title_bc:hover {FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #ff0000; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em; TEXT-DECORATION: underline} + +/*Gleicher wie sn_cont aber weil dynamisch eingebaut ueber Generator nochmal hier., kann evtl geloescht werden da Chris das aus dem Code genommen hat und durch sn_cont ersetzt hat*/ +A.sn_info_high { COLOR: #2267F4; TEXT-DECORATION: underline} +A.sn_info_high:visited { COLOR: #2267F4} +A.sn_info_high:hover {COLOR: #ff0000} +/*Links wenn Member angezeigt werden*/ +A.member {COLOR: #000000; TEXT-DECORATION: underline; FONT-WEIGHT: bold} +A.member:visited {COLOR: #000000; TEXT-DECORATION: underline; FONT-WEIGHT: bold} +A.member:hover {COLOR: #ff0000; TEXT-DECORATION: underline; FONT-WEIGHT: bold} +/*Überschriften der Boxen*/ +.box_title_all {PADDING-LEFT: 18px; FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em} +.box_title_all_1 {FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em} +.box_title_all_2 {FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em} + +/*Eingabeboxen*/ +INPUT {FONT-SIZE: 8pt; FONT-FAMILY: Arial, Sans Serif, Verdana, Helvetica} +SELECT {FONT-SIZE: 8pt; FONT-FAMILY: Arial, Sans Serif, Verdana, Helvetica} +TEXTAREA {FONT-SIZE: 12px; FONT-FAMILY: Arial, Sans Serif, Verdana, Helvetica} + +/*Uebersichtstabellen, Foren*/ +.zeile0 {BACKGROUND-COLOR: #C0C0C0;} +.zeile1 {BACKGROUND-COLOR: #ffffff;} +.zeile2 {BACKGROUND-COLOR: #E6E6E6;} +.zeile_removed {BACKGROUND-COLOR: #880000;} +.zeile_alertet {BACKGROUND-COLOR: #ff3131;} + +/*Box*/ +.top_nav_bg {BACKGROUND-COLOR: #EFEFEF; PADDING-RIGHT: 10px; PADDING-LEFT: 10px; MARGIN: 3px;} + +/*sonstige Formatierungen*/ +DIV {FONT-SIZE: 12px} +PRE {FONT-SIZE: 12px} +UL { FONT-SIZE: 12px} +TH {FONT-SIZE: 12px} +TR { FONT-SIZE: 12px} +TD {FONT-SIZE: 12px} +P {FONT-SIZE: 12px} +.padleft5 {PADDING-RIGHT: 5px; PADDING-LEFT: 5px; MARGIN: 0px} +.padleft10 {PADDING-RIGHT: 10px; PADDING-LEFT: 10px; MARGIN: 3px; } +.br3 {FONT-SIZE: 3px} +.br5 {FONT-SIZE: 5px} +.br8 {FONT-SIZE: 10px} + +/*Ramenfarbe der mittleren ContentBoxen*/ +.rahmen_box {BACKGROUND-COLOR: #435E91;} + +/*Hintergrundfarbe der Uberschrift der Ergebnistabelle im Contentframe (Suche/Forum...)*/ +.table_bg {BACKGROUND-COLOR: #EFEFEF;} +/*Tabellenrahmen in der Ergebnistabelle im Contentframe (Suche/Forum...)*/ +.table_bgr {BACKGROUND-COLOR: #435E91;} +/*Formularfelder Hintergrund und Schriftfarbe*/ +.form_bgr {BACKGROUND-COLOR: #ffffff; COLOR: #000000;} +/*Aktive Formboxen linker Schriftabstand*/ +.form_left {PADDING-LEFT: 2px} + +/*Gruppenzusammenfassung (Software, Betriebssysteme...*/ +.group_nav_title {PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 9pt; COLOR: #2267F4} + +/*Formatierung fuer Magazinartikel*/ +.contentbox {BORDER-RIGHT: 1px; PADDING-RIGHT: 2px; BORDER-TOP: 1px; PADDING-LEFT: 2px; FONT-SIZE: 12px; PADDING-BOTTOM: 2px; BORDER-LEFT: 1px; PADDING-TOP: 2px; BORDER-BOTTOM: 1px; TEXT-ALIGN: justify} + +/*links rechts Ausrichtung*/ +.linksausgerichtet {BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN-TOP: 0px; FLOAT: left; MARGIN-BOTTOM: 5px; BORDER-LEFT: 0px; MARGIN-RIGHT: 10px; BORDER-BOTTOM: 0px} +.rechtsausgerichtet {BORDER-RIGHT: 0px; BORDER-TOP: 0px; FLOAT: right; MARGIN: 0px 0px 5px 0px; BORDER-LEFT: 0px; MARGIN-LEFT: 10px; BORDER-BOTTOM: 0px} + +/*Infobox*/ +.ro {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_ro.gif) no-repeat right top; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.ru {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_ru.gif) no-repeat right bottom; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.lo {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_lo.gif) no-repeat left top; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.lu {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_lu.gif) no-repeat left bottom; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.inhalt {PADDING-RIGHT: 2.5em; PADDING-LEFT: 2.5em; PADDING-BOTTOM: 3.5em; MARGIN: 0px; PADDING-TOP: 2.5em} +.infoboxueber {PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.1em} + +/*Link in der mittleren Spalte auf ein Hauptthemengebiet*/ +A.sn_overview {FONT-WEIGHT:bold; FONT-SIZE:11px; COLOR: #000000; TEXT-DECORATION:none; FONT-FAMILY:Verdana, Arial} +A.sn_overview:hover {FONT-WEIGHT:bold; FONT-SIZE:11px; COLOR: #ff0000; TEXT-DECORATION:underline; FONT-FAMILY:Verdana, Arial} + +/*Link in der mittleren Spalte auf einen Tipp oder Trick, oder Artikel */ +A.sn_overhead {FONT-WEIGHT:bold; FONT-SIZE:15px; COLOR:#2267F4; TEXT-DECORATION:none; FONT-FAMILY:Verdana, Arial} +A.sn_overhead:visited {FONT-WEIGHT:bold; FONT-SIZE:15px; COLOR:#2267F4; TEXT-DECORATION:none; FONT-FAMILY:Verdana, Arial} +A.sn_overhead:hover {FONT-WEIGHT:bold; FONT-SIZE:15px; COLOR: #ff0000; TEXT-DECORATION:underline; FONT-FAMILY:Verdana, Arial} + +/*Ueberschrift fuer einen Tipp oder eine News*/ +.sn_overhead {FONT-WEIGHT:bold; FONT-SIZE:15px; COLOR:#2267F4; TEXT-DECORATION:none; FONT-FAMILY:Verdana, Arial} + +/*Links fr die Startseitenboxen 1 */ +A.sn_rechtespalte {FONT-SIZE:9px; COLOR:#000000; TEXT-DECORATION:none; FONT-FAMILY: Verdana, Arial;} +A.sn_rechtespalte:visited {FONT-SIZE:9px; COLOR:#000000; TEXT-DECORATION:none; FONT-FAMILY: Verdana, Arial;} +A.sn_rechtespalte:hover {FONT-SIZE:9px; COLOR:#ff0000; TEXT-DECORATION:underline; FONT-FAMILY: Verdana, Arial;} +/*Links fr die Startseitenboxen 2 */ +.sn_home_group {FONT-SIZE: 9px; COLOR: #2267F4; FONT-FAMILY: Verdana, Arial} + +/*Artikelinhalte */ +.content {FONT-FAMILY: Verdana, Arial; COLOR: #000000; } +.ueber1 {FONT-WEIGHT:bold; FONT-SIZE:15px; COLOR:#2267F4; TEXT-DECORATION:none; FONT-FAMILY:Verdana, Arial} + +/*sn_home_cont wird zu sn_overview*/ +.sn_home_cont {FONT-SIZE: 9px; COLOR: #000000; FONT-FAMILY: Verdana, Arial} + +/*Formatierung fuer die Homeboxen (Forenteaser...*/ +.sn_home_abstand {MARGIN: 4px 4px 4px 15px; TEXT-INDENT: -8px} +.sn_rechtespalte {FONT-SIZE:9px; FONT-FAMILY: Verdana, Arial;} +.padtop15x {PADDING-TOP: 10px; PADDING-LEFT: 10px; MARGIN: 3px} + +/*Formatierung fuer die statischen*/ +H1 { FONT-WEIGHT:bold; MARGIN-BOTTOM: 3px; MARGIN-TOP: 4px; FONT-SIZE:15px; COLOR:#184b78; TEXT-DECORATION:none; FONT-FAMILY:Verdana, Arial} +/*Hintergrundfarbe der Beiträge im Forum und deren Abstand*/ +.beitrag { BACKGROUND-COLOR: #EFEFEF; PADDING-RIGHT: 10px; PADDING-LEFT: 10px; MARGIN: 3px;} + +/*Überschriften der Boxen Breadcrump*/ +A.box_title_bc { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em; TEXT-DECORATION: underline} +A.box_title_bc:visited { FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #435E91; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em; TEXT-DECORATION: underline} +A.box_title_bc:hover {FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #ff0000; FONT-FAMILY: Verdana, Arial, Sans Serif; LETTER-SPACING: 0.2em; TEXT-DECORATION: underline} + +/*Google Definitionen*/ +a.adLink_a:hover {background-color: ; text-decoration: underline; } +a.adLink1_a:hover {background-color: ; text-decoration: underline; text-align:center} +a.adTitle_a:hover {background-color: ; text-decoration: underline; } +a.adTitle1_a:hover {background-color: ; text-decoration: underline; text-align:center} +a.adLink_a {text-decoration: none } +.single_center {text-align: center} +a.adTitle_a {text-decoration: none} +a.adLink1_a {text-decoration: none; text-align:center} +a.adTitle1_a {text-decoration: none; text-align:center} +.header {background:#eee;padding:4px; font-size:15px; font-weight:bold} +.ad {width: 500px; height: 220px;} +.ad1 {width: 500px; height: 220px; } +.adText {color:000000;text-decoration:none; font-family: Arial; font-size:12px; font-weight: normal; font-style: normal;} +.adText1 {color:000000;text-decoration:none; font-family: Arial; font-size:11pt; font-weight: normal; font-style: normal; text-align:center} +.adLink {overflow: hidden; color:FF0000;text-decoration:none; font-family: Arial; font-size:12px; font-weight: normal; font-style: normal;} +.adLink1 {color:8A9DAE; text-decoration:none; font-family: Arial; font-size:11pt; font-weight: normal; font-style: normal; text-align:center} +/*body, td, div {font-family:arial;font-size:12px; color: #000000;}*/ +.abg {color:8A9DAE;text-decoration:none; font-family: Arial; font-size:12px; font-weight: normal; font-style: normal;} +.adTitle {color:0000ff;text-decoration: underline; font-family: Arial; font-size:17px; font-style: normal; font-weight:bold;} +.adTitle1 {color:2267F3;text-decoration:none; font-family: Arial; font-size:13pt; font-weight: bold; font-style: normal; text-align:center} +.ad_box1 {border-style:solid;border-width:0;px; border-color:8A9DAE; background-color: EFEFEF;height:220px;width:500px;margin-left:0px; opacity: 1; background-image: url(); background: nottransparent; } +.ad_box2 {border-style:solid;border-width:0;px; border-color:8A9DAE; background-color: EFEFEF;height:220px;width:500px;margin-left:0px; opacity: 1; background-image: url(); background: nottransparent; } + + + + diff --git a/sn_computer/html/sn_main.html b/sn_computer/html/sn_main.html new file mode 100644 index 0000000..0e067e3 --- /dev/null +++ b/sn_computer/html/sn_main.html @@ -0,0 +1,107 @@ + + + + + +<!--#sn_page:dp_system:navipage--><!--#sn_title:dp_system:pagetitle--> + + + + + + + + + + + + + + + + + + +
    + + + + + + + +
    + + + + + +
    + Computerforum +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + + diff --git a/sn_computer/html/sn_main0.js b/sn_computer/html/sn_main0.js new file mode 100644 index 0000000..607c61a --- /dev/null +++ b/sn_computer/html/sn_main0.js @@ -0,0 +1 @@ +../../sn_templates/sn_main0.js \ No newline at end of file diff --git a/sn_computer/html/sn_metatags_nocache.html b/sn_computer/html/sn_metatags_nocache.html new file mode 100644 index 0000000..3cc6476 --- /dev/null +++ b/sn_computer/html/sn_metatags_nocache.html @@ -0,0 +1,3 @@ + + + diff --git a/sn_computer/html/sn_metatags_small.html b/sn_computer/html/sn_metatags_small.html new file mode 100644 index 0000000..0f2f4d2 --- /dev/null +++ b/sn_computer/html/sn_metatags_small.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_stat.css b/sn_computer/html/sn_stat.css new file mode 100644 index 0000000..85cc860 --- /dev/null +++ b/sn_computer/html/sn_stat.css @@ -0,0 +1,4 @@ +BODY { +  FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif +} + diff --git a/sn_computer/html/sn_x_copyright.html b/sn_computer/html/sn_x_copyright.html new file mode 100644 index 0000000..9a9eff9 --- /dev/null +++ b/sn_computer/html/sn_x_copyright.html @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/sn_computer/html/sn_x_copyright_stat.html b/sn_computer/html/sn_x_copyright_stat.html new file mode 100644 index 0000000..d211ba9 --- /dev/null +++ b/sn_computer/html/sn_x_copyright_stat.html @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/sn_computer/html/sn_x_leaderboard.html b/sn_computer/html/sn_x_leaderboard.html new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/sn_x_left0.html b/sn_computer/html/sn_x_left0.html new file mode 100644 index 0000000..fbbaffb --- /dev/null +++ b/sn_computer/html/sn_x_left0.html @@ -0,0 +1,12 @@ + + +

    diff --git a/sn_computer/html/sn_x_left1.html b/sn_computer/html/sn_x_left1.html new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/sn_x_left2.html b/sn_computer/html/sn_x_left2.html new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/sn_x_right0.html b/sn_computer/html/sn_x_right0.html new file mode 100644 index 0000000..41112a0 --- /dev/null +++ b/sn_computer/html/sn_x_right0.html @@ -0,0 +1,3 @@ + + + diff --git a/sn_computer/html/sn_x_sky.html b/sn_computer/html/sn_x_sky.html new file mode 100644 index 0000000..a98935e --- /dev/null +++ b/sn_computer/html/sn_x_sky.html @@ -0,0 +1,17 @@ + +

    + diff --git a/sn_computer/html/sn_x_sky_stat.html b/sn_computer/html/sn_x_sky_stat.html new file mode 100644 index 0000000..ed60b33 --- /dev/null +++ b/sn_computer/html/sn_x_sky_stat.html @@ -0,0 +1,32 @@ + + +

    + + \ No newline at end of file diff --git a/sn_computer/html/sn_x_werbung.html b/sn_computer/html/sn_x_werbung.html new file mode 100644 index 0000000..a20d32c --- /dev/null +++ b/sn_computer/html/sn_x_werbung.html @@ -0,0 +1,112 @@ + + +
    + + +
    + + + +
    +
    + diff --git a/sn_computer/html/sn_x_werbung1.html b/sn_computer/html/sn_x_werbung1.html new file mode 100644 index 0000000..1123db5 --- /dev/null +++ b/sn_computer/html/sn_x_werbung1.html @@ -0,0 +1,53 @@ +
    + + +
    + +
    + +
    + + +
    + +
    +Seite durchsuchen: +
    + + +
    +
    +
    Home
    +

    diff --git a/sn_computer/html/sn_x_werbung2.html b/sn_computer/html/sn_x_werbung2.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/sn_computer/html/sn_x_werbung2.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_x_werbung3.html b/sn_computer/html/sn_x_werbung3.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/sn_computer/html/sn_x_werbung3.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_x_werbung4.html b/sn_computer/html/sn_x_werbung4.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/sn_computer/html/sn_x_werbung4.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_x_werbung5.html b/sn_computer/html/sn_x_werbung5.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/sn_computer/html/sn_x_werbung5.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_x_werbung6.html b/sn_computer/html/sn_x_werbung6.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/sn_computer/html/sn_x_werbung6.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_x_werbung7.html b/sn_computer/html/sn_x_werbung7.html new file mode 100644 index 0000000..8d1c8b6 --- /dev/null +++ b/sn_computer/html/sn_x_werbung7.html @@ -0,0 +1 @@ + diff --git a/sn_computer/html/sn_x_werbung_def.html b/sn_computer/html/sn_x_werbung_def.html new file mode 100644 index 0000000..71f66dd --- /dev/null +++ b/sn_computer/html/sn_x_werbung_def.html @@ -0,0 +1,55 @@ + +
    + + +
    + +
    + +
    + + + + + +
    +Seite durchsuchen: +
    + + +
    +
    +
    Home
    +

    diff --git a/sn_computer/html/sn_x_werbung_stat.html b/sn_computer/html/sn_x_werbung_stat.html new file mode 100644 index 0000000..6e98daf --- /dev/null +++ b/sn_computer/html/sn_x_werbung_stat.html @@ -0,0 +1,5 @@ +
    + + + + diff --git a/sn_computer/html/sntmp b/sn_computer/html/sntmp new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/stat b/sn_computer/html/stat new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/suche.xml b/sn_computer/html/suche.xml new file mode 100644 index 0000000..834f7f1 --- /dev/null +++ b/sn_computer/html/suche.xml @@ -0,0 +1,7 @@ + + +supportware +Such-Plugin Foren Tipps Anleitungen Artikel +/favicon.ico + + \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/langs/de.js b/sn_computer/html/tiny_mce/langs/de.js new file mode 100644 index 0000000..ed7e708 --- /dev/null +++ b/sn_computer/html/tiny_mce/langs/de.js @@ -0,0 +1,180 @@ +tinyMCE.addI18n({de:{ +common:{ +edit_confirm:"Wollen Sie diesen Textbereich mit WYSIWYG bearbeiten?", +apply:"\u00DCbernehmen", +insert:"Einf\u00FCgen", +update:"Aktualisieren", +cancel:"Abbrechen", +close:"Schlie\u00DFen", +browse:"Durchsuchen", +class_name:"CSS-Klasse", +not_set:"- unbestimmt -", +clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\nM\u00F6chten Sie mehr \u00FCber dieses Problem erfahren?", +clipboard_no_support:"Wird derzeit in Ihrem Browser nicht unterst\u00FCtzt. Bitte benutzen Sie stattdessen die Tastenk\u00FCrzel.", +popup_blocked:"Leider hat Ihr Popup-Blocker ein Fenster unterbunden, das f\u00FCr den Betrieb dieses Programms n\u00F6tig ist. Bitte deaktivieren Sie den Popup-Blocker f\u00FCr diese Seite.", +invalid_data:"Fehler: Sie haben ung\u00FCltige Werte eingegeben (rot markiert).", +more_colors:"Weitere Farben" +}, +contextmenu:{ +align:"Ausrichtung", +left:"Linksb\u00FCndig", +center:"Zentriert", +right:"Rechtsb\u00FCndig", +full:"Blocksatz" +}, +insertdatetime:{ +date_fmt:"%d.%m.%Y", +time_fmt:"%H:%M:%S", +insertdate_desc:"Datum einf\u00FCgen", +inserttime_desc:"Zeit einf\u00FCgen", +months_long:"Januar,Februar,M\u00E4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember", +months_short:"Jan,Feb,M\u00E4r,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez", +day_long:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag", +day_short:"So,Mo,Di,Mi,Do,Fr,Sa,So" +}, +print:{ +print_desc:"Drucken" +}, +preview:{ +preview_desc:"Vorschau" +}, +directionality:{ +ltr_desc:"Schrift von links nach rechts", +rtl_desc:"Schrift von rechts nach links" +}, +layer:{ +insertlayer_desc:"Neue Ebene einf\u00FCgen", +forward_desc:"Nach vorne holen", +backward_desc:"Nach hinten legen", +absolute_desc:"Absolute Positionierung", +content:"Neue Ebene..." +}, +save:{ +save_desc:"Speichern", +cancel_desc:"Alle \u00C4nderungen verwerfen" +}, +nonbreaking:{ +nonbreaking_desc:"Gesch\u00FCtztes Leerzeichen einf\u00FCgen" +}, +iespell:{ +iespell_desc:"Rechtschreibpr\u00FCfung", +download:"ieSpell konnte nicht gefunden werden. Wollen Sie es installieren?" +}, +advhr:{ +advhr_desc:"Trennlinie" +}, +emotions:{ +emotions_desc:"Smilies" +}, +searchreplace:{ +search_desc:"Suchen", +replace_desc:"Suchen/Ersetzen" +}, +advimage:{ +image_desc:"Bild einf\u00FCgen/ersetzen" +}, +advlink:{ +link_desc:"Link einf\u00FCgen/bearbeiten" +}, +xhtmlxtras:{ +cite_desc:"Quellenangabe", +abbr_desc:"Abk\u00FCrzung", +acronym_desc:"Akronym", +del_desc:"Entfernter Text", +ins_desc:"Eingef\u00FCgter Text", +attribs_desc:"Attribute einf\u00FCgen/bearbeiten" +}, +style:{ +desc:"CSS-Styles bearbeiten" +}, +paste:{ +paste_text_desc:"Als normalen Text einf\u00FCgen", +paste_word_desc:"Mit Formatierungen (aus Word) einf\u00FCgen", +selectall_desc:"Alles ausw\u00E4hlen", +plaintext_mode_sticky:"Einf\u00FCgemodus ist nun \"Nur Text\". Erneut klicken (oder das Einf\u00FCgen aus der Zwischenablage) stellt den Normalmodus wieder her.", +plaintext_mode:"Einf\u00FCgemodus ist nun \"Nur Text\". Erneut klicken stellt den Normalmodus wieder her." +}, +paste_dlg:{ +text_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen.", +text_linebreaks:"Zeilenumbr\u00FCche beibehalten", +word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen." +}, +table:{ +desc:"Tabelle erstellen/bearbeiten", +row_before_desc:"Zeile oberhalb einf\u00FCgen", +row_after_desc:"Zeile unterhalb einf\u00FCgen", +delete_row_desc:"Zeile l\u00F6schen", +col_before_desc:"Spalte links einf\u00FCgen", +col_after_desc:"Spalte rechts einf\u00FCgen", +delete_col_desc:"Spalte l\u00F6schen", +split_cells_desc:"Verbundene Zellen trennen", +merge_cells_desc:"Zellen verbinden", +row_desc:"Eigenschaften der Zeile", +cell_desc:"Eigenschaften der Zelle", +props_desc:"Eigenschaften der Tabelle", +paste_row_before_desc:"Zeile oberhalb aus der Zwischenablage einf\u00FCgen", +paste_row_after_desc:"Zeile unterhalb aus der Zwischenablage einf\u00FCgen", +cut_row_desc:"Zeile ausschneiden", +copy_row_desc:"Zeile kopieren", +del:"Tabelle l\u00F6schen", +row:"Zeile", +col:"Spalte", +cell:"Zelle", +cellprops_delta_width:"150" +}, +autosave:{ +unload_msg:"Ihre \u00C4nderungen werden verloren gehen, wenn Sie die Seite verlassen.", +restore_content:"Automatisch gespeicherten Inhalt wiederherstellen.", +warning_message:"Wenn Sie den Inhalt wiederherstellen, gehen die aktuellen Daten im Editor verloren.\n\nSind sie sicher, dass Sie den Inhalt wiederherstellen m\u00F6chten?" +}, +fullscreen:{ +desc:"Vollbildschirm" +}, +media:{ +desc:"Multimedia einbetten/bearbeiten", +edit:"Multimediaeinbettung bearbeiten" +}, +fullpage:{ +desc:"Dokument-Eigenschaften" +}, +template:{ +desc:"Inhalt aus Vorlage einf\u00FCgen" +}, +visualchars:{ +desc:"Sichtbarkeit der Steuerzeichen an/aus" +}, +spellchecker:{ +desc:"Rechtschreibpr\u00FCfung an/aus", +menu:"Einstellungen der Rechtschreibpr\u00FCfung", +ignore_word:"Wort ignorieren", +ignore_words:"Alle ignorieren", +langs:"Sprachen", +wait:"Bitte warten...", +sug:"Vorschl\u00E4ge", +no_sug:"Keine Vorschl\u00E4ge", +no_mpell:"Keine Rechtschreibfehler gefunden." +}, +pagebreak:{ +desc:"Seitenumbruch einf\u00FCgen" +}, +snstuff:{ +img_desc:"Bild einf\u00FCgen/ersetzen", +lnk_desc:"Link einf\u00FCgen/ersetzen", +code_desc:"Quelltext einf\u00FCgen", +quote_desc:"Zitat einf\u00FCgen", +proposals_desc:"Linkvorschl\u00E4ge einf\u00FCgen", +infobox_desc:"Infobox einf\u00FCgen/bearbeiten", +infoboxhead_desc:"Infobox \u00FCberschrift" +}, +advlist:{ +types:"Typen", +def:"Standard", +lower_alpha:"a. b. c.", +lower_greek:"1. 2. 3.", +lower_roman:"i. ii. iii.", +upper_alpha:"A. B. C.", +upper_roman:"I. II. III.", +circle:"Kreis", +disc:"Punkt", +square:"Quadrat" +}}}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/langs/en.js b/sn_computer/html/tiny_mce/langs/en.js new file mode 100644 index 0000000..223ada7 --- /dev/null +++ b/sn_computer/html/tiny_mce/langs/en.js @@ -0,0 +1,170 @@ +tinyMCE.addI18n({en:{ +common:{ +edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", +apply:"Apply", +insert:"Insert", +update:"Update", +cancel:"Cancel", +close:"Close", +browse:"Browse", +class_name:"Class", +not_set:"-- Not set --", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?", +clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.", +popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", +invalid_data:"Error: Invalid values entered, these are marked in red.", +more_colors:"More colors" +}, +contextmenu:{ +align:"Alignment", +left:"Left", +center:"Center", +right:"Right", +full:"Full" +}, +insertdatetime:{ +date_fmt:"%Y-%m-%d", +time_fmt:"%H:%M:%S", +insertdate_desc:"Insert date", +inserttime_desc:"Insert time", +months_long:"January,February,March,April,May,June,July,August,September,October,November,December", +months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", +day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", +day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" +}, +print:{ +print_desc:"Print" +}, +preview:{ +preview_desc:"Preview" +}, +directionality:{ +ltr_desc:"Direction left to right", +rtl_desc:"Direction right to left" +}, +layer:{ +insertlayer_desc:"Insert new layer", +forward_desc:"Move forward", +backward_desc:"Move backward", +absolute_desc:"Toggle absolute positioning", +content:"New layer..." +}, +save:{ +save_desc:"Save", +cancel_desc:"Cancel all changes" +}, +nonbreaking:{ +nonbreaking_desc:"Insert non-breaking space character" +}, +iespell:{ +iespell_desc:"Run spell checking", +download:"ieSpell not detected. Do you want to install it now?" +}, +advhr:{ +advhr_desc:"Horizontal rule" +}, +emotions:{ +emotions_desc:"Emotions" +}, +searchreplace:{ +search_desc:"Find", +replace_desc:"Find/Replace" +}, +advimage:{ +image_desc:"Insert/edit image" +}, +advlink:{ +link_desc:"Insert/edit link" +}, +xhtmlxtras:{ +cite_desc:"Citation", +abbr_desc:"Abbreviation", +acronym_desc:"Acronym", +del_desc:"Deletion", +ins_desc:"Insertion", +attribs_desc:"Insert/Edit Attributes" +}, +style:{ +desc:"Edit CSS Style" +}, +paste:{ +paste_text_desc:"Paste as Plain Text", +paste_word_desc:"Paste from Word", +selectall_desc:"Select All", +plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", +plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode." +}, +paste_dlg:{ +text_title:"Use CTRL+V on your keyboard to paste the text into the window.", +text_linebreaks:"Keep linebreaks", +word_title:"Use CTRL+V on your keyboard to paste the text into the window." +}, +table:{ +desc:"Inserts a new table", +row_before_desc:"Insert row before", +row_after_desc:"Insert row after", +delete_row_desc:"Delete row", +col_before_desc:"Insert column before", +col_after_desc:"Insert column after", +delete_col_desc:"Remove column", +split_cells_desc:"Split merged table cells", +merge_cells_desc:"Merge table cells", +row_desc:"Table row properties", +cell_desc:"Table cell properties", +props_desc:"Table properties", +paste_row_before_desc:"Paste table row before", +paste_row_after_desc:"Paste table row after", +cut_row_desc:"Cut table row", +copy_row_desc:"Copy table row", +del:"Delete table", +row:"Row", +col:"Column", +cell:"Cell" +}, +autosave:{ +unload_msg:"The changes you made will be lost if you navigate away from this page.", +restore_content:"Restore auto-saved content.", +warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?." +}, +fullscreen:{ +desc:"Toggle fullscreen mode" +}, +media:{ +desc:"Insert / edit embedded media", +edit:"Edit embedded media" +}, +fullpage:{ +desc:"Document properties" +}, +template:{ +desc:"Insert predefined template content" +}, +visualchars:{ +desc:"Visual control characters on/off." +}, +spellchecker:{ +desc:"Toggle spellchecker", +menu:"Spellchecker settings", +ignore_word:"Ignore word", +ignore_words:"Ignore all", +langs:"Languages", +wait:"Please wait...", +sug:"Suggestions", +no_sug:"No suggestions", +no_mpell:"No misspellings found." +}, +pagebreak:{ +desc:"Insert page break." +}, +advlist:{ +types:"Types", +def:"Default", +lower_alpha:"Lower alpha", +lower_greek:"Lower greek", +lower_roman:"Lower roman", +upper_alpha:"Upper alpha", +upper_roman:"Upper roman", +circle:"Circle", +disc:"Disc", +square:"Square" +}}}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/license.txt b/sn_computer/html/tiny_mce/license.txt new file mode 100644 index 0000000..1837b0a --- /dev/null +++ b/sn_computer/html/tiny_mce/license.txt @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/sn_computer/html/tiny_mce/plugins/advhr/css/advhr.css b/sn_computer/html/tiny_mce/plugins/advhr/css/advhr.css new file mode 100644 index 0000000..3fe369c --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advhr/css/advhr.css @@ -0,0 +1,5 @@ +input.radio {border:1px none #000; background:transparent; vertical-align:middle;} +.panel_wrapper div.current {height:80px;} +#width {width:50px; vertical-align:middle;} +#width2 {width:50px; vertical-align:middle;} +#size {width:100px;} diff --git a/sn_computer/html/tiny_mce/plugins/advhr/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/advhr/editor_plugin.js new file mode 100644 index 0000000..4d3b062 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advhr/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advhr/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/advhr/editor_plugin_src.js new file mode 100644 index 0000000..5a4b725 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advhr/editor_plugin_src.js @@ -0,0 +1,57 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedHRPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvancedHr', function() { + ed.windowManager.open({ + file : url + '/rule.htm', + width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), + height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('advhr', { + title : 'advhr.advhr_desc', + cmd : 'mceAdvancedHr' + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('advhr', n.nodeName == 'HR'); + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'HR') + ed.selection.select(e); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced HR', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advhr/js/rule.js b/sn_computer/html/tiny_mce/plugins/advhr/js/rule.js new file mode 100644 index 0000000..a60c35f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advhr/js/rule.js @@ -0,0 +1,43 @@ +var AdvHRDialog = { + init : function(ed) { + var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; + + w = dom.getAttrib(n, 'width'); + f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); + f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; + f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); + selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); + }, + + update : function() { + var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; + + h = ' + + + {#advhr.advhr_desc} + + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + +
    + + +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/advimage/css/advimage.css b/sn_computer/html/tiny_mce/plugins/advimage/css/advimage.css new file mode 100644 index 0000000..228530f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/css/advimage.css @@ -0,0 +1,13 @@ +#src_list, #over_list, #out_list {width:280px;} +.mceActionPanel {margin-top:7px;} +.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} +.checkbox {border:0;} +.panel_wrapper div.current {height:305px;} +#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} +#align, #classlist {width:150px;} +#width, #height {vertical-align:middle; width:50px; text-align:center;} +#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} +#class_list {width:180px;} +input {width: 280px;} +#constrain, #onmousemovecheck {width:auto;} +#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/sn_computer/html/tiny_mce/plugins/advimage/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/advimage/editor_plugin.js new file mode 100644 index 0000000..4c7a9c3 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advimage/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/advimage/editor_plugin_src.js new file mode 100644 index 0000000..351542f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/editor_plugin_src.js @@ -0,0 +1,50 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedImagePlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvImage', function() { + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + file : url + '/image.htm', + width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)), + height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('image', { + title : 'advimage.image_desc', + cmd : 'mceAdvImage' + }); + }, + + getInfo : function() { + return { + longname : 'Advanced image', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advimage/image.htm b/sn_computer/html/tiny_mce/plugins/advimage/image.htm new file mode 100644 index 0000000..7af5a00 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/image.htm @@ -0,0 +1,232 @@ + + + + {#advimage_dlg.dialog_title} + + + + + + + + + +
    + + +
    +
    +
    + {#advimage_dlg.general} + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    +
    + +
    + {#advimage_dlg.preview} + +
    +
    + +
    +
    + {#advimage_dlg.tab_appearance} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + {#advimage_dlg.example_img} + Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam + nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum + edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam + erat volutpat. +
    +
    + x + px +
      + + + + +
    +
    +
    +
    + +
    +
    + {#advimage_dlg.swap_image} + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    + + + + +
     
    +
    + +
    + {#advimage_dlg.misc} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    + + + + +
     
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/advimage/img/sample.gif b/sn_computer/html/tiny_mce/plugins/advimage/img/sample.gif new file mode 100644 index 0000000..53bf689 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/advimage/img/sample.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/advimage/js/image.js b/sn_computer/html/tiny_mce/plugins/advimage/js/image.js new file mode 100644 index 0000000..d08e469 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/js/image.js @@ -0,0 +1,443 @@ +var ImageDialog = { + preInit : function() { + var url; + + tinyMCEPopup.requireLangPack(); + + if (url = tinyMCEPopup.getParam("external_image_list_url")) + document.write(''); + }, + + init : function(ed) { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + tinyMCEPopup.resizeToInnerSize(); + this.fillClassList('class_list'); + this.fillFileList('src_list', 'tinyMCEImageList'); + this.fillFileList('over_list', 'tinyMCEImageList'); + this.fillFileList('out_list', 'tinyMCEImageList'); + TinyMCE_EditableSelects.init(); + + if (n.nodeName == 'IMG') { + nl.src.value = dom.getAttrib(n, 'src'); + nl.width.value = dom.getAttrib(n, 'width'); + nl.height.value = dom.getAttrib(n, 'height'); + nl.alt.value = dom.getAttrib(n, 'alt'); + nl.title.value = dom.getAttrib(n, 'title'); + nl.vspace.value = this.getAttrib(n, 'vspace'); + nl.hspace.value = this.getAttrib(n, 'hspace'); + nl.border.value = this.getAttrib(n, 'border'); + selectByValue(f, 'align', this.getAttrib(n, 'align')); + selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); + nl.style.value = dom.getAttrib(n, 'style'); + nl.id.value = dom.getAttrib(n, 'id'); + nl.dir.value = dom.getAttrib(n, 'dir'); + nl.lang.value = dom.getAttrib(n, 'lang'); + nl.usemap.value = dom.getAttrib(n, 'usemap'); + nl.longdesc.value = dom.getAttrib(n, 'longdesc'); + nl.insert.value = ed.getLang('update'); + + if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover'))) + nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); + + if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout'))) + nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); + + if (ed.settings.inline_styles) { + // Move attribs to styles + if (dom.getAttrib(n, 'align')) + this.updateStyle('align'); + + if (dom.getAttrib(n, 'hspace')) + this.updateStyle('hspace'); + + if (dom.getAttrib(n, 'border')) + this.updateStyle('border'); + + if (dom.getAttrib(n, 'vspace')) + this.updateStyle('vspace'); + } + } + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '260px'; + + // Setup browse button + document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image'); + if (isVisible('overbrowser')) + document.getElementById('onmouseoversrc').style.width = '260px'; + + // Setup browse button + document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image'); + if (isVisible('outbrowser')) + document.getElementById('onmouseoutsrc').style.width = '260px'; + + // If option enabled default contrain proportions to checked + if (ed.getParam("advimage_constrain_proportions", true)) + f.constrain.checked = true; + + // Check swap image if valid data + if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value) + this.setSwapImage(true); + else + this.setSwapImage(false); + + this.changeAppearance(); + this.showPreviewImage(nl.src.value, 1); + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor, t = this, f = document.forms[0]; + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (tinyMCEPopup.getParam("accessibility_warnings", 1)) { + if (!f.alt.value) { + tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) { + if (s) + t.insertAndClose(); + }); + + return; + } + } + + t.insertAndClose(); + }, + + insertAndClose : function() { + var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + // Fixes crash in Safari + if (tinymce.isWebKit) + ed.getWin().focus(); + + if (!ed.settings.inline_styles) { + args = { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }; + } else { + // Remove deprecated values + args = { + vspace : '', + hspace : '', + border : '', + align : '' + }; + } + + tinymce.extend(args, { + src : nl.src.value, + width : nl.width.value, + height : nl.height.value, + alt : nl.alt.value, + title : nl.title.value, + 'class' : getSelectValue(f, 'class_list'), + style : nl.style.value, + id : nl.id.value, + dir : nl.dir.value, + lang : nl.lang.value, + usemap : nl.usemap.value, + longdesc : nl.longdesc.value + }); + + args.onmouseover = args.onmouseout = ''; + + if (f.onmousemovecheck.checked) { + if (nl.onmouseoversrc.value) + args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';"; + + if (nl.onmouseoutsrc.value) + args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';"; + } + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + setSwapImage : function(st) { + var f = document.forms[0]; + + f.onmousemovecheck.checked = st; + setBrowserDisabled('overbrowser', !st); + setBrowserDisabled('outbrowser', !st); + + if (f.over_list) + f.over_list.disabled = !st; + + if (f.out_list) + f.out_list.disabled = !st; + + f.onmouseoversrc.disabled = !st; + f.onmouseoutsrc.disabled = !st; + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options.length = 0; + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + lst.options.length = 0; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.elements.width.value = f.elements.height.value = ''; + }, + + updateImageData : function(img, st) { + var f = document.forms[0]; + + if (!st) { + f.elements.width.value = img.width; + f.elements.height.value = img.height; + } + + this.preloadImg = img; + }, + + changeAppearance : function() { + var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg'); + + if (img) { + if (ed.getParam('inline_styles')) { + ed.dom.setAttrib(img, 'style', f.style.value); + } else { + img.align = f.align.value; + img.border = f.border.value; + img.hspace = f.hspace.value; + img.vspace = f.vspace.value; + } + } + }, + + changeHeight : function() { + var f = document.forms[0], tp, t = this; + + if (!f.constrain.checked || !t.preloadImg) { + return; + } + + if (f.width.value == "" || f.height.value == "") + return; + + tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height; + f.height.value = tp.toFixed(0); + }, + + changeWidth : function() { + var f = document.forms[0], tp, t = this; + + if (!f.constrain.checked || !t.preloadImg) { + return; + } + + if (f.width.value == "" || f.height.value == "") + return; + + tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width; + f.width.value = tp.toFixed(0); + }, + + updateStyle : function(ty) { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value}); + + if (tinyMCEPopup.editor.settings.inline_styles) { + // Handle align + if (ty == 'align') { + dom.setStyle(img, 'float', ''); + dom.setStyle(img, 'vertical-align', ''); + + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') + dom.setStyle(img, 'float', v); + else + img.style.verticalAlign = v; + } + } + + // Handle border + if (ty == 'border') { + dom.setStyle(img, 'border', ''); + + v = f.border.value; + if (v || v == '0') { + if (v == '0') + img.style.border = '0'; + else + img.style.border = v + 'px solid black'; + } + } + + // Handle hspace + if (ty == 'hspace') { + dom.setStyle(img, 'marginLeft', ''); + dom.setStyle(img, 'marginRight', ''); + + v = f.hspace.value; + if (v) { + img.style.marginLeft = v + 'px'; + img.style.marginRight = v + 'px'; + } + } + + // Handle vspace + if (ty == 'vspace') { + dom.setStyle(img, 'marginTop', ''); + dom.setStyle(img, 'marginBottom', ''); + + v = f.vspace.value; + if (v) { + img.style.marginTop = v + 'px'; + img.style.marginBottom = v + 'px'; + } + } + + // Merge + dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img'); + } + }, + + changeMouseMove : function() { + }, + + showPreviewImage : function(u, st) { + if (!u) { + tinyMCEPopup.dom.setHTML('prev', ''); + return; + } + + if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) + this.resetImageData(); + + u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); + + if (!st) + tinyMCEPopup.dom.setHTML('prev', ''); + else + tinyMCEPopup.dom.setHTML('prev', ''); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_computer/html/tiny_mce/plugins/advimage/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/advimage/langs/de_dlg.js new file mode 100644 index 0000000..76764c0 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/langs/de_dlg.js @@ -0,0 +1,43 @@ +tinyMCE.addI18n('de.advimage_dlg',{ +tab_general:"Allgemein", +tab_appearance:"Aussehen", +tab_advanced:"Erweitert", +general:"Allgemein", +title:"Titel", +preview:"Vorschau", +constrain_proportions:"Seitenverh\u00E4ltnis beibehalten", +langdir:"Schriftrichtung", +langcode:"Sprachcode", +long_desc:"Ausf\u00FChrliche Beschreibung", +style:"Format", +classes:"Klassen", +ltr:"Links nach rechts", +rtl:"Rechts nach links", +id:"ID", +map:"Image-Map", +swap_image:"Bild austauschen", +alt_image:"Alternatives Bild", +mouseover:"bei Mauskontakt", +mouseout:"bei keinem Mauskontakt", +misc:"Verschiedenes", +example_img:"Aussehen der Vorschau", +missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnen so nicht darauf zugreifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.", +dialog_title:"Bild einf\u00FCgen/bearbeiten", +src:"Adresse", +alt:"Beschreibung", +list:"Bilderliste", +border:"Rahmen", +dimensions:"Ausma\u00DFe", +vspace:"Vertikaler Abstand", +hspace:"Horizontaler Abstand", +align:"Ausrichtung", +align_baseline:"Zeile", +align_top:"Oben", +align_middle:"Mittig", +align_bottom:"Unten", +align_texttop:"Oben im Text", +align_textbottom:"Unten im Text", +align_left:"Links", +align_right:"Rechts", +image_list:"Bilderliste" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advimage/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/advimage/langs/en_dlg.js new file mode 100644 index 0000000..ef81f78 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advimage/langs/en_dlg.js @@ -0,0 +1,43 @@ +tinyMCE.addI18n('en.advimage_dlg',{ +tab_general:"General", +tab_appearance:"Appearance", +tab_advanced:"Advanced", +general:"General", +title:"Title", +preview:"Preview", +constrain_proportions:"Constrain proportions", +langdir:"Language direction", +langcode:"Language code", +long_desc:"Long description link", +style:"Style", +classes:"Classes", +ltr:"Left to right", +rtl:"Right to left", +id:"Id", +map:"Image map", +swap_image:"Swap image", +alt_image:"Alternative image", +mouseover:"for mouse over", +mouseout:"for mouse out", +misc:"Miscellaneous", +example_img:"Appearance preview image", +missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", +dialog_title:"Insert/edit image", +src:"Image URL", +alt:"Image description", +list:"Image list", +border:"Border", +dimensions:"Dimensions", +vspace:"Vertical space", +hspace:"Horizontal space", +align:"Alignment", +align_baseline:"Baseline", +align_top:"Top", +align_middle:"Middle", +align_bottom:"Bottom", +align_texttop:"Text top", +align_textbottom:"Text bottom", +align_left:"Left", +align_right:"Right", +image_list:"Image list" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advlink/css/advlink.css b/sn_computer/html/tiny_mce/plugins/advlink/css/advlink.css new file mode 100644 index 0000000..66c6549 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/css/advlink.css @@ -0,0 +1,8 @@ +.mceLinkList, .mceAnchorList, #targetlist {width:280px;} +.mceActionPanel {margin-top:7px;} +.panel_wrapper div.current {height:320px;} +#classlist, #title, #href {width:280px;} +#popupurl, #popupname {width:200px;} +#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} +#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} +#events_panel input {width:200px;} diff --git a/sn_computer/html/tiny_mce/plugins/advlink/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/advlink/editor_plugin.js new file mode 100644 index 0000000..983fe5a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advlink/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/advlink/editor_plugin_src.js new file mode 100644 index 0000000..32ea8f3 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/editor_plugin_src.js @@ -0,0 +1,61 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { + init : function(ed, url) { + this.editor = ed; + + // Register commands + ed.addCommand('mceAdvLink', function() { + var se = ed.selection; + + // No selection and not in link + if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A')) + return; + + ed.windowManager.open({ + file : url + '/link.htm', + width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)), + height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('link', { + title : 'advlink.link_desc', + cmd : 'mceAdvLink' + }); + + ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink'); + + ed.onNodeChange.add(function(ed, cm, n, co) { + cm.setDisabled('link', co && n.nodeName != 'A'); + cm.setActive('link', n.nodeName == 'A' && !n.name); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced link', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advlink/js/advlink.js b/sn_computer/html/tiny_mce/plugins/advlink/js/advlink.js new file mode 100644 index 0000000..6fa37e8 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/js/advlink.js @@ -0,0 +1,528 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +var templates = { + "window.open" : "window.open('${url}','${target}','${options}')" +}; + +function preinit() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function changeClass() { + var f = document.forms[0]; + + f.classes.value = getSelectValue(f, 'classlist'); +} + +function init() { + tinyMCEPopup.resizeToInnerSize(); + + var formObj = document.forms[0]; + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + var action = "insert"; + var html; + + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); + document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); + document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); + document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); + document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); + + // Link list + html = getLinkListHTML('linklisthref','href'); + if (html == "") + document.getElementById("linklisthrefrow").style.display = 'none'; + else + document.getElementById("linklisthrefcontainer").innerHTML = html; + + // Resize some elements + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '260px'; + + if (isVisible('popupurlbrowser')) + document.getElementById('popupurl').style.width = '180px'; + + elm = inst.dom.getParent(elm, "A"); + if (elm != null && elm.nodeName == "A") + action = "update"; + + formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true); + + setPopupControlsDisabled(true); + + if (action == "update") { + var href = inst.dom.getAttrib(elm, 'href'); + var onclick = inst.dom.getAttrib(elm, 'onclick'); + + // Setup form data + setFormValue('href', href); + setFormValue('title', inst.dom.getAttrib(elm, 'title')); + setFormValue('id', inst.dom.getAttrib(elm, 'id')); + setFormValue('style', inst.dom.getAttrib(elm, "style")); + setFormValue('rel', inst.dom.getAttrib(elm, 'rel')); + setFormValue('rev', inst.dom.getAttrib(elm, 'rev')); + setFormValue('charset', inst.dom.getAttrib(elm, 'charset')); + setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang')); + setFormValue('dir', inst.dom.getAttrib(elm, 'dir')); + setFormValue('lang', inst.dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('type', inst.dom.getAttrib(elm, 'type')); + setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup')); + setFormValue('target', inst.dom.getAttrib(elm, 'target')); + setFormValue('classes', inst.dom.getAttrib(elm, 'class')); + + // Parse onclick data + if (onclick != null && onclick.indexOf('window.open') != -1) + parseWindowOpen(onclick); + else + parseFunction(onclick); + + // Select by the values + selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir')); + selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel')); + selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev')); + selectByValue(formObj, 'linklisthref', href); + + if (href.charAt(0) == '#') + selectByValue(formObj, 'anchorlist', href); + + addClassesToList('classlist', 'advlink_styles'); + + selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true); + selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true); + } else + addClassesToList('classlist', 'advlink_styles'); +} + +function checkPrefix(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) + n.value = 'http://' + n.value; +} + +function setFormValue(name, value) { + document.forms[0].elements[name].value = value; +} + +function parseWindowOpen(onclick) { + var formObj = document.forms[0]; + + // Preprocess center code + if (onclick.indexOf('return false;') != -1) { + formObj.popupreturn.checked = true; + onclick = onclick.replace('return false;', ''); + } else + formObj.popupreturn.checked = false; + + var onClickData = parseLink(onclick); + + if (onClickData != null) { + formObj.ispopup.checked = true; + setPopupControlsDisabled(false); + + var onClickWindowOptions = parseOptions(onClickData['options']); + var url = onClickData['url']; + + formObj.popupname.value = onClickData['target']; + formObj.popupurl.value = url; + formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); + formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); + + formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); + formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); + + if (formObj.popupleft.value.indexOf('screen') != -1) + formObj.popupleft.value = "c"; + + if (formObj.popuptop.value.indexOf('screen') != -1) + formObj.popuptop.value = "c"; + + formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; + formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; + formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; + formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; + formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; + formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; + formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; + + buildOnClick(); + } +} + +function parseFunction(onclick) { + var formObj = document.forms[0]; + var onClickData = parseLink(onclick); + + // TODO: Add stuff here +} + +function getOption(opts, name) { + return typeof(opts[name]) == "undefined" ? "" : opts[name]; +} + +function setPopupControlsDisabled(state) { + var formObj = document.forms[0]; + + formObj.popupname.disabled = state; + formObj.popupurl.disabled = state; + formObj.popupwidth.disabled = state; + formObj.popupheight.disabled = state; + formObj.popupleft.disabled = state; + formObj.popuptop.disabled = state; + formObj.popuplocation.disabled = state; + formObj.popupscrollbars.disabled = state; + formObj.popupmenubar.disabled = state; + formObj.popupresizable.disabled = state; + formObj.popuptoolbar.disabled = state; + formObj.popupstatus.disabled = state; + formObj.popupreturn.disabled = state; + formObj.popupdependent.disabled = state; + + setBrowserDisabled('popupurlbrowser', state); +} + +function parseLink(link) { + link = link.replace(new RegExp(''', 'g'), "'"); + + var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); + + // Is function name a template function + var template = templates[fnName]; + if (template) { + // Build regexp + var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); + var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; + var replaceStr = ""; + for (var i=0; i'); + for (var i=0; i'; + html += ''; + + for (i=0; i' + name + ''; + } + + html += ''; + + return html; +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm, elementArray, i; + + elm = inst.selection.getNode(); + checkPrefix(document.forms[0].href); + + elm = inst.dom.getParent(elm, "A"); + + // Remove element if there is no href + if (!document.forms[0].href.value) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + i = inst.selection.getBookmark(); + inst.dom.remove(elm, 1); + inst.selection.moveToBookmark(i); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (elm == null) { + inst.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); + for (i=0; i' + tinyMCELinkList[i][0] + ''; + + html += ''; + + return html; + + // tinyMCE.debug('-- image list start --', html, '-- image list end --'); +} + +function getTargetListHTML(elm_id, target_form_element) { + var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';'); + var html = ''; + + html += ''; + + return html; +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/plugins/advlink/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/advlink/langs/de_dlg.js new file mode 100644 index 0000000..6fdfbe2 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/langs/de_dlg.js @@ -0,0 +1,52 @@ +tinyMCE.addI18n('de.advlink_dlg',{ +title:"Link einf\u00FCgen/bearbeiten", +url:"Adresse", +target:"Fenster", +titlefield:"Titel", +is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"mailto:\" voranstellen?", +is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"http://\" voranstellen?", +list:"Linkliste", +general_tab:"Allgemein", +popup_tab:"Popup", +events_tab:"Ereignisse", +advanced_tab:"Erweitert", +general_props:"Allemeine Eigenschaften", +popup_props:"Popup-Eigenschaften", +event_props:"Ereignisse", +advanced_props:"Erweiterte Eigenschaften", +popup_opts:"Optionen", +anchor_names:"Anker", +target_same:"Im selben Fenster/Frame \u00F6ffnen", +target_parent:"Im \u00FCbergeordneten Fenster/Frame \u00F6ffnen", +target_top:"Im obersten Frame \u00F6ffnen (sprengt das Frameset)", +target_blank:"In neuem Fenster \u00F6ffnen", +popup:"JavaScript-Popup", +popup_url:"Popup-Adresse", +popup_name:"Name des Fensters", +popup_return:"Link trotz Popup folgen", +popup_scrollbars:"Scrollbalken anzeigen", +popup_statusbar:"Statusleiste anzeigen", +popup_toolbar:"Werkzeugleisten anzeigen", +popup_menubar:"Browsermen\u00FC anzeigen", +popup_location:"Adressleiste anzeigen", +popup_resizable:"Vergr\u00F6\u00DFern des Fenster zulassen", +popup_dependent:"Vom Elternfenster abh\u00E4ngig
    (nur Mozilla/Firefox) ", +popup_size:"Gr\u00F6\u00DFe", +popup_position:"Position (X/Y)", +id:"ID", +style:"Format", +classes:"Klassen", +target_name:"Name der Zielseite", +langdir:"Schriftrichtung", +target_langcode:"Sprache der Zielseite", +langcode:"Sprachcode", +encoding:"Zeichenkodierung der Zielseite", +mime:"MIME-Type der Zielseite", +rel:"Beziehung der Seite zum Linkziel", +rev:"Beziehung des Linkziels zur Seite", +tabindex:"Tabindex", +accesskey:"Tastenk\u00FCrzel", +ltr:"Links nach rechts", +rtl:"Rechts nach links", +link_list:"Linkliste" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advlink/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/advlink/langs/en_dlg.js new file mode 100644 index 0000000..8ef9c79 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/langs/en_dlg.js @@ -0,0 +1,52 @@ +tinyMCE.addI18n('en.advlink_dlg',{ +title:"Insert/edit link", +url:"Link URL", +target:"Target", +titlefield:"Title", +is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +list:"Link list", +general_tab:"General", +popup_tab:"Popup", +events_tab:"Events", +advanced_tab:"Advanced", +general_props:"General properties", +popup_props:"Popup properties", +event_props:"Events", +advanced_props:"Advanced properties", +popup_opts:"Options", +anchor_names:"Anchors", +target_same:"Open in this window / frame", +target_parent:"Open in parent window / frame", +target_top:"Open in top frame (replaces all frames)", +target_blank:"Open in new window", +popup:"Javascript popup", +popup_url:"Popup URL", +popup_name:"Window name", +popup_return:"Insert 'return false'", +popup_scrollbars:"Show scrollbars", +popup_statusbar:"Show status bar", +popup_toolbar:"Show toolbars", +popup_menubar:"Show menu bar", +popup_location:"Show location bar", +popup_resizable:"Make window resizable", +popup_dependent:"Dependent (Mozilla/Firefox only)", +popup_size:"Size", +popup_position:"Position (X/Y)", +id:"Id", +style:"Style", +classes:"Classes", +target_name:"Target name", +langdir:"Language direction", +target_langcode:"Target language", +langcode:"Language code", +encoding:"Target character encoding", +mime:"Target MIME type", +rel:"Relationship page to target", +rev:"Relationship target to page", +tabindex:"Tabindex", +accesskey:"Accesskey", +ltr:"Left to right", +rtl:"Right to left", +link_list:"Link list" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advlink/link.htm b/sn_computer/html/tiny_mce/plugins/advlink/link.htm new file mode 100644 index 0000000..0b0e0bc --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlink/link.htm @@ -0,0 +1,333 @@ + + + + {#advlink_dlg.title} + + + + + + + + +
    + + +
    +
    +
    + {#advlink_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    + +
    +
    +
    + + + +
    +
    + {#advlink_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    +
    +
    +
    +
    + +
    +
    + {#advlink_dlg.event_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/advlist/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/advlist/editor_plugin.js new file mode 100644 index 0000000..02d1697 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlist/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/advlist/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/advlist/editor_plugin_src.js new file mode 100644 index 0000000..7a665fa --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/advlist/editor_plugin_src.js @@ -0,0 +1,154 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var each = tinymce.each; + + tinymce.create('tinymce.plugins.AdvListPlugin', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + function buildFormats(str) { + var formats = []; + + each(str.split(/,/), function(type) { + formats.push({ + title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')), + styles : { + listStyleType : type == 'default' ? '' : type + } + }); + }); + + return formats; + }; + + // Setup number formats from config or default + t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"); + t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square"); + }, + + createControl: function(name, cm) { + var t = this, btn, format; + + if (name == 'numlist' || name == 'bullist') { + // Default to first item if it's a default item + if (t[name][0].title == 'advlist.def') + format = t[name][0]; + + function hasFormat(node, format) { + var state = true; + + each(format.styles, function(value, name) { + // Format doesn't match + if (t.editor.dom.getStyle(node, name) != value) { + state = false; + return false; + } + }); + + return state; + }; + + function applyListFormat() { + var list, ed = t.editor, dom = ed.dom, sel = ed.selection; + + // Check for existing list element + list = dom.getParent(sel.getNode(), 'ol,ul'); + + // Switch/add list type if needed + if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format)) + ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList'); + + // Append styles to new list element + if (format) { + list = dom.getParent(sel.getNode(), 'ol,ul'); + + if (list) { + dom.setStyles(list, format.styles); + list.removeAttribute('_mce_style'); + } + } + }; + + btn = cm.createSplitButton(name, { + title : 'advanced.' + name + '_desc', + 'class' : 'mce_' + name, + onclick : function() { + applyListFormat(); + } + }); + + btn.onRenderMenu.add(function(btn, menu) { + menu.onShowMenu.add(function() { + var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList; + + if (list || format) { + fmtList = t[name]; + + // Unselect existing items + each(menu.items, function(item) { + var state = true; + + item.setSelected(0); + + if (list && !item.isDisabled()) { + each(fmtList, function(fmt) { + if (fmt.id == item.id) { + if (!hasFormat(list, fmt)) { + state = false; + return false; + } + } + }); + + if (state) + item.setSelected(1); + } + }); + + // Select the current format + if (!list) + menu.items[format.id].setSelected(1); + } + }); + + menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + each(t[name], function(item) { + item.id = t.editor.dom.uniqueId(); + + menu.add({id : item.id, title : item.title, onclick : function() { + format = item; + applyListFormat(); + }}); + }); + }); + + return btn; + } + }, + + getInfo : function() { + return { + longname : 'Advanced lists', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/autoresize/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/autoresize/editor_plugin.js new file mode 100644 index 0000000..1676b15 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/autoresize/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)})}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/autoresize/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/autoresize/editor_plugin_src.js new file mode 100644 index 0000000..c260b7a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/autoresize/editor_plugin_src.js @@ -0,0 +1,119 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + /** + * Auto Resize + * + * This plugin automatically resizes the content area to fit its content height. + * It will retain a minimum height, which is the height of the content area when + * it's initialized. + */ + tinymce.create('tinymce.plugins.AutoResizePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + var t = this; + + if (ed.getParam('fullscreen_is_enabled')) + return; + + /** + * This method gets executed each time the editor needs to resize. + */ + function resize() { + var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight; + + // Get height differently depending on the browser used + myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight; + + // Don't make it smaller than the minimum height + if (myHeight > t.autoresize_min_height) + resizeHeight = myHeight; + + // Resize content element + DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); + + // if we're throbbing, we'll re-throb to match the new size + if (t.throbbing) { + ed.setProgressState(false); + ed.setProgressState(true); + } + }; + + t.editor = ed; + + // Define minimum height + t.autoresize_min_height = ed.getElement().offsetHeight; + + // Add appropriate listeners for resizing content area + ed.onChange.add(resize); + ed.onSetContent.add(resize); + ed.onPaste.add(resize); + ed.onKeyUp.add(resize); + ed.onPostRender.add(resize); + + if (ed.getParam('autoresize_on_init', true)) { + // Things to do when the editor is ready + ed.onInit.add(function(ed, l) { + // Show throbber until content area is resized properly + ed.setProgressState(true); + t.throbbing = true; + + // Hide scrollbars + ed.getBody().style.overflowY = "hidden"; + }); + + ed.onLoadContent.add(function(ed, l) { + resize(); + + // Because the content area resizes when its content CSS loads, + // and we can't easily add a listener to its onload event, + // we'll just trigger a resize after a short loading period + setTimeout(function() { + resize(); + + // Disable throbber + ed.setProgressState(false); + t.throbbing = false; + }, 1250); + }); + } + + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceAutoResize', resize); + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Auto Resize', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/autosave/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/autosave/editor_plugin.js new file mode 100644 index 0000000..b33ebfb --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/autosave/editor_plugin.js @@ -0,0 +1 @@ +(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent().replace(/\s| |<\/?p[^>]*>|]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent();if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|]*>/gi, "").length > 0) { + // Show confirm dialog if the editor isn't empty + ed.windowManager.confirm( + PLUGIN_NAME + ".warning_message", + function(ok) { + if (ok) + self.restoreDraft(); + } + ); + } else + self.restoreDraft(); + } + }); + + // Enable/disable restoredraft button depending on if there is a draft stored or not + ed.onNodeChange.add(function() { + var controlManager = ed.controlManager; + + if (controlManager.get(RESTORE_DRAFT)) + controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft()); + }); + + ed.onInit.add(function() { + // Check if the user added the restore button, then setup auto storage logic + if (ed.controlManager.get(RESTORE_DRAFT)) { + // Setup storage engine + self.setupStorage(ed); + + // Auto save contents each interval time + setInterval(function() { + self.storeDraft(); + ed.nodeChanged(); + }, settings.autosave_interval); + } + }); + + /** + * This event gets fired when a draft is stored to local storage. + * + * @event onStoreDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onStoreDraft = new Dispatcher(self); + + /** + * This event gets fired when a draft is restored from local storage. + * + * @event onStoreDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onRestoreDraft = new Dispatcher(self); + + /** + * This event gets fired when a draft removed/expired. + * + * @event onRemoveDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onRemoveDraft = new Dispatcher(self); + + // Add ask before unload dialog only add one unload handler + if (!unloadHandlerAdded) { + window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler; + unloadHandlerAdded = TRUE; + } + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @method getInfo + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Auto save', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + /** + * Returns an expiration date UTC string. + * + * @method getExpDate + * @return {String} Expiration date UTC string. + */ + getExpDate : function() { + return new Date( + new Date().getTime() + this.editor.settings.autosave_retention + ).toUTCString(); + }, + + /** + * This method will setup the storage engine. If the browser has support for it. + * + * @method setupStorage + */ + setupStorage : function(ed) { + var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK"; + + self.key = PLUGIN_NAME + ed.id; + + // Loop though each storage engine type until we find one that works + tinymce.each([ + function() { + // Try HTML5 Local Storage + if (localStorage) { + localStorage.setItem(testKey, testVal); + + if (localStorage.getItem(testKey) === testVal) { + localStorage.removeItem(testKey); + + return localStorage; + } + } + }, + + function() { + // Try HTML5 Session Storage + if (sessionStorage) { + sessionStorage.setItem(testKey, testVal); + + if (sessionStorage.getItem(testKey) === testVal) { + sessionStorage.removeItem(testKey); + + return sessionStorage; + } + } + }, + + function() { + // Try IE userData + if (tinymce.isIE) { + ed.getElement().style.behavior = "url('#default#userData')"; + + // Fake localStorage on old IE + return { + autoExpires : TRUE, + + setItem : function(key, value) { + var userDataElement = ed.getElement(); + + userDataElement.setAttribute(key, value); + userDataElement.expires = self.getExpDate(); + userDataElement.save("TinyMCE"); + }, + + getItem : function(key) { + var userDataElement = ed.getElement(); + + userDataElement.load("TinyMCE"); + + return userDataElement.getAttribute(key); + }, + + removeItem : function(key) { + ed.getElement().removeAttribute(key); + } + }; + } + }, + ], function(setup) { + // Try executing each function to find a suitable storage engine + try { + self.storage = setup(); + + if (self.storage) + return false; + } catch (e) { + // Ignore + } + }); + }, + + /** + * This method will store the current contents in the the storage engine. + * + * @method storeDraft + */ + storeDraft : function() { + var self = this, storage = self.storage, editor = self.editor, expires, content; + + // Is the contents dirty + if (storage) { + // If there is no existing key and the contents hasn't been changed since + // it's original value then there is no point in saving a draft + if (!storage.getItem(self.key) && !editor.isDirty()) + return; + + // Store contents if the contents if longer than the minlength of characters + content = editor.getContent(); + if (content.length > editor.settings.autosave_minlength) { + expires = self.getExpDate(); + + // Store expiration date if needed IE userData has auto expire built in + if (!self.storage.autoExpires) + self.storage.setItem(self.key + "_expires", expires); + + self.storage.setItem(self.key, content); + self.onStoreDraft.dispatch(self, { + expires : expires, + content : content + }); + } + } + }, + + /** + * This method will restore the contents from the storage engine back to the editor. + * + * @method restoreDraft + */ + restoreDraft : function() { + var self = this, storage = self.storage; + + if (storage) { + content = storage.getItem(self.key); + + if (content) { + self.editor.setContent(content); + self.onRestoreDraft.dispatch(self, { + content : content + }); + } + } + }, + + /** + * This method will return true/false if there is a local storage draft available. + * + * @method hasDraft + * @return {boolean} true/false state if there is a local draft. + */ + hasDraft : function() { + var self = this, storage = self.storage, expDate, exists; + + if (storage) { + // Does the item exist at all + exists = !!storage.getItem(self.key); + if (exists) { + // Storage needs autoexpire + if (!self.storage.autoExpires) { + expDate = new Date(storage.getItem(self.key + "_expires")); + + // Contents hasn't expired + if (new Date().getTime() < expDate.getTime()) + return TRUE; + + // Remove it if it has + self.removeDraft(); + } else + return TRUE; + } + } + + return false; + }, + + /** + * Removes the currently stored draft. + * + * @method removeDraft + */ + removeDraft : function() { + var self = this, storage = self.storage, key = self.key, content; + + if (storage) { + // Get current contents and remove the existing draft + content = storage.getItem(key); + storage.removeItem(key); + storage.removeItem(key + "_expires"); + + // Dispatch remove event if we had any contents + if (content) { + self.onRemoveDraft.dispatch(self, { + content : content + }); + } + } + }, + + "static" : { + // Internal unload handler will be called before the page is unloaded + _beforeUnloadHandler : function(e) { + var msg; + + tinymce.each(tinyMCE.editors, function(ed) { + // Store a draft for each editor instance + if (ed.plugins.autosave) + ed.plugins.autosave.storeDraft(); + + // Never ask in fullscreen mode + if (ed.getParam("fullscreen_is_enabled")) + return; + + // Setup a return message if the editor is dirty + if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload")) + msg = ed.getLang("autosave.unload_msg"); + }); + + return msg; + } + } + }); + + tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave); +})(tinymce); diff --git a/sn_computer/html/tiny_mce/plugins/autosave/langs/en.js b/sn_computer/html/tiny_mce/plugins/autosave/langs/en.js new file mode 100644 index 0000000..219f769 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/autosave/langs/en.js @@ -0,0 +1,4 @@ +tinyMCE.addI18n('en.autosave',{ +restore_content: "Restore auto-saved content", +warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/bbcode/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/bbcode/editor_plugin.js new file mode 100644 index 0000000..930fdff --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/bbcode/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/
    /gi,"\n");b(//gi,"\n");b(/
    /gi,"\n");b(/

    /gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"
    ");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/bbcode/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/bbcode/editor_plugin_src.js new file mode 100644 index 0000000..3d27c46 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/bbcode/editor_plugin_src.js @@ -0,0 +1,120 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.BBCodePlugin', { + init : function(ed, url) { + var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = t['_' + dialect + '_bbcode2html'](o.content); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t['_' + dialect + '_bbcode2html'](o.content); + + if (o.get) + o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + }, + + getInfo : function() { + return { + longname : 'BBCode Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + // HTML -> BBCode in PunBB dialect + _punbb_html2bbcode : function(s) { + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + + // example: to [b] + rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); + rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); + rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); + rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); + rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); + rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); + rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); + rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); + rep(/(.*?)<\/font>/gi,"$1"); + rep(//gi,"[img]$1[/img]"); + rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); + rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); + rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); + rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); + rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); + rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); + rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); + rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); + rep(/<\/(strong|b)>/gi,"[/b]"); + rep(/<(strong|b)>/gi,"[b]"); + rep(/<\/(em|i)>/gi,"[/i]"); + rep(/<(em|i)>/gi,"[i]"); + rep(/<\/u>/gi,"[/u]"); + rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); + rep(//gi,"[u]"); + rep(/]*>/gi,"[quote]"); + rep(/<\/blockquote>/gi,"[/quote]"); + rep(/
    /gi,"\n"); + rep(//gi,"\n"); + rep(/
    /gi,"\n"); + rep(/

    /gi,""); + rep(/<\/p>/gi,"\n"); + rep(/ /gi," "); + rep(/"/gi,"\""); + rep(/</gi,"<"); + rep(/>/gi,">"); + rep(/&/gi,"&"); + + return s; + }, + + // BBCode -> HTML from PunBB dialect + _punbb_bbcode2html : function(s) { + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + + // example: [b] to + rep(/\n/gi,"
    "); + rep(/\[b\]/gi,""); + rep(/\[\/b\]/gi,""); + rep(/\[i\]/gi,""); + rep(/\[\/i\]/gi,""); + rep(/\[u\]/gi,""); + rep(/\[\/u\]/gi,""); + rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); + rep(/\[url\](.*?)\[\/url\]/gi,"$1"); + rep(/\[img\](.*?)\[\/img\]/gi,""); + rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); + rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); + rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); + + return s; + } + }); + + // Register plugin + tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/contextmenu/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/contextmenu/editor_plugin.js new file mode 100644 index 0000000..52cf79e --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/contextmenu/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",e);a.cancel(i)}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/contextmenu/editor_plugin_src.js new file mode 100644 index 0000000..e83cb7e --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/contextmenu/editor_plugin_src.js @@ -0,0 +1,140 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; + + /** + * This plugin a context menu to TinyMCE editor instances. + * + * @class tinymce.plugins.ContextMenu + */ + tinymce.create('tinymce.plugins.ContextMenu', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @method init + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed) { + var t = this, lastRng; + + t.editor = ed; + + /** + * This event gets fired when the context menu is shown. + * + * @event onContextMenu + * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. + * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. + */ + t.onContextMenu = new tinymce.util.Dispatcher(this); + + ed.onContextMenu.add(function(ed, e) { + if (!e.ctrlKey) { + // Restore the last selection since it was removed + if (lastRng) + ed.selection.setRng(lastRng); + + t._getMenu(ed).showMenu(e.clientX, e.clientY); + Event.add(ed.getDoc(), 'click', hide); + Event.cancel(e); + } + }); + + function hide(ed, e) { + lastRng = null; + + // Since the contextmenu event moves + // the selection we need to store it away + if (e && e.button == 2) { + lastRng = ed.selection.getRng(); + return; + } + + if (t._menu) { + t._menu.removeAll(); + t._menu.destroy(); + Event.remove(ed.getDoc(), 'click', hide); + } + }; + + ed.onMouseDown.add(hide); + ed.onKeyDown.add(hide); + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @method getInfo + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Contextmenu', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + _getMenu : function(ed) { + var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; + + if (m) { + m.removeAll(); + m.destroy(); + } + + p1 = DOM.getPos(ed.getContentAreaContainer()); + p2 = DOM.getPos(ed.getContainer()); + + m = ed.controlManager.createDropMenu('contextmenu', { + offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), + offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), + constrain : 1 + }); + + t._menu = m; + + m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); + m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); + m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); + + if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { + m.addSeparator(); + m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); + m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); + } + + m.addSeparator(); + m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); + + m.addSeparator(); + am = m.addMenu({title : 'contextmenu.align'}); + am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); + am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); + am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); + am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); + + t.onContextMenu.dispatch(t, m, el, col); + + return m; + } + }); + + // Register plugin + tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/directionality/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/directionality/editor_plugin.js new file mode 100644 index 0000000..bce8e73 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/directionality/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/directionality/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/directionality/editor_plugin_src.js new file mode 100644 index 0000000..205d02c --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/directionality/editor_plugin_src.js @@ -0,0 +1,82 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Directionality', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + ed.addCommand('mceDirectionLTR', function() { + var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); + + if (e) { + if (ed.dom.getAttrib(e, "dir") != "ltr") + ed.dom.setAttrib(e, "dir", "ltr"); + else + ed.dom.setAttrib(e, "dir", ""); + } + + ed.nodeChanged(); + }); + + ed.addCommand('mceDirectionRTL', function() { + var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); + + if (e) { + if (ed.dom.getAttrib(e, "dir") != "rtl") + ed.dom.setAttrib(e, "dir", "rtl"); + else + ed.dom.setAttrib(e, "dir", ""); + } + + ed.nodeChanged(); + }); + + ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); + ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); + + ed.onNodeChange.add(t._nodeChange, t); + }, + + getInfo : function() { + return { + longname : 'Directionality', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var dom = ed.dom, dir; + + n = dom.getParent(n, dom.isBlock); + if (!n) { + cm.setDisabled('ltr', 1); + cm.setDisabled('rtl', 1); + return; + } + + dir = dom.getAttrib(n, 'dir'); + cm.setActive('ltr', dir == "ltr"); + cm.setDisabled('ltr', 0); + cm.setActive('rtl', dir == "rtl"); + cm.setDisabled('rtl', 0); + } + }); + + // Register plugin + tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/emotions/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/emotions/editor_plugin.js new file mode 100644 index 0000000..dbdd8ff --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/emotions/editor_plugin.js @@ -0,0 +1 @@ +(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/emotions/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/emotions/editor_plugin_src.js new file mode 100644 index 0000000..aeee199 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/emotions/editor_plugin_src.js @@ -0,0 +1,43 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function(tinymce) { + tinymce.create('tinymce.plugins.EmotionsPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceEmotion', function() { + ed.windowManager.open({ + file : url + '/emotions.htm', + width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), + height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); + }, + + getInfo : function() { + return { + longname : 'Emotions', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); +})(tinymce); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/emotions/emotions.htm b/sn_computer/html/tiny_mce/plugins/emotions/emotions.htm new file mode 100644 index 0000000..5927b60 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/emotions/emotions.htm @@ -0,0 +1,40 @@ + + + + {#emotions_dlg.title} + + + + +

    +
    {#emotions_dlg.title}:

    + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {#emotions_dlg.cool}{#emotions_dlg.cry}{#emotions_dlg.embarassed}{#emotions_dlg.foot_in_mouth}
    {#emotions_dlg.frown}{#emotions_dlg.innocent}{#emotions_dlg.kiss}{#emotions_dlg.laughing}
    {#emotions_dlg.money_mouth}{#emotions_dlg.sealed}{#emotions_dlg.smile}{#emotions_dlg.surprised}
    {#emotions_dlg.tongue-out}{#emotions_dlg.undecided}{#emotions_dlg.wink}{#emotions_dlg.yell}
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-cool.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-cool.gif new file mode 100644 index 0000000..ba90cc3 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-cool.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-cry.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-cry.gif new file mode 100644 index 0000000..74d897a Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-cry.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif new file mode 100644 index 0000000..963a96b Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-embarassed.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif new file mode 100644 index 0000000..16f68cc Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-frown.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-frown.gif new file mode 100644 index 0000000..716f55e Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-frown.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-innocent.gif new file mode 100644 index 0000000..334d49e Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-innocent.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-kiss.gif new file mode 100644 index 0000000..4efd549 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-kiss.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-laughing.gif new file mode 100644 index 0000000..1606c11 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-laughing.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif new file mode 100644 index 0000000..ca2451e Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-sealed.gif new file mode 100644 index 0000000..b33d3cc Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-sealed.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-smile.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-smile.gif new file mode 100644 index 0000000..e6a9e60 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-smile.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-surprised.gif new file mode 100644 index 0000000..cb99cdd Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-surprised.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif new file mode 100644 index 0000000..2075dc1 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-undecided.gif new file mode 100644 index 0000000..bef7e25 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-undecided.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-wink.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-wink.gif new file mode 100644 index 0000000..9faf1af Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-wink.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-yell.gif b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-yell.gif new file mode 100644 index 0000000..648e6e8 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/emotions/img/smiley-yell.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/emotions/js/emotions.js b/sn_computer/html/tiny_mce/plugins/emotions/js/emotions.js new file mode 100644 index 0000000..e5c950f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/emotions/js/emotions.js @@ -0,0 +1,22 @@ +tinyMCEPopup.requireLangPack(); + +var EmotionsDialog = { + init : function(ed) { + tinyMCEPopup.resizeToInnerSize(); + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor, dom = ed.dom; + + tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { + src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, + alt : ed.getLang(title), + title : ed.getLang(title), + border : 0 + })); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/sn_computer/html/tiny_mce/plugins/emotions/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/emotions/langs/de_dlg.js new file mode 100644 index 0000000..7463ee0 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/emotions/langs/de_dlg.js @@ -0,0 +1,20 @@ +tinyMCE.addI18n('de.emotions_dlg',{ +title:"Smiley einf\u00FCgen", +desc:"Smilies", +cool:"Cool", +cry:"Weinend", +embarassed:"Verlegen", +foot_in_mouth:"Reingefallen", +frown:"Stirnrunzelnd", +innocent:"Unschuldig", +kiss:"K\u00FCssend", +laughing:"Lachend", +money_mouth:"Geld", +sealed:"Verschlossen", +smile:"L\u00E4chelnd", +surprised:"\u00DCberrascht", +tongue_out:"Zunge raus", +undecided:"Unentschlossen", +wink:"Zwinkernd", +yell:"Br\u00FCllend" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/emotions/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/emotions/langs/en_dlg.js new file mode 100644 index 0000000..f6d5f4b --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/emotions/langs/en_dlg.js @@ -0,0 +1,20 @@ +tinyMCE.addI18n('en.emotions_dlg',{ +title:"Insert emotion", +desc:"Emotions", +cool:"Cool", +cry:"Cry", +embarassed:"Embarassed", +foot_in_mouth:"Foot in mouth", +frown:"Frown", +innocent:"Innocent", +kiss:"Kiss", +laughing:"Laughing", +money_mouth:"Money mouth", +sealed:"Sealed", +smile:"Smile", +surprised:"Surprised", +tongue_out:"Tongue out", +undecided:"Undecided", +wink:"Wink", +yell:"Yell" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/example/dialog.htm b/sn_computer/html/tiny_mce/plugins/example/dialog.htm new file mode 100644 index 0000000..d6f2856 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/example/dialog.htm @@ -0,0 +1,22 @@ + + + + {#example_dlg.title} + + + + + +
    +

    Here is a example dialog.

    +

    Selected text:

    +

    Custom arg:

    + +
    + + +
    +
    + + + diff --git a/sn_computer/html/tiny_mce/plugins/example/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/example/editor_plugin.js new file mode 100644 index 0000000..ec1f81e --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/example/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/example/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/example/editor_plugin_src.js new file mode 100644 index 0000000..edc1e77 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/example/editor_plugin_src.js @@ -0,0 +1,84 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + // Load plugin specific language pack + tinymce.PluginManager.requireLangPack('example'); + + tinymce.create('tinymce.plugins.ExamplePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceExample', function() { + ed.windowManager.open({ + file : url + '/dialog.htm', + width : 320 + parseInt(ed.getLang('example.delta_width', 0)), + height : 120 + parseInt(ed.getLang('example.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, // Plugin absolute URL + some_custom_arg : 'custom arg' // Custom argument + }); + }); + + // Register example button + ed.addButton('example', { + title : 'example.desc', + cmd : 'mceExample', + image : url + '/img/example.gif' + }); + + // Add a node change handler, selects the button in the UI when a image is selected + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('example', n.nodeName == 'IMG'); + }); + }, + + /** + * Creates control instances based in the incomming name. This method is normally not + * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons + * but you sometimes need to create more complex controls like listboxes, split buttons etc then this + * method can be used to create those. + * + * @param {String} n Name of the control to create. + * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. + * @return {tinymce.ui.Control} New control instance or null if no control was created. + */ + createControl : function(n, cm) { + return null; + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Example plugin', + author : 'Some author', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', + version : "1.0" + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/example/img/example.gif b/sn_computer/html/tiny_mce/plugins/example/img/example.gif new file mode 100644 index 0000000..1ab5da4 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/example/img/example.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/example/js/dialog.js b/sn_computer/html/tiny_mce/plugins/example/js/dialog.js new file mode 100644 index 0000000..a7ee507 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/example/js/dialog.js @@ -0,0 +1,19 @@ +tinyMCEPopup.requireLangPack(); + +var ExampleDialog = { + init : function() { + var f = document.forms[0]; + + // Get the selected contents as text and place it in the input + f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); + f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); + }, + + insert : function() { + // Insert the contents from the input into the document + tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/sn_computer/html/tiny_mce/plugins/example/langs/en.js b/sn_computer/html/tiny_mce/plugins/example/langs/en.js new file mode 100644 index 0000000..f3721d3 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/example/langs/en.js @@ -0,0 +1,3 @@ +tinyMCE.addI18n('en.example',{ + desc : 'This is just a template button' +}); diff --git a/sn_computer/html/tiny_mce/plugins/example/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/example/langs/en_dlg.js new file mode 100644 index 0000000..a9cd65f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/example/langs/en_dlg.js @@ -0,0 +1,3 @@ +tinyMCE.addI18n('en.example_dlg',{ + title : 'This is just a example title' +}); diff --git a/sn_computer/html/tiny_mce/plugins/fullpage/css/fullpage.css b/sn_computer/html/tiny_mce/plugins/fullpage/css/fullpage.css new file mode 100644 index 0000000..1854eca --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/fullpage/css/fullpage.css @@ -0,0 +1,182 @@ +/* Hide the advanced tab */ +#advanced_tab { + display: none; +} + +#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { + width: 280px; +} + +#doctype, #docencoding { + width: 200px; +} + +#langcode { + width: 30px; +} + +#bgimage { + width: 220px; +} + +#fontface { + width: 240px; +} + +#leftmargin, #rightmargin, #topmargin, #bottommargin { + width: 50px; +} + +.panel_wrapper div.current { + height: 400px; +} + +#stylesheet, #style { + width: 240px; +} + +/* Head list classes */ + +.headlistwrapper { + width: 100%; +} + +.addbutton, .removebutton, .moveupbutton, .movedownbutton { + border-top: 1px solid; + border-left: 1px solid; + border-bottom: 1px solid; + border-right: 1px solid; + border-color: #F0F0EE; + cursor: default; + display: block; + width: 20px; + height: 20px; +} + +#doctypes { + width: 200px; +} + +.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { + border: 1px solid #0A246A; + background-color: #B6BDD2; +} + +.addbutton { + background-image: url('../images/add.gif'); + float: left; + margin-right: 3px; +} + +.removebutton { + background-image: url('../images/remove.gif'); + float: left; +} + +.moveupbutton { + background-image: url('../images/move_up.gif'); + float: left; + margin-right: 3px; +} + +.movedownbutton { + background-image: url('../images/move_down.gif'); + float: left; +} + +.selected { + border: 1px solid #0A246A; + background-color: #B6BDD2; +} + +.toolbar { + width: 100%; +} + +#headlist { + width: 100%; + margin-top: 3px; + font-size: 11px; +} + +#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { + display: none; +} + +#addmenu { + position: absolute; + border: 1px solid gray; + display: none; + z-index: 100; + background-color: white; +} + +#addmenu a { + display: block; + width: 100%; + line-height: 20px; + text-decoration: none; + background-color: white; +} + +#addmenu a:hover { + background-color: #B6BDD2; + color: black; +} + +#addmenu span { + padding-left: 10px; + padding-right: 10px; +} + +#updateElementPanel { + display: none; +} + +#script_element .panel_wrapper div.current { + height: 108px; +} + +#style_element .panel_wrapper div.current { + height: 108px; +} + +#link_element .panel_wrapper div.current { + height: 140px; +} + +#element_script_value { + width: 100%; + height: 100px; +} + +#element_comment_value { + width: 100%; + height: 120px; +} + +#element_style_value { + width: 100%; + height: 100px; +} + +#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { + width: 250px; +} + +.updateElementButton { + margin-top: 3px; +} + +/* MSIE specific styles */ + +* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { + width: 22px; + height: 22px; +} + +textarea { + height: 55px; +} + +.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/fullpage/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/fullpage/editor_plugin.js new file mode 100644 index 0000000..8e11bfc --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/fullpage/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("\n'}h.head+=d.getParam("fullpage_default_doctype",'');h.head+="\n\n\n"+d.getParam("fullpage_default_title","Untitled document")+"\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="\n\n";h.foot="\n\n"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/fullpage/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/fullpage/editor_plugin_src.js new file mode 100644 index 0000000..fc7f988 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/fullpage/editor_plugin_src.js @@ -0,0 +1,149 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.FullPagePlugin', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceFullPageProperties', function() { + ed.windowManager.open({ + file : url + '/fullpage.htm', + width : 430 + parseInt(ed.getLang('fullpage.delta_width', 0)), + height : 495 + parseInt(ed.getLang('fullpage.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + head_html : t.head + }); + }); + + // Register buttons + ed.addButton('fullpage', {title : 'fullpage.desc', cmd : 'mceFullPageProperties'}); + + ed.onBeforeSetContent.add(t._setContent, t); + ed.onSetContent.add(t._setBodyAttribs, t); + ed.onGetContent.add(t._getContent, t); + }, + + getInfo : function() { + return { + longname : 'Fullpage', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private plugin internal methods + + _setBodyAttribs : function(ed, o) { + var bdattr, i, len, kv, k, v, t, attr = this.head.match(/body(.*?)>/i); + + if (attr && attr[1]) { + bdattr = attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g); + + if (bdattr) { + for(i = 0, len = bdattr.length; i < len; i++) { + kv = bdattr[i].split('='); + k = kv[0].replace(/\s/,''); + v = kv[1]; + + if (v) { + v = v.replace(/^\s+/,'').replace(/\s+$/,''); + t = v.match(/^["'](.*)["']$/); + + if (t) + v = t[1]; + } else + v = k; + + ed.dom.setAttrib(ed.getBody(), 'style', v); + } + } + } + }, + + _createSerializer : function() { + return new tinymce.dom.Serializer({ + dom : this.editor.dom, + apply_source_formatting : true + }); + }, + + _setContent : function(ed, o) { + var t = this, sp, ep, c = o.content, v, st = ''; + + if (o.source_view && ed.getParam('fullpage_hide_in_source_view')) + return; + + // Parse out head, body and footer + c = c.replace(/<(\/?)BODY/gi, '<$1body'); + sp = c.indexOf('', sp); + t.head = c.substring(0, sp + 1); + + ep = c.indexOf('\n'; + + t.head += ed.getParam('fullpage_default_doctype', ''); + t.head += '\n\n\n' + ed.getParam('fullpage_default_title', 'Untitled document') + '\n'; + + if (v = ed.getParam('fullpage_default_encoding')) + t.head += '\n'; + + if (v = ed.getParam('fullpage_default_font_family')) + st += 'font-family: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_font_size')) + st += 'font-size: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_text_color')) + st += 'color: ' + v + ';'; + + t.head += '\n\n'; + t.foot = '\n\n'; + } + }, + + _getContent : function(ed, o) { + var t = this; + + if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view')) + o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot); + } + }); + + // Register plugin + tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/fullpage/fullpage.htm b/sn_computer/html/tiny_mce/plugins/fullpage/fullpage.htm new file mode 100644 index 0000000..d8e62fb --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/fullpage/fullpage.htm @@ -0,0 +1,571 @@ + + + + {#fullpage_dlg.title} + + + + + + + +
    + + +
    +
    +
    + {#fullpage_dlg.meta_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
     
     
     
     
     
      + +
    +
    + +
    + {#fullpage_dlg.langprops} + + + + + + + + + + + + + + + + + + + + + + +
    + +
      + +
     
    + +
     
    +
    +
    + +
    +
    + {#fullpage_dlg.appearance_textprops} + + + + + + + + + + + + + + + + +
    + +
    + +
    + + + + + +
     
    +
    +
    + +
    + {#fullpage_dlg.appearance_bgprops} + + + + + + + + + + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    + +
    + {#fullpage_dlg.appearance_marginprops} + + + + + + + + + + + + + + +
    +
    + +
    + {#fullpage_dlg.appearance_linkprops} + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
     
    +
    + + + + + +
     
    +
      
    +
    + +
    + {#fullpage_dlg.appearance_style} + + + + + + + + + + +
    + + + + +
     
    +
    +
    + +
    + + +
    + {#fullpage_dlg.head_elements} + +
    +
    +
    + + +
    +
    + + +
    +
    +
    + +
    +
    + +
    + {#fullpage_dlg.meta_element} + + + + + + + + + + + + + + +
    + + +
    + +
    + {#fullpage_dlg.title_element} + + + + + + +
    + + +
    + +
    + {#fullpage_dlg.script_element} + + + +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    + + + + +
     
    +
    + +
    + +
    +
    + + +
    + +
    + {#fullpage_dlg.style_element} + + + +
    + +
    +
    + + + + + + + + + +
    +
    + +
    + +
    +
    + + +
    + +
    + {#fullpage_dlg.base_element} + + + + + + + + + + +
    + + +
    + + + +
    + {#fullpage_dlg.comment_element} + + + + +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/fullpage/js/fullpage.js b/sn_computer/html/tiny_mce/plugins/fullpage/js/fullpage.js new file mode 100644 index 0000000..7a80fcd --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/fullpage/js/fullpage.js @@ -0,0 +1,471 @@ +/** + * fullpage.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var doc; + +var defaultDocTypes = + 'XHTML 1.0 Transitional=,' + + 'XHTML 1.0 Frameset=,' + + 'XHTML 1.0 Strict=,' + + 'XHTML 1.1=,' + + 'HTML 4.01 Transitional=,' + + 'HTML 4.01 Strict=,' + + 'HTML 4.01 Frameset='; + +var defaultEncodings = + 'Western european (iso-8859-1)=iso-8859-1,' + + 'Central European (iso-8859-2)=iso-8859-2,' + + 'Unicode (UTF-8)=utf-8,' + + 'Chinese traditional (Big5)=big5,' + + 'Cyrillic (iso-8859-5)=iso-8859-5,' + + 'Japanese (iso-2022-jp)=iso-2022-jp,' + + 'Greek (iso-8859-7)=iso-8859-7,' + + 'Korean (iso-2022-kr)=iso-2022-kr,' + + 'ASCII (us-ascii)=us-ascii'; + +var defaultMediaTypes = + 'all=all,' + + 'screen=screen,' + + 'print=print,' + + 'tty=tty,' + + 'tv=tv,' + + 'projection=projection,' + + 'handheld=handheld,' + + 'braille=braille,' + + 'aural=aural'; + +var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings'; +var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px'; + +function init() { + var f = document.forms['fullpage'], el = f.elements, e, i, p, doctypes, encodings, mediaTypes, fonts, ed = tinyMCEPopup.editor, dom = tinyMCEPopup.dom, style; + + // Setup doctype select box + doctypes = ed.getParam("fullpage_doctypes", defaultDocTypes).split(','); + for (i=0; i 1) + addSelectValue(f, 'doctypes', p[0], p[1]); + } + + // Setup fonts select box + fonts = ed.getParam("fullpage_fonts", defaultFontNames).split(';'); + for (i=0; i 1) + addSelectValue(f, 'fontface', p[0], p[1]); + } + + // Setup fontsize select box + fonts = ed.getParam("fullpage_fontsizes", defaultFontSizes).split(','); + for (i=0; i 1) { + addSelectValue(f, 'element_style_media', p[0], p[1]); + addSelectValue(f, 'element_link_media', p[0], p[1]); + } + } + + // Setup encodings select box + encodings = ed.getParam("fullpage_encodings", defaultEncodings).split(','); + for (i=0; i 1) { + addSelectValue(f, 'docencoding', p[0], p[1]); + addSelectValue(f, 'element_script_charset', p[0], p[1]); + addSelectValue(f, 'element_link_charset', p[0], p[1]); + } + } + + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color'); + //document.getElementById('hover_color_pickcontainer').innerHTML = getColorPickerHTML('hover_color_pick','hover_color'); + document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color'); + document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color'); + document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor'); + document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage'); + document.getElementById('link_href_pickcontainer').innerHTML = getBrowserHTML('link_href_browser','element_link_href','file','fullpage'); + document.getElementById('script_src_pickcontainer').innerHTML = getBrowserHTML('script_src_browser','element_script_src','file','fullpage'); + document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage'); + + // Resize some elements + if (isVisible('stylesheetbrowser')) + document.getElementById('stylesheet').style.width = '220px'; + + if (isVisible('link_href_browser')) + document.getElementById('element_link_href').style.width = '230px'; + + if (isVisible('bgimage_browser')) + document.getElementById('bgimage').style.width = '210px'; + + // Add iframe + dom.add(document.body, 'iframe', {id : 'documentIframe', src : 'javascript:""', style : {display : 'none'}}); + doc = dom.get('documentIframe').contentWindow.document; + h = tinyMCEPopup.getWindowArg('head_html'); + + // Preprocess the HTML disable scripts and urls + h = h.replace(/ + + + +
    + +
    + + + + + diff --git a/sn_computer/html/tiny_mce/plugins/iespell/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/iespell/editor_plugin.js new file mode 100644 index 0000000..e9cba10 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/iespell/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/iespell/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/iespell/editor_plugin_src.js new file mode 100644 index 0000000..61edf1e --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/iespell/editor_plugin_src.js @@ -0,0 +1,54 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.IESpell', { + init : function(ed, url) { + var t = this, sp; + + if (!tinymce.isIE) + return; + + t.editor = ed; + + // Register commands + ed.addCommand('mceIESpell', function() { + try { + sp = new ActiveXObject("ieSpell.ieSpellExtension"); + sp.CheckDocumentNode(ed.getDoc().documentElement); + } catch (e) { + if (e.number == -2146827859) { + ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) { + if (s) + window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); + }); + } else + ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number); + } + }); + + // Register buttons + ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'}); + }, + + getInfo : function() { + return { + longname : 'IESpell (IE Only)', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/inlinepopups/editor_plugin.js new file mode 100644 index 0000000..07ea477 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/inlinepopups/editor_plugin.js @@ -0,0 +1 @@ +(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(r,j){var y=this,i,k="",q=y.editor,g=0,s=0,h,m,n,o,l,v,x;r=r||{};j=j||{};if(!r.inline){return y.parent(r,j)}if(!r.type){y.bookmark=q.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();r.width=parseInt(r.width||320);r.height=parseInt(r.height||240)+(tinymce.isIE?8:0);r.min_width=parseInt(r.min_width||150);r.min_height=parseInt(r.min_height||100);r.max_width=parseInt(r.max_width||2000);r.max_height=parseInt(r.max_height||2000);r.left=r.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(r.width/2)));r.top=r.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(r.height/2)));r.movable=r.resizable=true;j.mce_width=r.width;j.mce_height=r.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=r.auto_focus;y.features=r;y.params=j;y.onOpen.dispatch(y,r,j);if(r.type){k+=" mceModal";if(r.type){k+=" mce"+r.type.substring(0,1).toUpperCase()+r.type.substring(1)}r.resizable=false}if(r.statusbar){k+=" mceStatusbar"}if(r.resizable){k+=" mceResizable"}if(r.minimizable){k+=" mceMinimizable"}if(r.maximizable){k+=" mceMaximizable"}if(r.movable){k+=" mceMovable"}y._addAll(d.doc.body,["div",{id:i,"class":q.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},r.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!r.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;s+=d.get(i+"_top").clientHeight;s+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:r.top,left:r.left,width:r.width+g,height:r.height+s});x=r.url||r.file;if(x){if(tinymce.relaxedDomain){x+=(x.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}x=tinymce._addVer(x)}if(!r.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:r.width,height:r.height});d.setAttrib(i+"_ifr","src",x)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(r.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",r.content.replace("\n","
    "))}n=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=y.windows[i];y.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return y._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return y._startDrag(i,t,u.className.substring(13))}}}}}});o=a.add(i,"click",function(f){var p=f.target;y.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":y.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":r.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});v=y.windows[i]={id:i,mousedown_func:n,click_func:o,element:new b(i,{blocker:1,container:q.getContainer()}),iframeElement:new b(i+"_ifr"),features:r,deltaWidth:g,deltaHeight:s};v.iframeElement.on("focus",function(){y.focus(i)});if(y.count==0&&y.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(y.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:y.zIndex-1}});d.show("mceModalBlocker")}else{d.setStyle("mceModalBlocker","z-index",y.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}y.focus(i);y._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}y.count++;return v},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;gf){i=m;f=m.zIndex}});if(i){h.focus(i.id)}}},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/inlinepopups/editor_plugin_src.js new file mode 100644 index 0000000..10ce4d9 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/inlinepopups/editor_plugin_src.js @@ -0,0 +1,635 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is; + + tinymce.create('tinymce.plugins.InlinePopups', { + init : function(ed, url) { + // Replace window manager + ed.onBeforeRenderUI.add(function() { + ed.windowManager = new tinymce.InlineWindowManager(ed); + DOM.loadCSS(url + '/skins/' + (ed.settings.inlinepopups_skin || 'clearlooks2') + "/window.css"); + }); + }, + + getInfo : function() { + return { + longname : 'InlinePopups', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager', { + InlineWindowManager : function(ed) { + var t = this; + + t.parent(ed); + t.zIndex = 300000; + t.count = 0; + t.windows = {}; + }, + + open : function(f, p) { + var t = this, id, opt = '', ed = t.editor, dw = 0, dh = 0, vp, po, mdf, clf, we, w, u; + + f = f || {}; + p = p || {}; + + // Run native windows + if (!f.inline) + return t.parent(f, p); + + // Only store selection if the type is a normal window + if (!f.type) + t.bookmark = ed.selection.getBookmark(1); + + id = DOM.uniqueId(); + vp = DOM.getViewPort(); + f.width = parseInt(f.width || 320); + f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0); + f.min_width = parseInt(f.min_width || 150); + f.min_height = parseInt(f.min_height || 100); + f.max_width = parseInt(f.max_width || 2000); + f.max_height = parseInt(f.max_height || 2000); + f.left = f.left || Math.round(Math.max(vp.x, vp.x + (vp.w / 2.0) - (f.width / 2.0))); + f.top = f.top || Math.round(Math.max(vp.y, vp.y + (vp.h / 2.0) - (f.height / 2.0))); + f.movable = f.resizable = true; + p.mce_width = f.width; + p.mce_height = f.height; + p.mce_inline = true; + p.mce_window_id = id; + p.mce_auto_focus = f.auto_focus; + + // Transpose +// po = DOM.getPos(ed.getContainer()); +// f.left -= po.x; +// f.top -= po.y; + + t.features = f; + t.params = p; + t.onOpen.dispatch(t, f, p); + + if (f.type) { + opt += ' mceModal'; + + if (f.type) + opt += ' mce' + f.type.substring(0, 1).toUpperCase() + f.type.substring(1); + + f.resizable = false; + } + + if (f.statusbar) + opt += ' mceStatusbar'; + + if (f.resizable) + opt += ' mceResizable'; + + if (f.minimizable) + opt += ' mceMinimizable'; + + if (f.maximizable) + opt += ' mceMaximizable'; + + if (f.movable) + opt += ' mceMovable'; + + // Create DOM objects + t._addAll(DOM.doc.body, + ['div', {id : id, 'class' : ed.settings.inlinepopups_skin || 'clearlooks2', style : 'width:100px;height:100px'}, + ['div', {id : id + '_wrapper', 'class' : 'mceWrapper' + opt}, + ['div', {id : id + '_top', 'class' : 'mceTop'}, + ['div', {'class' : 'mceLeft'}], + ['div', {'class' : 'mceCenter'}], + ['div', {'class' : 'mceRight'}], + ['span', {id : id + '_title'}, f.title || ''] + ], + + ['div', {id : id + '_middle', 'class' : 'mceMiddle'}, + ['div', {id : id + '_left', 'class' : 'mceLeft'}], + ['span', {id : id + '_content'}], + ['div', {id : id + '_right', 'class' : 'mceRight'}] + ], + + ['div', {id : id + '_bottom', 'class' : 'mceBottom'}, + ['div', {'class' : 'mceLeft'}], + ['div', {'class' : 'mceCenter'}], + ['div', {'class' : 'mceRight'}], + ['span', {id : id + '_status'}, 'Content'] + ], + + ['a', {'class' : 'mceMove', tabindex : '-1', href : 'javascript:;'}], + ['a', {'class' : 'mceMin', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceMax', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceMed', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceClose', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {id : id + '_resize_n', 'class' : 'mceResize mceResizeN', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_s', 'class' : 'mceResize mceResizeS', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_w', 'class' : 'mceResize mceResizeW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_e', 'class' : 'mceResize mceResizeE', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_nw', 'class' : 'mceResize mceResizeNW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_ne', 'class' : 'mceResize mceResizeNE', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_sw', 'class' : 'mceResize mceResizeSW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_se', 'class' : 'mceResize mceResizeSE', tabindex : '-1', href : 'javascript:;'}] + ] + ] + ); + + DOM.setStyles(id, {top : -10000, left : -10000}); + + // Fix gecko rendering bug, where the editors iframe messed with window contents + if (tinymce.isGecko) + DOM.setStyle(id, 'overflow', 'auto'); + + // Measure borders + if (!f.type) { + dw += DOM.get(id + '_left').clientWidth; + dw += DOM.get(id + '_right').clientWidth; + dh += DOM.get(id + '_top').clientHeight; + dh += DOM.get(id + '_bottom').clientHeight; + } + + // Resize window + DOM.setStyles(id, {top : f.top, left : f.left, width : f.width + dw, height : f.height + dh}); + + u = f.url || f.file; + if (u) { + if (tinymce.relaxedDomain) + u += (u.indexOf('?') == -1 ? '?' : '&') + 'mce_rdomain=' + tinymce.relaxedDomain; + + u = tinymce._addVer(u); + } + + if (!f.type) { + DOM.add(id + '_content', 'iframe', {id : id + '_ifr', src : 'javascript:""', frameBorder : 0, style : 'border:0;width:10px;height:10px'}); + DOM.setStyles(id + '_ifr', {width : f.width, height : f.height}); + DOM.setAttrib(id + '_ifr', 'src', u); + } else { + DOM.add(id + '_wrapper', 'a', {id : id + '_ok', 'class' : 'mceButton mceOk', href : 'javascript:;', onmousedown : 'return false;'}, 'Ok'); + + if (f.type == 'confirm') + DOM.add(id + '_wrapper', 'a', {'class' : 'mceButton mceCancel', href : 'javascript:;', onmousedown : 'return false;'}, 'Cancel'); + + DOM.add(id + '_middle', 'div', {'class' : 'mceIcon'}); + DOM.setHTML(id + '_content', f.content.replace('\n', '
    ')); + } + + // Register events + mdf = Event.add(id, 'mousedown', function(e) { + var n = e.target, w, vp; + + w = t.windows[id]; + t.focus(id); + + if (n.nodeName == 'A' || n.nodeName == 'a') { + if (n.className == 'mceMax') { + w.oldPos = w.element.getXY(); + w.oldSize = w.element.getSize(); + + vp = DOM.getViewPort(); + + // Reduce viewport size to avoid scrollbars + vp.w -= 2; + vp.h -= 2; + + w.element.moveTo(vp.x, vp.y); + w.element.resizeTo(vp.w, vp.h); + DOM.setStyles(id + '_ifr', {width : vp.w - w.deltaWidth, height : vp.h - w.deltaHeight}); + DOM.addClass(id + '_wrapper', 'mceMaximized'); + } else if (n.className == 'mceMed') { + // Reset to old size + w.element.moveTo(w.oldPos.x, w.oldPos.y); + w.element.resizeTo(w.oldSize.w, w.oldSize.h); + w.iframeElement.resizeTo(w.oldSize.w - w.deltaWidth, w.oldSize.h - w.deltaHeight); + + DOM.removeClass(id + '_wrapper', 'mceMaximized'); + } else if (n.className == 'mceMove') + return t._startDrag(id, e, n.className); + else if (DOM.hasClass(n, 'mceResize')) + return t._startDrag(id, e, n.className.substring(13)); + } + }); + + clf = Event.add(id, 'click', function(e) { + var n = e.target; + + t.focus(id); + + if (n.nodeName == 'A' || n.nodeName == 'a') { + switch (n.className) { + case 'mceClose': + t.close(null, id); + return Event.cancel(e); + + case 'mceButton mceOk': + case 'mceButton mceCancel': + f.button_func(n.className == 'mceButton mceOk'); + return Event.cancel(e); + } + } + }); + + // Add window + w = t.windows[id] = { + id : id, + mousedown_func : mdf, + click_func : clf, + element : new Element(id, {blocker : 1, container : ed.getContainer()}), + iframeElement : new Element(id + '_ifr'), + features : f, + deltaWidth : dw, + deltaHeight : dh + }; + + w.iframeElement.on('focus', function() { + t.focus(id); + }); + + // Setup blocker + if (t.count == 0 && t.editor.getParam('dialog_type', 'modal') == 'modal') { + DOM.add(DOM.doc.body, 'div', { + id : 'mceModalBlocker', + 'class' : (t.editor.settings.inlinepopups_skin || 'clearlooks2') + '_modalBlocker', + style : {zIndex : t.zIndex - 1} + }); + + DOM.show('mceModalBlocker'); // Reduces flicker in IE + } else + DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1); + + if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel)) + DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2}); + + t.focus(id); + t._fixIELayout(id, 1); + + // Focus ok button + if (DOM.get(id + '_ok')) + DOM.get(id + '_ok').focus(); + + t.count++; + + return w; + }, + + focus : function(id) { + var t = this, w; + + if (w = t.windows[id]) { + w.zIndex = this.zIndex++; + w.element.setStyle('zIndex', w.zIndex); + w.element.update(); + + id = id + '_wrapper'; + DOM.removeClass(t.lastId, 'mceFocus'); + DOM.addClass(id, 'mceFocus'); + t.lastId = id; + } + }, + + _addAll : function(te, ne) { + var i, n, t = this, dom = tinymce.DOM; + + if (is(ne, 'string')) + te.appendChild(dom.doc.createTextNode(ne)); + else if (ne.length) { + te = te.appendChild(dom.create(ne[0], ne[1])); + + for (i=2; i ix) { + fw = w; + ix = w.zIndex; + } + }); + + if (fw) + t.focus(fw.id); + } + }, + + setTitle : function(w, ti) { + var e; + + w = this._findId(w); + + if (e = DOM.get(w + '_title')) + e.innerHTML = DOM.encode(ti); + }, + + alert : function(txt, cb, s) { + var t = this, w; + + w = t.open({ + title : t, + type : 'alert', + button_func : function(s) { + if (cb) + cb.call(s || t, s); + + t.close(null, w.id); + }, + content : DOM.encode(t.editor.getLang(txt, txt)), + inline : 1, + width : 400, + height : 130 + }); + }, + + confirm : function(txt, cb, s) { + var t = this, w; + + w = t.open({ + title : t, + type : 'confirm', + button_func : function(s) { + if (cb) + cb.call(s || t, s); + + t.close(null, w.id); + }, + content : DOM.encode(t.editor.getLang(txt, txt)), + inline : 1, + width : 400, + height : 130 + }); + }, + + // Internal functions + + _findId : function(w) { + var t = this; + + if (typeof(w) == 'string') + return w; + + each(t.windows, function(wo) { + var ifr = DOM.get(wo.id + '_ifr'); + + if (ifr && w == ifr.contentWindow) { + w = wo.id; + return false; + } + }); + + return w; + }, + + _fixIELayout : function(id, s) { + var w, img; + + if (!tinymce.isIE6) + return; + + // Fixes the bug where hover flickers and does odd things in IE6 + each(['n','s','w','e','nw','ne','sw','se'], function(v) { + var e = DOM.get(id + '_resize_' + v); + + DOM.setStyles(e, { + width : s ? e.clientWidth : '', + height : s ? e.clientHeight : '', + cursor : DOM.getStyle(e, 'cursor', 1) + }); + + DOM.setStyle(id + "_bottom", 'bottom', '-1px'); + + e = 0; + }); + + // Fixes graphics glitch + if (w = this.windows[id]) { + // Fixes rendering bug after resize + w.element.hide(); + w.element.show(); + + // Forced a repaint of the window + //DOM.get(id).style.filter = ''; + + // IE has a bug where images used in CSS won't get loaded + // sometimes when the cache in the browser is disabled + // This fix tries to solve it by loading the images using the image object + each(DOM.select('div,a', id), function(e, i) { + if (e.currentStyle.backgroundImage != 'none') { + img = new Image(); + img.src = e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/, '$1'); + } + }); + + DOM.get(id).style.filter = ''; + } + } + }); + + // Register plugin + tinymce.PluginManager.add('inlinepopups', tinymce.plugins.InlinePopups); +})(); + diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif new file mode 100644 index 0000000..94abd08 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif new file mode 100644 index 0000000..e671094 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif new file mode 100644 index 0000000..6baf64a Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif new file mode 100644 index 0000000..497307a Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif new file mode 100644 index 0000000..c894b2e Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif new file mode 100644 index 0000000..c2a2ad4 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif new file mode 100644 index 0000000..43a735f Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css new file mode 100644 index 0000000..5e6fd7d --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css @@ -0,0 +1,90 @@ +/* Clearlooks 2 */ + +/* Reset */ +.clearlooks2, .clearlooks2 div, .clearlooks2 span, .clearlooks2 a {vertical-align:baseline; text-align:left; position:absolute; border:0; padding:0; margin:0; background:transparent; font-family:Arial,Verdana; font-size:11px; color:#000; text-decoration:none; font-weight:normal; width:auto; height:auto; overflow:hidden; display:block} + +/* General */ +.clearlooks2 {position:absolute; direction:ltr} +.clearlooks2 .mceWrapper {position:static} +.mceEventBlocker {position:fixed; left:0; top:0; background:url(img/horizontal.gif) no-repeat 0 -75px; width:100%; height:100%} +.clearlooks2 .mcePlaceHolder {border:1px solid #000; background:#888; top:0; left:0; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50)} +.clearlooks2_modalBlocker {position:fixed; left:0; top:0; width:100%; height:100%; background:#FFF; opacity:0.6; -ms-filter:'alpha(opacity=60)'; filter:alpha(opacity=60); display:none} + +/* Top */ +.clearlooks2 .mceTop, .clearlooks2 .mceTop div {top:0; width:100%; height:23px} +.clearlooks2 .mceTop .mceLeft {width:6px; background:url(img/corners.gif)} +.clearlooks2 .mceTop .mceCenter {right:6px; width:100%; height:23px; background:url(img/horizontal.gif) 12px 0; clip:rect(auto auto auto 12px)} +.clearlooks2 .mceTop .mceRight {right:0; width:6px; height:23px; background:url(img/corners.gif) -12px 0} +.clearlooks2 .mceTop span {width:100%; text-align:center; vertical-align:middle; line-height:23px; font-weight:bold} +.clearlooks2 .mceFocus .mceTop .mceLeft {background:url(img/corners.gif) -6px 0} +.clearlooks2 .mceFocus .mceTop .mceCenter {background:url(img/horizontal.gif) 0 -23px} +.clearlooks2 .mceFocus .mceTop .mceRight {background:url(img/corners.gif) -18px 0} +.clearlooks2 .mceFocus .mceTop span {color:#FFF} + +/* Middle */ +.clearlooks2 .mceMiddle, .clearlooks2 .mceMiddle div {top:0} +.clearlooks2 .mceMiddle {width:100%; height:100%; clip:rect(23px auto auto auto)} +.clearlooks2 .mceMiddle .mceLeft {left:0; width:5px; height:100%; background:url(img/vertical.gif) -5px 0} +.clearlooks2 .mceMiddle span {top:23px; left:5px; width:100%; height:100%; background:#FFF} +.clearlooks2 .mceMiddle .mceRight {right:0; width:5px; height:100%; background:url(img/vertical.gif)} + +/* Bottom */ +.clearlooks2 .mceBottom, .clearlooks2 .mceBottom div {height:6px} +.clearlooks2 .mceBottom {left:0; bottom:0; width:100%} +.clearlooks2 .mceBottom div {top:0} +.clearlooks2 .mceBottom .mceLeft {left:0; width:5px; background:url(img/corners.gif) -34px -6px} +.clearlooks2 .mceBottom .mceCenter {left:5px; width:100%; background:url(img/horizontal.gif) 0 -46px} +.clearlooks2 .mceBottom .mceRight {right:0; width:5px; background: url(img/corners.gif) -34px 0} +.clearlooks2 .mceBottom span {display:none} +.clearlooks2 .mceStatusbar .mceBottom, .clearlooks2 .mceStatusbar .mceBottom div {height:23px} +.clearlooks2 .mceStatusbar .mceBottom .mceLeft {background:url(img/corners.gif) -29px 0} +.clearlooks2 .mceStatusbar .mceBottom .mceCenter {background:url(img/horizontal.gif) 0 -52px} +.clearlooks2 .mceStatusbar .mceBottom .mceRight {background:url(img/corners.gif) -24px 0} +.clearlooks2 .mceStatusbar .mceBottom span {display:block; left:7px; font-family:Arial, Verdana; font-size:11px; line-height:23px} + +/* Actions */ +.clearlooks2 a {width:29px; height:16px; top:3px;} +.clearlooks2 .mceClose {right:6px; background:url(img/buttons.gif) -87px 0} +.clearlooks2 .mceMin {display:none; right:68px; background:url(img/buttons.gif) 0 0} +.clearlooks2 .mceMed {display:none; right:37px; background:url(img/buttons.gif) -29px 0} +.clearlooks2 .mceMax {display:none; right:37px; background:url(img/buttons.gif) -58px 0} +.clearlooks2 .mceMove {display:none;width:100%;cursor:move;background:url(img/corners.gif) no-repeat -100px -100px} +.clearlooks2 .mceMovable .mceMove {display:block} +.clearlooks2 .mceFocus .mceClose {right:6px; background:url(img/buttons.gif) -87px -16px} +.clearlooks2 .mceFocus .mceMin {right:68px; background:url(img/buttons.gif) 0 -16px} +.clearlooks2 .mceFocus .mceMed {right:37px; background:url(img/buttons.gif) -29px -16px} +.clearlooks2 .mceFocus .mceMax {right:37px; background:url(img/buttons.gif) -58px -16px} +.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px} +.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px} +.clearlooks2 .mceFocus .mceMin:hover {right:68px; background:url(img/buttons.gif) 0 -32px} +.clearlooks2 .mceFocus .mceMed:hover {right:37px; background:url(img/buttons.gif) -29px -32px} +.clearlooks2 .mceFocus .mceMax:hover {right:37px; background:url(img/buttons.gif) -58px -32px} + +/* Resize */ +.clearlooks2 .mceResize {top:auto; left:auto; display:none; width:5px; height:5px; background:url(img/horizontal.gif) no-repeat 0 -75px} +.clearlooks2 .mceResizable .mceResize {display:block} +.clearlooks2 .mceResizable .mceMin, .clearlooks2 .mceMax {display:none} +.clearlooks2 .mceMinimizable .mceMin {display:block} +.clearlooks2 .mceMaximizable .mceMax {display:block} +.clearlooks2 .mceMaximized .mceMed {display:block} +.clearlooks2 .mceMaximized .mceMax {display:none} +.clearlooks2 a.mceResizeN {top:0; left:0; width:100%; cursor:n-resize} +.clearlooks2 a.mceResizeNW {top:0; left:0; cursor:nw-resize} +.clearlooks2 a.mceResizeNE {top:0; right:0; cursor:ne-resize} +.clearlooks2 a.mceResizeW {top:0; left:0; height:100%; cursor:w-resize;} +.clearlooks2 a.mceResizeE {top:0; right:0; height:100%; cursor:e-resize} +.clearlooks2 a.mceResizeS {bottom:0; left:0; width:100%; cursor:s-resize} +.clearlooks2 a.mceResizeSW {bottom:0; left:0; cursor:sw-resize} +.clearlooks2 a.mceResizeSE {bottom:0; right:0; cursor:se-resize} + +/* Alert/Confirm */ +.clearlooks2 .mceButton {font-weight:bold; bottom:10px; width:80px; height:30px; background:url(img/button.gif); line-height:30px; vertical-align:middle; text-align:center; outline:0} +.clearlooks2 .mceMiddle .mceIcon {left:15px; top:35px; width:32px; height:32px} +.clearlooks2 .mceAlert .mceMiddle span, .clearlooks2 .mceConfirm .mceMiddle span {background:transparent;left:60px; top:35px; width:320px; height:50px; font-weight:bold; overflow:auto; white-space:normal} +.clearlooks2 a:hover {font-weight:bold;} +.clearlooks2 .mceAlert .mceMiddle, .clearlooks2 .mceConfirm .mceMiddle {background:#D6D7D5} +.clearlooks2 .mceAlert .mceOk {left:50%; top:auto; margin-left: -40px} +.clearlooks2 .mceAlert .mceIcon {background:url(img/alert.gif)} +.clearlooks2 .mceConfirm .mceOk {left:50%; top:auto; margin-left: -90px} +.clearlooks2 .mceConfirm .mceCancel {left:50%; top:auto} +.clearlooks2 .mceConfirm .mceIcon {background:url(img/confirm.gif)} \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/inlinepopups/template.htm b/sn_computer/html/tiny_mce/plugins/inlinepopups/template.htm new file mode 100644 index 0000000..c98fe41 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/inlinepopups/template.htm @@ -0,0 +1,387 @@ + + + +Template for dialogs + + + + +
    +
    +
    +
    +
    +
    +
    + Blured +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Focused +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Statusbar +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Statusbar, Resizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Resizable, Maximizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Blurred, Maximizable, Statusbar, Resizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Maximized, Maximizable, Minimizable +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Blured +
    + +
    +
    + Content +
    +
    + +
    +
    +
    +
    + Statusbar text. +
    + + + + + + + + + + + + + + +
    +
    + +
    +
    +
    +
    +
    +
    + Alert +
    + +
    +
    + + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + +
    +
    +
    + +
    +
    +
    +
    +
    + + + Ok + +
    +
    + +
    +
    +
    +
    +
    +
    + Confirm +
    + +
    +
    + + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + +
    +
    +
    + +
    +
    +
    +
    +
    + + + Ok + Cancel + +
    +
    +
    + + + diff --git a/sn_computer/html/tiny_mce/plugins/insertdatetime/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/insertdatetime/editor_plugin.js new file mode 100644 index 0000000..938ce6b --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/insertdatetime/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.InsertDateTime",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertDate",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_dateFormat",a.getLang("insertdatetime.date_fmt")));a.execCommand("mceInsertContent",false,d)});a.addCommand("mceInsertTime",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_timeFormat",a.getLang("insertdatetime.time_fmt")));a.execCommand("mceInsertContent",false,d)});a.addButton("insertdate",{title:"insertdatetime.insertdate_desc",cmd:"mceInsertDate"});a.addButton("inserttime",{title:"insertdatetime.inserttime_desc",cmd:"mceInsertTime"})},getInfo:function(){return{longname:"Insert date/time",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getDateTime:function(e,a){var c=this.editor;function b(g,d){g=""+g;if(g.length-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;fg[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/layer/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/layer/editor_plugin_src.js new file mode 100644 index 0000000..701de1a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/layer/editor_plugin_src.js @@ -0,0 +1,212 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Layer', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceInsertLayer', t._insertLayer, t); + + ed.addCommand('mceMoveForward', function() { + t._move(1); + }); + + ed.addCommand('mceMoveBackward', function() { + t._move(-1); + }); + + ed.addCommand('mceMakeAbsolute', function() { + t._toggleAbsolute(); + }); + + // Register buttons + ed.addButton('moveforward', {title : 'layer.forward_desc', cmd : 'mceMoveForward'}); + ed.addButton('movebackward', {title : 'layer.backward_desc', cmd : 'mceMoveBackward'}); + ed.addButton('absolute', {title : 'layer.absolute_desc', cmd : 'mceMakeAbsolute'}); + ed.addButton('insertlayer', {title : 'layer.insertlayer_desc', cmd : 'mceInsertLayer'}); + + ed.onInit.add(function() { + if (tinymce.isIE) + ed.getDoc().execCommand('2D-Position', false, true); + }); + + ed.onNodeChange.add(t._nodeChange, t); + ed.onVisualAid.add(t._visualAid, t); + }, + + getInfo : function() { + return { + longname : 'Layer', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var le, p; + + le = this._getParentLayer(n); + p = ed.dom.getParent(n, 'DIV,P,IMG'); + + if (!p) { + cm.setDisabled('absolute', 1); + cm.setDisabled('moveforward', 1); + cm.setDisabled('movebackward', 1); + } else { + cm.setDisabled('absolute', 0); + cm.setDisabled('moveforward', !le); + cm.setDisabled('movebackward', !le); + cm.setActive('absolute', le && le.style.position.toLowerCase() == "absolute"); + } + }, + + // Private methods + + _visualAid : function(ed, e, s) { + var dom = ed.dom; + + tinymce.each(dom.select('div,p', e), function(e) { + if (/^(absolute|relative|static)$/i.test(e.style.position)) { + if (s) + dom.addClass(e, 'mceItemVisualAid'); + else + dom.removeClass(e, 'mceItemVisualAid'); + } + }); + }, + + _move : function(d) { + var ed = this.editor, i, z = [], le = this._getParentLayer(ed.selection.getNode()), ci = -1, fi = -1, nl; + + nl = []; + tinymce.walk(ed.getBody(), function(n) { + if (n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position)) + nl.push(n); + }, 'childNodes'); + + // Find z-indexes + for (i=0; i -1) { + nl[ci].style.zIndex = z[fi]; + nl[fi].style.zIndex = z[ci]; + } else { + if (z[ci] > 0) + nl[ci].style.zIndex = z[ci] - 1; + } + } else { + // Move forward + + // Try find a higher one + for (i=0; i z[ci]) { + fi = i; + break; + } + } + + if (fi > -1) { + nl[ci].style.zIndex = z[fi]; + nl[fi].style.zIndex = z[ci]; + } else + nl[ci].style.zIndex = z[ci] + 1; + } + + ed.execCommand('mceRepaint'); + }, + + _getParentLayer : function(n) { + return this.editor.dom.getParent(n, function(n) { + return n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position); + }); + }, + + _insertLayer : function() { + var ed = this.editor, p = ed.dom.getPos(ed.dom.getParent(ed.selection.getNode(), '*')); + + ed.dom.add(ed.getBody(), 'div', { + style : { + position : 'absolute', + left : p.x, + top : (p.y > 20 ? p.y : 20), + width : 100, + height : 100 + }, + 'class' : 'mceItemVisualAid' + }, ed.selection.getContent() || ed.getLang('layer.content')); + }, + + _toggleAbsolute : function() { + var ed = this.editor, le = this._getParentLayer(ed.selection.getNode()); + + if (!le) + le = ed.dom.getParent(ed.selection.getNode(), 'DIV,P,IMG'); + + if (le) { + if (le.style.position.toLowerCase() == "absolute") { + ed.dom.setStyles(le, { + position : '', + left : '', + top : '', + width : '', + height : '' + }); + + ed.dom.removeClass(le, 'mceItemVisualAid'); + } else { + if (le.style.left == "") + le.style.left = 20 + 'px'; + + if (le.style.top == "") + le.style.top = 20 + 'px'; + + if (le.style.width == "") + le.style.width = le.width ? (le.width + 'px') : '100px'; + + if (le.style.height == "") + le.style.height = le.height ? (le.height + 'px') : '100px'; + + le.style.position = "absolute"; + ed.addVisual(ed.getBody()); + } + + ed.execCommand('mceRepaint'); + ed.nodeChanged(); + } + } + }); + + // Register plugin + tinymce.PluginManager.add('layer', tinymce.plugins.Layer); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/legacyoutput/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/legacyoutput/editor_plugin.js new file mode 100644 index 0000000..29d43c5 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/legacyoutput/editor_plugin.js @@ -0,0 +1 @@ +(function(a){a.onAddEditor.addToTop(function(c,b){b.settings.inline_styles=false});a.create("tinymce.plugins.LegacyOutput",{init:function(b){b.onInit.add(function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",e=a.explode(b.settings.font_size_style_values),d=b.serializer;b.formatter.register({alignleft:{selector:c,attributes:{align:"left"}},aligncenter:{selector:c,attributes:{align:"center"}},alignright:{selector:c,attributes:{align:"right"}},alignfull:{selector:c,attributes:{align:"full"}},bold:{inline:"b"},italic:{inline:"i"},underline:{inline:"u"},strikethrough:{inline:"strike"},fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(f){return a.inArray(e,f.value)+1}}},forecolor:{inline:"font",styles:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}});d._setup();a.each("b,i,u,strike".split(","),function(f){var g=d.rules[f];if(!g){d.addRules(f)}});if(!d.rules.font){d.addRules("font[face|size|color|style]")}a.each(c.split(","),function(f){var h=d.rules[f],g;if(h){a.each(h.attribs,function(j,i){if(i.name=="align"){g=true;return false}});if(!g){h.attribs.push({name:"align"})}}});b.onNodeChange.add(function(g,k){var j,f,h,i;f=g.dom.getParent(g.selection.getNode(),"font");if(f){h=f.face;i=f.size}if(j=k.get("fontselect")){j.select(function(l){return l==h})}if(j=k.get("fontsizeselect")){j.select(function(m){var l=a.inArray(e,m.fontSize);return l+1==i})}})})},getInfo:function(){return{longname:"LegacyOutput",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("legacyoutput",a.plugins.LegacyOutput)})(tinymce); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/legacyoutput/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/legacyoutput/editor_plugin_src.js new file mode 100644 index 0000000..3bbdb7b --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/legacyoutput/editor_plugin_src.js @@ -0,0 +1,136 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + * + * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align + * attributes and so forth. There are a few cases where these old items might be needed for example in email applications or with Flash + * + * However you should NOT use this plugin if you are building some system that produces web contents such as a CMS. All these elements are + * not apart of the newer specifications for HTML and XHTML. + */ + +(function(tinymce) { + // Override inline_styles setting to force TinyMCE to produce deprecated contents + tinymce.onAddEditor.addToTop(function(tinymce, editor) { + editor.settings.inline_styles = false; + }); + + // Create the legacy ouput plugin + tinymce.create('tinymce.plugins.LegacyOutput', { + init : function(editor) { + editor.onInit.add(function() { + var alignElements = 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', + fontSizes = tinymce.explode(editor.settings.font_size_style_values), + serializer = editor.serializer; + + // Override some internal formats to produce legacy elements and attributes + editor.formatter.register({ + // Change alignment formats to use the deprecated align attribute + alignleft : {selector : alignElements, attributes : {align : 'left'}}, + aligncenter : {selector : alignElements, attributes : {align : 'center'}}, + alignright : {selector : alignElements, attributes : {align : 'right'}}, + alignfull : {selector : alignElements, attributes : {align : 'full'}}, + + // Change the basic formatting elements to use deprecated element types + bold : {inline : 'b'}, + italic : {inline : 'i'}, + underline : {inline : 'u'}, + strikethrough : {inline : 'strike'}, + + // Change font size and font family to use the deprecated font element + fontname : {inline : 'font', attributes : {face : '%value'}}, + fontsize : { + inline : 'font', + attributes : { + size : function(vars) { + return tinymce.inArray(fontSizes, vars.value) + 1; + } + } + }, + + // Setup font elements for colors as well + forecolor : {inline : 'font', styles : {color : '%value'}}, + hilitecolor : {inline : 'font', styles : {backgroundColor : '%value'}} + }); + + // Force parsing of the serializer rules + serializer._setup(); + + // Check that deprecated elements are allowed if not add them + tinymce.each('b,i,u,strike'.split(','), function(name) { + var rule = serializer.rules[name]; + + if (!rule) + serializer.addRules(name); + }); + + // Add font element if it's missing + if (!serializer.rules["font"]) + serializer.addRules("font[face|size|color|style]"); + + // Add the missing and depreacted align attribute for the serialization engine + tinymce.each(alignElements.split(','), function(name) { + var rule = serializer.rules[name], found; + + if (rule) { + tinymce.each(rule.attribs, function(name, attr) { + if (attr.name == 'align') { + found = true; + return false; + } + }); + + if (!found) + rule.attribs.push({name : 'align'}); + } + }); + + // Listen for the onNodeChange event so that we can do special logic for the font size and font name drop boxes + editor.onNodeChange.add(function(editor, control_manager) { + var control, fontElm, fontName, fontSize; + + // Find font element get it's name and size + fontElm = editor.dom.getParent(editor.selection.getNode(), 'font'); + if (fontElm) { + fontName = fontElm.face; + fontSize = fontElm.size; + } + + // Select/unselect the font name in droplist + if (control = control_manager.get('fontselect')) { + control.select(function(value) { + return value == fontName; + }); + } + + // Select/unselect the font size in droplist + if (control = control_manager.get('fontsizeselect')) { + control.select(function(value) { + var index = tinymce.inArray(fontSizes, value.fontSize); + + return index + 1 == fontSize; + }); + } + }); + }); + }, + + getInfo : function() { + return { + longname : 'LegacyOutput', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('legacyoutput', tinymce.plugins.LegacyOutput); +})(tinymce); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/media/css/content.css b/sn_computer/html/tiny_mce/plugins/media/css/content.css new file mode 100644 index 0000000..7739381 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/media/css/content.css @@ -0,0 +1,6 @@ +.mceItemFlash, .mceItemShockWave, .mceItemQuickTime, .mceItemWindowsMedia, .mceItemRealMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc;} +.mceItemShockWave {background-image: url(../img/shockwave.gif);} +.mceItemFlash {background-image:url(../img/flash.gif);} +.mceItemQuickTime {background-image:url(../img/quicktime.gif);} +.mceItemWindowsMedia {background-image:url(../img/windowsmedia.gif);} +.mceItemRealMedia {background-image:url(../img/realmedia.gif);} diff --git a/sn_computer/html/tiny_mce/plugins/media/css/media.css b/sn_computer/html/tiny_mce/plugins/media/css/media.css new file mode 100644 index 0000000..7b2253b --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/media/css/media.css @@ -0,0 +1,16 @@ +#id, #name, #hspace, #vspace, #class_name, #align { width: 100px } +#hspace, #vspace { width: 50px } +#flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px } +#flash_base, #flash_flashvars { width: 240px } +#width, #height { width: 40px } +#src, #media_type { width: 250px } +#class { width: 120px } +#prev { margin: 0; border: 1px solid black; width: 380px; height: 230px; overflow: auto } +.panel_wrapper div.current { height: 390px; overflow: auto } +#flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { display: none } +.mceAddSelectValue { background-color: #DDDDDD } +#qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, #qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, #qt_volume { width: 70px } +#wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, #wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, #wmp_volume { width: 70px } +#rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px } +#shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, #shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { width: 90px } +#qt_qtsrc { width: 200px } diff --git a/sn_computer/html/tiny_mce/plugins/media/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/media/editor_plugin.js new file mode 100644 index 0000000..4bbe367 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/media/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var e=this;e.editor=b;e.url=c;function f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("param[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open({file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("media",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._objectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")}if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name=="img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||100));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mceItem/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf-96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemWindowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa0055595a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;case"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/]+>/g,function(j){var i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j=''; + } + + return im; + }); + } + }); + }, + + getInfo : function() { + return { + longname : 'Media', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + _objectsToSpans : function(ed, o) { + var t = this, h = o.content; + + h = h.replace(/]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi, function(a, b, c) { + var o = t._parse(c); + + return '' + }); + + h = h.replace(/]*)>/gi, ''); + h = h.replace(/]*)\/?>/gi, ''); + h = h.replace(/]*)>/gi, ''); + h = h.replace(/<\/(object)([^>]*)>/gi, ''); + h = h.replace(/<\/embed>/gi, ''); + h = h.replace(/]*)>/gi, function(a, b) {return ''}); + h = h.replace(/\/ class=\"mceItemParam\"><\/span>/gi, 'class="mceItemParam">'); + + o.content = h; + }, + + _buildObj : function(o, n) { + var ob, ed = this.editor, dom = ed.dom, p = this._parse(n.title), stc; + + stc = ed.getParam('media_strict', true) && o.type == 'application/x-shockwave-flash'; + + p.width = o.width = dom.getAttrib(n, 'width') || 100; + p.height = o.height = dom.getAttrib(n, 'height') || 100; + + if (p.src) + p.src = ed.convertURL(p.src, 'src', n); + + if (stc) { + ob = dom.create('span', { + id : p.id, + _mce_name : 'object', + type : 'application/x-shockwave-flash', + data : p.src, + style : dom.getAttrib(n, 'style'), + width : o.width, + height : o.height + }); + } else { + ob = dom.create('span', { + id : p.id, + _mce_name : 'object', + classid : "clsid:" + o.classid, + style : dom.getAttrib(n, 'style'), + codebase : o.codebase, + width : o.width, + height : o.height + }); + } + + each (p, function(v, k) { + if (!/^(width|height|codebase|classid|id|_cx|_cy)$/.test(k)) { + // Use url instead of src in IE for Windows media + if (o.type == 'application/x-mplayer2' && k == 'src' && !p.url) + k = 'url'; + + if (v) + dom.add(ob, 'span', {_mce_name : 'param', name : k, '_mce_value' : v}); + } + }); + + if (!stc) + dom.add(ob, 'span', tinymce.extend({_mce_name : 'embed', type : o.type, style : dom.getAttrib(n, 'style')}, p)); + + return ob; + }, + + _spansToImgs : function(p) { + var t = this, dom = t.editor.dom, im, ci; + + each(dom.select('span', p), function(n) { + // Convert object into image + if (dom.getAttrib(n, 'class') == 'mceItemObject') { + ci = dom.getAttrib(n, "classid").toLowerCase().replace(/\s+/g, ''); + + switch (ci) { + case 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000': + dom.replace(t._createImg('mceItemFlash', n), n); + break; + + case 'clsid:166b1bca-3f9c-11cf-8075-444553540000': + dom.replace(t._createImg('mceItemShockWave', n), n); + break; + + case 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6': + case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95': + case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a': + dom.replace(t._createImg('mceItemWindowsMedia', n), n); + break; + + case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b': + dom.replace(t._createImg('mceItemQuickTime', n), n); + break; + + case 'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa': + dom.replace(t._createImg('mceItemRealMedia', n), n); + break; + + default: + dom.replace(t._createImg('mceItemFlash', n), n); + } + + return; + } + + // Convert embed into image + if (dom.getAttrib(n, 'class') == 'mceItemEmbed') { + switch (dom.getAttrib(n, 'type')) { + case 'application/x-shockwave-flash': + dom.replace(t._createImg('mceItemFlash', n), n); + break; + + case 'application/x-director': + dom.replace(t._createImg('mceItemShockWave', n), n); + break; + + case 'application/x-mplayer2': + dom.replace(t._createImg('mceItemWindowsMedia', n), n); + break; + + case 'video/quicktime': + dom.replace(t._createImg('mceItemQuickTime', n), n); + break; + + case 'audio/x-pn-realaudio-plugin': + dom.replace(t._createImg('mceItemRealMedia', n), n); + break; + + default: + dom.replace(t._createImg('mceItemFlash', n), n); + } + } + }); + }, + + _createImg : function(cl, n) { + var im, dom = this.editor.dom, pa = {}, ti = '', args; + + args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality', 'data']; + + // Create image + im = dom.create('img', { + src : this.url + '/img/trans.gif', + width : dom.getAttrib(n, 'width') || 100, + height : dom.getAttrib(n, 'height') || 100, + style : dom.getAttrib(n, 'style'), + 'class' : cl + }); + + // Setup base parameters + each(args, function(na) { + var v = dom.getAttrib(n, na); + + if (v) + pa[na] = v; + }); + + // Add optional parameters + each(dom.select('span', n), function(n) { + if (dom.hasClass(n, 'mceItemParam')) + pa[dom.getAttrib(n, 'name')] = dom.getAttrib(n, '_mce_value'); + }); + + // Use src not movie + if (pa.movie) { + pa.src = pa.movie; + delete pa.movie; + } + + // No src try data + if (!pa.src) { + pa.src = pa.data; + delete pa.data; + } + + // Merge with embed args + n = dom.select('.mceItemEmbed', n)[0]; + if (n) { + each(args, function(na) { + var v = dom.getAttrib(n, na); + + if (v && !pa[na]) + pa[na] = v; + }); + } + + delete pa.width; + delete pa.height; + + im.title = this._serialize(pa); + + return im; + }, + + _parse : function(s) { + return tinymce.util.JSON.parse('{' + s + '}'); + }, + + _serialize : function(o) { + return tinymce.util.JSON.serialize(o).replace(/[{}]/g, ''); + } + }); + + // Register plugin + tinymce.PluginManager.add('media', tinymce.plugins.MediaPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/media/img/flash.gif b/sn_computer/html/tiny_mce/plugins/media/img/flash.gif new file mode 100644 index 0000000..cb192e6 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/flash.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/media/img/flv_player.swf b/sn_computer/html/tiny_mce/plugins/media/img/flv_player.swf new file mode 100644 index 0000000..042c2ab Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/flv_player.swf differ diff --git a/sn_computer/html/tiny_mce/plugins/media/img/quicktime.gif b/sn_computer/html/tiny_mce/plugins/media/img/quicktime.gif new file mode 100644 index 0000000..3b04991 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/quicktime.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/media/img/realmedia.gif b/sn_computer/html/tiny_mce/plugins/media/img/realmedia.gif new file mode 100644 index 0000000..fdfe0b9 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/realmedia.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/media/img/shockwave.gif b/sn_computer/html/tiny_mce/plugins/media/img/shockwave.gif new file mode 100644 index 0000000..5f235df Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/shockwave.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/media/img/trans.gif b/sn_computer/html/tiny_mce/plugins/media/img/trans.gif new file mode 100644 index 0000000..3884865 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/trans.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/media/img/windowsmedia.gif b/sn_computer/html/tiny_mce/plugins/media/img/windowsmedia.gif new file mode 100644 index 0000000..ab50f2d Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/media/img/windowsmedia.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/media/js/embed.js b/sn_computer/html/tiny_mce/plugins/media/js/embed.js new file mode 100644 index 0000000..6fe25de --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/media/js/embed.js @@ -0,0 +1,73 @@ +/** + * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. + */ + +function writeFlash(p) { + writeEmbed( + 'D27CDB6E-AE6D-11cf-96B8-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'application/x-shockwave-flash', + p + ); +} + +function writeShockWave(p) { + writeEmbed( + '166B1BCA-3F9C-11CF-8075-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0', + 'application/x-director', + p + ); +} + +function writeQuickTime(p) { + writeEmbed( + '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', + 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0', + 'video/quicktime', + p + ); +} + +function writeRealMedia(p) { + writeEmbed( + 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'audio/x-pn-realaudio-plugin', + p + ); +} + +function writeWindowsMedia(p) { + p.url = p.src; + writeEmbed( + '6BF52A52-394A-11D3-B153-00C04F79FAA6', + 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701', + 'application/x-mplayer2', + p + ); +} + +function writeEmbed(cls, cb, mt, p) { + var h = '', n; + + h += ''; + + h += ''); + +function init() { + var pl = "", f, val; + var type = "flash", fe, i; + + ed = tinyMCEPopup.editor; + + tinyMCEPopup.resizeToInnerSize(); + f = document.forms[0] + + fe = ed.selection.getNode(); + if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) { + pl = fe.title; + + switch (ed.dom.getAttrib(fe, 'class')) { + case 'mceItemFlash': + type = 'flash'; + break; + + case 'mceItemFlashVideo': + type = 'flv'; + break; + + case 'mceItemShockWave': + type = 'shockwave'; + break; + + case 'mceItemWindowsMedia': + type = 'wmp'; + break; + + case 'mceItemQuickTime': + type = 'qt'; + break; + + case 'mceItemRealMedia': + type = 'rmp'; + break; + } + + document.forms[0].insert.value = ed.getLang('update', 'Insert', true); + } + + document.getElementById('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media'); + document.getElementById('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','qt_qtsrc','media','media'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + + var html = getMediaListHTML('medialist','src','media','media'); + if (html == "") + document.getElementById("linklistrow").style.display = 'none'; + else + document.getElementById("linklistcontainer").innerHTML = html; + + // Resize some elements + if (isVisible('filebrowser')) + document.getElementById('src').style.width = '230px'; + + // Setup form + if (pl != "") { + pl = tinyMCEPopup.editor.plugins.media._parse(pl); + + switch (type) { + case "flash": + setBool(pl, 'flash', 'play'); + setBool(pl, 'flash', 'loop'); + setBool(pl, 'flash', 'menu'); + setBool(pl, 'flash', 'swliveconnect'); + setStr(pl, 'flash', 'quality'); + setStr(pl, 'flash', 'scale'); + setStr(pl, 'flash', 'salign'); + setStr(pl, 'flash', 'wmode'); + setStr(pl, 'flash', 'base'); + setStr(pl, 'flash', 'flashvars'); + break; + + case "qt": + setBool(pl, 'qt', 'loop'); + setBool(pl, 'qt', 'autoplay'); + setBool(pl, 'qt', 'cache'); + setBool(pl, 'qt', 'controller'); + setBool(pl, 'qt', 'correction'); + setBool(pl, 'qt', 'enablejavascript'); + setBool(pl, 'qt', 'kioskmode'); + setBool(pl, 'qt', 'autohref'); + setBool(pl, 'qt', 'playeveryframe'); + setBool(pl, 'qt', 'tarsetcache'); + setStr(pl, 'qt', 'scale'); + setStr(pl, 'qt', 'starttime'); + setStr(pl, 'qt', 'endtime'); + setStr(pl, 'qt', 'tarset'); + setStr(pl, 'qt', 'qtsrcchokespeed'); + setStr(pl, 'qt', 'volume'); + setStr(pl, 'qt', 'qtsrc'); + break; + + case "shockwave": + setBool(pl, 'shockwave', 'sound'); + setBool(pl, 'shockwave', 'progress'); + setBool(pl, 'shockwave', 'autostart'); + setBool(pl, 'shockwave', 'swliveconnect'); + setStr(pl, 'shockwave', 'swvolume'); + setStr(pl, 'shockwave', 'swstretchstyle'); + setStr(pl, 'shockwave', 'swstretchhalign'); + setStr(pl, 'shockwave', 'swstretchvalign'); + break; + + case "wmp": + setBool(pl, 'wmp', 'autostart'); + setBool(pl, 'wmp', 'enabled'); + setBool(pl, 'wmp', 'enablecontextmenu'); + setBool(pl, 'wmp', 'fullscreen'); + setBool(pl, 'wmp', 'invokeurls'); + setBool(pl, 'wmp', 'mute'); + setBool(pl, 'wmp', 'stretchtofit'); + setBool(pl, 'wmp', 'windowlessvideo'); + setStr(pl, 'wmp', 'balance'); + setStr(pl, 'wmp', 'baseurl'); + setStr(pl, 'wmp', 'captioningid'); + setStr(pl, 'wmp', 'currentmarker'); + setStr(pl, 'wmp', 'currentposition'); + setStr(pl, 'wmp', 'defaultframe'); + setStr(pl, 'wmp', 'playcount'); + setStr(pl, 'wmp', 'rate'); + setStr(pl, 'wmp', 'uimode'); + setStr(pl, 'wmp', 'volume'); + break; + + case "rmp": + setBool(pl, 'rmp', 'autostart'); + setBool(pl, 'rmp', 'loop'); + setBool(pl, 'rmp', 'autogotourl'); + setBool(pl, 'rmp', 'center'); + setBool(pl, 'rmp', 'imagestatus'); + setBool(pl, 'rmp', 'maintainaspect'); + setBool(pl, 'rmp', 'nojava'); + setBool(pl, 'rmp', 'prefetch'); + setBool(pl, 'rmp', 'shuffle'); + setStr(pl, 'rmp', 'console'); + setStr(pl, 'rmp', 'controls'); + setStr(pl, 'rmp', 'numloop'); + setStr(pl, 'rmp', 'scriptcallbacks'); + break; + } + + setStr(pl, null, 'src'); + setStr(pl, null, 'id'); + setStr(pl, null, 'name'); + setStr(pl, null, 'vspace'); + setStr(pl, null, 'hspace'); + setStr(pl, null, 'bgcolor'); + setStr(pl, null, 'align'); + setStr(pl, null, 'width'); + setStr(pl, null, 'height'); + + if ((val = ed.dom.getAttrib(fe, "width")) != "") + pl.width = f.width.value = val; + + if ((val = ed.dom.getAttrib(fe, "height")) != "") + pl.height = f.height.value = val; + + oldWidth = pl.width ? parseInt(pl.width) : 0; + oldHeight = pl.height ? parseInt(pl.height) : 0; + } else + oldWidth = oldHeight = 0; + + selectByValue(f, 'media_type', type); + changedType(type); + updateColor('bgcolor_pick', 'bgcolor'); + + TinyMCE_EditableSelects.init(); + generatePreview(); +} + +function insertMedia() { + var fe, f = document.forms[0], h; + + tinyMCEPopup.restoreSelection(); + + if (!AutoValidator.validate(f)) { + tinyMCEPopup.alert(ed.getLang('invalid_data')); + return false; + } + + f.width.value = f.width.value == "" ? 100 : f.width.value; + f.height.value = f.height.value == "" ? 100 : f.height.value; + + fe = ed.selection.getNode(); + if (fe != null && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) { + switch (f.media_type.options[f.media_type.selectedIndex].value) { + case "flash": + fe.className = "mceItemFlash"; + break; + + case "flv": + fe.className = "mceItemFlashVideo"; + break; + + case "shockwave": + fe.className = "mceItemShockWave"; + break; + + case "qt": + fe.className = "mceItemQuickTime"; + break; + + case "wmp": + fe.className = "mceItemWindowsMedia"; + break; + + case "rmp": + fe.className = "mceItemRealMedia"; + break; + } + + if (fe.width != f.width.value || fe.height != f.height.value) + ed.execCommand('mceRepaint'); + + fe.title = serializeParameters(); + fe.width = f.width.value; + fe.height = f.height.value; + fe.style.width = f.width.value + (f.width.value.indexOf('%') == -1 ? 'px' : ''); + fe.style.height = f.height.value + (f.height.value.indexOf('%') == -1 ? 'px' : ''); + fe.align = f.align.options[f.align.selectedIndex].value; + } else { + h = ' 0) { + var html = ""; + + html += ''; + + return html; + } + + return ""; +} + +function getType(v) { + var fo, i, c, el, x, f = document.forms[0]; + + fo = ed.getParam("media_types", "flash=swf;flv=flv;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;shockwave=dcr;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm,ra,ram").split(';'); + + // YouTube + if (v.match(/watch\?v=(.+)(.*)/)) { + f.width.value = '425'; + f.height.value = '350'; + f.src.value = 'http://www.youtube.com/v/' + v.match(/v=(.*)(.*)/)[0].split('=')[1]; + return 'flash'; + } + + // Google video + if (v.indexOf('http://video.google.com/videoplay?docid=') == 0) { + f.width.value = '425'; + f.height.value = '326'; + f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + v.substring('http://video.google.com/videoplay?docid='.length) + '&hl=en'; + return 'flash'; + } + + for (i=0; i 0 ? s.substring(0, s.length - 1) : s; + + return s; +} + +function setBool(pl, p, n) { + if (typeof(pl[n]) == "undefined") + return; + + document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false'; +} + +function setStr(pl, p, n) { + var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n]; + + if (typeof(pl[n]) == "undefined") + return; + + if (e.type == "text") + e.value = pl[n]; + else + selectByValue(f, (p != null ? p + "_" : '') + n, pl[n]); +} + +function getBool(p, n, d, tv, fv) { + var v = document.forms[0].elements[p + "_" + n].checked; + + tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'"; + fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'"; + + return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',"); +} + +function getStr(p, n, d) { + var e = document.forms[0].elements[(p != null ? p + "_" : "") + n]; + var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value; + + if (n == 'src') + v = tinyMCEPopup.editor.convertURL(v, 'src', null); + + return ((n == d || v == '') ? '' : n + ":'" + jsEncode(v) + "',"); +} + +function getInt(p, n, d) { + var e = document.forms[0].elements[(p != null ? p + "_" : "") + n]; + var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value; + + return ((n == d || v == '') ? '' : n + ":" + v.replace(/[^0-9]+/g, '') + ","); +} + +function jsEncode(s) { + s = s.replace(new RegExp('\\\\', 'g'), '\\\\'); + s = s.replace(new RegExp('"', 'g'), '\\"'); + s = s.replace(new RegExp("'", 'g'), "\\'"); + + return s; +} + +function generatePreview(c) { + var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, type, codebase, wp, hp, nw, nh; + + p.innerHTML = ''; + + nw = parseInt(f.width.value); + nh = parseInt(f.height.value); + + if (f.width.value != "" && f.height.value != "") { + if (f.constrain.checked) { + if (c == 'width' && oldWidth != 0) { + wp = nw / oldWidth; + nh = Math.round(wp * nh); + f.height.value = nh; + } else if (c == 'height' && oldHeight != 0) { + hp = nh / oldHeight; + nw = Math.round(hp * nw); + f.width.value = nw; + } + } + } + + if (f.width.value != "") + oldWidth = nw; + + if (f.height.value != "") + oldHeight = nh; + + // After constrain + pl = serializeParameters(); + + switch (f.media_type.options[f.media_type.selectedIndex].value) { + case "flash": + cls = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'; + codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'; + type = 'application/x-shockwave-flash'; + break; + + case "shockwave": + cls = 'clsid:166B1BCA-3F9C-11CF-8075-444553540000'; + codebase = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0'; + type = 'application/x-director'; + break; + + case "qt": + cls = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'; + codebase = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0'; + type = 'video/quicktime'; + break; + + case "wmp": + cls = ed.getParam('media_wmp6_compatible') ? 'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6'; + codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; + type = 'application/x-mplayer2'; + break; + + case "rmp": + cls = 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'; + codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; + type = 'audio/x-pn-realaudio-plugin'; + break; + } + + if (pl == '') { + p.innerHTML = ''; + return; + } + + pl = tinyMCEPopup.editor.plugins.media._parse(pl); + + if (!pl.src) { + p.innerHTML = ''; + return; + } + + pl.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(pl.src); + pl.width = !pl.width ? 100 : pl.width; + pl.height = !pl.height ? 100 : pl.height; + pl.id = !pl.id ? 'obj' : pl.id; + pl.name = !pl.name ? 'eobj' : pl.name; + pl.align = !pl.align ? '' : pl.align; + + // Avoid annoying warning about insecure items + if (!tinymce.isIE || document.location.protocol != 'https:') { + h += ''; + + for (n in pl) { + h += ''; + + // Add extra url parameter if it's an absolute URL + if (n == 'src' && pl[n].indexOf('://') != -1) + h += ''; + } + } + + h += ' + + + {#media_dlg.title} + + + + + + + + + +
    + + +
    +
    +
    + {#media_dlg.general} + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + +
     
    +
    + + + + + + +
    x   
    +
    +
    + +
    + {#media_dlg.preview} + +
    +
    + +
    +
    + {#media_dlg.advanced} + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + + +
     
    +
    +
    + +
    + {#media_dlg.flash_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + + + + + + + +
    +
    + +
    + {#media_dlg.flv_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + {#media_dlg.qt_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +  
    + + + + + +
     
    +
    +
    + +
    + {#media_dlg.wmp_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + {#media_dlg.rmp_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +   +
    +
    + +
    + {#media_dlg.shockwave_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    + + + + + +
    +
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/nonbreaking/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/nonbreaking/editor_plugin.js new file mode 100644 index 0000000..f2dbbff --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/nonbreaking/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'·':" ")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(tinymce.isIE&&f.keyCode==9){d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");tinymce.dom.Event.cancel(f)}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/nonbreaking/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/nonbreaking/editor_plugin_src.js new file mode 100644 index 0000000..a9e68af --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/nonbreaking/editor_plugin_src.js @@ -0,0 +1,53 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Nonbreaking', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceNonBreaking', function() { + ed.execCommand('mceInsertContent', false, (ed.plugins.visualchars && ed.plugins.visualchars.state) ? '·' : ' '); + }); + + // Register buttons + ed.addButton('nonbreaking', {title : 'nonbreaking.nonbreaking_desc', cmd : 'mceNonBreaking'}); + + if (ed.getParam('nonbreaking_force_tab')) { + ed.onKeyDown.add(function(ed, e) { + if (tinymce.isIE && e.keyCode == 9) { + ed.execCommand('mceNonBreaking'); + ed.execCommand('mceNonBreaking'); + ed.execCommand('mceNonBreaking'); + tinymce.dom.Event.cancel(e); + } + }); + } + }, + + getInfo : function() { + return { + longname : 'Nonbreaking space', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + + // Private methods + }); + + // Register plugin + tinymce.PluginManager.add('nonbreaking', tinymce.plugins.Nonbreaking); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/noneditable/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/noneditable/editor_plugin.js new file mode 100644 index 0000000..9945cd8 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/noneditable/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(h,g,k){var j,i;j=h.dom.getParent(h.selection.getStart(),function(l){return h.dom.hasClass(l,b)});i=h.dom.getParent(h.selection.getEnd(),function(l){return h.dom.hasClass(l,b)});if(j||i){f._setDisabled(1);return false}else{f._setDisabled(0)}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/noneditable/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/noneditable/editor_plugin_src.js new file mode 100644 index 0000000..54a7b36 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/noneditable/editor_plugin_src.js @@ -0,0 +1,90 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var Event = tinymce.dom.Event; + + tinymce.create('tinymce.plugins.NonEditablePlugin', { + init : function(ed, url) { + var t = this, editClass, nonEditClass; + + t.editor = ed; + editClass = ed.getParam("noneditable_editable_class", "mceEditable"); + nonEditClass = ed.getParam("noneditable_noneditable_class", "mceNonEditable"); + + ed.onNodeChange.addToTop(function(ed, cm, n) { + var sc, ec; + + // Block if start or end is inside a non editable element + sc = ed.dom.getParent(ed.selection.getStart(), function(n) { + return ed.dom.hasClass(n, nonEditClass); + }); + + ec = ed.dom.getParent(ed.selection.getEnd(), function(n) { + return ed.dom.hasClass(n, nonEditClass); + }); + + // Block or unblock + if (sc || ec) { + t._setDisabled(1); + return false; + } else + t._setDisabled(0); + }); + }, + + getInfo : function() { + return { + longname : 'Non editable elements', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + _block : function(ed, e) { + var k = e.keyCode; + + // Don't block arrow keys, pg up/down, and F1-F12 + if ((k > 32 && k < 41) || (k > 111 && k < 124)) + return; + + return Event.cancel(e); + }, + + _setDisabled : function(s) { + var t = this, ed = t.editor; + + tinymce.each(ed.controlManager.controls, function(c) { + c.setDisabled(s); + }); + + if (s !== t.disabled) { + if (s) { + ed.onKeyDown.addToTop(t._block); + ed.onKeyPress.addToTop(t._block); + ed.onKeyUp.addToTop(t._block); + ed.onPaste.addToTop(t._block); + } else { + ed.onKeyDown.remove(t._block); + ed.onKeyPress.remove(t._block); + ed.onKeyUp.remove(t._block); + ed.onPaste.remove(t._block); + } + + t.disabled = s; + } + } + }); + + // Register plugin + tinymce.PluginManager.add('noneditable', tinymce.plugins.NonEditablePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/pagebreak/css/content.css b/sn_computer/html/tiny_mce/plugins/pagebreak/css/content.css new file mode 100644 index 0000000..c949d58 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/pagebreak/css/content.css @@ -0,0 +1 @@ +.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../img/pagebreak.gif) no-repeat center top;} diff --git a/sn_computer/html/tiny_mce/plugins/pagebreak/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/pagebreak/editor_plugin.js new file mode 100644 index 0000000..a212f69 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/pagebreak/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='',a="mcePageBreak",c=b.getParam("pagebreak_separator",""),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.settings.content_css!==false){b.dom.loadCSS(d+"/css/content.css")}if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/pagebreak/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/pagebreak/editor_plugin_src.js new file mode 100644 index 0000000..905a743 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/pagebreak/editor_plugin_src.js @@ -0,0 +1,77 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.PageBreakPlugin', { + init : function(ed, url) { + var pb = '', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', ''), pbRE; + + pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g'); + + // Register commands + ed.addCommand('mcePageBreak', function() { + ed.execCommand('mceInsertContent', 0, pb); + }); + + // Register buttons + ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls}); + + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + "/css/content.css"); + + if (ed.theme.onResolveName) { + ed.theme.onResolveName.add(function(th, o) { + if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls)) + o.name = 'pagebreak'; + }); + } + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls)) + ed.selection.select(e); + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('pagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls)); + }); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = o.content.replace(pbRE, pb); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.get) + o.content = o.content.replace(/]+>/g, function(im) { + if (im.indexOf('class="mcePageBreak') !== -1) + im = sep; + + return im; + }); + }); + }, + + getInfo : function() { + return { + longname : 'PageBreak', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('pagebreak', tinymce.plugins.PageBreakPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/pagebreak/img/pagebreak.gif b/sn_computer/html/tiny_mce/plugins/pagebreak/img/pagebreak.gif new file mode 100644 index 0000000..acdf408 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/pagebreak/img/pagebreak.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/pagebreak/img/trans.gif b/sn_computer/html/tiny_mce/plugins/pagebreak/img/trans.gif new file mode 100644 index 0000000..3884865 Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/pagebreak/img/trans.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/paste/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/paste/editor_plugin.js new file mode 100644 index 0000000..3e7b250 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/editor_plugin.js @@ -0,0 +1 @@ +(function(){var c=tinymce.each,d=null,a={paste_auto_cleanup_on_paste:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_convert_headers_to_strong:false,paste_dialog_width:"450",paste_dialog_height:"400",paste_text_use_dialog:false,paste_text_sticky:false,paste_text_notifyalways:false,paste_text_linebreaktype:"p",paste_text_replacements:[[/\u2026/g,"..."],[/[\x93\x94\u201c\u201d]/g,'"'],[/[\x60\x91\x92\u2018\u2019]/g,"'"]]};function b(e,f){return e.getParam(f,a[f])}tinymce.create("tinymce.plugins.PastePlugin",{init:function(e,f){var g=this;g.editor=e;g.url=f;g.onPreProcess=new tinymce.util.Dispatcher(g);g.onPostProcess=new tinymce.util.Dispatcher(g);g.onPreProcess.add(g._preProcess);g.onPostProcess.add(g._postProcess);g.onPreProcess.add(function(j,k){e.execCallback("paste_preprocess",j,k)});g.onPostProcess.add(function(j,k){e.execCallback("paste_postprocess",j,k)});e.pasteAsPlainText=false;function i(l,j){var k=e.dom;g.onPreProcess.dispatch(g,l);l.node=k.create("div",0,l.content);g.onPostProcess.dispatch(g,l);l.content=e.serializer.serialize(l.node,{getInner:1});if((!j)&&(e.pasteAsPlainText)){g._insertPlainText(e,k,l.content);if(!b(e,"paste_text_sticky")){e.pasteAsPlainText=false;e.controlManager.setActive("pastetext",false)}}else{if(/<(p|h[1-6]|ul|ol)/.test(l.content)){g._insertBlockContent(e,k,l.content)}else{g._insert(l.content)}}}e.addCommand("mceInsertClipboardContent",function(j,k){i(k,true)});if(!b(e,"paste_text_use_dialog")){e.addCommand("mcePasteText",function(k,j){var l=tinymce.util.Cookie;e.pasteAsPlainText=!e.pasteAsPlainText;e.controlManager.setActive("pastetext",e.pasteAsPlainText);if((e.pasteAsPlainText)&&(!l.get("tinymcePasteText"))){if(b(e,"paste_text_sticky")){e.windowManager.alert(e.translate("paste.plaintext_mode_sticky"))}else{e.windowManager.alert(e.translate("paste.plaintext_mode_sticky"))}if(!b(e,"paste_text_notifyalways")){l.set("tinymcePasteText","1",new Date(new Date().getFullYear()+1,12,31))}}})}e.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});e.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"});function h(s){var m,q,k,l=e.selection,p=e.dom,r=e.getBody(),j;if(e.pasteAsPlainText&&(s.clipboardData||p.doc.dataTransfer)){s.preventDefault();i({content:(s.clipboardData||p.doc.dataTransfer).getData("Text")},true);return}if(p.get("_mcePaste")){return}m=p.add(r,"div",{id:"_mcePaste","class":"mcePaste"},"\uFEFF");if(r!=e.getDoc().body){j=p.getPos(e.selection.getStart(),r).y}else{j=r.scrollTop}p.setStyles(m,{position:"absolute",left:-10000,top:j,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){k=p.doc.body.createTextRange();k.moveToElementText(m);k.execCommand("Paste");p.remove(m);if(m.innerHTML==="\uFEFF"){e.execCommand("mcePasteWord");s.preventDefault();return}i({content:m.innerHTML});return tinymce.dom.Event.cancel(s)}else{function o(n){n.preventDefault()}p.bind(e.getDoc(),"mousedown",o);p.bind(e.getDoc(),"keydown",o);q=e.selection.getRng();m=m.firstChild;k=e.getDoc().createRange();k.setStart(m,0);k.setEnd(m,1);l.setRng(k);window.setTimeout(function(){var t="",n=p.select("div.mcePaste");c(n,function(u){c(p.select("div.mcePaste",u),function(v){p.remove(v,1)});c(p.select("span.Apple-style-span",u),function(v){p.remove(v,1)});t+=u.innerHTML});c(n,function(u){p.remove(u)});if(q){l.setRng(q)}i({content:t});p.unbind(e.getDoc(),"mousedown",o);p.unbind(e.getDoc(),"keydown",o)},0)}}if(b(e,"paste_auto_cleanup_on_paste")){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){e.onKeyDown.add(function(j,k){if(((tinymce.isMac?k.metaKey:k.ctrlKey)&&k.keyCode==86)||(k.shiftKey&&k.keyCode==45)){h(k)}})}else{e.onPaste.addToTop(function(j,k){return h(k)})}}if(b(e,"paste_block_drop")){e.onInit.add(function(){e.dom.bind(e.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(j){j.preventDefault();j.stopPropagation();return false})})}g._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(i,f){var l=this.editor,k=f.content,q=tinymce.grep,p=tinymce.explode,g=tinymce.trim,m,j;function e(h){c(h,function(o){if(o.constructor==RegExp){k=k.replace(o,"")}else{k=k.replace(o[0],o[1])}})}if(/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(k)||f.wordContent){f.wordContent=true;e([/^\s*( )+/gi,/( |]*>)+\s*$/gi]);if(b(l,"paste_convert_headers_to_strong")){k=k.replace(/

    ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"

    $1

    ")}if(b(l,"paste_convert_middot_lists")){e([[//gi,"$&__MCE_ITEM__"],[/(]+(?:mso-list:|:\s*symbol)[^>]+>)/gi,"$1__MCE_ITEM__"]])}e([//gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,"\u00a0"]]);do{m=k.length;k=k.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi,"$1")}while(m!=k.length);if(b(l,"paste_retain_style_properties").replace(/^none$/i,"").length==0){k=k.replace(/<\/?span[^>]*>/gi,"")}else{e([[/([\s\u00a0]*)<\/span>/gi,function(o,h){return(h.length>0)?h.replace(/./," ").slice(Math.floor(h.length/2)).split("").join("\u00a0"):""}],[/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,function(u,h,t){var v=[],o=0,r=p(g(t).replace(/"/gi,"'"),";");c(r,function(s){var w,y,z=p(s,":");function x(A){return A+((A!=="0")&&(/\d$/.test(A)))?"px":""}if(z.length==2){w=z[0].toLowerCase();y=z[1].toLowerCase();switch(w){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":v[o++]=w.replace(/^mso-|-alt$/g,"")+":"+x(y);return;case"horiz-align":v[o++]="text-align:"+y;return;case"vert-align":v[o++]="vertical-align:"+y;return;case"font-color":case"mso-foreground":v[o++]="color:"+y;return;case"mso-background":case"mso-highlight":v[o++]="background:"+y;return;case"mso-default-height":v[o++]="min-height:"+x(y);return;case"mso-default-width":v[o++]="min-width:"+x(y);return;case"mso-padding-between-alt":v[o++]="border-collapse:separate;border-spacing:"+x(y);return;case"text-line-through":if((y=="single")||(y=="double")){v[o++]="text-decoration:line-through"}return;case"mso-zero-height":if(y=="yes"){v[o++]="display:none"}return}if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(w)){return}v[o++]=w+":"+z[1]}});if(o>0){return h+' style="'+v.join(";")+'"'}else{return h}}]])}}if(b(l,"paste_convert_headers_to_strong")){e([[/]*>/gi,"

    "],[/<\/h[1-6][^>]*>/gi,"

    "]])}j=b(l,"paste_strip_class_attributes");if(j!=="none"){function n(r,o){if(j==="all"){return""}var h=q(p(o.replace(/^(["'])(.*)\1$/,"$2")," "),function(s){return(/^(?!mso)/i.test(s))});return h.length?' class="'+h.join(" ")+'"':""}k=k.replace(/ class="([^"]+)"/gi,n);k=k.replace(/ class=(\w+)/gi,n)}if(b(l,"paste_remove_spans")){k=k.replace(/<\/?span[^>]*>/gi,"")}f.content=k},_postProcess:function(h,j){var g=this,f=g.editor,i=f.dom,e;if(j.wordContent){c(i.select("a",j.node),function(k){if(!k.href||k.href.indexOf("#_Toc")!=-1){i.remove(k,1)}});if(b(f,"paste_convert_middot_lists")){g._convertLists(h,j)}e=b(f,"paste_retain_style_properties");if((tinymce.is(e,"string"))&&(e!=="all")&&(e!=="*")){e=tinymce.explode(e.replace(/^none$/i,""));c(i.select("*",j.node),function(n){var o={},l=0,m,p,k;if(e){for(m=0;m0){i.setStyles(n,o)}else{if(n.nodeName=="SPAN"&&!n.className){i.remove(n,true)}}})}}if(b(f,"paste_remove_styles")||(b(f,"paste_remove_styles_if_webkit")&&tinymce.isWebKit)){c(i.select("*[style]",j.node),function(k){k.removeAttribute("style");k.removeAttribute("_mce_style")})}else{if(tinymce.isWebKit){c(i.select("*",j.node),function(k){k.removeAttribute("_mce_style")})}}},_convertLists:function(h,f){var j=h.editor.dom,i,m,e=-1,g,n=[],l,k;c(j.select("p",f.node),function(u){var r,v="",t,s,o,q;for(r=u.firstChild;r&&r.nodeType==3;r=r.nextSibling){v+=r.nodeValue}v=u.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/ /g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(v)){t="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(v)){t="ol"}if(t){g=parseFloat(u.style.marginLeft||0);if(g>e){n.push(g)}if(!i||t!=l){i=j.create(t);j.insertAfter(i,u)}else{if(g>e){i=m.appendChild(j.create(t))}else{if(g]*>/gi,"");if(t=="ul"&&/^[\u2022\u00b7\u00a7\u00d8o]/.test(p)){j.remove(w)}else{if(/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(p)){j.remove(w)}}});s=u.innerHTML;if(t=="ul"){s=u.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/,"")}else{s=u.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.( |\u00a0)+\s*/,"")}m=i.appendChild(j.create("li",0,s));j.remove(u);e=g;l=t}else{i=e=0}});k=f.node.innerHTML;if(k.indexOf("__MCE_ITEM__")!=-1){f.node.innerHTML=k.replace(/__MCE_ITEM__/g,"")}},_insertBlockContent:function(l,h,m){var f,j,g=l.selection,q,n,e,o,i,k="mce_marker";function p(t){var s;if(tinymce.isIE){s=l.getDoc().body.createTextRange();s.moveToElementText(t);s.collapse(false);s.select()}else{g.select(t,1);g.collapse(false)}}this._insert(' ',1);j=h.get(k);f=h.getParent(j,"p,h1,h2,h3,h4,h5,h6,ul,ol,th,td");if(f&&!/TD|TH/.test(f.nodeName)){j=h.split(f,j);c(h.create("div",0,m).childNodes,function(r){q=j.parentNode.insertBefore(r.cloneNode(true),j)});p(q)}else{h.setOuterHTML(j,m);g.select(l.getBody(),1);g.collapse(0)}while(n=h.get(k)){h.remove(n)}n=g.getStart();e=h.getViewPort(l.getWin());o=l.dom.getPos(n).y;i=n.clientHeight;if(oe.y+e.h){l.getDoc().body.scrollTop=o0)){if(!d){d=("34,quot,38,amp,39,apos,60,lt,62,gt,"+j.serializer.settings.entities).split(",")}if(/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(v)){q([/[\n\r]+/g])}else{q([/\r+/g])}q([[/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi,"\n\n"],[/]*>|<\/tr>/gi,"\n"],[/<\/t[dh]>\s*]*>/gi,"\t"],/<[a-z!\/?][^>]*>/gi,[/ /gi," "],[/&(#\d+|[a-z0-9]{1,10});/gi,function(i,h){if(h.charAt(0)==="#"){return String.fromCharCode(h.slice(1))}else{return((i=y(d,h))>0)?String.fromCharCode(d[i-1]):" "}}],[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi,"$1"],[/\n{3,}/g,"\n\n"],/^\s+|\s+$/g]);v=x.encode(v);if(!s.isCollapsed()){z.execCommand("Delete",false,null)}if(m(o,"array")||(m(o,"array"))){q(o)}else{if(m(o,"string")){q(new RegExp(o,"gi"))}}if(g=="none"){q([[/\n+/g," "]])}else{if(g=="br"){q([[/\n/g,"
    "]])}else{q([/^\s+|\s+$/g,[/\n\n/g,"

    "],[/\n/g,"
    "]])}}if((l=v.indexOf("

    "))!=-1){k=v.lastIndexOf("

    ");r=s.getNode();e=[];do{if(r.nodeType==1){if(r.nodeName=="TD"||r.nodeName=="BODY"){break}e[e.length]=r}}while(r=r.parentNode);if(e.length>0){p=v.substring(0,l);f="";for(t=0,u=e.length;t";f+="<"+e[e.length-t-1].nodeName.toLowerCase()+">"}if(l==k){v=p+f+v.substring(l+7)}else{v=p+v.substring(l+4,k+4)+f+v.substring(k+7)}}}j.execCommand("mceInsertRawHTML",false,v+' ');window.setTimeout(function(){var h=x.get("_plain_text_marker"),B,i,A,w;s.select(h,false);z.execCommand("Delete",false,null);h=null;B=s.getStart();i=x.getViewPort(n);A=x.getPos(B).y;w=B.clientHeight;if((Ai.y+i.h)){z.body.scrollTop=A

    ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi, "

    $1

    "); + } + + if (getParam(ed, "paste_convert_middot_lists")) { + process([ + [//gi, '$&__MCE_ITEM__'], // Convert supportLists to a list item marker + [/(]+(?:mso-list:|:\s*symbol)[^>]+>)/gi, '$1__MCE_ITEM__'] // Convert mso-list and symbol spans to item markers + ]); + } + + process([ + // Word comments like conditional comments etc + //gi, + + // Remove comments, scripts (e.g., msoShowComment), XML tag, VML content, MS Office namespaced tags, and a few other tags + /<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi, + + // Convert into for line-though + [/<(\/?)s>/gi, "<$1strike>"], + + // Replace nsbp entites to char since it's easier to handle + [/ /gi, "\u00a0"] + ]); + + // Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag. + // If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot. + do { + len = h.length; + h = h.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi, "$1"); + } while (len != h.length); + + // Remove all spans if no styles is to be retained + if (getParam(ed, "paste_retain_style_properties").replace(/^none$/i, "").length == 0) { + h = h.replace(/<\/?span[^>]*>/gi, ""); + } else { + // We're keeping styles, so at least clean them up. + // CSS Reference: http://msdn.microsoft.com/en-us/library/aa155477.aspx + + process([ + // Convert ___ to string of alternating breaking/non-breaking spaces of same length + [/([\s\u00a0]*)<\/span>/gi, + function(str, spaces) { + return (spaces.length > 0)? spaces.replace(/./, " ").slice(Math.floor(spaces.length/2)).split("").join("\u00a0") : ""; + } + ], + + // Examine all styles: delete junk, transform some, and keep the rest + [/(<[a-z][^>]*)\sstyle="([^"]*)"/gi, + function(str, tag, style) { + var n = [], + i = 0, + s = explode(trim(style).replace(/"/gi, "'"), ";"); + + // Examine each style definition within the tag's style attribute + each(s, function(v) { + var name, value, + parts = explode(v, ":"); + + function ensureUnits(v) { + return v + ((v !== "0") && (/\d$/.test(v)))? "px" : ""; + } + + if (parts.length == 2) { + name = parts[0].toLowerCase(); + value = parts[1].toLowerCase(); + + // Translate certain MS Office styles into their CSS equivalents + switch (name) { + case "mso-padding-alt": + case "mso-padding-top-alt": + case "mso-padding-right-alt": + case "mso-padding-bottom-alt": + case "mso-padding-left-alt": + case "mso-margin-alt": + case "mso-margin-top-alt": + case "mso-margin-right-alt": + case "mso-margin-bottom-alt": + case "mso-margin-left-alt": + case "mso-table-layout-alt": + case "mso-height": + case "mso-width": + case "mso-vertical-align-alt": + n[i++] = name.replace(/^mso-|-alt$/g, "") + ":" + ensureUnits(value); + return; + + case "horiz-align": + n[i++] = "text-align:" + value; + return; + + case "vert-align": + n[i++] = "vertical-align:" + value; + return; + + case "font-color": + case "mso-foreground": + n[i++] = "color:" + value; + return; + + case "mso-background": + case "mso-highlight": + n[i++] = "background:" + value; + return; + + case "mso-default-height": + n[i++] = "min-height:" + ensureUnits(value); + return; + + case "mso-default-width": + n[i++] = "min-width:" + ensureUnits(value); + return; + + case "mso-padding-between-alt": + n[i++] = "border-collapse:separate;border-spacing:" + ensureUnits(value); + return; + + case "text-line-through": + if ((value == "single") || (value == "double")) { + n[i++] = "text-decoration:line-through"; + } + return; + + case "mso-zero-height": + if (value == "yes") { + n[i++] = "display:none"; + } + return; + } + + // Eliminate all MS Office style definitions that have no CSS equivalent by examining the first characters in the name + if (/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(name)) { + return; + } + + // If it reached this point, it must be a valid CSS style + n[i++] = name + ":" + parts[1]; // Lower-case name, but keep value case + } + }); + + // If style attribute contained any valid styles the re-write it; otherwise delete style attribute. + if (i > 0) { + return tag + ' style="' + n.join(';') + '"'; + } else { + return tag; + } + } + ] + ]); + } + } + + // Replace headers with + if (getParam(ed, "paste_convert_headers_to_strong")) { + process([ + [/]*>/gi, "

    "], + [/<\/h[1-6][^>]*>/gi, "

    "] + ]); + } + + // Class attribute options are: leave all as-is ("none"), remove all ("all"), or remove only those starting with mso ("mso"). + // Note:- paste_strip_class_attributes: "none", verify_css_classes: true is also a good variation. + stripClass = getParam(ed, "paste_strip_class_attributes"); + + if (stripClass !== "none") { + function removeClasses(match, g1) { + if (stripClass === "all") + return ''; + + var cls = grep(explode(g1.replace(/^(["'])(.*)\1$/, "$2"), " "), + function(v) { + return (/^(?!mso)/i.test(v)); + } + ); + + return cls.length ? ' class="' + cls.join(" ") + '"' : ''; + }; + + h = h.replace(/ class="([^"]+)"/gi, removeClasses); + h = h.replace(/ class=(\w+)/gi, removeClasses); + } + + // Remove spans option + if (getParam(ed, "paste_remove_spans")) { + h = h.replace(/<\/?span[^>]*>/gi, ""); + } + + //console.log('After preprocess:' + h); + + o.content = h; + }, + + /** + * Various post process items. + */ + _postProcess : function(pl, o) { + var t = this, ed = t.editor, dom = ed.dom, styleProps; + + if (o.wordContent) { + // Remove named anchors or TOC links + each(dom.select('a', o.node), function(a) { + if (!a.href || a.href.indexOf('#_Toc') != -1) + dom.remove(a, 1); + }); + + if (getParam(ed, "paste_convert_middot_lists")) { + t._convertLists(pl, o); + } + + // Process styles + styleProps = getParam(ed, "paste_retain_style_properties"); // retained properties + + // Process only if a string was specified and not equal to "all" or "*" + if ((tinymce.is(styleProps, "string")) && (styleProps !== "all") && (styleProps !== "*")) { + styleProps = tinymce.explode(styleProps.replace(/^none$/i, "")); + + // Retains some style properties + each(dom.select('*', o.node), function(el) { + var newStyle = {}, npc = 0, i, sp, sv; + + // Store a subset of the existing styles + if (styleProps) { + for (i = 0; i < styleProps.length; i++) { + sp = styleProps[i]; + sv = dom.getStyle(el, sp); + + if (sv) { + newStyle[sp] = sv; + npc++; + } + } + } + + // Remove all of the existing styles + dom.setAttrib(el, 'style', ''); + + if (styleProps && npc > 0) + dom.setStyles(el, newStyle); // Add back the stored subset of styles + else // Remove empty span tags that do not have class attributes + if (el.nodeName == 'SPAN' && !el.className) + dom.remove(el, true); + }); + } + } + + // Remove all style information or only specifically on WebKit to avoid the style bug on that browser + if (getParam(ed, "paste_remove_styles") || (getParam(ed, "paste_remove_styles_if_webkit") && tinymce.isWebKit)) { + each(dom.select('*[style]', o.node), function(el) { + el.removeAttribute('style'); + el.removeAttribute('_mce_style'); + }); + } else { + if (tinymce.isWebKit) { + // We need to compress the styles on WebKit since if you paste it will become + // Removing the mce_style that contains the real value will force the Serializer engine to compress the styles + each(dom.select('*', o.node), function(el) { + el.removeAttribute('_mce_style'); + }); + } + } + }, + + /** + * Converts the most common bullet and number formats in Office into a real semantic UL/LI list. + */ + _convertLists : function(pl, o) { + var dom = pl.editor.dom, listElm, li, lastMargin = -1, margin, levels = [], lastType, html; + + // Convert middot lists into real semantic lists + each(dom.select('p', o.node), function(p) { + var sib, val = '', type, html, idx, parents; + + // Get text node value at beginning of paragraph + for (sib = p.firstChild; sib && sib.nodeType == 3; sib = sib.nextSibling) + val += sib.nodeValue; + + val = p.innerHTML.replace(/<\/?\w+[^>]*>/gi, '').replace(/ /g, '\u00a0'); + + // Detect unordered lists look for bullets + if (/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(val)) + type = 'ul'; + + // Detect ordered lists 1., a. or ixv. + if (/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(val)) + type = 'ol'; + + // Check if node value matches the list pattern: o   + if (type) { + margin = parseFloat(p.style.marginLeft || 0); + + if (margin > lastMargin) + levels.push(margin); + + if (!listElm || type != lastType) { + listElm = dom.create(type); + dom.insertAfter(listElm, p); + } else { + // Nested list element + if (margin > lastMargin) { + listElm = li.appendChild(dom.create(type)); + } else if (margin < lastMargin) { + // Find parent level based on margin value + idx = tinymce.inArray(levels, margin); + parents = dom.getParents(listElm.parentNode, type); + listElm = parents[parents.length - 1 - idx] || listElm; + } + } + + // Remove middot or number spans if they exists + each(dom.select('span', p), function(span) { + var html = span.innerHTML.replace(/<\/?\w+[^>]*>/gi, ''); + + // Remove span with the middot or the number + if (type == 'ul' && /^[\u2022\u00b7\u00a7\u00d8o]/.test(html)) + dom.remove(span); + else if (/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(html)) + dom.remove(span); + }); + + html = p.innerHTML; + + // Remove middot/list items + if (type == 'ul') + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/, ''); + else + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^\s*\w+\.( |\u00a0)+\s*/, ''); + + // Create li and add paragraph data into the new li + li = listElm.appendChild(dom.create('li', 0, html)); + dom.remove(p); + + lastMargin = margin; + lastType = type; + } else + listElm = lastMargin = 0; // End list element + }); + + // Remove any left over makers + html = o.node.innerHTML; + if (html.indexOf('__MCE_ITEM__') != -1) + o.node.innerHTML = html.replace(/__MCE_ITEM__/g, ''); + }, + + /** + * This method will split the current block parent and insert the contents inside the split position. + * This logic can be improved so text nodes at the start/end remain in the start/end block elements + */ + _insertBlockContent : function(ed, dom, content) { + var parentBlock, marker, sel = ed.selection, last, elm, vp, y, elmHeight, markerId = 'mce_marker'; + + function select(n) { + var r; + + if (tinymce.isIE) { + r = ed.getDoc().body.createTextRange(); + r.moveToElementText(n); + r.collapse(false); + r.select(); + } else { + sel.select(n, 1); + sel.collapse(false); + } + } + + // Insert a marker for the caret position + this._insert(' ', 1); + marker = dom.get(markerId); + parentBlock = dom.getParent(marker, 'p,h1,h2,h3,h4,h5,h6,ul,ol,th,td'); + + // If it's a parent block but not a table cell + if (parentBlock && !/TD|TH/.test(parentBlock.nodeName)) { + // Split parent block + marker = dom.split(parentBlock, marker); + + // Insert nodes before the marker + each(dom.create('div', 0, content).childNodes, function(n) { + last = marker.parentNode.insertBefore(n.cloneNode(true), marker); + }); + + // Move caret after marker + select(last); + } else { + dom.setOuterHTML(marker, content); + sel.select(ed.getBody(), 1); + sel.collapse(0); + } + + // Remove marker if it's left + while (elm = dom.get(markerId)) + dom.remove(elm); + + // Get element, position and height + elm = sel.getStart(); + vp = dom.getViewPort(ed.getWin()); + y = ed.dom.getPos(elm).y; + elmHeight = elm.clientHeight; + + // Is element within viewport if not then scroll it into view + if (y < vp.y || y + elmHeight > vp.y + vp.h) + ed.getDoc().body.scrollTop = y < vp.y ? y : y - vp.h + 25; + }, + + /** + * Inserts the specified contents at the caret position. + */ + _insert : function(h, skip_undo) { + var ed = this.editor, r = ed.selection.getRng(); + + // First delete the contents seems to work better on WebKit when the selection spans multiple list items or multiple table cells. + if (!ed.selection.isCollapsed() && r.startContainer != r.endContainer) + ed.getDoc().execCommand('Delete', false, null); + + // It's better to use the insertHTML method on Gecko since it will combine paragraphs correctly before inserting the contents + ed.execCommand(tinymce.isGecko ? 'insertHTML' : 'mceInsertContent', false, h, {skip_undo : skip_undo}); + }, + + /** + * Instead of the old plain text method which tried to re-create a paste operation, the + * new approach adds a plain text mode toggle switch that changes the behavior of paste. + * This function is passed the same input that the regular paste plugin produces. + * It performs additional scrubbing and produces (and inserts) the plain text. + * This approach leverages all of the great existing functionality in the paste + * plugin, and requires minimal changes to add the new functionality. + * Speednet - June 2009 + */ + _insertPlainText : function(ed, dom, h) { + var i, len, pos, rpos, node, breakElms, before, after, + w = ed.getWin(), + d = ed.getDoc(), + sel = ed.selection, + is = tinymce.is, + inArray = tinymce.inArray, + linebr = getParam(ed, "paste_text_linebreaktype"), + rl = getParam(ed, "paste_text_replacements"); + + function process(items) { + each(items, function(v) { + if (v.constructor == RegExp) + h = h.replace(v, ""); + else + h = h.replace(v[0], v[1]); + }); + }; + + if ((typeof(h) === "string") && (h.length > 0)) { + if (!entities) + entities = ("34,quot,38,amp,39,apos,60,lt,62,gt," + ed.serializer.settings.entities).split(","); + + // If HTML content with line-breaking tags, then remove all cr/lf chars because only tags will break a line + if (/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(h)) { + process([ + /[\n\r]+/g + ]); + } else { + // Otherwise just get rid of carriage returns (only need linefeeds) + process([ + /\r+/g + ]); + } + + process([ + [/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi, "\n\n"], // Block tags get a blank line after them + [/]*>|<\/tr>/gi, "\n"], // Single linebreak for
    tags and table rows + [/<\/t[dh]>\s*]*>/gi, "\t"], // Table cells get tabs betweem them + /<[a-z!\/?][^>]*>/gi, // Delete all remaining tags + [/ /gi, " "], // Convert non-break spaces to regular spaces (remember, *plain text*) + [ + // HTML entity + /&(#\d+|[a-z0-9]{1,10});/gi, + + // Replace with actual character + function(e, s) { + if (s.charAt(0) === "#") { + return String.fromCharCode(s.slice(1)); + } + else { + return ((e = inArray(entities, s)) > 0)? String.fromCharCode(entities[e-1]) : " "; + } + } + ], + [/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"], // Cool little RegExp deletes whitespace around linebreak chars. + [/\n{3,}/g, "\n\n"], // Max. 2 consecutive linebreaks + /^\s+|\s+$/g // Trim the front & back + ]); + + h = dom.encode(h); + + // Delete any highlighted text before pasting + if (!sel.isCollapsed()) { + d.execCommand("Delete", false, null); + } + + // Perform default or custom replacements + if (is(rl, "array") || (is(rl, "array"))) { + process(rl); + } + else if (is(rl, "string")) { + process(new RegExp(rl, "gi")); + } + + // Treat paragraphs as specified in the config + if (linebr == "none") { + process([ + [/\n+/g, " "] + ]); + } + else if (linebr == "br") { + process([ + [/\n/g, "
    "] + ]); + } + else { + process([ + /^\s+|\s+$/g, + [/\n\n/g, "

    "], + [/\n/g, "
    "] + ]); + } + + // This next piece of code handles the situation where we're pasting more than one paragraph of plain + // text, and we are pasting the content into the middle of a block node in the editor. The block + // node gets split at the selection point into "Para A" and "Para B" (for the purposes of explaining). + // The first paragraph of the pasted text is appended to "Para A", and the last paragraph of the + // pasted text is prepended to "Para B". Any other paragraphs of pasted text are placed between + // "Para A" and "Para B". This code solves a host of problems with the original plain text plugin and + // now handles styles correctly. (Pasting plain text into a styled paragraph is supposed to make the + // plain text take the same style as the existing paragraph.) + if ((pos = h.indexOf("

    ")) != -1) { + rpos = h.lastIndexOf("

    "); + node = sel.getNode(); + breakElms = []; // Get list of elements to break + + do { + if (node.nodeType == 1) { + // Don't break tables and break at body + if (node.nodeName == "TD" || node.nodeName == "BODY") { + break; + } + + breakElms[breakElms.length] = node; + } + } while (node = node.parentNode); + + // Are we in the middle of a block node? + if (breakElms.length > 0) { + before = h.substring(0, pos); + after = ""; + + for (i=0, len=breakElms.length; i"; + after += "<" + breakElms[breakElms.length-i-1].nodeName.toLowerCase() + ">"; + } + + if (pos == rpos) { + h = before + after + h.substring(pos+7); + } + else { + h = before + h.substring(pos+4, rpos+4) + after + h.substring(rpos+7); + } + } + } + + // Insert content at the caret, plus add a marker for repositioning the caret + ed.execCommand("mceInsertRawHTML", false, h + ' '); + + // Reposition the caret to the marker, which was placed immediately after the inserted content. + // Needs to be done asynchronously (in window.setTimeout) or else it doesn't work in all browsers. + // The second part of the code scrolls the content up if the caret is positioned off-screen. + // This is only necessary for WebKit browsers, but it doesn't hurt to use for all. + window.setTimeout(function() { + var marker = dom.get('_plain_text_marker'), + elm, vp, y, elmHeight; + + sel.select(marker, false); + d.execCommand("Delete", false, null); + marker = null; + + // Get element, position and height + elm = sel.getStart(); + vp = dom.getViewPort(w); + y = dom.getPos(elm).y; + elmHeight = elm.clientHeight; + + // Is element within viewport if not then scroll it into view + if ((y < vp.y) || (y + elmHeight > vp.y + vp.h)) { + d.body.scrollTop = y < vp.y ? y : y - vp.h + 25; + } + }, 0); + } + }, + + /** + * This method will open the old style paste dialogs. Some users might want the old behavior but still use the new cleanup engine. + */ + _legacySupport : function() { + var t = this, ed = t.editor; + + // Register command(s) for backwards compatibility + ed.addCommand("mcePasteWord", function() { + ed.windowManager.open({ + file: t.url + "/pasteword.htm", + width: parseInt(getParam(ed, "paste_dialog_width")), + height: parseInt(getParam(ed, "paste_dialog_height")), + inline: 1 + }); + }); + + if (getParam(ed, "paste_text_use_dialog")) { + ed.addCommand("mcePasteText", function() { + ed.windowManager.open({ + file : t.url + "/pastetext.htm", + width: parseInt(getParam(ed, "paste_dialog_width")), + height: parseInt(getParam(ed, "paste_dialog_height")), + inline : 1 + }); + }); + } + + // Register button for backwards compatibility + ed.addButton("pasteword", {title : "paste.paste_word_desc", cmd : "mcePasteWord"}); + } + }); + + // Register plugin + tinymce.PluginManager.add("paste", tinymce.plugins.PastePlugin); +})(); diff --git a/sn_computer/html/tiny_mce/plugins/paste/js/pastetext.js b/sn_computer/html/tiny_mce/plugins/paste/js/pastetext.js new file mode 100644 index 0000000..81b1d6a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/js/pastetext.js @@ -0,0 +1,36 @@ +tinyMCEPopup.requireLangPack(); + +var PasteTextDialog = { + init : function() { + this.resize(); + }, + + insert : function() { + var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines; + + // Convert linebreaks into paragraphs + if (document.getElementById('linebreaks').checked) { + lines = h.split(/\r?\n/); + if (lines.length > 1) { + h = ''; + tinymce.each(lines, function(row) { + h += '

    ' + row + '

    '; + }); + } + } + + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h}); + tinyMCEPopup.close(); + }, + + resize : function() { + var vp = tinyMCEPopup.dom.getViewPort(window), el; + + el = document.getElementById('content'); + + el.style.width = (vp.w - 20) + 'px'; + el.style.height = (vp.h - 90) + 'px'; + } +}; + +tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog); diff --git a/sn_computer/html/tiny_mce/plugins/paste/js/pasteword.js b/sn_computer/html/tiny_mce/plugins/paste/js/pasteword.js new file mode 100644 index 0000000..959bf39 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/js/pasteword.js @@ -0,0 +1,51 @@ +tinyMCEPopup.requireLangPack(); + +var PasteWordDialog = { + init : function() { + var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = ''; + + // Create iframe + el.innerHTML = ''; + ifr = document.getElementById('iframe'); + doc = ifr.contentWindow.document; + + // Force absolute CSS urls + css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")]; + css = css.concat(tinymce.explode(ed.settings.content_css) || []); + tinymce.each(css, function(u) { + cssHTML += ''; + }); + + // Write content into iframe + doc.open(); + doc.write('' + cssHTML + ''); + doc.close(); + + doc.designMode = 'on'; + this.resize(); + + window.setTimeout(function() { + ifr.contentWindow.focus(); + }, 10); + }, + + insert : function() { + var h = document.getElementById('iframe').contentWindow.document.body.innerHTML; + + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true}); + tinyMCEPopup.close(); + }, + + resize : function() { + var vp = tinyMCEPopup.dom.getViewPort(window), el; + + el = document.getElementById('iframe'); + + if (el) { + el.style.width = (vp.w - 20) + 'px'; + el.style.height = (vp.h - 90) + 'px'; + } + } +}; + +tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog); diff --git a/sn_computer/html/tiny_mce/plugins/paste/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/paste/langs/de_dlg.js new file mode 100644 index 0000000..ab0bd6b --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/langs/de_dlg.js @@ -0,0 +1,5 @@ +tinyMCE.addI18n('de.paste_dlg',{ +text_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen.", +text_linebreaks:"Zeilenumbr\u00FCche beibehalten", +word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen." +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/paste/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/paste/langs/en_dlg.js new file mode 100644 index 0000000..823eb16 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/langs/en_dlg.js @@ -0,0 +1,5 @@ +tinyMCE.addI18n('en.paste_dlg',{ +text_title:"Use CTRL+V on your keyboard to paste the text into the window.", +text_linebreaks:"Keep linebreaks", +word_title:"Use CTRL+V on your keyboard to paste the text into the window." +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/paste/pastetext.htm b/sn_computer/html/tiny_mce/plugins/paste/pastetext.htm new file mode 100644 index 0000000..8ccfbb9 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/pastetext.htm @@ -0,0 +1,27 @@ + + + {#paste.paste_text_desc} + + + + +
    +
    {#paste.paste_text_desc}
    + +
    + +
    + +
    + +
    {#paste_dlg.text_title}
    + + + +
    + + +
    +
    + + \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/paste/pasteword.htm b/sn_computer/html/tiny_mce/plugins/paste/pasteword.htm new file mode 100644 index 0000000..7731f39 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/paste/pasteword.htm @@ -0,0 +1,21 @@ + + + {#paste.paste_word_desc} + + + + +
    +
    {#paste.paste_word_desc}
    + +
    {#paste_dlg.word_title}
    + +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/preview/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/preview/editor_plugin.js new file mode 100644 index 0000000..507909c --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/preview/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Preview",{init:function(a,b){var d=this,c=tinymce.explode(a.settings.content_css);d.editor=a;tinymce.each(c,function(f,e){c[e]=a.documentBaseURI.toAbsolute(f)});a.addCommand("mcePreview",function(){a.windowManager.open({file:a.getParam("plugin_preview_pageurl",b+"/preview.html"),width:parseInt(a.getParam("plugin_preview_width","550")),height:parseInt(a.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:c?c.join(","):a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css"),inline:a.getParam("plugin_preview_inline",1)},{base:a.documentBaseURI.getURI()})});a.addButton("preview",{title:"preview.preview_desc",cmd:"mcePreview"})},getInfo:function(){return{longname:"Preview",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("preview",tinymce.plugins.Preview)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/preview/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/preview/editor_plugin_src.js new file mode 100644 index 0000000..80f00f0 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/preview/editor_plugin_src.js @@ -0,0 +1,53 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Preview', { + init : function(ed, url) { + var t = this, css = tinymce.explode(ed.settings.content_css); + + t.editor = ed; + + // Force absolute CSS urls + tinymce.each(css, function(u, k) { + css[k] = ed.documentBaseURI.toAbsolute(u); + }); + + ed.addCommand('mcePreview', function() { + ed.windowManager.open({ + file : ed.getParam("plugin_preview_pageurl", url + "/preview.html"), + width : parseInt(ed.getParam("plugin_preview_width", "550")), + height : parseInt(ed.getParam("plugin_preview_height", "600")), + resizable : "yes", + scrollbars : "yes", + popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"), + inline : ed.getParam("plugin_preview_inline", 1) + }, { + base : ed.documentBaseURI.getURI() + }); + }); + + ed.addButton('preview', {title : 'preview.preview_desc', cmd : 'mcePreview'}); + }, + + getInfo : function() { + return { + longname : 'Preview', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('preview', tinymce.plugins.Preview); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/preview/example.html b/sn_computer/html/tiny_mce/plugins/preview/example.html new file mode 100644 index 0000000..4820222 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/preview/example.html @@ -0,0 +1,28 @@ + + + + + +Example of a custom preview page + + + +Editor contents:
    +
    + +
    + + + diff --git a/sn_computer/html/tiny_mce/plugins/preview/jscripts/embed.js b/sn_computer/html/tiny_mce/plugins/preview/jscripts/embed.js new file mode 100644 index 0000000..6fe25de --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/preview/jscripts/embed.js @@ -0,0 +1,73 @@ +/** + * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. + */ + +function writeFlash(p) { + writeEmbed( + 'D27CDB6E-AE6D-11cf-96B8-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'application/x-shockwave-flash', + p + ); +} + +function writeShockWave(p) { + writeEmbed( + '166B1BCA-3F9C-11CF-8075-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0', + 'application/x-director', + p + ); +} + +function writeQuickTime(p) { + writeEmbed( + '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', + 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0', + 'video/quicktime', + p + ); +} + +function writeRealMedia(p) { + writeEmbed( + 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'audio/x-pn-realaudio-plugin', + p + ); +} + +function writeWindowsMedia(p) { + p.url = p.src; + writeEmbed( + '6BF52A52-394A-11D3-B153-00C04F79FAA6', + 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701', + 'application/x-mplayer2', + p + ); +} + +function writeEmbed(cls, cb, mt, p) { + var h = '', n; + + h += ''; + + h += ' + + + + + +{#preview.preview_desc} + + + + + diff --git a/sn_computer/html/tiny_mce/plugins/print/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/print/editor_plugin.js new file mode 100644 index 0000000..b5b3a55 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/print/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Print",{init:function(a,b){a.addCommand("mcePrint",function(){a.getWin().print()});a.addButton("print",{title:"print.print_desc",cmd:"mcePrint"})},getInfo:function(){return{longname:"Print",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("print",tinymce.plugins.Print)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/print/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/print/editor_plugin_src.js new file mode 100644 index 0000000..47e666a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/print/editor_plugin_src.js @@ -0,0 +1,34 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Print', { + init : function(ed, url) { + ed.addCommand('mcePrint', function() { + ed.getWin().print(); + }); + + ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'}); + }, + + getInfo : function() { + return { + longname : 'Print', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('print', tinymce.plugins.Print); +})(); diff --git a/sn_computer/html/tiny_mce/plugins/save/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/save/editor_plugin.js new file mode 100644 index 0000000..8e93996 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/save/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Save",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceSave",c._save,c);a.addCommand("mceCancel",c._cancel,c);a.addButton("save",{title:"save.save_desc",cmd:"mceSave"});a.addButton("cancel",{title:"save.cancel_desc",cmd:"mceCancel"});a.onNodeChange.add(c._nodeChange,c);a.addShortcut("ctrl+s",a.getLang("save.save_desc"),"mceSave")},getInfo:function(){return{longname:"Save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,c){var b=this.editor;if(b.getParam("save_enablewhendirty")){a.setDisabled("save",!b.isDirty());a.setDisabled("cancel",!b.isDirty())}},_save:function(){var c=this.editor,a,e,d,b;a=tinymce.DOM.get(c.id).form||tinymce.DOM.getParent(c.id,"form");if(c.getParam("save_enablewhendirty")&&!c.isDirty()){return}tinyMCE.triggerSave();if(e=c.getParam("save_onsavecallback")){if(c.execCallback("save_onsavecallback",c)){c.startContent=tinymce.trim(c.getContent({format:"raw"}));c.nodeChanged()}return}if(a){c.isNotDirty=true;if(a.onsubmit==null||a.onsubmit()!=false){a.submit()}c.nodeChanged()}else{c.windowManager.alert("Error: No form element found.")}},_cancel:function(){var a=this.editor,c,b=tinymce.trim(a.startContent);if(c=a.getParam("save_oncancelcallback")){a.execCallback("save_oncancelcallback",a);return}a.setContent(b);a.undoManager.clear();a.nodeChanged()}});tinymce.PluginManager.add("save",tinymce.plugins.Save)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/save/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/save/editor_plugin_src.js new file mode 100644 index 0000000..5ab6491 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/save/editor_plugin_src.js @@ -0,0 +1,101 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Save', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceSave', t._save, t); + ed.addCommand('mceCancel', t._cancel, t); + + // Register buttons + ed.addButton('save', {title : 'save.save_desc', cmd : 'mceSave'}); + ed.addButton('cancel', {title : 'save.cancel_desc', cmd : 'mceCancel'}); + + ed.onNodeChange.add(t._nodeChange, t); + ed.addShortcut('ctrl+s', ed.getLang('save.save_desc'), 'mceSave'); + }, + + getInfo : function() { + return { + longname : 'Save', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var ed = this.editor; + + if (ed.getParam('save_enablewhendirty')) { + cm.setDisabled('save', !ed.isDirty()); + cm.setDisabled('cancel', !ed.isDirty()); + } + }, + + // Private methods + + _save : function() { + var ed = this.editor, formObj, os, i, elementId; + + formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form'); + + if (ed.getParam("save_enablewhendirty") && !ed.isDirty()) + return; + + tinyMCE.triggerSave(); + + // Use callback instead + if (os = ed.getParam("save_onsavecallback")) { + if (ed.execCallback('save_onsavecallback', ed)) { + ed.startContent = tinymce.trim(ed.getContent({format : 'raw'})); + ed.nodeChanged(); + } + + return; + } + + if (formObj) { + ed.isNotDirty = true; + + if (formObj.onsubmit == null || formObj.onsubmit() != false) + formObj.submit(); + + ed.nodeChanged(); + } else + ed.windowManager.alert("Error: No form element found."); + }, + + _cancel : function() { + var ed = this.editor, os, h = tinymce.trim(ed.startContent); + + // Use callback instead + if (os = ed.getParam("save_oncancelcallback")) { + ed.execCallback('save_oncancelcallback', ed); + return; + } + + ed.setContent(h); + ed.undoManager.clear(); + ed.nodeChanged(); + } + }); + + // Register plugin + tinymce.PluginManager.add('save', tinymce.plugins.Save); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/css/searchreplace.css b/sn_computer/html/tiny_mce/plugins/searchreplace/css/searchreplace.css new file mode 100644 index 0000000..3e2eaf3 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/css/searchreplace.css @@ -0,0 +1,6 @@ +.panel_wrapper {height:85px;} +.panel_wrapper div.current {height:85px;} + +/* IE */ +* html .panel_wrapper {height:100px;} +* html .panel_wrapper div.current {height:100px;} diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/searchreplace/editor_plugin.js new file mode 100644 index 0000000..cd9c985 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:170+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/searchreplace/editor_plugin_src.js new file mode 100644 index 0000000..e9b3ee8 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/editor_plugin_src.js @@ -0,0 +1,57 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.SearchReplacePlugin', { + init : function(ed, url) { + function open(m) { + ed.windowManager.open({ + file : url + '/searchreplace.htm', + width : 420 + parseInt(ed.getLang('searchreplace.delta_width', 0)), + height : 170 + parseInt(ed.getLang('searchreplace.delta_height', 0)), + inline : 1, + auto_focus : 0 + }, { + mode : m, + search_string : ed.selection.getContent({format : 'text'}), + plugin_url : url + }); + }; + + // Register commands + ed.addCommand('mceSearch', function() { + open('search'); + }); + + ed.addCommand('mceReplace', function() { + open('replace'); + }); + + // Register buttons + ed.addButton('search', {title : 'searchreplace.search_desc', cmd : 'mceSearch'}); + ed.addButton('replace', {title : 'searchreplace.replace_desc', cmd : 'mceReplace'}); + + ed.addShortcut('ctrl+f', 'searchreplace.search_desc', 'mceSearch'); + }, + + getInfo : function() { + return { + longname : 'Search/Replace', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('searchreplace', tinymce.plugins.SearchReplacePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/js/searchreplace.js b/sn_computer/html/tiny_mce/plugins/searchreplace/js/searchreplace.js new file mode 100644 index 0000000..4cc0f40 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/js/searchreplace.js @@ -0,0 +1,130 @@ +tinyMCEPopup.requireLangPack(); + +var SearchReplaceDialog = { + init : function(ed) { + var f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode"); + + this.switchMode(m); + + f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string"); + + // Focus input field + f[m + '_panel_searchstring'].focus(); + }, + + switchMode : function(m) { + var f, lm = this.lastMode; + + if (lm != m) { + f = document.forms[0]; + + if (lm) { + f[m + '_panel_searchstring'].value = f[lm + '_panel_searchstring'].value; + f[m + '_panel_backwardsu'].checked = f[lm + '_panel_backwardsu'].checked; + f[m + '_panel_backwardsd'].checked = f[lm + '_panel_backwardsd'].checked; + f[m + '_panel_casesensitivebox'].checked = f[lm + '_panel_casesensitivebox'].checked; + } + + mcTabs.displayTab(m + '_tab', m + '_panel'); + document.getElementById("replaceBtn").style.display = (m == "replace") ? "inline" : "none"; + document.getElementById("replaceAllBtn").style.display = (m == "replace") ? "inline" : "none"; + this.lastMode = m; + } + }, + + searchNext : function(a) { + var ed = tinyMCEPopup.editor, se = ed.selection, r = se.getRng(), f, m = this.lastMode, s, b, fl = 0, w = ed.getWin(), wm = ed.windowManager, fo = 0; + + // Get input + f = document.forms[0]; + s = f[m + '_panel_searchstring'].value; + b = f[m + '_panel_backwardsu'].checked; + ca = f[m + '_panel_casesensitivebox'].checked; + rs = f['replace_panel_replacestring'].value; + + if (s == '') + return; + + function fix() { + // Correct Firefox graphics glitches + r = se.getRng().cloneRange(); + ed.getDoc().execCommand('SelectAll', false, null); + se.setRng(r); + }; + + function replace() { + if (tinymce.isIE) + ed.selection.getRng().duplicate().pasteHTML(rs); // Needs to be duplicated due to selection bug in IE + else + ed.getDoc().execCommand('InsertHTML', false, rs); + }; + + // IE flags + if (ca) + fl = fl | 4; + + switch (a) { + case 'all': + // Move caret to beginning of text + ed.execCommand('SelectAll'); + ed.selection.collapse(true); + + if (tinymce.isIE) { + while (r.findText(s, b ? -1 : 1, fl)) { + r.scrollIntoView(); + r.select(); + replace(); + fo = 1; + + if (b) { + r.moveEnd("character", -(rs.length)); // Otherwise will loop forever + } + } + + tinyMCEPopup.storeSelection(); + } else { + while (w.find(s, ca, b, false, false, false, false)) { + replace(); + fo = 1; + } + } + + if (fo) + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.allreplaced')); + else + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + + return; + + case 'current': + if (!ed.selection.isCollapsed()) + replace(); + + break; + } + + se.collapse(b); + r = se.getRng(); + + // Whats the point + if (!s) + return; + + if (tinymce.isIE) { + if (r.findText(s, b ? -1 : 1, fl)) { + r.scrollIntoView(); + r.select(); + } else + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + + tinyMCEPopup.storeSelection(); + } else { + if (!w.find(s, ca, b, false, false, false, false)) + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + else + fix(); + } + } +}; + +tinyMCEPopup.onInit.add(SearchReplaceDialog.init, SearchReplaceDialog); diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/searchreplace/langs/de_dlg.js new file mode 100644 index 0000000..6bb60d6 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/langs/de_dlg.js @@ -0,0 +1,16 @@ +tinyMCE.addI18n('de.searchreplace_dlg',{ +searchnext_desc:"Weitersuchen", +notfound:"Die Suche ist am Ende angelangt. Die Zeichenkette konnte nicht gefunden werden.", +search_title:"Suchen", +replace_title:"Suchen/Ersetzen", +allreplaced:"Alle Vorkommen der Zeichenkette wurden ersetzt.", +findwhat:"Zu suchender Text", +replacewith:"Ersetzen durch", +direction:"Suchrichtung", +up:"Aufw\u00E4rts", +down:"Abw\u00E4rts", +mcase:"Gro\u00DF-/Kleinschreibung beachten", +findnext:"Weitersuchen", +replace:"Ersetzen", +replaceall:"Alle ersetzen" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/searchreplace/langs/en_dlg.js new file mode 100644 index 0000000..3dd3453 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/langs/en_dlg.js @@ -0,0 +1,16 @@ +tinyMCE.addI18n('en.searchreplace_dlg',{ +searchnext_desc:"Find again", +notfound:"The search has been completed. The search string could not be found.", +search_title:"Find", +replace_title:"Find/Replace", +allreplaced:"All occurrences of the search string were replaced.", +findwhat:"Find what", +replacewith:"Replace with", +direction:"Direction", +up:"Up", +down:"Down", +mcase:"Match case", +findnext:"Find next", +replace:"Replace", +replaceall:"Replace all" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/searchreplace/searchreplace.htm b/sn_computer/html/tiny_mce/plugins/searchreplace/searchreplace.htm new file mode 100644 index 0000000..243a4bc --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/searchreplace/searchreplace.htm @@ -0,0 +1,99 @@ + + + + {#searchreplace_dlg.replace_title} + + + + + + + +
    + + +
    +
    + + + + + + + + + + + +
    + + + + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + + + + + + + + + + + + + + + +
    + + + + + + + + +
    +
    + + + + + +
    +
    +
    + +
    + +
    + + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/spellchecker/css/content.css b/sn_computer/html/tiny_mce/plugins/spellchecker/css/content.css new file mode 100644 index 0000000..656ce1e --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/spellchecker/css/content.css @@ -0,0 +1 @@ +.mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;} diff --git a/sn_computer/html/tiny_mce/plugins/spellchecker/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/spellchecker/editor_plugin.js new file mode 100644 index 0000000..a4d2925 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/spellchecker/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam("spellchecker_rpc_url","{backend}");if(g.rpcUrl=="{backend}"){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand("mceSpellCheck",function(){if(g.rpcUrl=="{backend}"){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam("spellchecker_report_no_misspellings",true)){e.windowManager.alert("spellchecker.no_mpell")}}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+"/css/content.css")}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){if(f.rpcUrl=="{backend}"){if(f.hasSupport){g=d.createButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f})}return g}g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c');for(d=0;d$1$2');q=q.replace(g,'$1$2');j.replace(j.create("span",{"class":"mceItemHidden"},q),r)}}});l.moveToBookmark(m)},_showMenu:function(g,i){var h=this,g=h.editor,d=h._menu,k,j=g.dom,f=j.getViewPort(g.getWin());if(!d){k=b.getPos(g.getContentAreaContainer());d=g.controlManager.createDropMenu("spellcheckermenu",{offset_x:k.x,offset_y:k.y,"class":"mceNoIcons"});h._menu=d}if(j.hasClass(i.target,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);h._sendRPC("getSuggestions",[h.selectedLang,j.decode(i.target.innerHTML)],function(l){var e;d.removeAll();if(l.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(l,function(m){d.add({title:m,onclick:function(){j.replace(g.getDoc().createTextNode(m),i.target);h._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}e=h.editor.getParam("spellchecker_enable_ignore_rpc","");d.add({title:"spellchecker.ignore_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});d.add({title:"spellchecker.ignore_words",onclick:function(){var m=i.target.innerHTML;h._removeWords(j.decode(m));h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWords",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});if(h.editor.getParam("spellchecker_enable_learn_rpc")){d.add({title:"spellchecker.learn_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();g.setProgressState(1);h._sendRPC("learnWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}})}d.update()});g.selection.select(i.target);k=j.getPos(i.target);d.showMenu(k.x,k.y+i.target.offsetHeight-f.y);return tinymce.dom.Event.cancel(i)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||("Error response: "+h.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/spellchecker/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/spellchecker/editor_plugin_src.js new file mode 100644 index 0000000..8fb7431 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/spellchecker/editor_plugin_src.js @@ -0,0 +1,415 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var JSONRequest = tinymce.util.JSONRequest, each = tinymce.each, DOM = tinymce.DOM; + + tinymce.create('tinymce.plugins.SpellcheckerPlugin', { + getInfo : function() { + return { + longname : 'Spellchecker', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + init : function(ed, url) { + var t = this, cm; + + t.url = url; + t.editor = ed; + t.rpcUrl = ed.getParam("spellchecker_rpc_url", "{backend}"); + + if (t.rpcUrl == '{backend}') { + // Sniff if the browser supports native spellchecking (Don't know of a better way) + if (tinymce.isIE) + return; + + t.hasSupport = true; + + // Disable the context menu when spellchecking is active + ed.onContextMenu.addToTop(function(ed, e) { + if (t.active) + return false; + }); + } + + // Register commands + ed.addCommand('mceSpellCheck', function() { + if (t.rpcUrl == '{backend}') { + // Enable/disable native spellchecker + t.editor.getBody().spellcheck = t.active = !t.active; + return; + } + + if (!t.active) { + ed.setProgressState(1); + t._sendRPC('checkWords', [t.selectedLang, t._getWords()], function(r) { + if (r.length > 0) { + t.active = 1; + t._markWords(r); + ed.setProgressState(0); + ed.nodeChanged(); + } else { + ed.setProgressState(0); + + if (ed.getParam('spellchecker_report_no_misspellings', true)) + ed.windowManager.alert('spellchecker.no_mpell'); + } + }); + } else + t._done(); + }); + + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + '/css/content.css'); + }); + + ed.onClick.add(t._showMenu, t); + ed.onContextMenu.add(t._showMenu, t); + ed.onBeforeGetContent.add(function() { + if (t.active) + t._removeWords(); + }); + + ed.onNodeChange.add(function(ed, cm) { + cm.setActive('spellchecker', t.active); + }); + + ed.onSetContent.add(function() { + t._done(); + }); + + ed.onBeforeGetContent.add(function() { + t._done(); + }); + + ed.onBeforeExecCommand.add(function(ed, cmd) { + if (cmd == 'mceFullScreen') + t._done(); + }); + + // Find selected language + t.languages = {}; + each(ed.getParam('spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', 'hash'), function(v, k) { + if (k.indexOf('+') === 0) { + k = k.substring(1); + t.selectedLang = v; + } + + t.languages[k] = v; + }); + }, + + createControl : function(n, cm) { + var t = this, c, ed = t.editor; + + if (n == 'spellchecker') { + // Use basic button if we use the native spellchecker + if (t.rpcUrl == '{backend}') { + // Create simple toggle button if we have native support + if (t.hasSupport) + c = cm.createButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t}); + + return c; + } + + c = cm.createSplitButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t}); + + c.onRenderMenu.add(function(c, m) { + m.add({title : 'spellchecker.langs', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + each(t.languages, function(v, k) { + var o = {icon : 1}, mi; + + o.onclick = function() { + mi.setSelected(1); + t.selectedItem.setSelected(0); + t.selectedItem = mi; + t.selectedLang = v; + }; + + o.title = k; + mi = m.add(o); + mi.setSelected(v == t.selectedLang); + + if (v == t.selectedLang) + t.selectedItem = mi; + }) + }); + + return c; + } + }, + + // Internal functions + + _walk : function(n, f) { + var d = this.editor.getDoc(), w; + + if (d.createTreeWalker) { + w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false); + + while ((n = w.nextNode()) != null) + f.call(this, n); + } else + tinymce.walk(n, f, 'childNodes'); + }, + + _getSeparators : function() { + var re = '', i, str = this.editor.getParam('spellchecker_word_separator_chars', '\\s!"#$%&()*+,-./:;<=>?@[\]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c'); + + // Build word separator regexp + for (i=0; i$1$2'); + v = v.replace(r3, '$1$2'); + + dom.replace(dom.create('span', {'class' : 'mceItemHidden'}, v), n); + } + } + }); + + se.moveToBookmark(b); + }, + + _showMenu : function(ed, e) { + var t = this, ed = t.editor, m = t._menu, p1, dom = ed.dom, vp = dom.getViewPort(ed.getWin()); + + if (!m) { + p1 = DOM.getPos(ed.getContentAreaContainer()); + //p2 = DOM.getPos(ed.getContainer()); + + m = ed.controlManager.createDropMenu('spellcheckermenu', { + offset_x : p1.x, + offset_y : p1.y, + 'class' : 'mceNoIcons' + }); + + t._menu = m; + } + + if (dom.hasClass(e.target, 'mceItemHiddenSpellWord')) { + m.removeAll(); + m.add({title : 'spellchecker.wait', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + t._sendRPC('getSuggestions', [t.selectedLang, dom.decode(e.target.innerHTML)], function(r) { + var ignoreRpc; + + m.removeAll(); + + if (r.length > 0) { + m.add({title : 'spellchecker.sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + each(r, function(v) { + m.add({title : v, onclick : function() { + dom.replace(ed.getDoc().createTextNode(v), e.target); + t._checkDone(); + }}); + }); + + m.addSeparator(); + } else + m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + ignoreRpc = t.editor.getParam("spellchecker_enable_ignore_rpc", ''); + m.add({ + title : 'spellchecker.ignore_word', + onclick : function() { + var word = e.target.innerHTML; + + dom.remove(e.target, 1); + t._checkDone(); + + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + } + }); + + m.add({ + title : 'spellchecker.ignore_words', + onclick : function() { + var word = e.target.innerHTML; + + t._removeWords(dom.decode(word)); + t._checkDone(); + + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + } + }); + + + if (t.editor.getParam("spellchecker_enable_learn_rpc")) { + m.add({ + title : 'spellchecker.learn_word', + onclick : function() { + var word = e.target.innerHTML; + + dom.remove(e.target, 1); + t._checkDone(); + + ed.setProgressState(1); + t._sendRPC('learnWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + }); + } + + m.update(); + }); + + ed.selection.select(e.target); + p1 = dom.getPos(e.target); + m.showMenu(p1.x, p1.y + e.target.offsetHeight - vp.y); + + return tinymce.dom.Event.cancel(e); + } else + m.hideMenu(); + }, + + _checkDone : function() { + var t = this, ed = t.editor, dom = ed.dom, o; + + each(dom.select('span'), function(n) { + if (n && dom.hasClass(n, 'mceItemHiddenSpellWord')) { + o = true; + return false; + } + }); + + if (!o) + t._done(); + }, + + _done : function() { + var t = this, la = t.active; + + if (t.active) { + t.active = 0; + t._removeWords(); + + if (t._menu) + t._menu.hideMenu(); + + if (la) + t.editor.nodeChanged(); + } + }, + + _sendRPC : function(m, p, cb) { + var t = this; + + JSONRequest.sendRPC({ + url : t.rpcUrl, + method : m, + params : p, + success : cb, + error : function(e, x) { + t.editor.setProgressState(0); + t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText)); + } + }); + } + }); + + // Register plugin + tinymce.PluginManager.add('spellchecker', tinymce.plugins.SpellcheckerPlugin); +})(); diff --git a/sn_computer/html/tiny_mce/plugins/spellchecker/img/wline.gif b/sn_computer/html/tiny_mce/plugins/spellchecker/img/wline.gif new file mode 100644 index 0000000..7d0a4db Binary files /dev/null and b/sn_computer/html/tiny_mce/plugins/spellchecker/img/wline.gif differ diff --git a/sn_computer/html/tiny_mce/plugins/style/css/props.css b/sn_computer/html/tiny_mce/plugins/style/css/props.css new file mode 100644 index 0000000..5550b09 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/css/props.css @@ -0,0 +1,13 @@ +#text_font {width:250px;} +#text_size {width:70px;} +.mceAddSelectValue {background:#DDD;} +select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left {width:70px;} +#box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex {width:70px;} +#positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left {width:70px;} +#positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left {width:70px;} +.panel_wrapper div.current {padding-top:10px;height:230px;} +.delim {border-left:1px solid gray;} +.tdelim {border-bottom:1px solid gray;} +#block_display {width:145px;} +#list_type {width:115px;} +.disabled {background:#EEE;} diff --git a/sn_computer/html/tiny_mce/plugins/style/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/style/editor_plugin.js new file mode 100644 index 0000000..cab2153 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.StylePlugin",{init:function(a,b){a.addCommand("mceStyleProps",function(){a.windowManager.open({file:b+"/props.htm",width:480+parseInt(a.getLang("style.delta_width",0)),height:320+parseInt(a.getLang("style.delta_height",0)),inline:1},{plugin_url:b,style_text:a.selection.getNode().style.cssText})});a.addCommand("mceSetElementStyle",function(d,c){if(e=a.selection.getNode()){a.dom.setAttrib(e,"style",c);a.execCommand("mceRepaint")}});a.onNodeChange.add(function(d,c,f){c.setDisabled("styleprops",f.nodeName==="BODY")});a.addButton("styleprops",{title:"style.desc",cmd:"mceStyleProps"})},getInfo:function(){return{longname:"Style",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("style",tinymce.plugins.StylePlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/style/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/style/editor_plugin_src.js new file mode 100644 index 0000000..c09d5e8 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/editor_plugin_src.js @@ -0,0 +1,55 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.StylePlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceStyleProps', function() { + ed.windowManager.open({ + file : url + '/props.htm', + width : 480 + parseInt(ed.getLang('style.delta_width', 0)), + height : 320 + parseInt(ed.getLang('style.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + style_text : ed.selection.getNode().style.cssText + }); + }); + + ed.addCommand('mceSetElementStyle', function(ui, v) { + if (e = ed.selection.getNode()) { + ed.dom.setAttrib(e, 'style', v); + ed.execCommand('mceRepaint'); + } + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setDisabled('styleprops', n.nodeName === 'BODY'); + }); + + // Register buttons + ed.addButton('styleprops', {title : 'style.desc', cmd : 'mceStyleProps'}); + }, + + getInfo : function() { + return { + longname : 'Style', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('style', tinymce.plugins.StylePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/style/js/props.js b/sn_computer/html/tiny_mce/plugins/style/js/props.js new file mode 100644 index 0000000..1e73806 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/js/props.js @@ -0,0 +1,641 @@ +tinyMCEPopup.requireLangPack(); + +var defaultFonts = "" + + "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" + + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + + "Courier New, Courier, mono=Courier New, Courier, mono;" + + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + + "Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" + + "Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" + + "Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif"; + +var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger"; +var defaultMeasurement = "+pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%"; +var defaultSpacingMeasurement = "pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;+ems=em;exs=ex;%"; +var defaultIndentMeasurement = "pixels=px;+points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%"; +var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900"; +var defaultTextStyle = "normal;italic;oblique"; +var defaultVariant = "normal;small-caps"; +var defaultLineHeight = "normal"; +var defaultAttachment = "fixed;scroll"; +var defaultRepeat = "no-repeat;repeat;repeat-x;repeat-y"; +var defaultPosH = "left;center;right"; +var defaultPosV = "top;center;bottom"; +var defaultVAlign = "baseline;sub;super;top;text-top;middle;bottom;text-bottom"; +var defaultDisplay = "inline;block;list-item;run-in;compact;marker;table;inline-table;table-row-group;table-header-group;table-footer-group;table-row;table-column-group;table-column;table-cell;table-caption;none"; +var defaultBorderStyle = "none;solid;dashed;dotted;double;groove;ridge;inset;outset"; +var defaultBorderWidth = "thin;medium;thick"; +var defaultListType = "disc;circle;square;decimal;lower-roman;upper-roman;lower-alpha;upper-alpha;none"; + +function init() { + var ce = document.getElementById('container'), h; + + ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); + + h = getBrowserHTML('background_image_browser','background_image','image','advimage'); + document.getElementById("background_image_browser").innerHTML = h; + + document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); + document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color'); + document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top'); + document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right'); + document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom'); + document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left'); + + fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true); + fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true); + fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true); + fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true); + fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true); + fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true); + fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true); + fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true); + fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true); + + fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true); + fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true); + + fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true); + fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true); + fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true); + fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true); + fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true); + fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true); + fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true); + fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true); + fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true); + + fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true); + fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true); + fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true); + + fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true); + + fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true); + fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true); + + fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true); + fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true); + + fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true); + + fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true); + + TinyMCE_EditableSelects.init(); + setupFormData(); + showDisabledControls(); +} + +function setupFormData() { + var ce = document.getElementById('container'), f = document.forms[0], s, b, i; + + // Setup text fields + + selectByValue(f, 'text_font', ce.style.fontFamily, true, true); + selectByValue(f, 'text_size', getNum(ce.style.fontSize), true, true); + selectByValue(f, 'text_size_measurement', getMeasurement(ce.style.fontSize)); + selectByValue(f, 'text_weight', ce.style.fontWeight, true, true); + selectByValue(f, 'text_style', ce.style.fontStyle, true, true); + selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true); + selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight)); + selectByValue(f, 'text_case', ce.style.textTransform, true, true); + selectByValue(f, 'text_variant', ce.style.fontVariant, true, true); + f.text_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.color); + updateColor('text_color_pick', 'text_color'); + f.text_underline.checked = inStr(ce.style.textDecoration, 'underline'); + f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); + f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); + f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); + + // Setup background fields + + f.background_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.backgroundColor); + updateColor('background_color_pick', 'background_color'); + f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true); + selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true); + selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true); + selectByValue(f, 'background_hpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 0))); + selectByValue(f, 'background_vpos', getNum(getVal(ce.style.backgroundPosition, 1)), true, true); + selectByValue(f, 'background_vpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 1))); + + // Setup block fields + + selectByValue(f, 'block_wordspacing', getNum(ce.style.wordSpacing), true, true); + selectByValue(f, 'block_wordspacing_measurement', getMeasurement(ce.style.wordSpacing)); + selectByValue(f, 'block_letterspacing', getNum(ce.style.letterSpacing), true, true); + selectByValue(f, 'block_letterspacing_measurement', getMeasurement(ce.style.letterSpacing)); + selectByValue(f, 'block_vertical_alignment', ce.style.verticalAlign, true, true); + selectByValue(f, 'block_text_align', ce.style.textAlign, true, true); + f.block_text_indent.value = getNum(ce.style.textIndent); + selectByValue(f, 'block_text_indent_measurement', getMeasurement(ce.style.textIndent)); + selectByValue(f, 'block_whitespace', ce.style.whiteSpace, true, true); + selectByValue(f, 'block_display', ce.style.display, true, true); + + // Setup box fields + + f.box_width.value = getNum(ce.style.width); + selectByValue(f, 'box_width_measurement', getMeasurement(ce.style.width)); + + f.box_height.value = getNum(ce.style.height); + selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height)); + + if (tinymce.isGecko) + selectByValue(f, 'box_float', ce.style.cssFloat, true, true); + else + selectByValue(f, 'box_float', ce.style.styleFloat, true, true); + + selectByValue(f, 'box_clear', ce.style.clear, true, true); + + setupBox(f, ce, 'box_padding', 'padding', ''); + setupBox(f, ce, 'box_margin', 'margin', ''); + + // Setup border fields + + setupBox(f, ce, 'border_style', 'border', 'Style'); + setupBox(f, ce, 'border_width', 'border', 'Width'); + setupBox(f, ce, 'border_color', 'border', 'Color'); + + updateColor('border_color_top_pick', 'border_color_top'); + updateColor('border_color_right_pick', 'border_color_right'); + updateColor('border_color_bottom_pick', 'border_color_bottom'); + updateColor('border_color_left_pick', 'border_color_left'); + + f.elements.border_color_top.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_top.value); + f.elements.border_color_right.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_right.value); + f.elements.border_color_bottom.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_bottom.value); + f.elements.border_color_left.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_left.value); + + // Setup list fields + + selectByValue(f, 'list_type', ce.style.listStyleType, true, true); + selectByValue(f, 'list_position', ce.style.listStylePosition, true, true); + f.list_bullet_image.value = ce.style.listStyleImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + + // Setup box fields + + selectByValue(f, 'positioning_type', ce.style.position, true, true); + selectByValue(f, 'positioning_visibility', ce.style.visibility, true, true); + selectByValue(f, 'positioning_overflow', ce.style.overflow, true, true); + f.positioning_zindex.value = ce.style.zIndex ? ce.style.zIndex : ""; + + f.positioning_width.value = getNum(ce.style.width); + selectByValue(f, 'positioning_width_measurement', getMeasurement(ce.style.width)); + + f.positioning_height.value = getNum(ce.style.height); + selectByValue(f, 'positioning_height_measurement', getMeasurement(ce.style.height)); + + setupBox(f, ce, 'positioning_placement', '', '', ['top', 'right', 'bottom', 'left']); + + s = ce.style.clip.replace(new RegExp("rect\\('?([^']*)'?\\)", 'gi'), "$1"); + s = s.replace(/,/g, ' '); + + if (!hasEqualValues([getVal(s, 0), getVal(s, 1), getVal(s, 2), getVal(s, 3)])) { + f.positioning_clip_top.value = getNum(getVal(s, 0)); + selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); + f.positioning_clip_right.value = getNum(getVal(s, 1)); + selectByValue(f, 'positioning_clip_right_measurement', getMeasurement(getVal(s, 1))); + f.positioning_clip_bottom.value = getNum(getVal(s, 2)); + selectByValue(f, 'positioning_clip_bottom_measurement', getMeasurement(getVal(s, 2))); + f.positioning_clip_left.value = getNum(getVal(s, 3)); + selectByValue(f, 'positioning_clip_left_measurement', getMeasurement(getVal(s, 3))); + } else { + f.positioning_clip_top.value = getNum(getVal(s, 0)); + selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); + f.positioning_clip_right.value = f.positioning_clip_bottom.value = f.positioning_clip_left.value; + } + +// setupBox(f, ce, '', 'border', 'Color'); +} + +function getMeasurement(s) { + return s.replace(/^([0-9.]+)(.*)$/, "$2"); +} + +function getNum(s) { + if (new RegExp('^(?:[0-9.]+)(?:[a-z%]+)$', 'gi').test(s)) + return s.replace(/[^0-9.]/g, ''); + + return s; +} + +function inStr(s, n) { + return new RegExp(n, 'gi').test(s); +} + +function getVal(s, i) { + var a = s.split(' '); + + if (a.length > 1) + return a[i]; + + return ""; +} + +function setValue(f, n, v) { + if (f.elements[n].type == "text") + f.elements[n].value = v; + else + selectByValue(f, n, v, true, true); +} + +function setupBox(f, ce, fp, pr, sf, b) { + if (typeof(b) == "undefined") + b = ['Top', 'Right', 'Bottom', 'Left']; + + if (isSame(ce, pr, sf, b)) { + f.elements[fp + "_same"].checked = true; + + setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); + f.elements[fp + "_top"].disabled = false; + + f.elements[fp + "_right"].value = ""; + f.elements[fp + "_right"].disabled = true; + f.elements[fp + "_bottom"].value = ""; + f.elements[fp + "_bottom"].disabled = true; + f.elements[fp + "_left"].value = ""; + f.elements[fp + "_left"].disabled = true; + + if (f.elements[fp + "_top_measurement"]) { + selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); + f.elements[fp + "_left_measurement"].disabled = true; + f.elements[fp + "_bottom_measurement"].disabled = true; + f.elements[fp + "_right_measurement"].disabled = true; + } + } else { + f.elements[fp + "_same"].checked = false; + + setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); + f.elements[fp + "_top"].disabled = false; + + setValue(f, fp + "_right", getNum(ce.style[pr + b[1] + sf])); + f.elements[fp + "_right"].disabled = false; + + setValue(f, fp + "_bottom", getNum(ce.style[pr + b[2] + sf])); + f.elements[fp + "_bottom"].disabled = false; + + setValue(f, fp + "_left", getNum(ce.style[pr + b[3] + sf])); + f.elements[fp + "_left"].disabled = false; + + if (f.elements[fp + "_top_measurement"]) { + selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); + selectByValue(f, fp + '_right_measurement', getMeasurement(ce.style[pr + b[1] + sf])); + selectByValue(f, fp + '_bottom_measurement', getMeasurement(ce.style[pr + b[2] + sf])); + selectByValue(f, fp + '_left_measurement', getMeasurement(ce.style[pr + b[3] + sf])); + f.elements[fp + "_left_measurement"].disabled = false; + f.elements[fp + "_bottom_measurement"].disabled = false; + f.elements[fp + "_right_measurement"].disabled = false; + } + } +} + +function isSame(e, pr, sf, b) { + var a = [], i, x; + + if (typeof(b) == "undefined") + b = ['Top', 'Right', 'Bottom', 'Left']; + + if (typeof(sf) == "undefined" || sf == null) + sf = ""; + + a[0] = e.style[pr + b[0] + sf]; + a[1] = e.style[pr + b[1] + sf]; + a[2] = e.style[pr + b[2] + sf]; + a[3] = e.style[pr + b[3] + sf]; + + for (i=0; i 0 ? s.substring(1) : s; + + if (f.text_none.checked) + s = "none"; + + ce.style.textDecoration = s; + + // Build background styles + + ce.style.backgroundColor = f.background_color.value; + ce.style.backgroundImage = f.background_image.value != "" ? "url(" + f.background_image.value + ")" : ""; + ce.style.backgroundRepeat = f.background_repeat.value; + ce.style.backgroundAttachment = f.background_attachment.value; + + if (f.background_hpos.value != "") { + s = ""; + s += f.background_hpos.value + (isNum(f.background_hpos.value) ? f.background_hpos_measurement.value : "") + " "; + s += f.background_vpos.value + (isNum(f.background_vpos.value) ? f.background_vpos_measurement.value : ""); + ce.style.backgroundPosition = s; + } + + // Build block styles + + ce.style.wordSpacing = f.block_wordspacing.value + (isNum(f.block_wordspacing.value) ? f.block_wordspacing_measurement.value : ""); + ce.style.letterSpacing = f.block_letterspacing.value + (isNum(f.block_letterspacing.value) ? f.block_letterspacing_measurement.value : ""); + ce.style.verticalAlign = f.block_vertical_alignment.value; + ce.style.textAlign = f.block_text_align.value; + ce.style.textIndent = f.block_text_indent.value + (isNum(f.block_text_indent.value) ? f.block_text_indent_measurement.value : ""); + ce.style.whiteSpace = f.block_whitespace.value; + ce.style.display = f.block_display.value; + + // Build box styles + + ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : ""); + ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : ""); + ce.style.styleFloat = f.box_float.value; + + if (tinymce.isGecko) + ce.style.cssFloat = f.box_float.value; + + ce.style.clear = f.box_clear.value; + + if (!f.box_padding_same.checked) { + ce.style.paddingTop = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); + ce.style.paddingRight = f.box_padding_right.value + (isNum(f.box_padding_right.value) ? f.box_padding_right_measurement.value : ""); + ce.style.paddingBottom = f.box_padding_bottom.value + (isNum(f.box_padding_bottom.value) ? f.box_padding_bottom_measurement.value : ""); + ce.style.paddingLeft = f.box_padding_left.value + (isNum(f.box_padding_left.value) ? f.box_padding_left_measurement.value : ""); + } else + ce.style.padding = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); + + if (!f.box_margin_same.checked) { + ce.style.marginTop = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); + ce.style.marginRight = f.box_margin_right.value + (isNum(f.box_margin_right.value) ? f.box_margin_right_measurement.value : ""); + ce.style.marginBottom = f.box_margin_bottom.value + (isNum(f.box_margin_bottom.value) ? f.box_margin_bottom_measurement.value : ""); + ce.style.marginLeft = f.box_margin_left.value + (isNum(f.box_margin_left.value) ? f.box_margin_left_measurement.value : ""); + } else + ce.style.margin = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); + + // Build border styles + + if (!f.border_style_same.checked) { + ce.style.borderTopStyle = f.border_style_top.value; + ce.style.borderRightStyle = f.border_style_right.value; + ce.style.borderBottomStyle = f.border_style_bottom.value; + ce.style.borderLeftStyle = f.border_style_left.value; + } else + ce.style.borderStyle = f.border_style_top.value; + + if (!f.border_width_same.checked) { + ce.style.borderTopWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); + ce.style.borderRightWidth = f.border_width_right.value + (isNum(f.border_width_right.value) ? f.border_width_right_measurement.value : ""); + ce.style.borderBottomWidth = f.border_width_bottom.value + (isNum(f.border_width_bottom.value) ? f.border_width_bottom_measurement.value : ""); + ce.style.borderLeftWidth = f.border_width_left.value + (isNum(f.border_width_left.value) ? f.border_width_left_measurement.value : ""); + } else + ce.style.borderWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); + + if (!f.border_color_same.checked) { + ce.style.borderTopColor = f.border_color_top.value; + ce.style.borderRightColor = f.border_color_right.value; + ce.style.borderBottomColor = f.border_color_bottom.value; + ce.style.borderLeftColor = f.border_color_left.value; + } else + ce.style.borderColor = f.border_color_top.value; + + // Build list styles + + ce.style.listStyleType = f.list_type.value; + ce.style.listStylePosition = f.list_position.value; + ce.style.listStyleImage = f.list_bullet_image.value != "" ? "url(" + f.list_bullet_image.value + ")" : ""; + + // Build positioning styles + + ce.style.position = f.positioning_type.value; + ce.style.visibility = f.positioning_visibility.value; + + if (ce.style.width == "") + ce.style.width = f.positioning_width.value + (isNum(f.positioning_width.value) ? f.positioning_width_measurement.value : ""); + + if (ce.style.height == "") + ce.style.height = f.positioning_height.value + (isNum(f.positioning_height.value) ? f.positioning_height_measurement.value : ""); + + ce.style.zIndex = f.positioning_zindex.value; + ce.style.overflow = f.positioning_overflow.value; + + if (!f.positioning_placement_same.checked) { + ce.style.top = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); + ce.style.right = f.positioning_placement_right.value + (isNum(f.positioning_placement_right.value) ? f.positioning_placement_right_measurement.value : ""); + ce.style.bottom = f.positioning_placement_bottom.value + (isNum(f.positioning_placement_bottom.value) ? f.positioning_placement_bottom_measurement.value : ""); + ce.style.left = f.positioning_placement_left.value + (isNum(f.positioning_placement_left.value) ? f.positioning_placement_left_measurement.value : ""); + } else { + s = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); + ce.style.top = s; + ce.style.right = s; + ce.style.bottom = s; + ce.style.left = s; + } + + if (!f.positioning_clip_same.checked) { + s = "rect("; + s += (isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_right.value) ? f.positioning_clip_right.value + f.positioning_clip_right_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_bottom.value) ? f.positioning_clip_bottom.value + f.positioning_clip_bottom_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_left.value) ? f.positioning_clip_left.value + f.positioning_clip_left_measurement.value : "auto"); + s += ")"; + + if (s != "rect(auto auto auto auto)") + ce.style.clip = s; + } else { + s = "rect("; + t = isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto"; + s += t + " "; + s += t + " "; + s += t + " "; + s += t + ")"; + + if (s != "rect(auto auto auto auto)") + ce.style.clip = s; + } + + ce.style.cssText = ce.style.cssText; +} + +function isNum(s) { + return new RegExp('[0-9]+', 'g').test(s); +} + +function showDisabledControls() { + var f = document.forms, i, a; + + for (i=0; i 1) { + addSelectValue(f, s, p[0], p[1]); + + if (se) + selectByValue(f, s, p[1]); + } else { + addSelectValue(f, s, p[0], p[0]); + + if (se) + selectByValue(f, s, p[0]); + } + } +} + +function toggleSame(ce, pre) { + var el = document.forms[0].elements, i; + + if (ce.checked) { + el[pre + "_top"].disabled = false; + el[pre + "_right"].disabled = true; + el[pre + "_bottom"].disabled = true; + el[pre + "_left"].disabled = true; + + if (el[pre + "_top_measurement"]) { + el[pre + "_top_measurement"].disabled = false; + el[pre + "_right_measurement"].disabled = true; + el[pre + "_bottom_measurement"].disabled = true; + el[pre + "_left_measurement"].disabled = true; + } + } else { + el[pre + "_top"].disabled = false; + el[pre + "_right"].disabled = false; + el[pre + "_bottom"].disabled = false; + el[pre + "_left"].disabled = false; + + if (el[pre + "_top_measurement"]) { + el[pre + "_top_measurement"].disabled = false; + el[pre + "_right_measurement"].disabled = false; + el[pre + "_bottom_measurement"].disabled = false; + el[pre + "_left_measurement"].disabled = false; + } + } + + showDisabledControls(); +} + +function synch(fr, to) { + var f = document.forms[0]; + + f.elements[to].value = f.elements[fr].value; + + if (f.elements[fr + "_measurement"]) + selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/plugins/style/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/style/langs/de_dlg.js new file mode 100644 index 0000000..c30de26 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/langs/de_dlg.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('de.style_dlg',{ +title:"CSS-Styles bearbeiten", +apply:"\u00DCbernehmen", +text_tab:"Text", +background_tab:"Hintergrund", +block_tab:"Block", +box_tab:"Box", +border_tab:"Rahmen", +list_tab:"Liste", +positioning_tab:"Positionierung", +text_props:"Text", +text_font:"Schriftart", +text_size:"Gr\u00F6\u00DFe", +text_weight:"Dicke", +text_style:"Stil", +text_variant:"Variante", +text_lineheight:"Zeilenh\u00F6he", +text_case:"Schreibung", +text_color:"Farbe", +text_decoration:"Gestaltung", +text_overline:"\u00FCberstrichen", +text_underline:"unterstrichen", +text_striketrough:"durchgestrichen", +text_blink:"blinkend", +text_none:"keine", +background_color:"Hintergrundfarbe", +background_image:"Hintergrundbild", +background_repeat:"Wiederholung", +background_attachment:"Wasserzeicheneffekt", +background_hpos:"Position X", +background_vpos:"Position Y", +block_wordspacing:"Wortabstand", +block_letterspacing:"Buchstabenabstand", +block_vertical_alignment:"Vertikale Ausrichtung", +block_text_align:"Ausrichtung", +block_text_indent:"Einr\u00FCckung", +block_whitespace:"Automatischer Umbruch", +block_display:"Umbruchverhalten", +box_width:"Breite", +box_height:"H\u00F6he", +box_float:"Umflie\u00DFung", +box_clear:"Umflie\u00DFung verhindern", +padding:"Innerer Abstand", +same:"Alle gleich", +top:"Oben", +right:"Rechts", +bottom:"Unten", +left:"Links", +margin:"\u00C4u\u00DFerer Abstand", +style:"Format", +width:"Breite", +height:"H\u00F6he", +color:"Textfarbe", +list_type:"Listenpunkt-Art", +bullet_image:"Listenpunkt-Grafik", +position:"Positionierung", +positioning_type:"Art der Positionierung", +visibility:"Sichtbar", +zindex:"Z-Wert", +overflow:"Verhalten bei \u00DCbergr\u00F6\u00DFe", +placement:"Platzierung", +clip:"Ausschnitt" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/style/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/style/langs/en_dlg.js new file mode 100644 index 0000000..d9d7762 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/langs/en_dlg.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('en.style_dlg',{ +title:"Edit CSS Style", +apply:"Apply", +text_tab:"Text", +background_tab:"Background", +block_tab:"Block", +box_tab:"Box", +border_tab:"Border", +list_tab:"List", +positioning_tab:"Positioning", +text_props:"Text", +text_font:"Font", +text_size:"Size", +text_weight:"Weight", +text_style:"Style", +text_variant:"Variant", +text_lineheight:"Line height", +text_case:"Case", +text_color:"Color", +text_decoration:"Decoration", +text_overline:"overline", +text_underline:"underline", +text_striketrough:"strikethrough", +text_blink:"blink", +text_none:"none", +background_color:"Background color", +background_image:"Background image", +background_repeat:"Repeat", +background_attachment:"Attachment", +background_hpos:"Horizontal position", +background_vpos:"Vertical position", +block_wordspacing:"Word spacing", +block_letterspacing:"Letter spacing", +block_vertical_alignment:"Vertical alignment", +block_text_align:"Text align", +block_text_indent:"Text indent", +block_whitespace:"Whitespace", +block_display:"Display", +box_width:"Width", +box_height:"Height", +box_float:"Float", +box_clear:"Clear", +padding:"Padding", +same:"Same for all", +top:"Top", +right:"Right", +bottom:"Bottom", +left:"Left", +margin:"Margin", +style:"Style", +width:"Width", +height:"Height", +color:"Color", +list_type:"Type", +bullet_image:"Bullet image", +position:"Position", +positioning_type:"Type", +visibility:"Visibility", +zindex:"Z-index", +overflow:"Overflow", +placement:"Placement", +clip:"Clip" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/style/props.htm b/sn_computer/html/tiny_mce/plugins/style/props.htm new file mode 100644 index 0000000..549ed04 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/style/props.htm @@ -0,0 +1,723 @@ + + + + {#style_dlg.title} + + + + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + + +
     
    +
    + +
    + + + +
    + + + + + + +
    + +  
    +
    + +
    + + + + + +
     
    +
    {#style_dlg.text_decoration} + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
     
    +
    + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    + +
    + + + + + + + + + + + + + + +
    + + + + + + +
     
    +
       
    + + + + + + +
     
    +
       
    +
    +
    + {#style_dlg.padding} + + + + + + + + + + + + + + + + + + + + + + +
     
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    +
    + +
    +
    + {#style_dlg.margin} + + + + + + + + + + + + + + + + + + + + + + +
     
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    + + + + + + +
     
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      {#style_dlg.style} {#style_dlg.width} {#style_dlg.color}
          
    {#style_dlg.top}   + + + + + + +
     
    +
      + + + + + +
     
    +
    {#style_dlg.right}   + + + + + + +
     
    +
      + + + + + +
     
    +
    {#style_dlg.bottom}   + + + + + + +
     
    +
      + + + + + +
     
    +
    {#style_dlg.left}   + + + + + + +
     
    +
      + + + + + +
     
    +
    +
    + +
    + + + + + + + + + + + + + + + +
    +
    + +
    + + + + + + + + + + + + + + + + + + + + + +
       
    + + + + + + +
     
    +
       
    + + + + + + +
     
    +
       
    + +
    +
    + {#style_dlg.placement} + + + + + + + + + + + + + + + + + + + + + + +
     
    {#style_dlg.top} + + + + + + +
     
    +
    {#style_dlg.right} + + + + + + +
     
    +
    {#style_dlg.bottom} + + + + + + +
     
    +
    {#style_dlg.left} + + + + + + +
     
    +
    +
    +
    + +
    +
    + {#style_dlg.clip} + + + + + + + + + + + + + + + + + + + + + + +
     
    {#style_dlg.top} + + + + + + +
     
    +
    {#style_dlg.right} + + + + + + +
     
    +
    {#style_dlg.bottom} + + + + + + +
     
    +
    {#style_dlg.left} + + + + + + +
     
    +
    +
    +
    +
    +
    +
    + +
    + + + +
    +
    + +
    +
    +
    + + + diff --git a/sn_computer/html/tiny_mce/plugins/tabfocus/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/tabfocus/editor_plugin.js new file mode 100644 index 0000000..27d2440 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/tabfocus/editor_plugin.js @@ -0,0 +1 @@ +(function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create("tinymce.plugins.TabFocusPlugin",{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(i){o=c.getParent(l.id,"form");n=o.elements;if(o){d(n,function(s,r){if(s.id==l.id){j=r;return false}});if(i>0){for(m=j+1;m=0;m--){if(n[m].type!="hidden"){return n[m]}}}}return null}if(p.keyCode===9){k=b(l.getParam("tab_focus",l.getParam("tabfocus_elements",":prev,:next")));if(k.length==1){k[1]=k[0];k[0]=":prev"}if(p.shiftKey){if(k[0]==":prev"){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==":next"){n=q(1)}else{n=c.get(k[1])}}if(n){if(l=tinymce.get(n.id||n.name)){l.focus()}else{window.setTimeout(function(){window.focus();n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);if(tinymce.isGecko){f.onKeyPress.add(h);f.onKeyDown.add(e)}else{f.onKeyDown.add(h)}f.onInit.add(function(){d(c.select("a:first,a:last",f.getContainer()),function(i){a.add(i,"focus",function(){f.focus()})})})},getInfo:function(){return{longname:"Tabfocus",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("tabfocus",tinymce.plugins.TabFocusPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/tabfocus/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/tabfocus/editor_plugin_src.js new file mode 100644 index 0000000..e0e9635 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/tabfocus/editor_plugin_src.js @@ -0,0 +1,112 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, explode = tinymce.explode; + + tinymce.create('tinymce.plugins.TabFocusPlugin', { + init : function(ed, url) { + function tabCancel(ed, e) { + if (e.keyCode === 9) + return Event.cancel(e); + }; + + function tabHandler(ed, e) { + var x, i, f, el, v; + + function find(d) { + f = DOM.getParent(ed.id, 'form'); + el = f.elements; + + if (f) { + each(el, function(e, i) { + if (e.id == ed.id) { + x = i; + return false; + } + }); + + if (d > 0) { + for (i = x + 1; i < el.length; i++) { + if (el[i].type != 'hidden') + return el[i]; + } + } else { + for (i = x - 1; i >= 0; i--) { + if (el[i].type != 'hidden') + return el[i]; + } + } + } + + return null; + }; + + if (e.keyCode === 9) { + v = explode(ed.getParam('tab_focus', ed.getParam('tabfocus_elements', ':prev,:next'))); + + if (v.length == 1) { + v[1] = v[0]; + v[0] = ':prev'; + } + + // Find element to focus + if (e.shiftKey) { + if (v[0] == ':prev') + el = find(-1); + else + el = DOM.get(v[0]); + } else { + if (v[1] == ':next') + el = find(1); + else + el = DOM.get(v[1]); + } + + if (el) { + if (ed = tinymce.get(el.id || el.name)) + ed.focus(); + else + window.setTimeout(function() {window.focus();el.focus();}, 10); + + return Event.cancel(e); + } + } + }; + + ed.onKeyUp.add(tabCancel); + + if (tinymce.isGecko) { + ed.onKeyPress.add(tabHandler); + ed.onKeyDown.add(tabCancel); + } else + ed.onKeyDown.add(tabHandler); + + ed.onInit.add(function() { + each(DOM.select('a:first,a:last', ed.getContainer()), function(n) { + Event.add(n, 'focus', function() {ed.focus();}); + }); + }); + }, + + getInfo : function() { + return { + longname : 'Tabfocus', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('tabfocus', tinymce.plugins.TabFocusPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/table/cell.htm b/sn_computer/html/tiny_mce/plugins/table/cell.htm new file mode 100644 index 0000000..af7e003 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/cell.htm @@ -0,0 +1,178 @@ + + + + {#table_dlg.cell_title} + + + + + + + + +
    + + +
    +
    +
    + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + +
    +
    +
    + +
    +
    + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    +
    +
    + +
    +
    + +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/table/css/cell.css b/sn_computer/html/tiny_mce/plugins/table/css/cell.css new file mode 100644 index 0000000..a47cc1a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/css/cell.css @@ -0,0 +1,17 @@ +/* CSS file for cell dialog in the table plugin */ + +.panel_wrapper div.current { + height: 200px; +} + +.advfield { + width: 200px; +} + +#action { + margin-bottom: 3px; +} + +#class { + width: 150px; +} \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/table/css/row.css b/sn_computer/html/tiny_mce/plugins/table/css/row.css new file mode 100644 index 0000000..0e397db --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/css/row.css @@ -0,0 +1,25 @@ +/* CSS file for row dialog in the table plugin */ + +.panel_wrapper div.current { + height: 200px; +} + +.advfield { + width: 200px; +} + +#action { + margin-bottom: 3px; +} + +#rowtype,#align,#valign,#class,#height { + width: 150px; +} + +#height { + width: 50px; +} + +.col2 { + padding-left: 20px; +} diff --git a/sn_computer/html/tiny_mce/plugins/table/css/table.css b/sn_computer/html/tiny_mce/plugins/table/css/table.css new file mode 100644 index 0000000..8f10783 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/css/table.css @@ -0,0 +1,13 @@ +/* CSS file for table dialog in the table plugin */ + +.panel_wrapper div.current { + height: 245px; +} + +.advfield { + width: 200px; +} + +#class { + width: 150px; +} diff --git a/sn_computer/html/tiny_mce/plugins/table/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/table/editor_plugin.js new file mode 100644 index 0000000..266d7d5 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/editor_plugin.js @@ -0,0 +1 @@ +(function(b){var c=b.each;function a(F,E,I){var e,J,B,n;r();n=E.getParent(I.getStart(),"th,td");if(n){J=D(n);B=G();n=v(J.x,J.y)}function w(L,K){L=L.cloneNode(K);L.removeAttribute("id");return L}function r(){var K=0;e=[];c(["thead","tbody","tfoot"],function(L){var M=E.select(L+" tr",F);c(M,function(N,O){O+=K;c(E.select("td,th",N),function(U,P){var Q,R,S,T;if(e[O]){while(e[O][P]){P++}}S=g(U,"rowspan");T=g(U,"colspan");for(R=O;R'}return false}},"childNodes");K=w(K,false);K.rowSpan=K.colSpan=1;if(L){K.appendChild(L)}else{if(!b.isIE){K.innerHTML='
    '}}return K}function p(){var K=E.createRng();c(E.select("tr",F),function(L){if(L.cells.length==0){E.remove(L)}});if(E.select("tr",F).length==0){K.setStartAfter(F);K.setEndAfter(F);I.setRng(K);E.remove(F);return}c(E.select("thead,tbody,tfoot",F),function(L){if(L.rows.length==0){E.remove(L)}});r();row=e[Math.min(e.length-1,J.y)];if(row){I.select(row[Math.min(row.length-1,J.x)].elm,true);I.collapse(true)}}function s(Q,O,S,P){var N,L,K,M,R;N=e[O][Q].elm.parentNode;for(K=1;K<=S;K++){N=E.getNext(N,"tr");if(N){for(L=Q;L>=0;L--){R=e[O+K][L].elm;if(R.parentNode==N){for(M=1;M<=P;M++){E.insertAfter(d(R),R)}break}}if(L==-1){for(M=1;M<=P;M++){N.insertBefore(d(N.cells[0]),N.cells[0])}}}}}function A(){c(e,function(K,L){c(K,function(N,M){var Q,P,R,O;if(h(N)){N=N.elm;Q=g(N,"colspan");P=g(N,"rowspan");if(Q>1||P>1){N.colSpan=N.rowSpan=1;for(O=0;O1){P.rowSpan=rowSpan+1;continue}}else{if(K>0&&e[K-1][O]){S=e[K-1][O].elm;rowSpan=g(S,"rowspan");if(rowSpan>1){S.rowSpan=rowSpan+1;continue}}}L=d(P);L.colSpan=P.colSpan;R.appendChild(L);M=P}}if(R.hasChildNodes()){if(!N){E.insertAfter(R,Q)}else{Q.parentNode.insertBefore(R,Q)}}}function f(L){var M,K;c(e,function(N,O){c(N,function(Q,P){if(h(Q)){M=P;if(L){return false}}});if(L){return !M}});c(e,function(Q,R){var N=Q[M].elm,O,P;if(N!=K){P=g(N,"colspan");O=g(N,"rowspan");if(P==1){if(!L){E.insertAfter(d(N),N);s(M,R,O-1,P)}else{N.parentNode.insertBefore(d(N),N);s(M,R,O-1,P)}}else{N.colSpan++}K=N}})}function m(){var K=[];c(e,function(L,M){c(L,function(O,N){if(h(O)&&b.inArray(K,N)===-1){c(e,function(R){var P=R[N].elm,Q;Q=g(P,"colspan");if(Q>1){P.colSpan=Q-1}else{E.remove(P)}});K.push(N)}})});p()}function l(){var L;function K(O){var N,P,M;N=E.getNext(O,"tr");c(O.cells,function(Q){var R=g(Q,"rowspan");if(R>1){Q.rowSpan=R-1;P=D(Q);s(P.x,P.y,1,1)}});P=D(O.cells[0]);c(e[P.y],function(Q){var R;Q=Q.elm;if(Q!=M){R=g(Q,"rowspan");if(R<=1){E.remove(Q)}else{Q.rowSpan=R-1}M=Q}})}L=j();c(L.reverse(),function(M){K(M)});p()}function C(){var K=j();E.remove(K);p();return K}function H(){var K=j();c(K,function(M,L){K[L]=w(M,true)});return K}function z(M,L){var N=j(),K=N[L?0:N.length-1],O=K.cells.length;c(e,function(Q){var P;O=0;c(Q,function(S,R){if(S.real){O+=S.colspan}if(S.elm.parentNode==K){P=1}});if(P){return false}});if(!L){M.reverse()}c(M,function(R){var Q=R.cells.length,P;for(i=0;iL){L=P}if(O>K){K=O}if(Q.real){S=Q.colspan-1;R=Q.rowspan-1;if(S){if(P+S>L){L=P+S}}if(R){if(O+R>K){K=O+R}}}}})});return{x:L,y:K}}function t(Q){var N,M,S,R,L,K,O,P;B=D(Q);if(J&&B){N=Math.min(J.x,B.x);M=Math.min(J.y,B.y);S=Math.max(J.x,B.x);R=Math.max(J.y,B.y);L=S;K=R;for(y=M;y<=K;y++){Q=e[y][N];if(!Q.real){if(N-(Q.colspan-1)L){L=x+O}}if(P){if(y+P>K){K=y+P}}}}}E.removeClass(E.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=M;y<=K;y++){for(x=N;x<=L;x++){E.addClass(e[y][x].elm,"mceSelected")}}}}b.extend(this,{deleteTable:q,split:A,merge:o,insertRow:k,insertCol:f,deleteCols:m,deleteRows:l,cutRows:C,copyRows:H,pasteRows:z,getPos:D,setStartCell:u,setEndCell:t})}b.create("tinymce.plugins.TablePlugin",{init:function(e,f){var d,j;function h(m){var l=e.selection,k=e.dom.getParent(m||l.getNode(),"table");if(k){return new a(k,e.dom,l)}}function g(){e.getBody().style.webkitUserSelect="";e.dom.removeClass(e.dom.select("td.mceSelected,th.mceSelected"),"mceSelected")}c([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(k){e.addButton(k[0],{title:k[1],cmd:k[2],ui:k[3]})});if(!b.isIE){e.onClick.add(function(k,l){l=l.target;if(l.nodeName==="TABLE"){k.selection.select(l)}})}e.onNodeChange.add(function(l,k,o){var m;o=l.selection.getStart();m=l.dom.getParent(o,"td,th,caption");k.setActive("table",o.nodeName==="TABLE"||!!m);if(m&&m.nodeName==="CAPTION"){m=0}k.setDisabled("delete_table",!m);k.setDisabled("delete_col",!m);k.setDisabled("delete_table",!m);k.setDisabled("delete_row",!m);k.setDisabled("col_after",!m);k.setDisabled("col_before",!m);k.setDisabled("row_after",!m);k.setDisabled("row_before",!m);k.setDisabled("row_props",!m);k.setDisabled("cell_props",!m);k.setDisabled("split_cells",!m);k.setDisabled("merge_cells",!m)});e.onInit.add(function(l){var k,o,p=l.dom,m;d=l.windowManager;l.onMouseDown.add(function(q,r){if(r.button!=2){g();o=p.getParent(r.target,"td,th");k=p.getParent(o,"table")}});p.bind(l.getDoc(),"mouseover",function(t){var r,q,s=t.target;if(o&&(m||s!=o)&&(s.nodeName=="TD"||s.nodeName=="TH")){q=p.getParent(s,"table");if(q==k){if(!m){m=h(q);m.setStartCell(o);l.getBody().style.webkitUserSelect="none"}m.setEndCell(s)}r=l.selection.getSel();if(r.removeAllRanges){r.removeAllRanges()}else{r.empty()}t.preventDefault()}});l.onMouseUp.add(function(z,A){var r,t=z.selection,B,C=t.getSel(),q,u,s,w;if(o){if(m){z.getBody().style.webkitUserSelect=""}function v(D,F){var E=new b.dom.TreeWalker(D,D);do{if(D.nodeType==3&&b.trim(D.nodeValue).length!=0){if(F){r.setStart(D,0)}else{r.setEnd(D,D.nodeValue.length)}return}if(D.nodeName=="BR"){if(F){r.setStartBefore(D)}else{r.setEndBefore(D)}return}}while(D=(F?E.next():E.prev()))}B=p.select("td.mceSelected,th.mceSelected");if(B.length>0){r=p.createRng();u=B[0];w=B[B.length-1];v(u,1);q=new b.dom.TreeWalker(u,p.getParent(B[0],"table"));do{if(u.nodeName=="TD"||u.nodeName=="TH"){if(!p.hasClass(u,"mceSelected")){break}s=u}}while(u=q.next());v(s);t.setRng(r)}z.nodeChanged();o=m=k=null}});l.onKeyUp.add(function(q,r){g()});if(l&&l.plugins.contextmenu){l.plugins.contextmenu.onContextMenu.add(function(s,q,u){var v,t=l.selection,r=t.getNode()||l.getBody();if(l.dom.getParent(u,"td")||l.dom.getParent(u,"th")||l.dom.select("td.mceSelected,th.mceSelected").length){q.removeAll();if(r.nodeName=="A"&&!l.dom.getAttrib(r,"name")){q.add({title:"advanced.link_desc",icon:"link",cmd:l.plugins.advlink?"mceAdvLink":"mceLink",ui:true});q.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});q.addSeparator()}if(r.nodeName=="IMG"&&r.className.indexOf("mceItem")==-1){q.add({title:"advanced.image_desc",icon:"image",cmd:l.plugins.advimage?"mceAdvImage":"mceImage",ui:true});q.addSeparator()}q.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});q.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});q.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});q.addSeparator();v=q.addMenu({title:"table.cell"});v.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});v.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});v.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});v=q.addMenu({title:"table.row"});v.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});v.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});v.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});v.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});v.addSeparator();v.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});v.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});v.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!j);v.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!j);v=q.addMenu({title:"table.col"});v.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});v.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});v.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{q.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(!b.isIE){function n(){var q;for(q=l.getBody().lastChild;q&&q.nodeType==3&&!q.nodeValue.length;q=q.previousSibling){}if(q&&q.nodeName=="TABLE"){l.dom.add(l.getBody(),"p",null,'
    ')}}if(b.isGecko){l.onKeyDown.add(function(r,t){var q,s,u=r.dom;if(t.keyCode==37||t.keyCode==38){q=r.selection.getRng();s=u.getParent(q.startContainer,"table");if(s&&r.getBody().firstChild==s){if(isAtStart(q,s)){q=u.createRng();q.setStartBefore(s);q.setEndBefore(s);r.selection.setRng(q);t.preventDefault()}}}})}l.onKeyUp.add(n);l.onSetContent.add(n);l.onVisualAid.add(n);l.onPreProcess.add(function(q,s){var r=s.node.lastChild;if(r&&r.childNodes.length==1&&r.firstChild.nodeName=="BR"){q.dom.remove(r)}});n()}});c({mceTableSplitCells:function(k){k.split()},mceTableMergeCells:function(l){var m,n,k;k=e.dom.getParent(e.selection.getNode(),"th,td");if(k){m=k.rowSpan;n=k.colSpan}if(!e.dom.select("td.mceSelected,th.mceSelected").length){d.open({url:f+"/merge_cells.htm",width:240+parseInt(e.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(e.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:m,cols:n,onaction:function(o){l.merge(k,o.cols,o.rows)},plugin_url:f})}else{l.merge()}},mceTableInsertRowBefore:function(k){k.insertRow(true)},mceTableInsertRowAfter:function(k){k.insertRow()},mceTableInsertColBefore:function(k){k.insertCol(true)},mceTableInsertColAfter:function(k){k.insertCol()},mceTableDeleteCol:function(k){k.deleteCols()},mceTableDeleteRow:function(k){k.deleteRows()},mceTableCutRow:function(k){j=k.cutRows()},mceTableCopyRow:function(k){j=k.copyRows()},mceTablePasteRowBefore:function(k){k.pasteRows(j,true)},mceTablePasteRowAfter:function(k){k.pasteRows(j)},mceTableDelete:function(k){k.deleteTable()}},function(l,k){e.addCommand(k,function(){var m=h();if(m){l(m);e.execCommand("mceRepaint");g()}})});c({mceInsertTable:function(k){d.open({url:f+"/table.htm",width:400+parseInt(e.getLang("table.table_delta_width",0)),height:320+parseInt(e.getLang("table.table_delta_height",0)),inline:1},{plugin_url:f,action:k?k.action:0})},mceTableRowProps:function(){d.open({url:f+"/row.htm",width:400+parseInt(e.getLang("table.rowprops_delta_width",0)),height:295+parseInt(e.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:f})},mceTableCellProps:function(){d.open({url:f+"/cell.htm",width:400+parseInt(e.getLang("table.cellprops_delta_width",0)),height:295+parseInt(e.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:f})}},function(l,k){e.addCommand(k,function(m,n){l(n)})})}});b.PluginManager.add("table",b.plugins.TablePlugin)})(tinymce); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/table/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/table/editor_plugin_src.js new file mode 100644 index 0000000..0195e96 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/editor_plugin_src.js @@ -0,0 +1,1125 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function(tinymce) { + var each = tinymce.each; + + /** + * Table Grid class. + */ + function TableGrid(table, dom, selection) { + var grid, startPos, endPos, selectedCell; + + buildGrid(); + selectedCell = dom.getParent(selection.getStart(), 'th,td'); + if (selectedCell) { + startPos = getPos(selectedCell); + endPos = findEndPos(); + selectedCell = getCell(startPos.x, startPos.y); + } + + function cloneNode(node, children) { + node = node.cloneNode(children); + node.removeAttribute('id'); + + return node; + } + + function buildGrid() { + var startY = 0; + + grid = []; + + each(['thead', 'tbody', 'tfoot'], function(part) { + var rows = dom.select(part + ' tr', table); + + each(rows, function(tr, y) { + y += startY; + + each(dom.select('td,th', tr), function(td, x) { + var x2, y2, rowspan, colspan; + + // Skip over existing cells produced by rowspan + if (grid[y]) { + while (grid[y][x]) + x++; + } + + // Get col/rowspan from cell + rowspan = getSpanVal(td, 'rowspan'); + colspan = getSpanVal(td, 'colspan'); + + // Fill out rowspan/colspan right and down + for (y2 = y; y2 < y + rowspan; y2++) { + if (!grid[y2]) + grid[y2] = []; + + for (x2 = x; x2 < x + colspan; x2++) { + grid[y2][x2] = { + part : part, + real : y2 == y && x2 == x, + elm : td, + rowspan : rowspan, + colspan : colspan + }; + } + } + }); + }); + + startY += rows.length; + }); + }; + + function getCell(x, y) { + var row; + + row = grid[y]; + if (row) + return row[x]; + }; + + function getSpanVal(td, name) { + return parseInt(td.getAttribute(name) || 1); + }; + + function isCellSelected(cell) { + return dom.hasClass(cell.elm, 'mceSelected') || cell == selectedCell; + }; + + function getSelectedRows() { + var rows = []; + + each(table.rows, function(row) { + each(row.cells, function(cell) { + if (dom.hasClass(cell, 'mceSelected') || cell == selectedCell.elm) { + rows.push(row); + return false; + } + }); + }); + + return rows; + }; + + function deleteTable() { + var rng = dom.createRng(); + + rng.setStartAfter(table); + rng.setEndAfter(table); + + selection.setRng(rng); + + dom.remove(table); + }; + + function cloneCell(cell) { + var formatNode; + + // Clone formats + tinymce.walk(cell, function(node) { + var curNode; + + if (node.nodeType == 3) { + each(dom.getParents(node.parentNode, null, cell).reverse(), function(node) { + node = cloneNode(node, false); + + if (!formatNode) + formatNode = curNode = node; + else if (curNode) + curNode.appendChild(node); + + curNode = node; + }); + + // Add something to the inner node + if (curNode) + curNode.innerHTML = tinymce.isIE ? ' ' : '
    '; + + return false; + } + }, 'childNodes'); + + cell = cloneNode(cell, false); + cell.rowSpan = cell.colSpan = 1; + + if (formatNode) { + cell.appendChild(formatNode); + } else { + if (!tinymce.isIE) + cell.innerHTML = '
    '; + } + + return cell; + }; + + function cleanup() { + var rng = dom.createRng(); + + // Empty rows + each(dom.select('tr', table), function(tr) { + if (tr.cells.length == 0) + dom.remove(tr); + }); + + // Empty table + if (dom.select('tr', table).length == 0) { + rng.setStartAfter(table); + rng.setEndAfter(table); + selection.setRng(rng); + dom.remove(table); + return; + } + + // Empty header/body/footer + each(dom.select('thead,tbody,tfoot', table), function(part) { + if (part.rows.length == 0) + dom.remove(part); + }); + + // Restore selection to start position if it still exists + buildGrid(); + + // Restore the selection to the closest table position + row = grid[Math.min(grid.length - 1, startPos.y)]; + if (row) { + selection.select(row[Math.min(row.length - 1, startPos.x)].elm, true); + selection.collapse(true); + } + }; + + function fillLeftDown(x, y, rows, cols) { + var tr, x2, r, c, cell; + + tr = grid[y][x].elm.parentNode; + for (r = 1; r <= rows; r++) { + tr = dom.getNext(tr, 'tr'); + + if (tr) { + // Loop left to find real cell + for (x2 = x; x2 >= 0; x2--) { + cell = grid[y + r][x2].elm; + + if (cell.parentNode == tr) { + // Append clones after + for (c = 1; c <= cols; c++) + dom.insertAfter(cloneCell(cell), cell); + + break; + } + } + + if (x2 == -1) { + // Insert nodes before first cell + for (c = 1; c <= cols; c++) + tr.insertBefore(cloneCell(tr.cells[0]), tr.cells[0]); + } + } + } + }; + + function split() { + each(grid, function(row, y) { + each(row, function(cell, x) { + var colSpan, rowSpan, newCell, i; + + if (isCellSelected(cell)) { + cell = cell.elm; + colSpan = getSpanVal(cell, 'colspan'); + rowSpan = getSpanVal(cell, 'rowspan'); + + if (colSpan > 1 || rowSpan > 1) { + cell.colSpan = cell.rowSpan = 1; + + // Insert cells right + for (i = 0; i < colSpan - 1; i++) + dom.insertAfter(cloneCell(cell), cell); + + fillLeftDown(x, y, rowSpan - 1, colSpan); + } + } + }); + }); + }; + + function merge(cell, cols, rows) { + var startX, startY, endX, endY, x, y, startCell, endCell, cell, children; + + // Use specified cell and cols/rows + if (cell) { + pos = getPos(cell); + startX = pos.x; + startY = pos.y; + endX = startX + (cols - 1); + endY = startY + (rows - 1); + } else { + // Use selection + startX = startPos.x; + startY = startPos.y; + endX = endPos.x; + endY = endPos.y; + } + + // Find start/end cells + startCell = getCell(startX, startY); + endCell = getCell(endX, endY); + + // Check if the cells exists and if they are of the same part for example tbody = tbody + if (startCell && endCell && startCell.part == endCell.part) { + // Split and rebuild grid + split(); + buildGrid(); + + // Set row/col span to start cell + startCell = getCell(startX, startY).elm; + startCell.colSpan = (endX - startX) + 1; + startCell.rowSpan = (endY - startY) + 1; + + // Remove other cells and add it's contents to the start cell + for (y = startY; y <= endY; y++) { + for (x = startX; x <= endX; x++) { + cell = grid[y][x].elm; + + if (cell != startCell) { + // Move children to startCell + children = tinymce.grep(cell.childNodes); + each(children, function(node, i) { + // Jump over last BR element + if (node.nodeName != 'BR' || i != children.length - 1) + startCell.appendChild(node); + }); + + // Remove cell + dom.remove(cell); + } + } + } + + // Remove empty rows etc and restore caret location + cleanup(); + } + }; + + function insertRow(before) { + var posY, cell, lastCell, x, rowElm, newRow, newCell, otherCell; + + // Find first/last row + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell)) { + cell = cell.elm; + rowElm = cell.parentNode; + newRow = cloneNode(rowElm, false); + posY = y; + + if (before) + return false; + } + }); + + if (before) + return !posY; + }); + + for (x = 0; x < grid[0].length; x++) { + cell = grid[posY][x].elm; + + if (cell != lastCell) { + if (!before) { + rowSpan = getSpanVal(cell, 'rowspan'); + if (rowSpan > 1) { + cell.rowSpan = rowSpan + 1; + continue; + } + } else { + // Check if cell above can be expanded + if (posY > 0 && grid[posY - 1][x]) { + otherCell = grid[posY - 1][x].elm; + rowSpan = getSpanVal(otherCell, 'rowspan'); + if (rowSpan > 1) { + otherCell.rowSpan = rowSpan + 1; + continue; + } + } + } + + // Insert new cell into new row + newCell = cloneCell(cell) + newCell.colSpan = cell.colSpan; + newRow.appendChild(newCell); + + lastCell = cell; + } + } + + if (newRow.hasChildNodes()) { + if (!before) + dom.insertAfter(newRow, rowElm); + else + rowElm.parentNode.insertBefore(newRow, rowElm); + } + }; + + function insertCol(before) { + var posX, lastCell; + + // Find first/last column + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell)) { + posX = x; + + if (before) + return false; + } + }); + + if (before) + return !posX; + }); + + each(grid, function(row, y) { + var cell = row[posX].elm, rowSpan, colSpan; + + if (cell != lastCell) { + colSpan = getSpanVal(cell, 'colspan'); + rowSpan = getSpanVal(cell, 'rowspan'); + + if (colSpan == 1) { + if (!before) { + dom.insertAfter(cloneCell(cell), cell); + fillLeftDown(posX, y, rowSpan - 1, colSpan); + } else { + cell.parentNode.insertBefore(cloneCell(cell), cell); + fillLeftDown(posX, y, rowSpan - 1, colSpan); + } + } else + cell.colSpan++; + + lastCell = cell; + } + }); + }; + + function deleteCols() { + var cols = []; + + // Get selected column indexes + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell) && tinymce.inArray(cols, x) === -1) { + each(grid, function(row) { + var cell = row[x].elm, colSpan; + + colSpan = getSpanVal(cell, 'colspan'); + + if (colSpan > 1) + cell.colSpan = colSpan - 1; + else + dom.remove(cell); + }); + + cols.push(x); + } + }); + }); + + cleanup(); + }; + + function deleteRows() { + var rows; + + function deleteRow(tr) { + var nextTr, pos, lastCell; + + nextTr = dom.getNext(tr, 'tr'); + + // Move down row spanned cells + each(tr.cells, function(cell) { + var rowSpan = getSpanVal(cell, 'rowspan'); + + if (rowSpan > 1) { + cell.rowSpan = rowSpan - 1; + pos = getPos(cell); + fillLeftDown(pos.x, pos.y, 1, 1); + } + }); + + // Delete cells + pos = getPos(tr.cells[0]); + each(grid[pos.y], function(cell) { + var rowSpan; + + cell = cell.elm; + + if (cell != lastCell) { + rowSpan = getSpanVal(cell, 'rowspan'); + + if (rowSpan <= 1) + dom.remove(cell); + else + cell.rowSpan = rowSpan - 1; + + lastCell = cell; + } + }); + }; + + // Get selected rows and move selection out of scope + rows = getSelectedRows(); + + // Delete all selected rows + each(rows.reverse(), function(tr) { + deleteRow(tr); + }); + + cleanup(); + }; + + function cutRows() { + var rows = getSelectedRows(); + + dom.remove(rows); + cleanup(); + + return rows; + }; + + function copyRows() { + var rows = getSelectedRows(); + + each(rows, function(row, i) { + rows[i] = cloneNode(row, true); + }); + + return rows; + }; + + function pasteRows(rows, before) { + var selectedRows = getSelectedRows(), + targetRow = selectedRows[before ? 0 : selectedRows.length - 1], + targetCellCount = targetRow.cells.length; + + // Calc target cell count + each(grid, function(row) { + var match; + + targetCellCount = 0; + each(row, function(cell, x) { + if (cell.real) + targetCellCount += cell.colspan; + + if (cell.elm.parentNode == targetRow) + match = 1; + }); + + if (match) + return false; + }); + + if (!before) + rows.reverse(); + + each(rows, function(row) { + var cellCount = row.cells.length, cell; + + // Remove col/rowspans + for (i = 0; i < cellCount; i++) { + cell = row.cells[i]; + cell.colSpan = cell.rowSpan = 1; + } + + // Needs more cells + for (i = cellCount; i < targetCellCount; i++) + row.appendChild(cloneCell(row.cells[cellCount - 1])); + + // Needs less cells + for (i = targetCellCount; i < cellCount; i++) + dom.remove(row.cells[i]); + + // Add before/after + if (before) + targetRow.parentNode.insertBefore(row, targetRow); + else + dom.insertAfter(row, targetRow); + }); + }; + + function getPos(target) { + var pos; + + each(grid, function(row, y) { + each(row, function(cell, x) { + if (cell.elm == target) { + pos = {x : x, y : y}; + return false; + } + }); + + return !pos; + }); + + return pos; + }; + + function setStartCell(cell) { + startPos = getPos(cell); + }; + + function findEndPos() { + var pos, maxX, maxY; + + maxX = maxY = 0; + + each(grid, function(row, y) { + each(row, function(cell, x) { + var colSpan, rowSpan; + + if (isCellSelected(cell)) { + cell = grid[y][x]; + + if (x > maxX) + maxX = x; + + if (y > maxY) + maxY = y; + + if (cell.real) { + colSpan = cell.colspan - 1; + rowSpan = cell.rowspan - 1; + + if (colSpan) { + if (x + colSpan > maxX) + maxX = x + colSpan; + } + + if (rowSpan) { + if (y + rowSpan > maxY) + maxY = y + rowSpan; + } + } + } + }); + }); + + return {x : maxX, y : maxY}; + }; + + function setEndCell(cell) { + var startX, startY, endX, endY, maxX, maxY, colSpan, rowSpan; + + endPos = getPos(cell); + + if (startPos && endPos) { + // Get start/end positions + startX = Math.min(startPos.x, endPos.x); + startY = Math.min(startPos.y, endPos.y); + endX = Math.max(startPos.x, endPos.x); + endY = Math.max(startPos.y, endPos.y); + + // Expand end positon to include spans + maxX = endX; + maxY = endY; + + // Expand startX + for (y = startY; y <= maxY; y++) { + cell = grid[y][startX]; + + if (!cell.real) { + if (startX - (cell.colspan - 1) < startX) + startX -= cell.colspan - 1; + } + } + + // Expand startY + for (x = startX; x <= maxX; x++) { + cell = grid[startY][x]; + + if (!cell.real) { + if (startY - (cell.rowspan - 1) < startY) + startY -= cell.rowspan - 1; + } + } + + // Find max X, Y + for (y = startY; y <= endY; y++) { + for (x = startX; x <= endX; x++) { + cell = grid[y][x]; + + if (cell.real) { + colSpan = cell.colspan - 1; + rowSpan = cell.rowspan - 1; + + if (colSpan) { + if (x + colSpan > maxX) + maxX = x + colSpan; + } + + if (rowSpan) { + if (y + rowSpan > maxY) + maxY = y + rowSpan; + } + } + } + } + + // Remove current selection + dom.removeClass(dom.select('td.mceSelected,th.mceSelected'), 'mceSelected'); + + // Add new selection + for (y = startY; y <= maxY; y++) { + for (x = startX; x <= maxX; x++) + dom.addClass(grid[y][x].elm, 'mceSelected'); + } + } + }; + + // Expose to public + tinymce.extend(this, { + deleteTable : deleteTable, + split : split, + merge : merge, + insertRow : insertRow, + insertCol : insertCol, + deleteCols : deleteCols, + deleteRows : deleteRows, + cutRows : cutRows, + copyRows : copyRows, + pasteRows : pasteRows, + getPos : getPos, + setStartCell : setStartCell, + setEndCell : setEndCell + }); + }; + + tinymce.create('tinymce.plugins.TablePlugin', { + init : function(ed, url) { + var winMan, clipboardRows; + + function createTableGrid(node) { + var selection = ed.selection, tblElm = ed.dom.getParent(node || selection.getNode(), 'table'); + + if (tblElm) + return new TableGrid(tblElm, ed.dom, selection); + }; + + function cleanup() { + // Restore selection possibilities + ed.getBody().style.webkitUserSelect = ''; + ed.dom.removeClass(ed.dom.select('td.mceSelected,th.mceSelected'), 'mceSelected'); + }; + + // Register buttons + each([ + ['table', 'table.desc', 'mceInsertTable', true], + ['delete_table', 'table.del', 'mceTableDelete'], + ['delete_col', 'table.delete_col_desc', 'mceTableDeleteCol'], + ['delete_row', 'table.delete_row_desc', 'mceTableDeleteRow'], + ['col_after', 'table.col_after_desc', 'mceTableInsertColAfter'], + ['col_before', 'table.col_before_desc', 'mceTableInsertColBefore'], + ['row_after', 'table.row_after_desc', 'mceTableInsertRowAfter'], + ['row_before', 'table.row_before_desc', 'mceTableInsertRowBefore'], + ['row_props', 'table.row_desc', 'mceTableRowProps', true], + ['cell_props', 'table.cell_desc', 'mceTableCellProps', true], + ['split_cells', 'table.split_cells_desc', 'mceTableSplitCells', true], + ['merge_cells', 'table.merge_cells_desc', 'mceTableMergeCells', true] + ], function(c) { + ed.addButton(c[0], {title : c[1], cmd : c[2], ui : c[3]}); + }); + + // Select whole table is a table border is clicked + if (!tinymce.isIE) { + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'TABLE') + ed.selection.select(e); + }); + } + + // Handle node change updates + ed.onNodeChange.add(function(ed, cm, n) { + var p; + + n = ed.selection.getStart(); + p = ed.dom.getParent(n, 'td,th,caption'); + cm.setActive('table', n.nodeName === 'TABLE' || !!p); + + // Disable table tools if we are in caption + if (p && p.nodeName === 'CAPTION') + p = 0; + + cm.setDisabled('delete_table', !p); + cm.setDisabled('delete_col', !p); + cm.setDisabled('delete_table', !p); + cm.setDisabled('delete_row', !p); + cm.setDisabled('col_after', !p); + cm.setDisabled('col_before', !p); + cm.setDisabled('row_after', !p); + cm.setDisabled('row_before', !p); + cm.setDisabled('row_props', !p); + cm.setDisabled('cell_props', !p); + cm.setDisabled('split_cells', !p); + cm.setDisabled('merge_cells', !p); + }); + + ed.onInit.add(function(ed) { + var startTable, startCell, dom = ed.dom, tableGrid; + + winMan = ed.windowManager; + + // Add cell selection logic + ed.onMouseDown.add(function(ed, e) { + if (e.button != 2) { + cleanup(); + + startCell = dom.getParent(e.target, 'td,th'); + startTable = dom.getParent(startCell, 'table'); + } + }); + + dom.bind(ed.getDoc(), 'mouseover', function(e) { + var sel, table, target = e.target; + + if (startCell && (tableGrid || target != startCell) && (target.nodeName == 'TD' || target.nodeName == 'TH')) { + table = dom.getParent(target, 'table'); + if (table == startTable) { + if (!tableGrid) { + tableGrid = createTableGrid(table); + tableGrid.setStartCell(startCell); + + ed.getBody().style.webkitUserSelect = 'none'; + } + + tableGrid.setEndCell(target); + } + + // Remove current selection + sel = ed.selection.getSel(); + + if (sel.removeAllRanges) + sel.removeAllRanges(); + else + sel.empty(); + + e.preventDefault(); + } + }); + + ed.onMouseUp.add(function(ed, e) { + var rng, sel = ed.selection, selectedCells, nativeSel = sel.getSel(), walker, node, lastNode, endNode; + + // Move selection to startCell + if (startCell) { + if (tableGrid) + ed.getBody().style.webkitUserSelect = ''; + + function setPoint(node, start) { + var walker = new tinymce.dom.TreeWalker(node, node); + + do { + // Text node + if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length != 0) { + if (start) + rng.setStart(node, 0); + else + rng.setEnd(node, node.nodeValue.length); + + return; + } + + // BR element + if (node.nodeName == 'BR') { + if (start) + rng.setStartBefore(node); + else + rng.setEndBefore(node); + + return; + } + } while (node = (start ? walker.next() : walker.prev())); + }; + + // Try to expand text selection as much as we can only Gecko supports cell selection + selectedCells = dom.select('td.mceSelected,th.mceSelected'); + if (selectedCells.length > 0) { + rng = dom.createRng(); + node = selectedCells[0]; + endNode = selectedCells[selectedCells.length - 1]; + + setPoint(node, 1); + walker = new tinymce.dom.TreeWalker(node, dom.getParent(selectedCells[0], 'table')); + + do { + if (node.nodeName == 'TD' || node.nodeName == 'TH') { + if (!dom.hasClass(node, 'mceSelected')) + break; + + lastNode = node; + } + } while (node = walker.next()); + + setPoint(lastNode); + + sel.setRng(rng); + } + + ed.nodeChanged(); + startCell = tableGrid = startTable = null; + } + }); + + ed.onKeyUp.add(function(ed, e) { + cleanup(); + }); + + // Add context menu + if (ed && ed.plugins.contextmenu) { + ed.plugins.contextmenu.onContextMenu.add(function(th, m, e) { + var sm, se = ed.selection, el = se.getNode() || ed.getBody(); + + if (ed.dom.getParent(e, 'td') || ed.dom.getParent(e, 'th') || ed.dom.select('td.mceSelected,th.mceSelected').length) { + m.removeAll(); + + if (el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) { + m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); + m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); + m.addSeparator(); + } + + if (el.nodeName == 'IMG' && el.className.indexOf('mceItem') == -1) { + m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); + m.addSeparator(); + } + + m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable', value : {action : 'insert'}}); + m.add({title : 'table.props_desc', icon : 'table_props', cmd : 'mceInsertTable'}); + m.add({title : 'table.del', icon : 'delete_table', cmd : 'mceTableDelete'}); + m.addSeparator(); + + // Cell menu + sm = m.addMenu({title : 'table.cell'}); + sm.add({title : 'table.cell_desc', icon : 'cell_props', cmd : 'mceTableCellProps'}); + sm.add({title : 'table.split_cells_desc', icon : 'split_cells', cmd : 'mceTableSplitCells'}); + sm.add({title : 'table.merge_cells_desc', icon : 'merge_cells', cmd : 'mceTableMergeCells'}); + + // Row menu + sm = m.addMenu({title : 'table.row'}); + sm.add({title : 'table.row_desc', icon : 'row_props', cmd : 'mceTableRowProps'}); + sm.add({title : 'table.row_before_desc', icon : 'row_before', cmd : 'mceTableInsertRowBefore'}); + sm.add({title : 'table.row_after_desc', icon : 'row_after', cmd : 'mceTableInsertRowAfter'}); + sm.add({title : 'table.delete_row_desc', icon : 'delete_row', cmd : 'mceTableDeleteRow'}); + sm.addSeparator(); + sm.add({title : 'table.cut_row_desc', icon : 'cut', cmd : 'mceTableCutRow'}); + sm.add({title : 'table.copy_row_desc', icon : 'copy', cmd : 'mceTableCopyRow'}); + sm.add({title : 'table.paste_row_before_desc', icon : 'paste', cmd : 'mceTablePasteRowBefore'}).setDisabled(!clipboardRows); + sm.add({title : 'table.paste_row_after_desc', icon : 'paste', cmd : 'mceTablePasteRowAfter'}).setDisabled(!clipboardRows); + + // Column menu + sm = m.addMenu({title : 'table.col'}); + sm.add({title : 'table.col_before_desc', icon : 'col_before', cmd : 'mceTableInsertColBefore'}); + sm.add({title : 'table.col_after_desc', icon : 'col_after', cmd : 'mceTableInsertColAfter'}); + sm.add({title : 'table.delete_col_desc', icon : 'delete_col', cmd : 'mceTableDeleteCol'}); + } else + m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable'}); + }); + } + + // Fixes an issue on Gecko where it's impossible to place the caret behind a table + // This fix will force a paragraph element after the table but only when the forced_root_block setting is enabled + if (!tinymce.isIE) { + function fixTableCaretPos() { + var last; + + // Skip empty text nodes form the end + for (last = ed.getBody().lastChild; last && last.nodeType == 3 && !last.nodeValue.length; last = last.previousSibling) ; + + if (last && last.nodeName == 'TABLE') + ed.dom.add(ed.getBody(), 'p', null, '
    '); + }; + + // Fixes an bug where it's impossible to place the caret before a table in Gecko + // this fix solves it by detecting when the caret is at the beginning of such a table + // and then manually moves the caret infront of the table + if (tinymce.isGecko) { + ed.onKeyDown.add(function(ed, e) { + var rng, table, dom = ed.dom; + + // On gecko it's not possible to place the caret before a table + if (e.keyCode == 37 || e.keyCode == 38) { + rng = ed.selection.getRng(); + table = dom.getParent(rng.startContainer, 'table'); + + if (table && ed.getBody().firstChild == table) { + if (isAtStart(rng, table)) { + rng = dom.createRng(); + + rng.setStartBefore(table); + rng.setEndBefore(table); + + ed.selection.setRng(rng); + + e.preventDefault(); + } + } + } + }); + } + + ed.onKeyUp.add(fixTableCaretPos); + ed.onSetContent.add(fixTableCaretPos); + ed.onVisualAid.add(fixTableCaretPos); + + ed.onPreProcess.add(function(ed, o) { + var last = o.node.lastChild; + + if (last && last.childNodes.length == 1 && last.firstChild.nodeName == 'BR') + ed.dom.remove(last); + }); + + fixTableCaretPos(); + } + }); + + // Register action commands + each({ + mceTableSplitCells : function(grid) { + grid.split(); + }, + + mceTableMergeCells : function(grid) { + var rowSpan, colSpan, cell; + + cell = ed.dom.getParent(ed.selection.getNode(), 'th,td'); + if (cell) { + rowSpan = cell.rowSpan; + colSpan = cell.colSpan; + } + + if (!ed.dom.select('td.mceSelected,th.mceSelected').length) { + winMan.open({ + url : url + '/merge_cells.htm', + width : 240 + parseInt(ed.getLang('table.merge_cells_delta_width', 0)), + height : 110 + parseInt(ed.getLang('table.merge_cells_delta_height', 0)), + inline : 1 + }, { + rows : rowSpan, + cols : colSpan, + onaction : function(data) { + grid.merge(cell, data.cols, data.rows); + }, + plugin_url : url + }); + } else + grid.merge(); + }, + + mceTableInsertRowBefore : function(grid) { + grid.insertRow(true); + }, + + mceTableInsertRowAfter : function(grid) { + grid.insertRow(); + }, + + mceTableInsertColBefore : function(grid) { + grid.insertCol(true); + }, + + mceTableInsertColAfter : function(grid) { + grid.insertCol(); + }, + + mceTableDeleteCol : function(grid) { + grid.deleteCols(); + }, + + mceTableDeleteRow : function(grid) { + grid.deleteRows(); + }, + + mceTableCutRow : function(grid) { + clipboardRows = grid.cutRows(); + }, + + mceTableCopyRow : function(grid) { + clipboardRows = grid.copyRows(); + }, + + mceTablePasteRowBefore : function(grid) { + grid.pasteRows(clipboardRows, true); + }, + + mceTablePasteRowAfter : function(grid) { + grid.pasteRows(clipboardRows); + }, + + mceTableDelete : function(grid) { + grid.deleteTable(); + } + }, function(func, name) { + ed.addCommand(name, function() { + var grid = createTableGrid(); + + if (grid) { + func(grid); + ed.execCommand('mceRepaint'); + cleanup(); + } + }); + }); + + // Register dialog commands + each({ + mceInsertTable : function(val) { + winMan.open({ + url : url + '/table.htm', + width : 400 + parseInt(ed.getLang('table.table_delta_width', 0)), + height : 320 + parseInt(ed.getLang('table.table_delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + action : val ? val.action : 0 + }); + }, + + mceTableRowProps : function() { + winMan.open({ + url : url + '/row.htm', + width : 400 + parseInt(ed.getLang('table.rowprops_delta_width', 0)), + height : 295 + parseInt(ed.getLang('table.rowprops_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }, + + mceTableCellProps : function() { + winMan.open({ + url : url + '/cell.htm', + width : 400 + parseInt(ed.getLang('table.cellprops_delta_width', 0)), + height : 295 + parseInt(ed.getLang('table.cellprops_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + } + }, function(func, name) { + ed.addCommand(name, function(ui, val) { + func(val); + }); + }); + } + }); + + // Register plugin + tinymce.PluginManager.add('table', tinymce.plugins.TablePlugin); +})(tinymce); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/table/js/cell.js b/sn_computer/html/tiny_mce/plugins/table/js/cell.js new file mode 100644 index 0000000..fae7e6f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/js/cell.js @@ -0,0 +1,286 @@ +tinyMCEPopup.requireLangPack(); + +var ed; + +function init() { + ed = tinyMCEPopup.editor; + tinyMCEPopup.resizeToInnerSize(); + + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor') + + var inst = ed; + var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th"); + var formObj = document.forms[0]; + var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style")); + + // Get table cell data + var celltype = tdElm.nodeName.toLowerCase(); + var align = ed.dom.getAttrib(tdElm, 'align'); + var valign = ed.dom.getAttrib(tdElm, 'valign'); + var width = trimSize(getStyle(tdElm, 'width', 'width')); + var height = trimSize(getStyle(tdElm, 'height', 'height')); + var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor')); + var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor')); + var className = ed.dom.getAttrib(tdElm, 'class'); + var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + var id = ed.dom.getAttrib(tdElm, 'id'); + var lang = ed.dom.getAttrib(tdElm, 'lang'); + var dir = ed.dom.getAttrib(tdElm, 'dir'); + var scope = ed.dom.getAttrib(tdElm, 'scope'); + + // Setup form + addClassesToList('class', 'table_cell_styles'); + TinyMCE_EditableSelects.init(); + + if (!ed.dom.hasClass(tdElm, 'mceSelected')) { + formObj.bordercolor.value = bordercolor; + formObj.bgcolor.value = bgcolor; + formObj.backgroundimage.value = backgroundimage; + formObj.width.value = width; + formObj.height.value = height; + formObj.id.value = id; + formObj.lang.value = lang; + formObj.style.value = ed.dom.serializeStyle(st); + selectByValue(formObj, 'align', align); + selectByValue(formObj, 'valign', valign); + selectByValue(formObj, 'class', className, true, true); + selectByValue(formObj, 'celltype', celltype); + selectByValue(formObj, 'dir', dir); + selectByValue(formObj, 'scope', scope); + + // Resize some elements + if (isVisible('backgroundimagebrowser')) + document.getElementById('backgroundimage').style.width = '180px'; + + updateColor('bordercolor_pick', 'bordercolor'); + updateColor('bgcolor_pick', 'bgcolor'); + } else + tinyMCEPopup.dom.hide('action'); +} + +function updateAction() { + var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0]; + + tinyMCEPopup.restoreSelection(); + el = ed.selection.getStart(); + tdElm = ed.dom.getParent(el, "td,th"); + trElm = ed.dom.getParent(el, "tr"); + tableElm = ed.dom.getParent(el, "table"); + + // Cell is selected + if (ed.dom.hasClass(tdElm, 'mceSelected')) { + // Update all selected sells + tinymce.each(ed.dom.select('td.mceSelected,th.mceSelected'), function(td) { + updateCell(td); + }); + + ed.addVisual(); + ed.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + return; + } + + ed.execCommand('mceBeginUndoLevel'); + + switch (getSelectValue(formObj, 'action')) { + case "cell": + var celltype = getSelectValue(formObj, 'celltype'); + var scope = getSelectValue(formObj, 'scope'); + + function doUpdate(s) { + if (s) { + updateCell(tdElm); + + ed.addVisual(); + ed.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + } + }; + + if (ed.getParam("accessibility_warnings", 1)) { + if (celltype == "th" && scope == "") + tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate); + else + doUpdate(1); + + return; + } + + updateCell(tdElm); + break; + + case "row": + var cell = trElm.firstChild; + + if (cell.nodeName != "TD" && cell.nodeName != "TH") + cell = nextCell(cell); + + do { + cell = updateCell(cell, true); + } while ((cell = nextCell(cell)) != null); + + break; + + case "all": + var rows = tableElm.getElementsByTagName("tr"); + + for (var i=0; i 0) { + tinymce.each(tableElm.rows, function(tr) { + var i; + + for (i = 0; i < tr.cells.length; i++) { + if (dom.hasClass(tr.cells[i], 'mceSelected')) { + updateRow(tr, true); + return; + } + } + }); + + inst.addVisual(); + inst.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + return; + } + + inst.execCommand('mceBeginUndoLevel'); + + switch (action) { + case "row": + updateRow(trElm); + break; + + case "all": + var rows = tableElm.getElementsByTagName("tr"); + + for (var i=0; i colLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit)); + return false; + } else if (rowLimit && rows > rowLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit)); + return false; + } else if (cellLimit && cols * rows > cellLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit)); + return false; + } + + // Update table + if (action == "update") { + inst.execCommand('mceBeginUndoLevel'); + + dom.setAttrib(elm, 'cellPadding', cellpadding, true); + dom.setAttrib(elm, 'cellSpacing', cellspacing, true); + dom.setAttrib(elm, 'border', border); + dom.setAttrib(elm, 'align', align); + dom.setAttrib(elm, 'frame', frame); + dom.setAttrib(elm, 'rules', rules); + dom.setAttrib(elm, 'class', className); + dom.setAttrib(elm, 'style', style); + dom.setAttrib(elm, 'id', id); + dom.setAttrib(elm, 'summary', summary); + dom.setAttrib(elm, 'dir', dir); + dom.setAttrib(elm, 'lang', lang); + + capEl = inst.dom.select('caption', elm)[0]; + + if (capEl && !caption) + capEl.parentNode.removeChild(capEl); + + if (!capEl && caption) { + capEl = elm.ownerDocument.createElement('caption'); + + if (!tinymce.isIE) + capEl.innerHTML = '
    '; + + elm.insertBefore(capEl, elm.firstChild); + } + + if (width && inst.settings.inline_styles) { + dom.setStyle(elm, 'width', width); + dom.setAttrib(elm, 'width', ''); + } else { + dom.setAttrib(elm, 'width', width, true); + dom.setStyle(elm, 'width', ''); + } + + // Remove these since they are not valid XHTML + dom.setAttrib(elm, 'borderColor', ''); + dom.setAttrib(elm, 'bgColor', ''); + dom.setAttrib(elm, 'background', ''); + + if (height && inst.settings.inline_styles) { + dom.setStyle(elm, 'height', height); + dom.setAttrib(elm, 'height', ''); + } else { + dom.setAttrib(elm, 'height', height, true); + dom.setStyle(elm, 'height', ''); + } + + if (background != '') + elm.style.backgroundImage = "url('" + background + "')"; + else + elm.style.backgroundImage = ''; + +/* if (tinyMCEPopup.getParam("inline_styles")) { + if (width != '') + elm.style.width = getCSSSize(width); + }*/ + + if (bordercolor != "") { + elm.style.borderColor = bordercolor; + elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle; + elm.style.borderWidth = border == "" ? "1px" : border; + } else + elm.style.borderColor = ''; + + elm.style.backgroundColor = bgcolor; + elm.style.height = getCSSSize(height); + + inst.addVisual(); + + // Fix for stange MSIE align bug + //elm.outerHTML = elm.outerHTML; + + inst.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + + // Repaint if dimensions changed + if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight) + inst.execCommand('mceRepaint'); + + tinyMCEPopup.close(); + return true; + } + + // Create new table + html += ''); + + tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) { + if (patt) + patt += ','; + + patt += n + ' ._mce_marker'; + }); + + tinymce.each(inst.dom.select(patt), function(n) { + inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n); + }); + + dom.setOuterHTML(dom.select('br._mce_marker')[0], html); + } else + inst.execCommand('mceInsertContent', false, html); + + tinymce.each(dom.select('table[_mce_new]'), function(node) { + var td = dom.select('td', node); + + inst.selection.select(td[0], true); + inst.selection.collapse(); + + dom.setAttrib(node, '_mce_new', ''); + }); + + inst.addVisual(); + inst.execCommand('mceEndUndoLevel'); + + tinyMCEPopup.close(); +} + +function makeAttrib(attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib]; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value == "") + return ""; + + // XML encode it + value = value.replace(/&/g, '&'); + value = value.replace(/\"/g, '"'); + value = value.replace(//g, '>'); + + return ' ' + attrib + '="' + value + '"'; +} + +function init() { + tinyMCEPopup.resizeToInnerSize(); + + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + + var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', ''); + var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = ""; + var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules, frame; + var inst = tinyMCEPopup.editor, dom = inst.dom; + var formObj = document.forms[0]; + var elm = dom.getParent(inst.selection.getNode(), "table"); + + action = tinyMCEPopup.getWindowArg('action'); + + if (!action) + action = elm ? "update" : "insert"; + + if (elm && action != "insert") { + var rowsAr = elm.rows; + var cols = 0; + for (var i=0; i cols) + cols = rowsAr[i].cells.length; + + cols = cols; + rows = rowsAr.length; + + st = dom.parseStyle(dom.getAttrib(elm, "style")); + border = trimSize(getStyle(elm, 'border', 'borderWidth')); + cellpadding = dom.getAttrib(elm, 'cellpadding', ""); + cellspacing = dom.getAttrib(elm, 'cellspacing', ""); + width = trimSize(getStyle(elm, 'width', 'width')); + height = trimSize(getStyle(elm, 'height', 'height')); + bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor')); + bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor')); + align = dom.getAttrib(elm, 'align', align); + frame = dom.getAttrib(elm, 'frame'); + rules = dom.getAttrib(elm, 'rules'); + className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, '')); + id = dom.getAttrib(elm, 'id'); + summary = dom.getAttrib(elm, 'summary'); + style = dom.serializeStyle(st); + dir = dom.getAttrib(elm, 'dir'); + lang = dom.getAttrib(elm, 'lang'); + background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + formObj.caption.checked = elm.getElementsByTagName('caption').length > 0; + + orgTableWidth = width; + orgTableHeight = height; + + action = "update"; + formObj.insert.value = inst.getLang('update'); + } + + addClassesToList('class', "table_styles"); + TinyMCE_EditableSelects.init(); + + // Update form + selectByValue(formObj, 'align', align); + selectByValue(formObj, 'tframe', frame); + selectByValue(formObj, 'rules', rules); + selectByValue(formObj, 'class', className, true, true); + formObj.cols.value = cols; + formObj.rows.value = rows; + formObj.border.value = border; + formObj.cellpadding.value = cellpadding; + formObj.cellspacing.value = cellspacing; + formObj.width.value = width; + formObj.height.value = height; + formObj.bordercolor.value = bordercolor; + formObj.bgcolor.value = bgcolor; + formObj.id.value = id; + formObj.summary.value = summary; + formObj.style.value = style; + formObj.dir.value = dir; + formObj.lang.value = lang; + formObj.backgroundimage.value = background; + + updateColor('bordercolor_pick', 'bordercolor'); + updateColor('bgcolor_pick', 'bgcolor'); + + // Resize some elements + if (isVisible('backgroundimagebrowser')) + document.getElementById('backgroundimage').style.width = '180px'; + + // Disable some fields in update mode + if (action == "update") { + formObj.cols.disabled = true; + formObj.rows.disabled = true; + } +} + +function changedSize() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + +/* var width = formObj.width.value; + if (width != "") + st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : ""; + else + st['width'] = "";*/ + + var height = formObj.height.value; + if (height != "") + st['height'] = getCSSSize(height); + else + st['height'] = ""; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedBackgroundImage() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + st['background-image'] = "url('" + formObj.backgroundimage.value + "')"; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedBorder() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + // Update border width if the element has a color + if (formObj.border.value != "" && formObj.bordercolor.value != "") + st['border-width'] = formObj.border.value + "px"; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedColor() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + st['background-color'] = formObj.bgcolor.value; + + if (formObj.bordercolor.value != "") { + st['border-color'] = formObj.bordercolor.value; + + // Add border-width if it's missing + if (!st['border-width']) + st['border-width'] = formObj.border.value == "" ? "1px" : formObj.border.value + "px"; + } + + formObj.style.value = dom.serializeStyle(st); +} + +function changedStyle() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + if (st['background-image']) + formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + else + formObj.backgroundimage.value = ''; + + if (st['width']) + formObj.width.value = trimSize(st['width']); + + if (st['height']) + formObj.height.value = trimSize(st['height']); + + if (st['background-color']) { + formObj.bgcolor.value = st['background-color']; + updateColor('bgcolor_pick','bgcolor'); + } + + if (st['border-color']) { + formObj.bordercolor.value = st['border-color']; + updateColor('bordercolor_pick','bordercolor'); + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/plugins/table/langs/de_dlg.js b/sn_computer/html/tiny_mce/plugins/table/langs/de_dlg.js new file mode 100644 index 0000000..8b177c3 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/langs/de_dlg.js @@ -0,0 +1,74 @@ +tinyMCE.addI18n('de.table_dlg',{ +general_tab:"Allgemein", +advanced_tab:"Erweitert", +general_props:"Allgemeine Einstellungen", +advanced_props:"Erweiterte Einstellungen", +rowtype:"Gruppierung", +title:"Tabelle einf\u00FCgen/bearbeiten", +width:"Breite", +height:"H\u00F6he", +cols:"Spalten", +rows:"Zeilen", +cellspacing:"Zellenabstand", +cellpadding:"Abstand innerhalb der Zellen", +border:"Rahmen", +align:"Ausrichtung", +align_default:"Standard", +align_left:"Links", +align_right:"Rechts", +align_middle:"Mittig", +row_title:"Eigenschaften der Zeile", +cell_title:"Eigenschaften der Zelle", +cell_type:"Zellentyp", +valign:"Vertikale Ausrichtung", +align_top:"Oben", +align_bottom:"Unten", +bordercolor:"Rahmenfarbe", +bgcolor:"Hintergrundfarbe", +merge_cells_title:"Zellen vereinen", +id:"ID", +style:"Format", +langdir:"Schriftrichtung", +langcode:"Sprachcode", +mime:"MIME-Type des Inhalts", +ltr:"Links nach rechts", +rtl:"Rechts nach links", +bgimage:"Hintergrundbild", +summary:"Zusammenfassung", +td:"Textzelle", +th:"\u00DCberschrift", +cell_cell:"Diese Zelle ver\u00E4ndern", +cell_row:"Alle Zellen in dieser Zeile ver\u00E4ndern", +cell_all:"Alle Zellen der Tabelle ver\u00E4ndern", +row_row:"Diese Zeile ver\u00E4ndern", +row_odd:"Ungerade Zeilen ver\u00E4ndern", +row_even:"Gerade Zeilen ver\u00E4ndern", +row_all:"Alle Zeilen ver\u00E4ndern", +thead:"Tabellenkopf", +tbody:"Tabelleninhalt", +tfoot:"Tabellenfu\u00DF", +scope:"Bezug", +rowgroup:"Vertikal gruppieren", +colgroup:"Horizontal gruppieren", +col_limit:"Sie haben die maximale Spaltenzahl von {$cols} \u00FCberschritten.", +row_limit:"Sie haben die maximale Zeilenzahl von {$rows} \u00FCberschritten.", +cell_limit:"Sie haben die maximale Zellenzahl von {$cells} \u00FCberschritten.", +missing_scope:"Wollen Sie wirklich keine Beziehung f\u00FCr diese \u00DCberschrift angeben? Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnten Schwierigkeiten haben, den Inhalt der Tabelle zu verstehen.", +caption:"Beschriftung der Tabelle", +frame:"Rahmen", +frame_none:"keine", +frame_groups:"zwischen Gruppen", +frame_rows:"zwischen Zeilen", +frame_cols:"zwischen Spalten", +frame_all:"zwischen allen Zellen", +rules:"Gitter", +rules_void:"keins", +rules_above:"nur oben", +rules_below:"nur unten", +rules_hsides:"oben und unten", +rules_lhs:"nur links", +rules_rhs:"nur rechts", +rules_vsides:"links und rechts", +rules_box:"alle 4 Seiten (Box)", +rules_border:"alle 4 Seiten (Border)" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/table/langs/en_dlg.js b/sn_computer/html/tiny_mce/plugins/table/langs/en_dlg.js new file mode 100644 index 0000000..a33c987 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/langs/en_dlg.js @@ -0,0 +1,74 @@ +tinyMCE.addI18n('en.table_dlg',{ +general_tab:"General", +advanced_tab:"Advanced", +general_props:"General properties", +advanced_props:"Advanced properties", +rowtype:"Row in table part", +title:"Insert/Modify table", +width:"Width", +height:"Height", +cols:"Cols", +rows:"Rows", +cellspacing:"Cellspacing", +cellpadding:"Cellpadding", +border:"Border", +align:"Alignment", +align_default:"Default", +align_left:"Left", +align_right:"Right", +align_middle:"Center", +row_title:"Table row properties", +cell_title:"Table cell properties", +cell_type:"Cell type", +valign:"Vertical alignment", +align_top:"Top", +align_bottom:"Bottom", +bordercolor:"Border color", +bgcolor:"Background color", +merge_cells_title:"Merge table cells", +id:"Id", +style:"Style", +langdir:"Language direction", +langcode:"Language code", +mime:"Target MIME type", +ltr:"Left to right", +rtl:"Right to left", +bgimage:"Background image", +summary:"Summary", +td:"Data", +th:"Header", +cell_cell:"Update current cell", +cell_row:"Update all cells in row", +cell_all:"Update all cells in table", +row_row:"Update current row", +row_odd:"Update odd rows in table", +row_even:"Update even rows in table", +row_all:"Update all rows in table", +thead:"Table Head", +tbody:"Table Body", +tfoot:"Table Foot", +scope:"Scope", +rowgroup:"Row Group", +colgroup:"Col Group", +col_limit:"You've exceeded the maximum number of columns of {$cols}.", +row_limit:"You've exceeded the maximum number of rows of {$rows}.", +cell_limit:"You've exceeded the maximum number of cells of {$cells}.", +missing_scope:"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.", +caption:"Table caption", +frame:"Frame", +frame_none:"none", +frame_groups:"groups", +frame_rows:"rows", +frame_cols:"cols", +frame_all:"all", +rules:"Rules", +rules_void:"void", +rules_above:"above", +rules_below:"below", +rules_hsides:"hsides", +rules_lhs:"lhs", +rules_rhs:"rhs", +rules_vsides:"vsides", +rules_box:"box", +rules_border:"border" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/table/merge_cells.htm b/sn_computer/html/tiny_mce/plugins/table/merge_cells.htm new file mode 100644 index 0000000..b1a8d9b --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/merge_cells.htm @@ -0,0 +1,32 @@ + + + + {#table_dlg.merge_cells_title} + + + + + + +
    +
    + {#table_dlg.merge_cells_title} + + + + + + + + + +
    {#table_dlg.cols}:
    {#table_dlg.rows}:
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/table/row.htm b/sn_computer/html/tiny_mce/plugins/table/row.htm new file mode 100644 index 0000000..33fc9cc --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/row.htm @@ -0,0 +1,155 @@ + + + + {#table_dlg.row_title} + + + + + + + + +
    + + +
    +
    +
    + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + +
    + +
    +
    +
    + +
    +
    + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    +
    +
    + +
    +
    + +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/table/table.htm b/sn_computer/html/tiny_mce/plugins/table/table.htm new file mode 100644 index 0000000..122b04a --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/table/table.htm @@ -0,0 +1,187 @@ + + + + {#table_dlg.title} + + + + + + + + + +
    + + +
    +
    +
    + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + +
    + + + + + +
     
    +
    + +
    + +
    + +
    + + + + + +
     
    +
    + + + + + +
     
    +
    +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/template/blank.htm b/sn_computer/html/tiny_mce/plugins/template/blank.htm new file mode 100644 index 0000000..538a3b1 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/template/blank.htm @@ -0,0 +1,12 @@ + + + blank_page + + + + + + + diff --git a/sn_computer/html/tiny_mce/plugins/template/css/template.css b/sn_computer/html/tiny_mce/plugins/template/css/template.css new file mode 100644 index 0000000..0a03f2e --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/template/css/template.css @@ -0,0 +1,23 @@ +#frmbody { + padding: 10px; + background-color: #FFF; + border: 1px solid #CCC; +} + +.frmRow { + margin-bottom: 10px; +} + +#templatesrc { + border: none; + width: 320px; + height: 240px; +} + +.title { + padding-bottom: 5px; +} + +.mceActionPanel { + padding-top: 5px; +} diff --git a/sn_computer/html/tiny_mce/plugins/template/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/template/editor_plugin.js new file mode 100644 index 0000000..ebe3c27 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/template/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.TemplatePlugin",{init:function(b,c){var d=this;d.editor=b;b.addCommand("mceTemplate",function(e){b.windowManager.open({file:c+"/template.htm",width:b.getParam("template_popup_width",750),height:b.getParam("template_popup_height",600),inline:1},{plugin_url:c})});b.addCommand("mceInsertTemplate",d._insertTemplate,d);b.addButton("template",{title:"template.desc",cmd:"mceTemplate"});b.onPreProcess.add(function(e,g){var f=e.dom;a(f.select("div",g.node),function(h){if(f.hasClass(h,"mceTmpl")){a(f.select("*",h),function(i){if(f.hasClass(i,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){i.innerHTML=d._getDateTime(new Date(),e.getParam("template_mdate_format",e.getLang("template.mdate_format")))}});d._replaceVals(h)}})})},getInfo:function(){return{longname:"Template plugin",author:"Moxiecode Systems AB",authorurl:"http://www.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_insertTemplate:function(i,j){var k=this,g=k.editor,f,c,d=g.dom,b=g.selection.getContent();f=j.content;a(k.editor.getParam("template_replace_values"),function(l,h){if(typeof(l)!="function"){f=f.replace(new RegExp("\\{\\$"+h+"\\}","g"),l)}});c=d.create("div",null,f);n=d.select(".mceTmpl",c);if(n&&n.length>0){c=d.create("div",null);c.appendChild(n[0].cloneNode(true))}function e(l,h){return new RegExp("\\b"+h+"\\b","g").test(l.className)}a(d.select("*",c),function(h){if(e(h,g.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_cdate_format",g.getLang("template.cdate_format")))}if(e(h,g.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_mdate_format",g.getLang("template.mdate_format")))}if(e(h,g.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){h.innerHTML=b}});k._replaceVals(c);g.execCommand("mceInsertContent",false,c.innerHTML);g.addVisual()},_replaceVals:function(c){var d=this.editor.dom,b=this.editor.getParam("template_replace_values");a(d.select("*",c),function(f){a(b,function(g,e){if(d.hasClass(f,e)){if(typeof(b[e])=="function"){b[e](f)}}})})},_getDateTime:function(e,b){if(!b){return""}function c(g,d){var f;g=""+g;if(g.length 0) { + el = dom.create('div', null); + el.appendChild(n[0].cloneNode(true)); + } + + function hasClass(n, c) { + return new RegExp('\\b' + c + '\\b', 'g').test(n.className); + }; + + each(dom.select('*', el), function(n) { + // Replace cdate + if (hasClass(n, ed.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|'))) + n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_cdate_format", ed.getLang("template.cdate_format"))); + + // Replace mdate + if (hasClass(n, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) + n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format"))); + + // Replace selection + if (hasClass(n, ed.getParam('template_selected_content_classes', 'selcontent').replace(/\s+/g, '|'))) + n.innerHTML = sel; + }); + + t._replaceVals(el); + + ed.execCommand('mceInsertContent', false, el.innerHTML); + ed.addVisual(); + }, + + _replaceVals : function(e) { + var dom = this.editor.dom, vl = this.editor.getParam('template_replace_values'); + + each(dom.select('*', e), function(e) { + each(vl, function(v, k) { + if (dom.hasClass(e, k)) { + if (typeof(vl[k]) == 'function') + vl[k](e); + } + }); + }); + }, + + _getDateTime : function(d, fmt) { + if (!fmt) + return ""; + + function addZeros(value, len) { + var i; + + value = "" + value; + + if (value.length < len) { + for (i=0; i<(len-value.length); i++) + value = "0" + value; + } + + return value; + } + + fmt = fmt.replace("%D", "%m/%d/%y"); + fmt = fmt.replace("%r", "%I:%M:%S %p"); + fmt = fmt.replace("%Y", "" + d.getFullYear()); + fmt = fmt.replace("%y", "" + d.getYear()); + fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2)); + fmt = fmt.replace("%d", addZeros(d.getDate(), 2)); + fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2)); + fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2)); + fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2)); + fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1)); + fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM")); + fmt = fmt.replace("%B", "" + this.editor.getLang("template_months_long").split(',')[d.getMonth()]); + fmt = fmt.replace("%b", "" + this.editor.getLang("template_months_short").split(',')[d.getMonth()]); + fmt = fmt.replace("%A", "" + this.editor.getLang("template_day_long").split(',')[d.getDay()]); + fmt = fmt.replace("%a", "" + this.editor.getLang("template_day_short").split(',')[d.getDay()]); + fmt = fmt.replace("%%", "%"); + + return fmt; + } + }); + + // Register plugin + tinymce.PluginManager.add('template', tinymce.plugins.TemplatePlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/template/js/template.js b/sn_computer/html/tiny_mce/plugins/template/js/template.js new file mode 100644 index 0000000..7eab2eb --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/template/js/template.js @@ -0,0 +1,106 @@ +tinyMCEPopup.requireLangPack(); + +var TemplateDialog = { + preInit : function() { + var url = tinyMCEPopup.getParam("template_external_list_url"); + + if (url != null) + document.write(''); + }, + + init : function() { + var ed = tinyMCEPopup.editor, tsrc, sel, x, u; + + tsrc = ed.getParam("template_templates", false); + sel = document.getElementById('tpath'); + + // Setup external template list + if (!tsrc && typeof(tinyMCETemplateList) != 'undefined') { + for (x=0, tsrc = []; x'); + }); + }, + + selectTemplate : function(u, ti) { + var d = window.frames['templatesrc'].document, x, tsrc = this.tsrc; + + if (!u) + return; + + d.body.innerHTML = this.templateHTML = this.getFileContents(u); + + for (x=0; x + + {#template_dlg.title} + + + + + +
    +
    +
    {#template_dlg.desc}
    +
    + +
    +
    +
    +
    + {#template_dlg.preview} + +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/visualchars/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/visualchars/editor_plugin.js new file mode 100644 index 0000000..53d31c4 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/visualchars/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state){c.state=true;c._toggleVisualChars()}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(){var m=this,g=m.editor,a,e,f,k=g.getDoc(),l=g.getBody(),j,n=g.selection,c;m.state=!m.state;g.controlManager.setActive("visualchars",m.state);if(m.state){a=[];tinymce.walk(l,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(e=0;e$1');j=j.replace(/\u00a0/g,"\u00b7");g.dom.setOuterHTML(a[e],j,k)}}else{a=tinymce.grep(g.dom.select("span",l),function(b){return g.dom.hasClass(b,"mceVisualNbsp")});for(e=0;e$1'); + nv = nv.replace(/\u00a0/g, '\u00b7'); + ed.dom.setOuterHTML(nl[i], nv, d); + } + } else { + nl = tinymce.grep(ed.dom.select('span', b), function(n) { + return ed.dom.hasClass(n, 'mceVisualNbsp'); + }); + + for (i=0; i0')}}else{tinymce.DOM.add(h,"span",{},'0')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_count:function(b){var c=this,a=0;if(c.block){return}c.block=1;setTimeout(function(){var d=b.getContent({format:"raw"});if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");d=d.replace(c.cleanre,"");d.replace(c.countre,function(){a++})}tinymce.DOM.setHTML(c.id,a.toString());setTimeout(function(){c.block=0},2000)},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/wordcount/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/wordcount/editor_plugin_src.js new file mode 100644 index 0000000..36ffe89 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/wordcount/editor_plugin_src.js @@ -0,0 +1,98 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.WordCount', { + block : 0, + id : null, + countre : null, + cleanre : null, + + init : function(ed, url) { + var t = this, last = 0; + + t.countre = ed.getParam('wordcount_countregex', /\S\s+/g); + t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$¿'"_+=\\/-]*/g); + t.id = ed.id + '-word-count'; + + ed.onPostRender.add(function(ed, cm) { + var row, id; + + // Add it to the specified id or the theme advanced path + id = ed.getParam('wordcount_target_id'); + if (!id) { + row = tinymce.DOM.get(ed.id + '_path_row'); + + if (row) + tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '0'); + } else + tinymce.DOM.add(id, 'span', {}, '0'); + }); + + ed.onInit.add(function(ed) { + ed.selection.onSetContent.add(function() { + t._count(ed); + }); + + t._count(ed); + }); + + ed.onSetContent.add(function(ed) { + t._count(ed); + }); + + ed.onKeyUp.add(function(ed, e) { + if (e.keyCode == last) + return; + + if (13 == e.keyCode || 8 == last || 46 == last) + t._count(ed); + + last = e.keyCode; + }); + }, + + _count : function(ed) { + var t = this, tc = 0; + + // Keep multiple calls from happening at the same time + if (t.block) + return; + + t.block = 1; + + setTimeout(function() { + var tx = ed.getContent({format : 'raw'}); + + if (tx) { + tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/ | /gi, ' '); // remove html tags and space chars + tx = tx.replace(t.cleanre, ''); // remove numbers and punctuation + tx.replace(t.countre, function() {tc++;}); // count the words + } + + tinymce.DOM.setHTML(t.id, tc.toString()); + + setTimeout(function() {t.block = 0;}, 2000); + }, 1); + }, + + getInfo: function() { + return { + longname : 'Word Count plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount); +})(); diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/abbr.htm b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/abbr.htm new file mode 100644 index 0000000..0282fff --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/abbr.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_abbr_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/acronym.htm b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/acronym.htm new file mode 100644 index 0000000..e0ed031 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/acronym.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_acronym_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/attributes.htm b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/attributes.htm new file mode 100644 index 0000000..fc5ba97 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/attributes.htm @@ -0,0 +1,148 @@ + + + + {#xhtmlxtras_dlg.attribs_title} + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.attribute_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.attribute_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/cite.htm b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/cite.htm new file mode 100644 index 0000000..b23becc --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/cite.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_cite_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/css/attributes.css new file mode 100644 index 0000000..85b1b37 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/css/attributes.css @@ -0,0 +1,11 @@ +.panel_wrapper div.current { + height: 290px; +} + +#id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { + width: 200px; +} + +#events_panel input { + width: 200px; +} diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/css/popup.css b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/css/popup.css new file mode 100644 index 0000000..034b985 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/css/popup.css @@ -0,0 +1,9 @@ +input.field, select.field {width:200px;} +input.picker {width:179px; margin-left: 5px;} +input.disabled {border-color:#F2F2F2;} +img.picker {vertical-align:text-bottom; cursor:pointer;} +h1 {padding: 0 0 5px 0;} +.panel_wrapper div.current {height:160px;} +#xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;} +a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;} +#datetime {width:180px;} diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/del.htm b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/del.htm new file mode 100644 index 0000000..bc80944 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/del.htm @@ -0,0 +1,161 @@ + + + + {#xhtmlxtras_dlg.title_del_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
    : + + + + + +
    +
    :
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/editor_plugin.js new file mode 100644 index 0000000..e519526 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(b,c){b.addCommand("mceCite",function(){b.windowManager.open({file:c+"/cite.htm",width:350+parseInt(b.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:c})});b.addCommand("mceAcronym",function(){b.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAbbr",function(){b.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceDel",function(){b.windowManager.open({file:c+"/del.htm",width:340+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceIns",function(){b.windowManager.open({file:c+"/ins.htm",width:340+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAttributes",function(){b.windowManager.open({file:c+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:c})});b.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});b.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});b.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});b.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});b.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});b.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function a(d,e){if(e.set){e.content=e.content.replace(/]+)>/gi,"");e.content=e.content.replace(/<\/abbr>/gi,"")}}b.onBeforeSetContent.add(a);b.onPostProcess.add(a)}b.onNodeChange.add(function(e,d,g,f){g=e.dom.getParent(g,"CITE,ACRONYM,ABBR,DEL,INS");d.setDisabled("cite",f);d.setDisabled("acronym",f);d.setDisabled("abbr",f);d.setDisabled("del",f);d.setDisabled("ins",f);d.setDisabled("attribs",g&&g.nodeName=="BODY");d.setActive("cite",0);d.setActive("acronym",0);d.setActive("abbr",0);d.setActive("del",0);d.setActive("ins",0);if(g){do{d.setDisabled(g.nodeName.toLowerCase(),0);d.setActive(g.nodeName.toLowerCase(),1)}while(g=g.parentNode)}});b.onPreInit.add(function(){b.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js new file mode 100644 index 0000000..ceac275 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js @@ -0,0 +1,144 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceCite', function() { + ed.windowManager.open({ + file : url + '/cite.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.cite_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.cite_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAcronym', function() { + ed.windowManager.open({ + file : url + '/acronym.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAbbr', function() { + ed.windowManager.open({ + file : url + '/abbr.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceDel', function() { + ed.windowManager.open({ + file : url + '/del.htm', + width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), + height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceIns', function() { + ed.windowManager.open({ + file : url + '/ins.htm', + width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), + height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAttributes', function() { + ed.windowManager.open({ + file : url + '/attributes.htm', + width : 380, + height : 370, + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('cite', {title : 'xhtmlxtras.cite_desc', cmd : 'mceCite'}); + ed.addButton('acronym', {title : 'xhtmlxtras.acronym_desc', cmd : 'mceAcronym'}); + ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'}); + ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'}); + ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'}); + ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'}); + + if (tinymce.isIE) { + function fix(ed, o) { + if (o.set) { + o.content = o.content.replace(/]+)>/gi, ''); + o.content = o.content.replace(/<\/abbr>/gi, ''); + } + }; + + ed.onBeforeSetContent.add(fix); + ed.onPostProcess.add(fix); + } + + ed.onNodeChange.add(function(ed, cm, n, co) { + n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS'); + + cm.setDisabled('cite', co); + cm.setDisabled('acronym', co); + cm.setDisabled('abbr', co); + cm.setDisabled('del', co); + cm.setDisabled('ins', co); + cm.setDisabled('attribs', n && n.nodeName == 'BODY'); + cm.setActive('cite', 0); + cm.setActive('acronym', 0); + cm.setActive('abbr', 0); + cm.setActive('del', 0); + cm.setActive('ins', 0); + + // Activate all + if (n) { + do { + cm.setDisabled(n.nodeName.toLowerCase(), 0); + cm.setActive(n.nodeName.toLowerCase(), 1); + } while (n = n.parentNode); + } + }); + + ed.onPreInit.add(function() { + // Fixed IE issue where it can't handle these elements correctly + ed.dom.create('abbr'); + }); + }, + + getInfo : function() { + return { + longname : 'XHTML Xtras Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('xhtmlxtras', tinymce.plugins.XHTMLXtrasPlugin); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/ins.htm b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/ins.htm new file mode 100644 index 0000000..9448d67 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/ins.htm @@ -0,0 +1,161 @@ + + + + {#xhtmlxtras_dlg.title_ins_element} + + + + + + + + + +
    + + +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
    : + + + + + +
    +
    :
    +
    +
    + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    : + +
    :
    : + +
    : + +
    +
    +
    +
    +
    + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    :
    +
    +
    +
    +
    + + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/abbr.js new file mode 100644 index 0000000..1790e83 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/abbr.js @@ -0,0 +1,28 @@ +/** + * abbr.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('abbr'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAbbr() { + SXE.insertElement('abbr'); + tinyMCEPopup.close(); +} + +function removeAbbr() { + SXE.removeElement('abbr'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/acronym.js new file mode 100644 index 0000000..93b8d25 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/acronym.js @@ -0,0 +1,28 @@ +/** + * acronym.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('acronym'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAcronym() { + SXE.insertElement('acronym'); + tinyMCEPopup.close(); +} + +function removeAcronym() { + SXE.removeElement('acronym'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/attributes.js new file mode 100644 index 0000000..c7e0e7f --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/attributes.js @@ -0,0 +1,126 @@ +/** + * attributes.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + tinyMCEPopup.resizeToInnerSize(); + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + var elm = inst.selection.getNode(); + var f = document.forms[0]; + var onclick = dom.getAttrib(elm, 'onclick'); + + setFormValue('title', dom.getAttrib(elm, 'title')); + setFormValue('id', dom.getAttrib(elm, 'id')); + setFormValue('style', dom.getAttrib(elm, "style")); + setFormValue('dir', dom.getAttrib(elm, 'dir')); + setFormValue('lang', dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('onfocus', dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup')); + className = dom.getAttrib(elm, 'class'); + + addClassesToList('classlist', 'advlink_styles'); + selectByValue(f, 'classlist', className, true); + + TinyMCE_EditableSelects.init(); +} + +function setFormValue(name, value) { + if(value && document.forms[0].elements[name]){ + document.forms[0].elements[name].value = value; + } +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + setAllAttribs(elm); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); +} + +function setAttrib(elm, attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib.toLowerCase()]; + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value != "") { + dom.setAttrib(elm, attrib.toLowerCase(), value); + + if (attrib == "style") + attrib = "style.cssText"; + + if (attrib.substring(0, 2) == 'on') + value = 'return true;' + value; + + if (attrib == "class") + attrib = "className"; + + elm[attrib]=value; + } else + elm.removeAttribute(attrib); +} + +function setAllAttribs(elm) { + var f = document.forms[0]; + + setAttrib(elm, 'title'); + setAttrib(elm, 'id'); + setAttrib(elm, 'style'); + setAttrib(elm, 'class', getSelectValue(f, 'classlist')); + setAttrib(elm, 'dir'); + setAttrib(elm, 'lang'); + setAttrib(elm, 'tabindex'); + setAttrib(elm, 'accesskey'); + setAttrib(elm, 'onfocus'); + setAttrib(elm, 'onblur'); + setAttrib(elm, 'onclick'); + setAttrib(elm, 'ondblclick'); + setAttrib(elm, 'onmousedown'); + setAttrib(elm, 'onmouseup'); + setAttrib(elm, 'onmouseover'); + setAttrib(elm, 'onmousemove'); + setAttrib(elm, 'onmouseout'); + setAttrib(elm, 'onkeypress'); + setAttrib(elm, 'onkeydown'); + setAttrib(elm, 'onkeyup'); + + // Refresh in old MSIE +// if (tinyMCE.isMSIE5) +// elm.outerHTML = elm.outerHTML; +} + +function insertAttribute() { + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); +tinyMCEPopup.requireLangPack(); diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/cite.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/cite.js new file mode 100644 index 0000000..b73ef47 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/cite.js @@ -0,0 +1,28 @@ +/** + * cite.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('cite'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertCite() { + SXE.insertElement('cite'); + tinyMCEPopup.close(); +} + +function removeCite() { + SXE.removeElement('cite'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/del.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/del.js new file mode 100644 index 0000000..d5dd8e4 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/del.js @@ -0,0 +1,63 @@ +/** + * del.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('del'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertDel() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL'); + + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('del'); + var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';}); + for (var i=0; i 0) { + tagName = element_name; + + insertInlineElement(element_name); + var elementArray = tinymce.grep(SXE.inst.dom.select(element_name)); + for (var i=0; i -1) ? true : false; +} + +SXE.removeClass = function(elm,cl) { + if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) { + return true; + } + var classNames = elm.className.split(" "); + var newClassNames = ""; + for (var x = 0, cnl = classNames.length; x < cnl; x++) { + if (classNames[x] != cl) { + newClassNames += (classNames[x] + " "); + } + } + elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end +} + +SXE.addClass = function(elm,cl) { + if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl; + return true; +} + +function insertInlineElement(en) { + var ed = tinyMCEPopup.editor, dom = ed.dom; + + ed.getDoc().execCommand('FontName', false, 'mceinline'); + tinymce.each(dom.select('span,font'), function(n) { + if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') + dom.replace(dom.create(en, {_mce_new : 1}), n, 1); + }); +} diff --git a/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/ins.js b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/ins.js new file mode 100644 index 0000000..8d29d53 --- /dev/null +++ b/sn_computer/html/tiny_mce/plugins/xhtmlxtras/js/ins.js @@ -0,0 +1,62 @@ +/** + * ins.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('ins'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertIns() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS'); + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('INS'); + var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';}); + for (var i=0; i + + + {#advanced_dlg.about_title} + + + + + + + +
    +
    +

    {#advanced_dlg.about_title}

    +

    Version: ()

    +

    TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL + by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

    +

    Copyright © 2003-2008, Moxiecode Systems AB, All rights reserved.

    +

    For more information about this software visit the TinyMCE website.

    + +
    + Got Moxie? + Hosted By Sourceforge + Also on freshmeat +
    +
    + +
    +
    +

    {#advanced_dlg.about_loaded}

    + +
    +
    + +

     

    +
    +
    + +
    +
    +
    +
    + +
    + +
    + + diff --git a/sn_computer/html/tiny_mce/themes/advanced/anchor.htm b/sn_computer/html/tiny_mce/themes/advanced/anchor.htm new file mode 100644 index 0000000..9c70f9b --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/anchor.htm @@ -0,0 +1,26 @@ + + + + {#advanced_dlg.anchor_title} + + + + +
    + + + + + + + + +
    {#advanced_dlg.anchor_title}
    {#advanced_dlg.anchor_name}:
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/themes/advanced/charmap.htm b/sn_computer/html/tiny_mce/themes/advanced/charmap.htm new file mode 100644 index 0000000..c36c237 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/charmap.htm @@ -0,0 +1,52 @@ + + + + {#advanced_dlg.charmap_title} + + + + + + + + + + + + + + + +
    {#advanced_dlg.charmap_title}
    + + + + + + + + + +
     
     
    +
    + + + + + + + + + + + + + + + + +
    HTML-Code
     
     
    NUM-Code
     
    +
    + + + diff --git a/sn_computer/html/tiny_mce/themes/advanced/color_picker.htm b/sn_computer/html/tiny_mce/themes/advanced/color_picker.htm new file mode 100644 index 0000000..148550f --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/color_picker.htm @@ -0,0 +1,73 @@ + + + + {#advanced_dlg.colorpicker_title} + + + + + +
    + + +
    +
    +
    + {#advanced_dlg.colorpicker_picker_title} +
    + + +
    + +
    + +
    +
    +
    +
    + +
    +
    + {#advanced_dlg.colorpicker_palette_title} +
    + +
    + +
    +
    +
    + +
    +
    + {#advanced_dlg.colorpicker_named_title} +
    + +
    + +
    + +
    + {#advanced_dlg.colorpicker_name} +
    +
    +
    +
    + +
    + + +
    + +
    + +
    +
    +
    + + diff --git a/sn_computer/html/tiny_mce/themes/advanced/editor_template.js b/sn_computer/html/tiny_mce/themes/advanced/editor_template.js new file mode 100644 index 0000000..008b995 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/editor_template.js @@ -0,0 +1 @@ +(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l)}if(j.settings.content_css!==false){j.dom.loadCSS(j.baseURI.toAbsolute("themes/advanced/skins/"+j.settings.skin+"/content.css"))}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();p=i.formatter.matchAll(n);if(p[0]==o){i.formatter.remove(o)}else{i.formatter.apply(o)}return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){i.execCommand("FontName",false,l);return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){if(i["class"]){k.focus();k.formatter.toggle("fontsize_class",{value:i["class"]})}else{k.execCommand("FontSize",false,i.fontSize)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",cmd:"FormatBlock"});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;m=j=d.create("span",{id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=d.stdMode?u.getElementsByTagName("tr"):u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},""),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_tbl");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,l){var j=this.editor,k=this.settings,m=d.get(j.id+"_tbl"),n=d.get(j.id+"_ifr");i=Math.max(k.theme_advanced_resizing_min_width||100,i);l=Math.max(k.theme_advanced_resizing_min_height||100,l);i=Math.min(k.theme_advanced_resizing_max_width||65535,i);l=Math.min(k.theme_advanced_resizing_max_height||65535,l);d.setStyle(m,"height","");d.setStyle(n,"height",l);if(k.theme_advanced_resize_horizontal){d.setStyle(m,"width","");d.setStyle(n,"width",i);if(i"))}q.push(d.createHTML("a",{href:"#",accesskey:"q",title:r.getLang("advanced.toolbar_focus")},""));for(p=1;(y=A["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(A["theme_advanced_buttons"+p+"_add"]){y+=","+A["theme_advanced_buttons"+p+"_add"]}if(A["theme_advanced_buttons"+p+"_add_before"]){y=A["theme_advanced_buttons"+p+"_add_before"]+","+y}z._addControls(y,m);q.push(m.renderHTML());k.deltaHeight-=A.theme_advanced_row_height}q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},""));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row"},w.theme_advanced_path?p.translate("advanced.path")+": ":" ");d.add(k,"a",{href:"#",accesskey:"x"});if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);if(w.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+p.id+"_size",{cw:n,ch:E})}}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_nodeChanged:function(r,z,l,x,j){var C=this,i,y=0,B,u,D=C.settings,A,k,w,m,q;e.each(C.stateControls,function(n){z.setActive(n,r.queryCommandState(C.controls[n][1]))});function o(p){var s,n=j.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s= 1 && v <= 7) { + k = v + ' (' + t.sizes[v - 1] + 'pt)'; + cl = s.font_size_classes[v - 1]; + v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt'); + } + + if (/^\s*\./.test(v)) + cl = v.replace(/\./g, ''); + + o[k] = cl ? {'class' : cl} : {fontSize : v}; + }); + + s.theme_advanced_font_sizes = o; + } + + if ((v = s.theme_advanced_path_location) && v != 'none') + s.theme_advanced_statusbar_location = s.theme_advanced_path_location; + + if (s.theme_advanced_statusbar_location == 'none') + s.theme_advanced_statusbar_location = 0; + + // Init editor + ed.onInit.add(function() { + if (!ed.settings.readonly) + ed.onNodeChange.add(t._nodeChanged, t); + + if (ed.settings.content_css !== false) + ed.dom.loadCSS(ed.baseURI.toAbsolute("themes/advanced/skins/" + ed.settings.skin + "/content.css")); + }); + + ed.onSetProgressState.add(function(ed, b, ti) { + var co, id = ed.id, tb; + + if (b) { + t.progressTimer = setTimeout(function() { + co = ed.getContainer(); + co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild); + tb = DOM.get(ed.id + '_tbl'); + + DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}}); + DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}}); + }, ti || 0); + } else { + DOM.remove(id + '_blocker'); + DOM.remove(id + '_progress'); + clearTimeout(t.progressTimer); + } + }); + + DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css"); + + if (s.skin_variant) + DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css"); + }, + + createControl : function(n, cf) { + var cd, c; + + if (c = cf.createControl(n)) + return c; + + switch (n) { + case "styleselect": + return this._createStyleSelect(); + + case "formatselect": + return this._createBlockFormats(); + + case "fontselect": + return this._createFontSelect(); + + case "fontsizeselect": + return this._createFontSizeSelect(); + + case "forecolor": + return this._createForeColorMenu(); + + case "backcolor": + return this._createBackColorMenu(); + } + + if ((cd = this.controls[n])) + return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]}); + }, + + execCommand : function(cmd, ui, val) { + var f = this['_' + cmd]; + + if (f) { + f.call(this, ui, val); + return true; + } + + return false; + }, + + _importClasses : function(e) { + var ed = this.editor, ctrl = ed.controlManager.get('styleselect'); + + if (ctrl.getLength() == 0) { + each(ed.dom.getClasses(), function(o, idx) { + var name = 'style_' + idx; + + ed.formatter.register(name, { + inline : 'span', + attributes : {'class' : o['class']}, + selector : '*' + }); + + ctrl.add(o['class'], name); + }); + } + }, + + _createStyleSelect : function(n) { + var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl; + + // Setup style select box + ctrl = ctrlMan.createListBox('styleselect', { + title : 'advanced.style_select', + onselect : function(name) { + var matches, formatNames = []; + + each(ctrl.items, function(item) { + formatNames.push(item.value); + }); + + ed.focus(); + + // Toggle off the current format + matches = ed.formatter.matchAll(formatNames); + if (matches[0] == name) + ed.formatter.remove(name); + else + ed.formatter.apply(name); + + return false; // No auto select + } + }); + + // Handle specified format + ed.onInit.add(function() { + var counter = 0, formats = ed.getParam('style_formats'); + + if (formats) { + each(formats, function(fmt) { + var name, keys = 0; + + each(fmt, function() {keys++;}); + + if (keys > 1) { + name = fmt.name = fmt.name || 'style_' + (counter++); + ed.formatter.register(name, fmt); + ctrl.add(fmt.title, name); + } else + ctrl.add(fmt.title); + }); + } else { + each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) { + var name; + + if (val) { + name = 'style_' + (counter++); + + ed.formatter.register(name, { + inline : 'span', + classes : val, + selector : '*' + }); + + ctrl.add(t.editor.translate(key), name); + } + }); + } + }); + + // Auto import classes if the ctrl box is empty + if (ctrl.getLength() == 0) { + ctrl.onPostRender.add(function(ed, n) { + if (!ctrl.NativeListBox) { + Event.add(n.id + '_text', 'focus', t._importClasses, t); + Event.add(n.id + '_text', 'mousedown', t._importClasses, t); + Event.add(n.id + '_open', 'focus', t._importClasses, t); + Event.add(n.id + '_open', 'mousedown', t._importClasses, t); + } else + Event.add(n.id, 'focus', t._importClasses, t); + }); + } + + return ctrl; + }, + + _createFontSelect : function() { + var c, t = this, ed = t.editor; + + c = ed.controlManager.createListBox('fontselect', { + title : 'advanced.fontdefault', + onselect : function(v) { + ed.execCommand('FontName', false, v); + return false; // No auto select + } + }); + + if (c) { + each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) { + c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''}); + }); + } + + return c; + }, + + _createFontSizeSelect : function() { + var t = this, ed = t.editor, c, i = 0, cl = []; + + c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) { + if (v['class']) { + ed.focus(); + ed.formatter.toggle('fontsize_class', {value : v['class']}); + } else + ed.execCommand('FontSize', false, v.fontSize); + + return false; // No auto select + }}); + + if (c) { + each(t.settings.theme_advanced_font_sizes, function(v, k) { + var fz = v.fontSize; + + if (fz >= 1 && fz <= 7) + fz = t.sizes[parseInt(fz) - 1] + 'pt'; + + c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))}); + }); + } + + return c; + }, + + _createBlockFormats : function() { + var c, fmts = { + p : 'advanced.paragraph', + address : 'advanced.address', + pre : 'advanced.pre', + h1 : 'advanced.h1', + h2 : 'advanced.h2', + h3 : 'advanced.h3', + h4 : 'advanced.h4', + h5 : 'advanced.h5', + h6 : 'advanced.h6', + div : 'advanced.div', + blockquote : 'advanced.blockquote', + code : 'advanced.code', + dt : 'advanced.dt', + dd : 'advanced.dd', + samp : 'advanced.samp' + }, t = this; + + c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', cmd : 'FormatBlock'}); + if (c) { + each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) { + c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v}); + }); + } + + return c; + }, + + _createForeColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_text_colors) + o.colors = v; + + if (s.theme_advanced_default_foreground_color) + o.default_color = s.theme_advanced_default_foreground_color; + + o.title = 'advanced.forecolor_desc'; + o.cmd = 'ForeColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('forecolor', o); + + return c; + }, + + _createBackColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_background_colors) + o.colors = v; + + if (s.theme_advanced_default_background_color) + o.default_color = s.theme_advanced_default_background_color; + + o.title = 'advanced.backcolor_desc'; + o.cmd = 'HiliteColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('backcolor', o); + + return c; + }, + + renderUI : function(o) { + var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl; + + n = p = DOM.create('span', {id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '')}); + + if (!DOM.boxModel) + n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'}); + + n = sc = DOM.add(n, 'table', {id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0}); + n = tb = DOM.add(n, 'tbody'); + + switch ((s.theme_advanced_layout_manager || '').toLowerCase()) { + case "rowlayout": + ic = t._rowLayout(s, tb, o); + break; + + case "customlayout": + ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p); + break; + + default: + ic = t._simpleLayout(s, tb, o, p); + } + + n = o.targetNode; + + // Add classes to first and last TRs + nl = DOM.stdMode ? sc.getElementsByTagName('tr') : sc.rows; // Quick fix for IE 8 + DOM.addClass(nl[0], 'mceFirst'); + DOM.addClass(nl[nl.length - 1], 'mceLast'); + + // Add classes to first and last TDs + each(DOM.select('tr', tb), function(n) { + DOM.addClass(n.firstChild, 'mceFirst'); + DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast'); + }); + + if (DOM.get(s.theme_advanced_toolbar_container)) + DOM.get(s.theme_advanced_toolbar_container).appendChild(p); + else + DOM.insertAfter(p, n); + + Event.add(ed.id + '_path_row', 'click', function(e) { + e = e.target; + + if (e.nodeName == 'A') { + t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1')); + + return Event.cancel(e); + } + }); +/* + if (DOM.get(ed.id + '_path_row')) { + Event.add(ed.id + '_tbl', 'mouseover', function(e) { + var re; + + e = e.target; + + if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) { + re = DOM.get(ed.id + '_path_row'); + t.lastPath = re.innerHTML; + DOM.setHTML(re, e.parentNode.title); + } + }); + + Event.add(ed.id + '_tbl', 'mouseout', function(e) { + if (t.lastPath) { + DOM.setHTML(ed.id + '_path_row', t.lastPath); + t.lastPath = 0; + } + }); + } +*/ + + if (!ed.getParam('accessibility_focus')) + Event.add(DOM.add(p, 'a', {href : '#'}, ''), 'focus', function() {tinyMCE.get(ed.id).focus();}); + + if (s.theme_advanced_toolbar_location == 'external') + o.deltaHeight = 0; + + t.deltaHeight = o.deltaHeight; + o.targetNode = null; + + return { + iframeContainer : ic, + editorContainer : ed.id + '_parent', + sizeContainer : sc, + deltaHeight : o.deltaHeight + }; + }, + + getInfo : function() { + return { + longname : 'Advanced theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + }, + + resizeBy : function(dw, dh) { + var e = DOM.get(this.editor.id + '_tbl'); + + this.resizeTo(e.clientWidth + dw, e.clientHeight + dh); + }, + + resizeTo : function(w, h) { + var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr'); + + // Boundery fix box + w = Math.max(s.theme_advanced_resizing_min_width || 100, w); + h = Math.max(s.theme_advanced_resizing_min_height || 100, h); + w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w); + h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h); + + // Resize iframe and container + DOM.setStyle(e, 'height', ''); + DOM.setStyle(ifr, 'height', h); + + if (s.theme_advanced_resize_horizontal) { + DOM.setStyle(e, 'width', ''); + DOM.setStyle(ifr, 'width', w); + + // Make sure that the size is never smaller than the over all ui + if (w < e.clientWidth) + DOM.setStyle(ifr, 'width', e.clientWidth); + } + }, + + destroy : function() { + var id = this.editor.id; + + Event.clear(id + '_resize'); + Event.clear(id + '_path_row'); + Event.clear(id + '_external_close'); + }, + + // Internal functions + + _simpleLayout : function(s, tb, o, p) { + var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c; + + if (s.readonly) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + return ic; + } + + // Create toolbar container at top + if (lo == 'top') + t._addToolbars(tb, o); + + // Create external toolbar + if (lo == 'external') { + n = c = DOM.create('div', {style : 'position:relative'}); + n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'}); + DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'}); + n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0}); + etb = DOM.add(n, 'tbody'); + + if (p.firstChild.className == 'mceOldBoxModel') + p.firstChild.appendChild(c); + else + p.insertBefore(c, p.firstChild); + + t._addToolbars(etb, o); + + ed.onMouseUp.add(function() { + var e = DOM.get(ed.id + '_external'); + DOM.show(e); + + DOM.hide(lastExtID); + + var f = Event.add(ed.id + '_external_close', 'click', function() { + DOM.hide(ed.id + '_external'); + Event.remove(ed.id + '_external_close', 'click', f); + }); + + DOM.show(e); + DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1); + + // Fixes IE rendering bug + DOM.hide(e); + DOM.show(e); + e.style.filter = ''; + + lastExtID = ed.id + '_external'; + + e = null; + }); + } + + if (sl == 'top') + t._addStatusBar(tb, o); + + // Create iframe container + if (!s.theme_advanced_toolbar_container) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + } + + // Create toolbar container at bottom + if (lo == 'bottom') + t._addToolbars(tb, o); + + if (sl == 'bottom') + t._addStatusBar(tb, o); + + return ic; + }, + + _rowLayout : function(s, tb, o) { + var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a; + + dc = s.theme_advanced_containers_default_class || ''; + da = s.theme_advanced_containers_default_align || 'center'; + + each(explode(s.theme_advanced_containers || ''), function(c, i) { + var v = s['theme_advanced_container_' + c] || ''; + + switch (v.toLowerCase()) { + case 'mceeditor': + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + break; + + case 'mceelementpath': + t._addStatusBar(tb, o); + break; + + default: + a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(tb, 'tr'), 'td', { + 'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da + }); + + to = cf.createToolbar("toolbar" + i); + t._addControls(v, to); + DOM.setHTML(n, to.renderHTML()); + o.deltaHeight -= s.theme_advanced_row_height; + } + }); + + return ic; + }, + + _addControls : function(v, tb) { + var t = this, s = t.settings, di, cf = t.editor.controlManager; + + if (s.theme_advanced_disable && !t._disabled) { + di = {}; + + each(explode(s.theme_advanced_disable), function(v) { + di[v] = 1; + }); + + t._disabled = di; + } else + di = t._disabled; + + each(explode(v), function(n) { + var c; + + if (di && di[n]) + return; + + // Compatiblity with 2.x + if (n == 'tablecontrols') { + each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) { + n = t.createControl(n, cf); + + if (n) + tb.add(n); + }); + + return; + } + + c = t.createControl(n, cf); + + if (c) + tb.add(c); + }); + }, + + _addToolbars : function(c, o) { + var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a; + + a = s.theme_advanced_toolbar_align.toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar ' + a}); + + if (!ed.getParam('accessibility_focus')) + h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '')); + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '')); + + // Create toolbar and add the controls + for (i=1; (v = s['theme_advanced_buttons' + i]); i++) { + tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i}); + + if (s['theme_advanced_buttons' + i + '_add']) + v += ',' + s['theme_advanced_buttons' + i + '_add']; + + if (s['theme_advanced_buttons' + i + '_add_before']) + v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v; + + t._addControls(v, tb); + + //n.appendChild(n = tb.render()); + h.push(tb.renderHTML()); + + o.deltaHeight -= s.theme_advanced_row_height; + } + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '')); + DOM.setHTML(n, h.join('')); + }, + + _addStatusBar : function(tb, o) { + var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td; + + n = DOM.add(tb, 'tr'); + n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'}); + n = DOM.add(n, 'div', {id : ed.id + '_path_row'}, s.theme_advanced_path ? ed.translate('advanced.path') + ': ' : ' '); + DOM.add(n, 'a', {href : '#', accesskey : 'x'}); + + if (s.theme_advanced_resizing) { + DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize'}); + + if (s.theme_advanced_resizing_use_cookie) { + ed.onPostRender.add(function() { + var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl'); + + if (!o) + return; + + t.resizeTo(o.cw, o.ch); + }); + } + + ed.onPostRender.add(function() { + Event.add(ed.id + '_resize', 'mousedown', function(e) { + var mouseMoveHandler1, mouseMoveHandler2, + mouseUpHandler1, mouseUpHandler2, + startX, startY, startWidth, startHeight, width, height, ifrElm; + + function resizeOnMove(e) { + width = startWidth + (e.screenX - startX); + height = startHeight + (e.screenY - startY); + + t.resizeTo(width, height); + }; + + function endResize(e) { + // Stop listening + Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1); + Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2); + Event.remove(DOM.doc, 'mouseup', mouseUpHandler1); + Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2); + + // Store away the size + if (s.theme_advanced_resizing_use_cookie) { + Cookie.setHash("TinyMCE_" + ed.id + "_size", { + cw : width, + ch : height + }); + } + }; + + e.preventDefault(); + + // Get the current rect size + startX = e.screenX; + startY = e.screenY; + ifrElm = DOM.get(t.editor.id + '_ifr'); + startWidth = width = ifrElm.clientWidth; + startHeight = height = ifrElm.clientHeight; + + // Register envent handlers + mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove); + mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove); + mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize); + mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize); + }); + }); + } + + o.deltaHeight -= 21; + n = tb = null; + }, + + _nodeChanged : function(ed, cm, n, co, ob) { + var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, formatNames, matches; + + tinymce.each(t.stateControls, function(c) { + cm.setActive(c, ed.queryCommandState(t.controls[c][1])); + }); + + function getParent(name) { + var i, parents = ob.parents, func = name; + + if (typeof(name) == 'string') { + func = function(node) { + return node.nodeName == name; + }; + } + + for (i = 0; i < parents.length; i++) { + if (func(parents[i])) + return parents[i]; + } + }; + + cm.setActive('visualaid', ed.hasVisual); + cm.setDisabled('undo', !ed.undoManager.hasUndo() && !ed.typing); + cm.setDisabled('redo', !ed.undoManager.hasRedo()); + cm.setDisabled('outdent', !ed.queryCommandState('Outdent')); + + p = getParent('A'); + if (c = cm.get('link')) { + if (!p || !p.name) { + c.setDisabled(!p && co); + c.setActive(!!p); + } + } + + if (c = cm.get('unlink')) { + c.setDisabled(!p && co); + c.setActive(!!p && !p.name); + } + + if (c = cm.get('anchor')) { + c.setActive(!!p && p.name); + } + + p = getParent('IMG'); + if (c = cm.get('image')) + c.setActive(!!p && n.className.indexOf('mceItem') == -1); + + if (c = cm.get('styleselect')) { + t._importClasses(); + + formatNames = []; + each(c.items, function(item) { + formatNames.push(item.value); + }); + + matches = ed.formatter.matchAll(formatNames); + c.select(matches[0]); + } + + if (c = cm.get('formatselect')) { + p = getParent(DOM.isBlock); + + if (p) + c.select(p.nodeName.toLowerCase()); + } + + // Find out current fontSize, fontFamily and fontClass + getParent(function(n) { + if (n.nodeName === 'SPAN') { + if (!cl && n.className) + cl = n.className; + + if (!fz && n.style.fontSize) + fz = n.style.fontSize; + + if (!fn && n.style.fontFamily) + fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase(); + } + + return false; + }); + + if (c = cm.get('fontselect')) { + c.select(function(v) { + return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn; + }); + } + + // Select font size + if (c = cm.get('fontsizeselect')) { + // Use computed style + if (s.theme_advanced_runtime_fontsize && !fz && !cl) + fz = ed.dom.getStyle(n, 'fontSize', true); + + c.select(function(v) { + if (v.fontSize && v.fontSize === fz) + return true; + + if (v['class'] && v['class'] === cl) + return true; + }); + } + + if (s.theme_advanced_path && s.theme_advanced_statusbar_location) { + p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'}); + DOM.setHTML(p, ''); + + getParent(function(n) { + var na = n.nodeName.toLowerCase(), u, pi, ti = ''; + + /*if (n.getAttribute('_mce_bogus')) + return; +*/ + // Ignore non element and hidden elements + if (n.nodeType != 1 || n.nodeName === 'BR' || (DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))) + return; + + // Fake name + if (v = DOM.getAttrib(n, 'mce_name')) + na = v; + + // Handle prefix + if (tinymce.isIE && n.scopeName !== 'HTML') + na = n.scopeName + ':' + na; + + // Remove internal prefix + na = na.replace(/mce\:/g, ''); + + // Handle node name + switch (na) { + case 'b': + na = 'strong'; + break; + + case 'i': + na = 'em'; + break; + + case 'img': + if (v = DOM.getAttrib(n, 'src')) + ti += 'src: ' + v + ' '; + + break; + + case 'a': + if (v = DOM.getAttrib(n, 'name')) { + ti += 'name: ' + v + ' '; + na += '#' + v; + } + + if (v = DOM.getAttrib(n, 'href')) + ti += 'href: ' + v + ' '; + + break; + + case 'font': + if (v = DOM.getAttrib(n, 'face')) + ti += 'font: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'size')) + ti += 'size: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'color')) + ti += 'color: ' + v + ' '; + + break; + + case 'span': + if (v = DOM.getAttrib(n, 'style')) + ti += 'style: ' + v + ' '; + + break; + } + + if (v = DOM.getAttrib(n, 'id')) + ti += 'id: ' + v + ' '; + + if (v = n.className) { + v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '') + + if (v) { + ti += 'class: ' + v + ' '; + + if (DOM.isBlock(n) || na == 'img' || na == 'span') + na += '.' + v; + } + } + + na = na.replace(/(html:)/g, ''); + na = {name : na, node : n, title : ti}; + t.onResolveName.dispatch(t, na); + ti = na.title; + na = na.name; + + //u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');"; + pi = DOM.create('a', {'href' : "javascript:;", onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na); + + if (p.hasChildNodes()) { + p.insertBefore(DOM.doc.createTextNode(' \u00bb '), p.firstChild); + p.insertBefore(pi, p.firstChild); + } else + p.appendChild(pi); + }, ed.getBody()); + } + }, + + // Commands gets called by execCommand + + _sel : function(v) { + this.editor.execCommand('mceSelectNodeDepth', false, v); + }, + + _mceInsertAnchor : function(ui, v) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/anchor.htm', + width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)), + height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceCharMap : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/charmap.htm', + width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceHelp : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/about.htm', + width : 480, + height : 380, + inline : true + }, { + theme_url : this.url + }); + }, + + _mceColorPicker : function(u, v) { + var ed = this.editor; + + v = v || {}; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/color_picker.htm', + width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)), + close_previous : false, + inline : true + }, { + input_color : v.color, + func : v.func, + theme_url : this.url + }); + }, + + _mceCodeEditor : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/source_editor.htm', + width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)), + height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)), + inline : true, + resizable : true, + maximizable : true + }, { + theme_url : this.url + }); + }, + + _mceImage : function(ui, val) { + var ed = this.editor; + + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/image.htm', + width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)), + height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceLink : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/link.htm', + width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)), + height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceNewDocument : function() { + var ed = this.editor; + + ed.windowManager.confirm('advanced.newdocument', function(s) { + if (s) + ed.execCommand('mceSetContent', false, ''); + }); + }, + + _mceForeColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.fgColor, + func : function(co) { + t.fgColor = co; + t.editor.execCommand('ForeColor', false, co); + } + }); + }, + + _mceBackColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.bgColor, + func : function(co) { + t.bgColor = co; + t.editor.execCommand('HiliteColor', false, co); + } + }); + }, + + _ufirst : function(s) { + return s.substring(0, 1).toUpperCase() + s.substring(1); + } + }); + + tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme); +}(tinymce)); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/advanced/image.htm b/sn_computer/html/tiny_mce/themes/advanced/image.htm new file mode 100644 index 0000000..98fd2cd --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/image.htm @@ -0,0 +1,80 @@ + + + + {#advanced_dlg.image_title} + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    + x +
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/themes/advanced/img/colorpicker.jpg b/sn_computer/html/tiny_mce/themes/advanced/img/colorpicker.jpg new file mode 100644 index 0000000..b4c542d Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/img/colorpicker.jpg differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/img/icons.gif b/sn_computer/html/tiny_mce/themes/advanced/img/icons.gif new file mode 100644 index 0000000..e46de53 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/img/icons.gif differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/js/about.js b/sn_computer/html/tiny_mce/themes/advanced/js/about.js new file mode 100644 index 0000000..7fc8ba2 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/js/about.js @@ -0,0 +1,72 @@ +tinyMCEPopup.requireLangPack(); + +function init() { + var ed, tcont; + + tinyMCEPopup.resizeToInnerSize(); + ed = tinyMCEPopup.editor; + + // Give FF some time + window.setTimeout(insertHelpIFrame, 10); + + tcont = document.getElementById('plugintablecontainer'); + document.getElementById('plugins_tab').style.display = 'none'; + + var html = ""; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + + tinymce.each(ed.plugins, function(p, n) { + var info; + + if (!p.getInfo) + return; + + html += ''; + + info = p.getInfo(); + + if (info.infourl != null && info.infourl != '') + html += ''; + else + html += ''; + + if (info.authorurl != null && info.authorurl != '') + html += ''; + else + html += ''; + + html += ''; + html += ''; + + document.getElementById('plugins_tab').style.display = ''; + + }); + + html += ''; + html += '
    ' + ed.getLang('advanced_dlg.about_plugin') + '' + ed.getLang('advanced_dlg.about_author') + '' + ed.getLang('advanced_dlg.about_version') + '
    ' + info.longname + '' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
    '; + + tcont.innerHTML = html; + + tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion; + tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate; +} + +function insertHelpIFrame() { + var html; + + if (tinyMCEPopup.getParam('docs_url')) { + html = ''; + document.getElementById('iframecontainer').innerHTML = html; + document.getElementById('help_tab').style.display = 'block'; + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_computer/html/tiny_mce/themes/advanced/js/anchor.js b/sn_computer/html/tiny_mce/themes/advanced/js/anchor.js new file mode 100644 index 0000000..d7a854e --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/js/anchor.js @@ -0,0 +1,37 @@ +tinyMCEPopup.requireLangPack(); + +var AnchorDialog = { + init : function(ed) { + var action, elm, f = document.forms[0]; + + this.editor = ed; + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + v = ed.dom.getAttrib(elm, 'name'); + + if (v) { + this.action = 'update'; + f.anchorName.value = v; + } + + f.insert.value = ed.getLang(elm ? 'update' : 'insert'); + }, + + update : function() { + var ed = this.editor, elm, name = document.forms[0].anchorName.value; + + tinyMCEPopup.restoreSelection(); + + if (this.action != 'update') + ed.selection.collapse(1); + + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + if (elm) + elm.name = name; + else + ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, '')); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog); diff --git a/sn_computer/html/tiny_mce/themes/advanced/js/charmap.js b/sn_computer/html/tiny_mce/themes/advanced/js/charmap.js new file mode 100644 index 0000000..53a2683 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/js/charmap.js @@ -0,0 +1,335 @@ +/** + * charmap.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var charmap = [ + [' ', ' ', true, 'no-break space'], + ['&', '&', true, 'ampersand'], + ['"', '"', true, 'quotation mark'], +// finance + ['¢', '¢', true, 'cent sign'], + ['€', '€', true, 'euro sign'], + ['£', '£', true, 'pound sign'], + ['¥', '¥', true, 'yen sign'], +// signs + ['©', '©', true, 'copyright sign'], + ['®', '®', true, 'registered sign'], + ['™', '™', true, 'trade mark sign'], + ['‰', '‰', true, 'per mille sign'], + ['µ', 'µ', true, 'micro sign'], + ['·', '·', true, 'middle dot'], + ['•', '•', true, 'bullet'], + ['…', '…', true, 'three dot leader'], + ['′', '′', true, 'minutes / feet'], + ['″', '″', true, 'seconds / inches'], + ['§', '§', true, 'section sign'], + ['¶', '¶', true, 'paragraph sign'], + ['ß', 'ß', true, 'sharp s / ess-zed'], +// quotations + ['‹', '‹', true, 'single left-pointing angle quotation mark'], + ['›', '›', true, 'single right-pointing angle quotation mark'], + ['«', '«', true, 'left pointing guillemet'], + ['»', '»', true, 'right pointing guillemet'], + ['‘', '‘', true, 'left single quotation mark'], + ['’', '’', true, 'right single quotation mark'], + ['“', '“', true, 'left double quotation mark'], + ['”', '”', true, 'right double quotation mark'], + ['‚', '‚', true, 'single low-9 quotation mark'], + ['„', '„', true, 'double low-9 quotation mark'], + ['<', '<', true, 'less-than sign'], + ['>', '>', true, 'greater-than sign'], + ['≤', '≤', true, 'less-than or equal to'], + ['≥', '≥', true, 'greater-than or equal to'], + ['–', '–', true, 'en dash'], + ['—', '—', true, 'em dash'], + ['¯', '¯', true, 'macron'], + ['‾', '‾', true, 'overline'], + ['¤', '¤', true, 'currency sign'], + ['¦', '¦', true, 'broken bar'], + ['¨', '¨', true, 'diaeresis'], + ['¡', '¡', true, 'inverted exclamation mark'], + ['¿', '¿', true, 'turned question mark'], + ['ˆ', 'ˆ', true, 'circumflex accent'], + ['˜', '˜', true, 'small tilde'], + ['°', '°', true, 'degree sign'], + ['−', '−', true, 'minus sign'], + ['±', '±', true, 'plus-minus sign'], + ['÷', '÷', true, 'division sign'], + ['⁄', '⁄', true, 'fraction slash'], + ['×', '×', true, 'multiplication sign'], + ['¹', '¹', true, 'superscript one'], + ['²', '²', true, 'superscript two'], + ['³', '³', true, 'superscript three'], + ['¼', '¼', true, 'fraction one quarter'], + ['½', '½', true, 'fraction one half'], + ['¾', '¾', true, 'fraction three quarters'], +// math / logical + ['ƒ', 'ƒ', true, 'function / florin'], + ['∫', '∫', true, 'integral'], + ['∑', '∑', true, 'n-ary sumation'], + ['∞', '∞', true, 'infinity'], + ['√', '√', true, 'square root'], + ['∼', '∼', false,'similar to'], + ['≅', '≅', false,'approximately equal to'], + ['≈', '≈', true, 'almost equal to'], + ['≠', '≠', true, 'not equal to'], + ['≡', '≡', true, 'identical to'], + ['∈', '∈', false,'element of'], + ['∉', '∉', false,'not an element of'], + ['∋', '∋', false,'contains as member'], + ['∏', '∏', true, 'n-ary product'], + ['∧', '∧', false,'logical and'], + ['∨', '∨', false,'logical or'], + ['¬', '¬', true, 'not sign'], + ['∩', '∩', true, 'intersection'], + ['∪', '∪', false,'union'], + ['∂', '∂', true, 'partial differential'], + ['∀', '∀', false,'for all'], + ['∃', '∃', false,'there exists'], + ['∅', '∅', false,'diameter'], + ['∇', '∇', false,'backward difference'], + ['∗', '∗', false,'asterisk operator'], + ['∝', '∝', false,'proportional to'], + ['∠', '∠', false,'angle'], +// undefined + ['´', '´', true, 'acute accent'], + ['¸', '¸', true, 'cedilla'], + ['ª', 'ª', true, 'feminine ordinal indicator'], + ['º', 'º', true, 'masculine ordinal indicator'], + ['†', '†', true, 'dagger'], + ['‡', '‡', true, 'double dagger'], +// alphabetical special chars + ['À', 'À', true, 'A - grave'], + ['Á', 'Á', true, 'A - acute'], + ['Â', 'Â', true, 'A - circumflex'], + ['Ã', 'Ã', true, 'A - tilde'], + ['Ä', 'Ä', true, 'A - diaeresis'], + ['Å', 'Å', true, 'A - ring above'], + ['Æ', 'Æ', true, 'ligature AE'], + ['Ç', 'Ç', true, 'C - cedilla'], + ['È', 'È', true, 'E - grave'], + ['É', 'É', true, 'E - acute'], + ['Ê', 'Ê', true, 'E - circumflex'], + ['Ë', 'Ë', true, 'E - diaeresis'], + ['Ì', 'Ì', true, 'I - grave'], + ['Í', 'Í', true, 'I - acute'], + ['Î', 'Î', true, 'I - circumflex'], + ['Ï', 'Ï', true, 'I - diaeresis'], + ['Ð', 'Ð', true, 'ETH'], + ['Ñ', 'Ñ', true, 'N - tilde'], + ['Ò', 'Ò', true, 'O - grave'], + ['Ó', 'Ó', true, 'O - acute'], + ['Ô', 'Ô', true, 'O - circumflex'], + ['Õ', 'Õ', true, 'O - tilde'], + ['Ö', 'Ö', true, 'O - diaeresis'], + ['Ø', 'Ø', true, 'O - slash'], + ['Œ', 'Œ', true, 'ligature OE'], + ['Š', 'Š', true, 'S - caron'], + ['Ù', 'Ù', true, 'U - grave'], + ['Ú', 'Ú', true, 'U - acute'], + ['Û', 'Û', true, 'U - circumflex'], + ['Ü', 'Ü', true, 'U - diaeresis'], + ['Ý', 'Ý', true, 'Y - acute'], + ['Ÿ', 'Ÿ', true, 'Y - diaeresis'], + ['Þ', 'Þ', true, 'THORN'], + ['à', 'à', true, 'a - grave'], + ['á', 'á', true, 'a - acute'], + ['â', 'â', true, 'a - circumflex'], + ['ã', 'ã', true, 'a - tilde'], + ['ä', 'ä', true, 'a - diaeresis'], + ['å', 'å', true, 'a - ring above'], + ['æ', 'æ', true, 'ligature ae'], + ['ç', 'ç', true, 'c - cedilla'], + ['è', 'è', true, 'e - grave'], + ['é', 'é', true, 'e - acute'], + ['ê', 'ê', true, 'e - circumflex'], + ['ë', 'ë', true, 'e - diaeresis'], + ['ì', 'ì', true, 'i - grave'], + ['í', 'í', true, 'i - acute'], + ['î', 'î', true, 'i - circumflex'], + ['ï', 'ï', true, 'i - diaeresis'], + ['ð', 'ð', true, 'eth'], + ['ñ', 'ñ', true, 'n - tilde'], + ['ò', 'ò', true, 'o - grave'], + ['ó', 'ó', true, 'o - acute'], + ['ô', 'ô', true, 'o - circumflex'], + ['õ', 'õ', true, 'o - tilde'], + ['ö', 'ö', true, 'o - diaeresis'], + ['ø', 'ø', true, 'o slash'], + ['œ', 'œ', true, 'ligature oe'], + ['š', 'š', true, 's - caron'], + ['ù', 'ù', true, 'u - grave'], + ['ú', 'ú', true, 'u - acute'], + ['û', 'û', true, 'u - circumflex'], + ['ü', 'ü', true, 'u - diaeresis'], + ['ý', 'ý', true, 'y - acute'], + ['þ', 'þ', true, 'thorn'], + ['ÿ', 'ÿ', true, 'y - diaeresis'], + ['Α', 'Α', true, 'Alpha'], + ['Β', 'Β', true, 'Beta'], + ['Γ', 'Γ', true, 'Gamma'], + ['Δ', 'Δ', true, 'Delta'], + ['Ε', 'Ε', true, 'Epsilon'], + ['Ζ', 'Ζ', true, 'Zeta'], + ['Η', 'Η', true, 'Eta'], + ['Θ', 'Θ', true, 'Theta'], + ['Ι', 'Ι', true, 'Iota'], + ['Κ', 'Κ', true, 'Kappa'], + ['Λ', 'Λ', true, 'Lambda'], + ['Μ', 'Μ', true, 'Mu'], + ['Ν', 'Ν', true, 'Nu'], + ['Ξ', 'Ξ', true, 'Xi'], + ['Ο', 'Ο', true, 'Omicron'], + ['Π', 'Π', true, 'Pi'], + ['Ρ', 'Ρ', true, 'Rho'], + ['Σ', 'Σ', true, 'Sigma'], + ['Τ', 'Τ', true, 'Tau'], + ['Υ', 'Υ', true, 'Upsilon'], + ['Φ', 'Φ', true, 'Phi'], + ['Χ', 'Χ', true, 'Chi'], + ['Ψ', 'Ψ', true, 'Psi'], + ['Ω', 'Ω', true, 'Omega'], + ['α', 'α', true, 'alpha'], + ['β', 'β', true, 'beta'], + ['γ', 'γ', true, 'gamma'], + ['δ', 'δ', true, 'delta'], + ['ε', 'ε', true, 'epsilon'], + ['ζ', 'ζ', true, 'zeta'], + ['η', 'η', true, 'eta'], + ['θ', 'θ', true, 'theta'], + ['ι', 'ι', true, 'iota'], + ['κ', 'κ', true, 'kappa'], + ['λ', 'λ', true, 'lambda'], + ['μ', 'μ', true, 'mu'], + ['ν', 'ν', true, 'nu'], + ['ξ', 'ξ', true, 'xi'], + ['ο', 'ο', true, 'omicron'], + ['π', 'π', true, 'pi'], + ['ρ', 'ρ', true, 'rho'], + ['ς', 'ς', true, 'final sigma'], + ['σ', 'σ', true, 'sigma'], + ['τ', 'τ', true, 'tau'], + ['υ', 'υ', true, 'upsilon'], + ['φ', 'φ', true, 'phi'], + ['χ', 'χ', true, 'chi'], + ['ψ', 'ψ', true, 'psi'], + ['ω', 'ω', true, 'omega'], +// symbols + ['ℵ', 'ℵ', false,'alef symbol'], + ['ϖ', 'ϖ', false,'pi symbol'], + ['ℜ', 'ℜ', false,'real part symbol'], + ['ϑ','ϑ', false,'theta symbol'], + ['ϒ', 'ϒ', false,'upsilon - hook symbol'], + ['℘', '℘', false,'Weierstrass p'], + ['ℑ', 'ℑ', false,'imaginary part'], +// arrows + ['←', '←', true, 'leftwards arrow'], + ['↑', '↑', true, 'upwards arrow'], + ['→', '→', true, 'rightwards arrow'], + ['↓', '↓', true, 'downwards arrow'], + ['↔', '↔', true, 'left right arrow'], + ['↵', '↵', false,'carriage return'], + ['⇐', '⇐', false,'leftwards double arrow'], + ['⇑', '⇑', false,'upwards double arrow'], + ['⇒', '⇒', false,'rightwards double arrow'], + ['⇓', '⇓', false,'downwards double arrow'], + ['⇔', '⇔', false,'left right double arrow'], + ['∴', '∴', false,'therefore'], + ['⊂', '⊂', false,'subset of'], + ['⊃', '⊃', false,'superset of'], + ['⊄', '⊄', false,'not a subset of'], + ['⊆', '⊆', false,'subset of or equal to'], + ['⊇', '⊇', false,'superset of or equal to'], + ['⊕', '⊕', false,'circled plus'], + ['⊗', '⊗', false,'circled times'], + ['⊥', '⊥', false,'perpendicular'], + ['⋅', '⋅', false,'dot operator'], + ['⌈', '⌈', false,'left ceiling'], + ['⌉', '⌉', false,'right ceiling'], + ['⌊', '⌊', false,'left floor'], + ['⌋', '⌋', false,'right floor'], + ['⟨', '〈', false,'left-pointing angle bracket'], + ['⟩', '〉', false,'right-pointing angle bracket'], + ['◊', '◊', true,'lozenge'], + ['♠', '♠', false,'black spade suit'], + ['♣', '♣', true, 'black club suit'], + ['♥', '♥', true, 'black heart suit'], + ['♦', '♦', true, 'black diamond suit'], + [' ', ' ', false,'en space'], + [' ', ' ', false,'em space'], + [' ', ' ', false,'thin space'], + ['‌', '‌', false,'zero width non-joiner'], + ['‍', '‍', false,'zero width joiner'], + ['‎', '‎', false,'left-to-right mark'], + ['‏', '‏', false,'right-to-left mark'], + ['­', '­', false,'soft hyphen'] +]; + +tinyMCEPopup.onInit.add(function() { + tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML()); +}); + +function renderCharMapHTML() { + var charsPerRow = 20, tdWidth=20, tdHeight=20, i; + var html = ''; + var cols=-1; + + for (i=0; i' + + '' + + charmap[i][1] + + ''; + if ((cols+1) % charsPerRow == 0) + html += ''; + } + } + + if (cols % charsPerRow > 0) { + var padd = charsPerRow - (cols % charsPerRow); + for (var i=0; i '; + } + + html += '
    '; + + return html; +} + +function insertChar(chr) { + tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';'); + + // Refocus in window + if (tinyMCEPopup.isWindow) + window.focus(); + + tinyMCEPopup.editor.focus(); + tinyMCEPopup.close(); +} + +function previewChar(codeA, codeB, codeN) { + var elmA = document.getElementById('codeA'); + var elmB = document.getElementById('codeB'); + var elmV = document.getElementById('codeV'); + var elmN = document.getElementById('codeN'); + + if (codeA=='#160;') { + elmV.innerHTML = '__'; + } else { + elmV.innerHTML = '&' + codeA; + } + + elmB.innerHTML = '&' + codeA; + elmA.innerHTML = '&' + codeB; + elmN.innerHTML = codeN; +} diff --git a/sn_computer/html/tiny_mce/themes/advanced/js/color_picker.js b/sn_computer/html/tiny_mce/themes/advanced/js/color_picker.js new file mode 100644 index 0000000..c1a65db --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/js/color_picker.js @@ -0,0 +1,253 @@ +tinyMCEPopup.requireLangPack(); + +var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false; + +var colors = [ + "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", + "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", + "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff", + "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033", + "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399", + "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff", + "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333", + "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399", + "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff", + "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633", + "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699", + "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff", + "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633", + "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999", + "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff", + "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933", + "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999", + "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff", + "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33", + "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99", + "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff", + "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33", + "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99", + "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff", + "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33", + "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99", + "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff" +]; + +var named = { + '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige', + '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown', + '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue', + '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod', + '#A9A9A9':'DarkGray','#A9A9A9':'DarkGrey','#006400':'DarkGreen','#BDB76B':'DarkKhaki','#8B008B':'DarkMagenta','#556B2F':'DarkOliveGreen', + '#FF8C00':'Darkorange','#9932CC':'DarkOrchid','#8B0000':'DarkRed','#E9967A':'DarkSalmon','#8FBC8F':'DarkSeaGreen','#483D8B':'DarkSlateBlue', + '#2F4F4F':'DarkSlateGray','#2F4F4F':'DarkSlateGrey','#00CED1':'DarkTurquoise','#9400D3':'DarkViolet','#FF1493':'DeepPink','#00BFFF':'DeepSkyBlue', + '#696969':'DimGray','#696969':'DimGrey','#1E90FF':'DodgerBlue','#B22222':'FireBrick','#FFFAF0':'FloralWhite','#228B22':'ForestGreen', + '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'GhostWhite','#FFD700':'Gold','#DAA520':'GoldenRod','#808080':'Gray','#808080':'Grey', + '#008000':'Green','#ADFF2F':'GreenYellow','#F0FFF0':'HoneyDew','#FF69B4':'HotPink','#CD5C5C':'IndianRed','#4B0082':'Indigo','#FFFFF0':'Ivory', + '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'LavenderBlush','#7CFC00':'LawnGreen','#FFFACD':'LemonChiffon','#ADD8E6':'LightBlue', + '#F08080':'LightCoral','#E0FFFF':'LightCyan','#FAFAD2':'LightGoldenRodYellow','#D3D3D3':'LightGray','#D3D3D3':'LightGrey','#90EE90':'LightGreen', + '#FFB6C1':'LightPink','#FFA07A':'LightSalmon','#20B2AA':'LightSeaGreen','#87CEFA':'LightSkyBlue','#778899':'LightSlateGray','#778899':'LightSlateGrey', + '#B0C4DE':'LightSteelBlue','#FFFFE0':'LightYellow','#00FF00':'Lime','#32CD32':'LimeGreen','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon', + '#66CDAA':'MediumAquaMarine','#0000CD':'MediumBlue','#BA55D3':'MediumOrchid','#9370D8':'MediumPurple','#3CB371':'MediumSeaGreen','#7B68EE':'MediumSlateBlue', + '#00FA9A':'MediumSpringGreen','#48D1CC':'MediumTurquoise','#C71585':'MediumVioletRed','#191970':'MidnightBlue','#F5FFFA':'MintCream','#FFE4E1':'MistyRose','#FFE4B5':'Moccasin', + '#FFDEAD':'NavajoWhite','#000080':'Navy','#FDF5E6':'OldLace','#808000':'Olive','#6B8E23':'OliveDrab','#FFA500':'Orange','#FF4500':'OrangeRed','#DA70D6':'Orchid', + '#EEE8AA':'PaleGoldenRod','#98FB98':'PaleGreen','#AFEEEE':'PaleTurquoise','#D87093':'PaleVioletRed','#FFEFD5':'PapayaWhip','#FFDAB9':'PeachPuff', + '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'PowderBlue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'RosyBrown','#4169E1':'RoyalBlue', + '#8B4513':'SaddleBrown','#FA8072':'Salmon','#F4A460':'SandyBrown','#2E8B57':'SeaGreen','#FFF5EE':'SeaShell','#A0522D':'Sienna','#C0C0C0':'Silver', + '#87CEEB':'SkyBlue','#6A5ACD':'SlateBlue','#708090':'SlateGray','#708090':'SlateGrey','#FFFAFA':'Snow','#00FF7F':'SpringGreen', + '#4682B4':'SteelBlue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet', + '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'WhiteSmoke','#FFFF00':'Yellow','#9ACD32':'YellowGreen' +}; + +function init() { + var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')); + + tinyMCEPopup.resizeToInnerSize(); + + generatePicker(); + + if (inputColor) { + changeFinalColor(inputColor); + + col = convertHexToRGB(inputColor); + + if (col) + updateLight(col.r, col.g, col.b); + } +} + +function insertAction() { + var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func'); + + tinyMCEPopup.restoreSelection(); + + if (f) + f(color); + + tinyMCEPopup.close(); +} + +function showColor(color, name) { + if (name) + document.getElementById("colorname").innerHTML = name; + + document.getElementById("preview").style.backgroundColor = color; + document.getElementById("color").value = color.toLowerCase(); +} + +function convertRGBToHex(col) { + var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi"); + + if (!col) + return col; + + var rgb = col.replace(re, "$1,$2,$3").split(','); + if (rgb.length == 3) { + r = parseInt(rgb[0]).toString(16); + g = parseInt(rgb[1]).toString(16); + b = parseInt(rgb[2]).toString(16); + + r = r.length == 1 ? '0' + r : r; + g = g.length == 1 ? '0' + g : g; + b = b.length == 1 ? '0' + b : b; + + return "#" + r + g + b; + } + + return col; +} + +function convertHexToRGB(col) { + if (col.indexOf('#') != -1) { + col = col.replace(new RegExp('[^0-9A-F]', 'gi'), ''); + + r = parseInt(col.substring(0, 2), 16); + g = parseInt(col.substring(2, 4), 16); + b = parseInt(col.substring(4, 6), 16); + + return {r : r, g : g, b : b}; + } + + return null; +} + +function generatePicker() { + var el = document.getElementById('light'), h = '', i; + + for (i = 0; i < detail; i++){ + h += '
    '; + } + + el.innerHTML = h; +} + +function generateWebColors() { + var el = document.getElementById('webcolors'), h = '', i; + + if (el.className == 'generated') + return; + + h += '' + + ''; + + for (i=0; i' + + '' + + ''; + if ((i+1) % 18 == 0) + h += ''; + } + + h += '
    '; + + el.innerHTML = h; + el.className = 'generated'; +} + +function generateNamedColors() { + var el = document.getElementById('namedcolors'), h = '', n, v, i = 0; + + if (el.className == 'generated') + return; + + for (n in named) { + v = named[n]; + h += '' + } + + el.innerHTML = h; + el.className = 'generated'; +} + +function dechex(n) { + return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16); +} + +function computeColor(e) { + var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB; + + x = e.offsetX ? e.offsetX : (e.target ? e.clientX - e.target.x : 0); + y = e.offsetY ? e.offsetY : (e.target ? e.clientY - e.target.y : 0); + + partWidth = document.getElementById('colors').width / 6; + partDetail = detail / 2; + imHeight = document.getElementById('colors').height; + + r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255; + g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth); + b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth); + + coef = (imHeight - y) / imHeight; + r = 128 + (r - 128) * coef; + g = 128 + (g - 128) * coef; + b = 128 + (b - 128) * coef; + + changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b)); + updateLight(r, g, b); +} + +function updateLight(r, g, b) { + var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color; + + for (i=0; i=0) && (i'); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '180px'; + + e = ed.selection.getNode(); + + this.fillFileList('image_list', 'tinyMCEImageList'); + + if (e.nodeName == 'IMG') { + f.src.value = ed.dom.getAttrib(e, 'src'); + f.alt.value = ed.dom.getAttrib(e, 'alt'); + f.border.value = this.getAttrib(e, 'border'); + f.vspace.value = this.getAttrib(e, 'vspace'); + f.hspace.value = this.getAttrib(e, 'hspace'); + f.width.value = ed.dom.getAttrib(e, 'width'); + f.height.value = ed.dom.getAttrib(e, 'height'); + f.insert.value = ed.getLang('update'); + this.styleVal = ed.dom.getAttrib(e, 'style'); + selectByValue(f, 'image_list', f.src.value); + selectByValue(f, 'align', this.getAttrib(e, 'align')); + this.updateStyle(); + } + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + update : function() { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (!ed.settings.inline_styles) { + args = tinymce.extend(args, { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }); + } else + args.style = this.styleVal; + + tinymce.extend(args, { + src : f.src.value, + alt : f.alt.value, + width : f.width.value, + height : f.height.value + }); + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + updateStyle : function() { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0]; + + if (tinyMCEPopup.editor.settings.inline_styles) { + st = tinyMCEPopup.dom.parseStyle(this.styleVal); + + // Handle align + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') { + st['float'] = v; + delete st['vertical-align']; + } else { + st['vertical-align'] = v; + delete st['float']; + } + } else { + delete st['float']; + delete st['vertical-align']; + } + + // Handle border + v = f.border.value; + if (v || v == '0') { + if (v == '0') + st['border'] = '0'; + else + st['border'] = v + 'px solid black'; + } else + delete st['border']; + + // Handle hspace + v = f.hspace.value; + if (v) { + delete st['margin']; + st['margin-left'] = v + 'px'; + st['margin-right'] = v + 'px'; + } else { + delete st['margin-left']; + delete st['margin-right']; + } + + // Handle vspace + v = f.vspace.value; + if (v) { + delete st['margin']; + st['margin-top'] = v + 'px'; + st['margin-bottom'] = v + 'px'; + } else { + delete st['margin-top']; + delete st['margin-bottom']; + } + + // Merge + st = tinyMCEPopup.dom.parseStyle(dom.serializeStyle(st), 'img'); + this.styleVal = dom.serializeStyle(st, 'img'); + } + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.width.value = f.height.value = ""; + }, + + updateImageData : function() { + var f = document.forms[0], t = ImageDialog; + + if (f.width.value == "") + f.width.value = t.preloadImg.width; + + if (f.height.value == "") + f.height.value = t.preloadImg.height; + }, + + getImageData : function() { + var f = document.forms[0]; + + this.preloadImg = new Image(); + this.preloadImg.onload = this.updateImageData; + this.preloadImg.onerror = this.resetImageData; + this.preloadImg.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(f.src.value); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_computer/html/tiny_mce/themes/advanced/js/link.js b/sn_computer/html/tiny_mce/themes/advanced/js/link.js new file mode 100644 index 0000000..73b9f59 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/js/link.js @@ -0,0 +1,156 @@ +tinyMCEPopup.requireLangPack(); + +var LinkDialog = { + preInit : function() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser', 'href', 'file', 'theme_advanced_link'); + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '180px'; + + this.fillClassList('class_list'); + this.fillFileList('link_list', 'tinyMCELinkList'); + this.fillTargetList('target_list'); + + if (e = ed.dom.getParent(ed.selection.getNode(), 'A')) { + f.href.value = ed.dom.getAttrib(e, 'href'); + f.linktitle.value = ed.dom.getAttrib(e, 'title'); + f.insert.value = ed.getLang('update'); + selectByValue(f, 'link_list', f.href.value); + selectByValue(f, 'target_list', ed.dom.getAttrib(e, 'target')); + selectByValue(f, 'class_list', ed.dom.getAttrib(e, 'class')); + } + }, + + update : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor, e, b; + + tinyMCEPopup.restoreSelection(); + e = ed.dom.getParent(ed.selection.getNode(), 'A'); + + // Remove element if there is no href + if (!f.href.value) { + if (e) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + b = ed.selection.getBookmark(); + ed.dom.remove(e, 1); + ed.selection.moveToBookmark(b); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (e == null) { + ed.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + tinymce.each(ed.dom.select("a"), function(n) { + if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') { + e = n; + + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + }); + } else { + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + + // Don't move caret if selection was image + if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') { + ed.focus(); + ed.selection.select(e); + ed.selection.collapse(0); + tinyMCEPopup.storeSelection(); + } + + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, + + checkPrefix : function(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external'))) + n.value = 'http://' + n.value; + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillTargetList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v; + + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self'); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank'); + + if (v = tinyMCEPopup.getParam('theme_advanced_link_targets')) { + tinymce.each(v.split(','), function(v) { + v = v.split('='); + lst.options[lst.options.length] = new Option(v[0], v[1]); + }); + } + } +}; + +LinkDialog.preInit(); +tinyMCEPopup.onInit.add(LinkDialog.init, LinkDialog); diff --git a/sn_computer/html/tiny_mce/themes/advanced/js/source_editor.js b/sn_computer/html/tiny_mce/themes/advanced/js/source_editor.js new file mode 100644 index 0000000..81063ec --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/js/source_editor.js @@ -0,0 +1,62 @@ +tinyMCEPopup.requireLangPack(); +tinyMCEPopup.onInit.add(onLoadInit); + +function saveContent() { + tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true}); + tinyMCEPopup.close(); +} + +function onLoadInit() { + tinyMCEPopup.resizeToInnerSize(); + + // Remove Gecko spellchecking + if (tinymce.isGecko) + document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck"); + + document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); + + if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) { + setWrap('soft'); + document.getElementById('wraped').checked = true; + } + + resizeInputs(); +} + +function setWrap(val) { + var v, n, s = document.getElementById('htmlSource'); + + s.wrap = val; + + if (!tinymce.isIE) { + v = s.value; + n = s.cloneNode(false); + n.setAttribute("wrap", val); + s.parentNode.replaceChild(n, s); + n.value = v; + } +} + +function toggleWordWrap(elm) { + if (elm.checked) + setWrap('soft'); + else + setWrap('off'); +} + +var wHeight=0, wWidth=0, owHeight=0, owWidth=0; + +function resizeInputs() { + var el = document.getElementById('htmlSource'); + + if (!tinymce.isIE) { + wHeight = self.innerHeight - 65; + wWidth = self.innerWidth - 16; + } else { + wHeight = document.body.clientHeight - 70; + wWidth = document.body.clientWidth - 16; + } + + el.style.height = Math.abs(wHeight) + 'px'; + el.style.width = Math.abs(wWidth) + 'px'; +} diff --git a/sn_computer/html/tiny_mce/themes/advanced/langs/de.js b/sn_computer/html/tiny_mce/themes/advanced/langs/de.js new file mode 100644 index 0000000..a38c45e --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/langs/de.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('de.advanced',{ +style_select:"Format", +font_size:"Schriftgr\u00F6\u00DFe", +fontdefault:"Schriftart", +block:"Vorlage", +paragraph:"Absatz", +div:"Zusammenh\u00E4ngender Bereich", +address:"Adresse", +pre:"Rohdaten", +h1:"\u00DCberschrift 1", +h2:"\u00DCberschrift 2", +h3:"\u00DCberschrift 3", +h4:"\u00DCberschrift 4", +h5:"\u00DCberschrift 5", +h6:"\u00DCberschrift 6", +blockquote:"Zitatblock", +code:"Code", +samp:"Beispiel", +dt:"Definitionsbegriff", +dd:"Definitionsbeschreibung", +bold_desc:"Fett (Strg+B)", +italic_desc:"Kursiv (Strg+I)", +underline_desc:"Unterstrichen (Strg+U)", +striketrough_desc:"Durchgestrichen", +justifyleft_desc:"Linksb\u00FCndig", +justifycenter_desc:"Zentriert", +justifyright_desc:"Rechtsb\u00FCndig", +justifyfull_desc:"Blocksatz", +bullist_desc:"Unsortierte Liste", +numlist_desc:"Sortierte Liste", +outdent_desc:"Ausr\u00FCcken", +indent_desc:"Einr\u00FCcken", +undo_desc:"R\u00FCckg\u00E4ngig (Strg+Z)", +redo_desc:"Wiederholen (Strg+Y)", +link_desc:"Link einf\u00FCgen/ver\u00E4ndern", +unlink_desc:"Link entfernen", +image_desc:"Bild einf\u00FCgen/ver\u00E4ndern", +cleanup_desc:"Quellcode aufr\u00E4umen", +code_desc:"HTML-Quellcode bearbeiten", +sub_desc:"Tiefgestellt", +sup_desc:"Hochgestellt", +hr_desc:"Trennlinie einf\u00FCgen", +removeformat_desc:"Formatierungen zur\u00FCcksetzen", +custom1_desc:"Benutzerdefinierte Beschreibung", +forecolor_desc:"Textfarbe", +backcolor_desc:"Hintergrundfarbe", +charmap_desc:"Sonderzeichen einf\u00FCgen", +visualaid_desc:"Hilfslinien und unsichtbare Elemente ein-/ausblenden", +anchor_desc:"Anker einf\u00FCgen/ver\u00E4ndern", +cut_desc:"Ausschneiden", +copy_desc:"Kopieren", +paste_desc:"Einf\u00FCgen", +image_props_desc:"Bildeigenschaften", +newdocument_desc:"Neues Dokument", +help_desc:"Hilfe", +blockquote_desc:"Zitatblock", +clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\r\nWollen Sie mehr \u00FCber dieses Problem erfahren?", +path:"Pfad", +newdocument:"Wollen Sie wirklich den ganzen Inhalt l\u00F6schen?", +toolbar_focus:"Zur Werkzeugleiste springen: Alt+Q; Zum Editor springen: Alt-Z; Zum Elementpfad springen: Alt-X", +more_colors:"Weitere Farben", +anchor_delta_width:"13" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/advanced/langs/de_dlg.js b/sn_computer/html/tiny_mce/themes/advanced/langs/de_dlg.js new file mode 100644 index 0000000..18a429b --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/langs/de_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('de.advanced_dlg',{ +about_title:"\u00DCber TinyMCE", +about_general:"\u00DCber", +about_help:"Hilfe", +about_license:"Lizenzbedingungen", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Urheber", +about_version:"Version", +about_loaded:"Geladene Plugins", +anchor_title:"Anker einf\u00FCgen/ver\u00E4ndern", +anchor_name:"Name des Ankers", +code_title:"HTML-Quellcode bearbeiten", +code_wordwrap:"Automatischer Zeilenumbruch", +colorpicker_title:"Farbe", +colorpicker_picker_tab:"Farbwahl", +colorpicker_picker_title:"Farbwahl", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Farbpalette", +colorpicker_named_tab:"Benannte Farben", +colorpicker_named_title:"Benannte Farben", +colorpicker_color:"Farbe:", +colorpicker_name:"Name:", +charmap_title:"Sonderzeichen", +image_title:"Bild einf\u00FCgen/bearbeiten", +image_src:"Adresse", +image_alt:"Alternativtext", +image_list:"Bilderliste", +image_border:"Rahmen", +image_dimensions:"Abmessungen", +image_vspace:"Vertikaler Abstand", +image_hspace:"Horizontaler Abstand", +image_align:"Ausrichtung", +image_align_baseline:"Zeile", +image_align_top:"Oben", +image_align_middle:"Mittig", +image_align_bottom:"Unten", +image_align_texttop:"Oben im Text", +image_align_textbottom:"Unten im Text", +image_align_left:"Links", +image_align_right:"Rechts", +link_title:"Link einf\u00FCgen/bearbeiten", +link_url:"Adresse", +link_target:"Fenster", +link_target_same:"Im selben Fenster \u00F6ffnen", +link_target_blank:"Neues Fenster \u00F6ffnen", +link_titlefield:"Titel", +link_is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"mailto:\" voranstellen?", +link_is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"http://\" voranstellen?", +link_list:"Linkliste" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/advanced/langs/en.js b/sn_computer/html/tiny_mce/themes/advanced/langs/en.js new file mode 100644 index 0000000..52989e3 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/langs/en.js @@ -0,0 +1,62 @@ +tinyMCE.addI18n('en.advanced',{ +style_select:"Styles", +font_size:"Font size", +fontdefault:"Font family", +block:"Format", +paragraph:"Paragraph", +div:"Div", +address:"Address", +pre:"Preformatted", +h1:"Heading 1", +h2:"Heading 2", +h3:"Heading 3", +h4:"Heading 4", +h5:"Heading 5", +h6:"Heading 6", +blockquote:"Blockquote", +code:"Code", +samp:"Code sample", +dt:"Definition term ", +dd:"Definition description", +bold_desc:"Bold (Ctrl+B)", +italic_desc:"Italic (Ctrl+I)", +underline_desc:"Underline (Ctrl+U)", +striketrough_desc:"Strikethrough", +justifyleft_desc:"Align left", +justifycenter_desc:"Align center", +justifyright_desc:"Align right", +justifyfull_desc:"Align full", +bullist_desc:"Unordered list", +numlist_desc:"Ordered list", +outdent_desc:"Outdent", +indent_desc:"Indent", +undo_desc:"Undo (Ctrl+Z)", +redo_desc:"Redo (Ctrl+Y)", +link_desc:"Insert/edit link", +unlink_desc:"Unlink", +image_desc:"Insert/edit image", +cleanup_desc:"Cleanup messy code", +code_desc:"Edit HTML Source", +sub_desc:"Subscript", +sup_desc:"Superscript", +hr_desc:"Insert horizontal ruler", +removeformat_desc:"Remove formatting", +custom1_desc:"Your custom description here", +forecolor_desc:"Select text color", +backcolor_desc:"Select background color", +charmap_desc:"Insert custom character", +visualaid_desc:"Toggle guidelines/invisible elements", +anchor_desc:"Insert/edit anchor", +cut_desc:"Cut", +copy_desc:"Copy", +paste_desc:"Paste", +image_props_desc:"Image properties", +newdocument_desc:"New document", +help_desc:"Help", +blockquote_desc:"Blockquote", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\r\nDo you want more information about this issue?", +path:"Path", +newdocument:"Are you sure you want clear all contents?", +toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X", +more_colors:"More colors" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/advanced/langs/en_dlg.js b/sn_computer/html/tiny_mce/themes/advanced/langs/en_dlg.js new file mode 100644 index 0000000..80e4941 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/langs/en_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('en.advanced_dlg',{ +about_title:"About TinyMCE", +about_general:"About", +about_help:"Help", +about_license:"License", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Author", +about_version:"Version", +about_loaded:"Loaded plugins", +anchor_title:"Insert/edit anchor", +anchor_name:"Anchor name", +code_title:"HTML Source Editor", +code_wordwrap:"Word wrap", +colorpicker_title:"Select a color", +colorpicker_picker_tab:"Picker", +colorpicker_picker_title:"Color picker", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Palette colors", +colorpicker_named_tab:"Named", +colorpicker_named_title:"Named colors", +colorpicker_color:"Color:", +colorpicker_name:"Name:", +charmap_title:"Select custom character", +image_title:"Insert/edit image", +image_src:"Image URL", +image_alt:"Image description", +image_list:"Image list", +image_border:"Border", +image_dimensions:"Dimensions", +image_vspace:"Vertical space", +image_hspace:"Horizontal space", +image_align:"Alignment", +image_align_baseline:"Baseline", +image_align_top:"Top", +image_align_middle:"Middle", +image_align_bottom:"Bottom", +image_align_texttop:"Text top", +image_align_textbottom:"Text bottom", +image_align_left:"Left", +image_align_right:"Right", +link_title:"Insert/edit link", +link_url:"Link URL", +link_target:"Target", +link_target_same:"Open link in the same window", +link_target_blank:"Open link in a new window", +link_titlefield:"Title", +link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +link_list:"Link list" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/advanced/link.htm b/sn_computer/html/tiny_mce/themes/advanced/link.htm new file mode 100644 index 0000000..22627cc --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/link.htm @@ -0,0 +1,58 @@ + + + + {#advanced_dlg.link_title} + + + + + + + +
    + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    + + + + +
     
    +
    +
    + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/content.css b/sn_computer/html/tiny_mce/themes/advanced/skins/default/content.css new file mode 100644 index 0000000..987c596 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/default/content.css @@ -0,0 +1,35 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat 0 0;} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/dialog.css b/sn_computer/html/tiny_mce/themes/advanced/skins/default/dialog.css new file mode 100644 index 0000000..1f5598c --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/default/dialog.css @@ -0,0 +1,117 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(img/buttons.png) 0 -52px} +#cancel {background:url(img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} +#colorpicker #picker_panel fieldset {margin:auto;width:325px;} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/buttons.png b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/buttons.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/items.gif b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/items.gif new file mode 100644 index 0000000..2eafd79 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/items.gif differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif new file mode 100644 index 0000000..85e31df Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/menu_check.gif b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/menu_check.gif new file mode 100644 index 0000000..adfdddc Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/menu_check.gif differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/progress.gif b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/progress.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/progress.gif differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/tabs.gif b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/tabs.gif new file mode 100644 index 0000000..ce4be63 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/default/img/tabs.gif differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/default/ui.css b/sn_computer/html/tiny_mce/themes/advanced/skins/default/ui.css new file mode 100644 index 0000000..7f6cf5f --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/default/ui.css @@ -0,0 +1,213 @@ +/* Reset */ +.defaultSkin table, .defaultSkin tbody, .defaultSkin a, .defaultSkin img, .defaultSkin tr, .defaultSkin div, .defaultSkin td, .defaultSkin iframe, .defaultSkin span, .defaultSkin *, .defaultSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.defaultSkin a:hover, .defaultSkin a:link, .defaultSkin a:visited, .defaultSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.defaultSkin table td {vertical-align:middle} + +/* Containers */ +.defaultSkin table {direction:ltr; background:#F0F0EE} +.defaultSkin iframe {display:block; background:#FFF} +.defaultSkin .mceToolbar {height:26px} +.defaultSkin .mceLeft {text-align:left} +.defaultSkin .mceRight {text-align:right} + +/* External */ +.defaultSkin .mceExternalToolbar {position:absolute; border:1px solid #CCC; border-bottom:0; display:none;} +.defaultSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.defaultSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.defaultSkin table.mceLayout {border:0; border-left:1px solid #CCC; border-right:1px solid #CCC} +.defaultSkin table.mceLayout tr.mceFirst td {border-top:1px solid #CCC} +.defaultSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #CCC} +.defaultSkin table.mceToolbar, .defaultSkin tr.mceFirst .mceToolbar tr td, .defaultSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;} +.defaultSkin td.mceToolbar {padding-top:1px; vertical-align:top} +.defaultSkin .mceIframeContainer {border-top:1px solid #CCC; border-bottom:1px solid #CCC} +.defaultSkin .mceStatusbar {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px} +.defaultSkin .mceStatusbar div {float:left; margin:2px} +.defaultSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.defaultSkin .mceStatusbar a:hover {text-decoration:underline} +.defaultSkin table.mceToolbar {margin-left:3px} +.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px} +.defaultSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.defaultSkin td.mceCenter {text-align:center;} +.defaultSkin td.mceCenter table {margin:0 auto; text-align:left;} +.defaultSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.defaultSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px; margin-right:1px} +.defaultSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0} +.defaultSkin a.mceButtonActive, .defaultSkin a.mceButtonSelected {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.defaultSkin .mceButtonLabeled {width:auto} +.defaultSkin .mceButtonLabeled span.mceIcon {float:left} +.defaultSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.defaultSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.defaultSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:2px 2px 0 4px} + +/* ListBox */ +.defaultSkin .mceListBox, .defaultSkin .mceListBox a {display:block} +.defaultSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.defaultSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:2px; border:1px solid #CCC;} +.defaultSkin table.mceListBoxEnabled:hover .mceText, .defaultSkin .mceListBoxHover .mceText, .defaultSkin .mceListBoxSelected .mceText {border:1px solid #A2ABC0; border-right:0; background:#FFF} +.defaultSkin table.mceListBoxEnabled:hover .mceOpen, .defaultSkin .mceListBoxHover .mceOpen, .defaultSkin .mceListBoxSelected .mceOpen {background-color:#FFF; border:1px solid #A2ABC0} +.defaultSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;} +.defaultSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.defaultSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +.defaultSkin .mceOldBoxModel .mceListBox .mceOpen {width:11px; height:22px;} +.defaultSkin select.mceNativeListBox {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:7pt; background:#F0F0EE; border:1px solid gray; margin-right:2px;} + +/* SplitButton */ +.defaultSkin .mceSplitButton {width:32px; height:20px; direction:ltr} +.defaultSkin .mceSplitButton a, .defaultSkin .mceSplitButton span {height:20px; display:block} +.defaultSkin .mceSplitButton a.mceAction {width:20px; border:1px solid #F0F0EE; border-right:0;} +.defaultSkin .mceSplitButton span.mceAction {width:20px; background-image:url(../../img/icons.gif);} +.defaultSkin .mceSplitButton a.mceOpen {width:9px; background:url(../../img/icons.gif) -741px 0; border:1px solid #F0F0EE;} +.defaultSkin .mceSplitButton span.mceOpen {display:none} +.defaultSkin table.mceSplitButtonEnabled:hover a.mceAction, .defaultSkin .mceSplitButtonHover a.mceAction, .defaultSkin .mceSplitButtonSelected a.mceAction {border:1px solid #0A246A; border-right:0; background-color:#B2BBD0} +.defaultSkin table.mceSplitButtonEnabled:hover a.mceOpen, .defaultSkin .mceSplitButtonHover a.mceOpen, .defaultSkin .mceSplitButtonSelected a.mceOpen {background-color:#B2BBD0; border:1px solid #0A246A;} +.defaultSkin .mceSplitButtonDisabled .mceAction, .defaultSkin .mceSplitButtonDisabled a.mceOpen {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.defaultSkin .mceSplitButtonActive a.mceAction {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSkin .mceSplitButtonActive a.mceOpen {border-left:0;} + +/* ColorSplitButton */ +.defaultSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.defaultSkin .mceColorSplitMenu td {padding:2px} +.defaultSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.defaultSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.defaultSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.defaultSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.defaultSkin a.mceMoreColors:hover {border:1px solid #0A246A} +.defaultSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a} +.defaultSkin .mce_forecolor span.mceAction, .defaultSkin .mce_backcolor span.mceAction {overflow:hidden; height:16px} + +/* Menu */ +.defaultSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8} +.defaultSkin .mceNoIcons span.mceIcon {width:0;} +.defaultSkin .mceNoIcons a .mceText {padding-left:10px} +.defaultSkin .mceMenu table {background:#FFF} +.defaultSkin .mceMenu a, .defaultSkin .mceMenu span, .defaultSkin .mceMenu {display:block} +.defaultSkin .mceMenu td {height:20px} +.defaultSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +.defaultSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.defaultSkin .mceMenu span.mceText, .defaultSkin .mceMenu .mcePreview {font-size:11px} +.defaultSkin .mceMenu pre.mceText {font-family:Monospace} +.defaultSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.defaultSkin .mceMenu .mceMenuItemEnabled a:hover, .defaultSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.defaultSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +.defaultSkin .mceMenuItemTitle a {border:0; background:#EEE; border-bottom:1px solid #DDD} +.defaultSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.defaultSkin .mceMenuItemDisabled .mceText {color:#888} +.defaultSkin .mceMenuItemSelected .mceIcon {background:url(img/menu_check.gif)} +.defaultSkin .mceNoIcons .mceMenuItemSelected a {background:url(img/menu_arrow.gif) no-repeat -6px center} +.defaultSkin .mceMenu span.mceMenuLine {display:none} +.defaultSkin .mceMenuItemSub a {background:url(img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.defaultSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); background:#FFF} +.defaultSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.defaultSkin .mce_formatPreview a {font-size:10px} +.defaultSkin .mce_p span.mceText {} +.defaultSkin .mce_address span.mceText {font-style:italic} +.defaultSkin .mce_pre span.mceText {font-family:monospace} +.defaultSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.defaultSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.defaultSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.defaultSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.defaultSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.defaultSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.defaultSkin span.mce_bold {background-position:0 0} +.defaultSkin span.mce_italic {background-position:-60px 0} +.defaultSkin span.mce_underline {background-position:-140px 0} +.defaultSkin span.mce_strikethrough {background-position:-120px 0} +.defaultSkin span.mce_undo {background-position:-160px 0} +.defaultSkin span.mce_redo {background-position:-100px 0} +.defaultSkin span.mce_cleanup {background-position:-40px 0} +.defaultSkin span.mce_bullist {background-position:-20px 0} +.defaultSkin span.mce_numlist {background-position:-80px 0} +.defaultSkin span.mce_justifyleft {background-position:-460px 0} +.defaultSkin span.mce_justifyright {background-position:-480px 0} +.defaultSkin span.mce_justifycenter {background-position:-420px 0} +.defaultSkin span.mce_justifyfull {background-position:-440px 0} +.defaultSkin span.mce_anchor {background-position:-200px 0} +.defaultSkin span.mce_indent {background-position:-400px 0} +.defaultSkin span.mce_outdent {background-position:-540px 0} +.defaultSkin span.mce_link {background-position:-500px 0} +.defaultSkin span.mce_unlink {background-position:-640px 0} +.defaultSkin span.mce_sub {background-position:-600px 0} +.defaultSkin span.mce_sup {background-position:-620px 0} +.defaultSkin span.mce_removeformat {background-position:-580px 0} +.defaultSkin span.mce_newdocument {background-position:-520px 0} +.defaultSkin span.mce_image {background-position:-380px 0} +.defaultSkin span.mce_help {background-position:-340px 0} +.defaultSkin span.mce_code {background-position:-260px 0} +.defaultSkin span.mce_hr {background-position:-360px 0} +.defaultSkin span.mce_visualaid {background-position:-660px 0} +.defaultSkin span.mce_charmap {background-position:-240px 0} +.defaultSkin span.mce_paste {background-position:-560px 0} +.defaultSkin span.mce_copy {background-position:-700px 0} +.defaultSkin span.mce_cut {background-position:-680px 0} +.defaultSkin span.mce_blockquote {background-position:-220px 0} +.defaultSkin .mce_forecolor span.mceAction {background-position:-720px 0} +.defaultSkin .mce_backcolor span.mceAction {background-position:-760px 0} +.defaultSkin span.mce_forecolorpicker {background-position:-720px 0} +.defaultSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.defaultSkin span.mce_advhr {background-position:-0px -20px} +.defaultSkin span.mce_ltr {background-position:-20px -20px} +.defaultSkin span.mce_rtl {background-position:-40px -20px} +.defaultSkin span.mce_emotions {background-position:-60px -20px} +.defaultSkin span.mce_fullpage {background-position:-80px -20px} +.defaultSkin span.mce_fullscreen {background-position:-100px -20px} +.defaultSkin span.mce_iespell {background-position:-120px -20px} +.defaultSkin span.mce_insertdate {background-position:-140px -20px} +.defaultSkin span.mce_inserttime {background-position:-160px -20px} +.defaultSkin span.mce_absolute {background-position:-180px -20px} +.defaultSkin span.mce_backward {background-position:-200px -20px} +.defaultSkin span.mce_forward {background-position:-220px -20px} +.defaultSkin span.mce_insert_layer {background-position:-240px -20px} +.defaultSkin span.mce_insertlayer {background-position:-260px -20px} +.defaultSkin span.mce_movebackward {background-position:-280px -20px} +.defaultSkin span.mce_moveforward {background-position:-300px -20px} +.defaultSkin span.mce_media {background-position:-320px -20px} +.defaultSkin span.mce_nonbreaking {background-position:-340px -20px} +.defaultSkin span.mce_pastetext {background-position:-360px -20px} +.defaultSkin span.mce_pasteword {background-position:-380px -20px} +.defaultSkin span.mce_selectall {background-position:-400px -20px} +.defaultSkin span.mce_preview {background-position:-420px -20px} +.defaultSkin span.mce_print {background-position:-440px -20px} +.defaultSkin span.mce_cancel {background-position:-460px -20px} +.defaultSkin span.mce_save {background-position:-480px -20px} +.defaultSkin span.mce_replace {background-position:-500px -20px} +.defaultSkin span.mce_search {background-position:-520px -20px} +.defaultSkin span.mce_styleprops {background-position:-560px -20px} +.defaultSkin span.mce_table {background-position:-580px -20px} +.defaultSkin span.mce_cell_props {background-position:-600px -20px} +.defaultSkin span.mce_delete_table {background-position:-620px -20px} +.defaultSkin span.mce_delete_col {background-position:-640px -20px} +.defaultSkin span.mce_delete_row {background-position:-660px -20px} +.defaultSkin span.mce_col_after {background-position:-680px -20px} +.defaultSkin span.mce_col_before {background-position:-700px -20px} +.defaultSkin span.mce_row_after {background-position:-720px -20px} +.defaultSkin span.mce_row_before {background-position:-740px -20px} +.defaultSkin span.mce_merge_cells {background-position:-760px -20px} +.defaultSkin span.mce_table_props {background-position:-980px -20px} +.defaultSkin span.mce_row_props {background-position:-780px -20px} +.defaultSkin span.mce_split_cells {background-position:-800px -20px} +.defaultSkin span.mce_template {background-position:-820px -20px} +.defaultSkin span.mce_visualchars {background-position:-840px -20px} +.defaultSkin span.mce_abbr {background-position:-860px -20px} +.defaultSkin span.mce_acronym {background-position:-880px -20px} +.defaultSkin span.mce_attribs {background-position:-900px -20px} +.defaultSkin span.mce_cite {background-position:-920px -20px} +.defaultSkin span.mce_del {background-position:-940px -20px} +.defaultSkin span.mce_ins {background-position:-960px -20px} +.defaultSkin span.mce_pagebreak {background-position:0 -40px} +.defaultSkin span.mce_restoredraft {background-position:-20px -40px} +.defaultSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/content.css b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/content.css new file mode 100644 index 0000000..3cf289e --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/content.css @@ -0,0 +1,35 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(../default/img/items.gif) no-repeat 0 0;} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/dialog.css b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/dialog.css new file mode 100644 index 0000000..3b0760a --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/dialog.css @@ -0,0 +1,116 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(../default/img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(../default/img/buttons.png) 0 -52px} +#cancel {background:url(../default/img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png new file mode 100644 index 0000000..12cfb41 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui.css b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui.css new file mode 100644 index 0000000..52f5760 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.o2k7Skin table, .o2k7Skin tbody, .o2k7Skin a, .o2k7Skin img, .o2k7Skin tr, .o2k7Skin div, .o2k7Skin td, .o2k7Skin iframe, .o2k7Skin span, .o2k7Skin *, .o2k7Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.o2k7Skin a:hover, .o2k7Skin a:link, .o2k7Skin a:visited, .o2k7Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.o2k7Skin table td {vertical-align:middle} + +/* Containers */ +.o2k7Skin table {background:#E5EFFD} +.o2k7Skin iframe {display:block; background:#FFF} +.o2k7Skin .mceToolbar {height:26px} + +/* External */ +.o2k7Skin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +.o2k7Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.o2k7Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.o2k7Skin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +.o2k7Skin table.mceToolbar, .o2k7Skin tr.mceFirst .mceToolbar tr td, .o2k7Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.o2k7Skin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.o2k7Skin .mceStatusbar div {float:left; padding:2px} +.o2k7Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.o2k7Skin .mceStatusbar a:hover {text-decoration:underline} +.o2k7Skin table.mceToolbar {margin-left:3px} +.o2k7Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.o2k7Skin .mceToolbar td.mceFirst span {margin:0} +.o2k7Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7Skin .mceToolbar .mceToolbarEndListBox span, .o2k7Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.o2k7Skin span.mceIcon, .o2k7Skin img.mceIcon {display:block; width:20px; height:20px} +.o2k7Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.o2k7Skin td.mceCenter {text-align:center;} +.o2k7Skin td.mceCenter table {margin:0 auto; text-align:left;} +.o2k7Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.o2k7Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7Skin a.mceButton span, .o2k7Skin a.mceButton img {margin-left:1px} +.o2k7Skin .mceOldBoxModel a.mceButton span, .o2k7Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.o2k7Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7Skin a.mceButtonActive, .o2k7Skin a.mceButtonSelected {background-position:0 -44px} +.o2k7Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceButtonLabeled {width:auto} +.o2k7Skin .mceButtonLabeled span.mceIcon {float:left} +.o2k7Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.o2k7Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.o2k7Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.o2k7Skin .mceListBox {margin-left:3px} +.o2k7Skin .mceListBox, .o2k7Skin .mceListBox a {display:block} +.o2k7Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.o2k7Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.o2k7Skin table.mceListBoxEnabled:hover .mceText, .o2k7Skin .mceListBoxHover .mceText, .o2k7Skin .mceListBoxSelected .mceText {background:#FFF} +.o2k7Skin table.mceListBoxEnabled:hover .mceOpen, .o2k7Skin .mceListBoxHover .mceOpen, .o2k7Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.o2k7Skin .mceListBoxDisabled .mceText {color:gray} +.o2k7Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.o2k7Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.o2k7Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.o2k7Skin .mceSplitButton, .o2k7Skin .mceSplitButton a, .o2k7Skin .mceSplitButton span {display:block; height:22px} +.o2k7Skin .mceSplitButton {background:url(img/button_bg.png)} +.o2k7Skin .mceSplitButton a.mceAction {width:22px} +.o2k7Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.o2k7Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.o2k7Skin .mceSplitButton span.mceOpen {display:none} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceAction, .o2k7Skin .mceSplitButtonHover a.mceAction, .o2k7Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceOpen, .o2k7Skin .mceSplitButtonHover a.mceOpen, .o2k7Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.o2k7Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.o2k7Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.o2k7Skin .mceColorSplitMenu td {padding:2px} +.o2k7Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.o2k7Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.o2k7Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.o2k7Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.o2k7Skin .mce_forecolor span.mceAction, .o2k7Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.o2k7Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +.o2k7Skin .mceNoIcons span.mceIcon {width:0;} +.o2k7Skin .mceNoIcons a .mceText {padding-left:10px} +.o2k7Skin .mceMenu table {background:#FFF} +.o2k7Skin .mceMenu a, .o2k7Skin .mceMenu span, .o2k7Skin .mceMenu {display:block} +.o2k7Skin .mceMenu td {height:20px} +.o2k7Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.o2k7Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.o2k7Skin .mceMenu span.mceText, .o2k7Skin .mceMenu .mcePreview {font-size:11px} +.o2k7Skin .mceMenu pre.mceText {font-family:Monospace} +.o2k7Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.o2k7Skin .mceMenu .mceMenuItemEnabled a:hover, .o2k7Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.o2k7Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.o2k7Skin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.o2k7Skin .mceMenuItemDisabled .mceText {color:#888} +.o2k7Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.o2k7Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.o2k7Skin .mceMenu span.mceMenuLine {display:none} +.o2k7Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.o2k7Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.o2k7Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.o2k7Skin .mce_formatPreview a {font-size:10px} +.o2k7Skin .mce_p span.mceText {} +.o2k7Skin .mce_address span.mceText {font-style:italic} +.o2k7Skin .mce_pre span.mceText {font-family:monospace} +.o2k7Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.o2k7Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.o2k7Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.o2k7Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.o2k7Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.o2k7Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.o2k7Skin span.mce_bold {background-position:0 0} +.o2k7Skin span.mce_italic {background-position:-60px 0} +.o2k7Skin span.mce_underline {background-position:-140px 0} +.o2k7Skin span.mce_strikethrough {background-position:-120px 0} +.o2k7Skin span.mce_undo {background-position:-160px 0} +.o2k7Skin span.mce_redo {background-position:-100px 0} +.o2k7Skin span.mce_cleanup {background-position:-40px 0} +.o2k7Skin span.mce_bullist {background-position:-20px 0} +.o2k7Skin span.mce_numlist {background-position:-80px 0} +.o2k7Skin span.mce_justifyleft {background-position:-460px 0} +.o2k7Skin span.mce_justifyright {background-position:-480px 0} +.o2k7Skin span.mce_justifycenter {background-position:-420px 0} +.o2k7Skin span.mce_justifyfull {background-position:-440px 0} +.o2k7Skin span.mce_anchor {background-position:-200px 0} +.o2k7Skin span.mce_indent {background-position:-400px 0} +.o2k7Skin span.mce_outdent {background-position:-540px 0} +.o2k7Skin span.mce_link {background-position:-500px 0} +.o2k7Skin span.mce_unlink {background-position:-640px 0} +.o2k7Skin span.mce_sub {background-position:-600px 0} +.o2k7Skin span.mce_sup {background-position:-620px 0} +.o2k7Skin span.mce_removeformat {background-position:-580px 0} +.o2k7Skin span.mce_newdocument {background-position:-520px 0} +.o2k7Skin span.mce_image {background-position:-380px 0} +.o2k7Skin span.mce_help {background-position:-340px 0} +.o2k7Skin span.mce_code {background-position:-260px 0} +.o2k7Skin span.mce_hr {background-position:-360px 0} +.o2k7Skin span.mce_visualaid {background-position:-660px 0} +.o2k7Skin span.mce_charmap {background-position:-240px 0} +.o2k7Skin span.mce_paste {background-position:-560px 0} +.o2k7Skin span.mce_copy {background-position:-700px 0} +.o2k7Skin span.mce_cut {background-position:-680px 0} +.o2k7Skin span.mce_blockquote {background-position:-220px 0} +.o2k7Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.o2k7Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.o2k7Skin span.mce_forecolorpicker {background-position:-720px 0} +.o2k7Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.o2k7Skin span.mce_advhr {background-position:-0px -20px} +.o2k7Skin span.mce_ltr {background-position:-20px -20px} +.o2k7Skin span.mce_rtl {background-position:-40px -20px} +.o2k7Skin span.mce_emotions {background-position:-60px -20px} +.o2k7Skin span.mce_fullpage {background-position:-80px -20px} +.o2k7Skin span.mce_fullscreen {background-position:-100px -20px} +.o2k7Skin span.mce_iespell {background-position:-120px -20px} +.o2k7Skin span.mce_insertdate {background-position:-140px -20px} +.o2k7Skin span.mce_inserttime {background-position:-160px -20px} +.o2k7Skin span.mce_absolute {background-position:-180px -20px} +.o2k7Skin span.mce_backward {background-position:-200px -20px} +.o2k7Skin span.mce_forward {background-position:-220px -20px} +.o2k7Skin span.mce_insert_layer {background-position:-240px -20px} +.o2k7Skin span.mce_insertlayer {background-position:-260px -20px} +.o2k7Skin span.mce_movebackward {background-position:-280px -20px} +.o2k7Skin span.mce_moveforward {background-position:-300px -20px} +.o2k7Skin span.mce_media {background-position:-320px -20px} +.o2k7Skin span.mce_nonbreaking {background-position:-340px -20px} +.o2k7Skin span.mce_pastetext {background-position:-360px -20px} +.o2k7Skin span.mce_pasteword {background-position:-380px -20px} +.o2k7Skin span.mce_selectall {background-position:-400px -20px} +.o2k7Skin span.mce_preview {background-position:-420px -20px} +.o2k7Skin span.mce_print {background-position:-440px -20px} +.o2k7Skin span.mce_cancel {background-position:-460px -20px} +.o2k7Skin span.mce_save {background-position:-480px -20px} +.o2k7Skin span.mce_replace {background-position:-500px -20px} +.o2k7Skin span.mce_search {background-position:-520px -20px} +.o2k7Skin span.mce_styleprops {background-position:-560px -20px} +.o2k7Skin span.mce_table {background-position:-580px -20px} +.o2k7Skin span.mce_cell_props {background-position:-600px -20px} +.o2k7Skin span.mce_delete_table {background-position:-620px -20px} +.o2k7Skin span.mce_delete_col {background-position:-640px -20px} +.o2k7Skin span.mce_delete_row {background-position:-660px -20px} +.o2k7Skin span.mce_col_after {background-position:-680px -20px} +.o2k7Skin span.mce_col_before {background-position:-700px -20px} +.o2k7Skin span.mce_row_after {background-position:-720px -20px} +.o2k7Skin span.mce_row_before {background-position:-740px -20px} +.o2k7Skin span.mce_merge_cells {background-position:-760px -20px} +.o2k7Skin span.mce_table_props {background-position:-980px -20px} +.o2k7Skin span.mce_row_props {background-position:-780px -20px} +.o2k7Skin span.mce_split_cells {background-position:-800px -20px} +.o2k7Skin span.mce_template {background-position:-820px -20px} +.o2k7Skin span.mce_visualchars {background-position:-840px -20px} +.o2k7Skin span.mce_abbr {background-position:-860px -20px} +.o2k7Skin span.mce_acronym {background-position:-880px -20px} +.o2k7Skin span.mce_attribs {background-position:-900px -20px} +.o2k7Skin span.mce_cite {background-position:-920px -20px} +.o2k7Skin span.mce_del {background-position:-940px -20px} +.o2k7Skin span.mce_ins {background-position:-960px -20px} +.o2k7Skin span.mce_pagebreak {background-position:0 -40px} +.o2k7Skin span.mce_restoredraft {background-position:-20px -40px} +.o2k7Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui_black.css b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui_black.css new file mode 100644 index 0000000..81dbfe4 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui_black.css @@ -0,0 +1,8 @@ +/* Black */ +.o2k7SkinBlack .mceToolbar .mceToolbarStart span, .o2k7SkinBlack .mceToolbar .mceToolbarEnd span, .o2k7SkinBlack .mceButton, .o2k7SkinBlack .mceSplitButton, .o2k7SkinBlack .mceSeparator, .o2k7SkinBlack .mceSplitButton a.mceOpen, .o2k7SkinBlack .mceListBox a.mceOpen {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack table, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack .mceMenuItemTitle span.mceText, .o2k7SkinBlack .mceStatusbar div, .o2k7SkinBlack .mceStatusbar span, .o2k7SkinBlack .mceStatusbar a {background:#535353; color:#FFF} +.o2k7SkinBlack table.mceListBoxEnabled .mceText, o2k7SkinBlack .mceListBox .mceText {background:#FFF; border:1px solid #CBCFD4; border-bottom-color:#989FA9; border-right:0} +.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText, .o2k7SkinBlack .mceListBoxHover .mceText, .o2k7SkinBlack .mceListBoxSelected .mceText {background:#FFF; border:1px solid #FFBD69; border-right:0} +.o2k7SkinBlack .mceExternalToolbar, .o2k7SkinBlack .mceListBox .mceText, .o2k7SkinBlack div.mceMenu, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceFirst td, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceLast td, .o2k7SkinBlack .mceIframeContainer {border-color: #535353;} +.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction, .o2k7SkinBlack .mceSplitButtonHover a.mceAction, .o2k7SkinBlack .mceSplitButtonSelected {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover, .o2k7SkinBlack .mceMenu .mceMenuItemActive {background-color:#FFE7A1} \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css new file mode 100644 index 0000000..e8ae844 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css @@ -0,0 +1,5 @@ +/* Silver */ +.o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)} +.o2k7SkinSilver table, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee} +.o2k7SkinSilver .mceListBox .mceText {background:#FFF} +.o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/content.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/content.css new file mode 100644 index 0000000..db9a169 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/content.css @@ -0,0 +1,42 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block; font-weight:bold;font-size:large} +blockquote{ background-color:#EFEFEF; padding:2px;} + +code{background-color:lightgray;} + +.snInfoBoxHead{font-weight:bold;color:black;display:block;} +.snInfoBox{display:block; border: solid #435E91 2px; padding:4px;background-color:#EFEFEF;color:#000;} + +h1 {color:#2267F4;} +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/dialog.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_games.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_games.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_kochen.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_kochen.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/buttons.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/img/buttons.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/ui.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/ui.css new file mode 100644 index 0000000..a366540 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.Skin table, .Skin tbody, .Skin a, .Skin img, .Skin tr, .Skin div, .Skin td, .Skin iframe, .Skin span, .Skin *, .Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.Skin a:hover, .Skin a:link, .Skin a:visited, .Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.Skin table td {vertical-align:middle} + +/* Containers */ +.Skin table {background:#EFEFEF} +.Skin iframe {display:block; background:#FFF} +.Skin .mceToolbar {height:26px} + +/* External */ +.Skin .mceExternalToolbar {position:absolute; border:1px solid #435E91; border-bottom:0; display:none} +.Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.Skin table.mceLayout {border:0; border-left:1px solid #435E91; border-right:1px solid #435E91} +.Skin table.mceLayout tr.mceFirst td {border-top:1px solid #435E91} +.Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #435E91} +.Skin table.mceToolbar, .Skin tr.mceFirst .mceToolbar tr td, .Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.Skin .mceIframeContainer {border-top:1px solid #435E91; border-bottom:1px solid #435E91} +.Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.Skin .mceStatusbar div {float:left; padding:2px} +.Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.Skin .mceStatusbar a:hover {text-decoration:underline} +.Skin table.mceToolbar {margin-left:3px} +.Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.Skin .mceToolbar td.mceFirst span {margin:0} +.Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.Skin .mceToolbar .mceToolbarEndListBox span, .Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.Skin span.mceIcon, .Skin img.mceIcon {display:block; width:20px; height:20px} +.Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.Skin td.mceCenter {text-align:center;} +.Skin td.mceCenter table {margin:0 auto; text-align:left;} +.Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.Skin a.mceButton span, .Skin a.mceButton img {margin-left:1px} +.Skin .mceOldBoxModel a.mceButton span, .Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.Skin a.mceButtonActive, .Skin a.mceButtonSelected {background-position:0 -44px} +.Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.Skin .mceButtonLabeled {width:auto} +.Skin .mceButtonLabeled span.mceIcon {float:left} +.Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.Skin .mceListBox {margin-left:3px} +.Skin .mceListBox, .Skin .mceListBox a {display:block} +.Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.Skin table.mceListBoxEnabled:hover .mceText, .Skin .mceListBoxHover .mceText, .Skin .mceListBoxSelected .mceText {background:#FFF} +.Skin table.mceListBoxEnabled:hover .mceOpen, .Skin .mceListBoxHover .mceOpen, .Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.Skin .mceListBoxDisabled .mceText {color:gray} +.Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.Skin .mceSplitButton, .Skin .mceSplitButton a, .Skin .mceSplitButton span {display:block; height:22px} +.Skin .mceSplitButton {background:url(img/button_bg.png)} +.Skin .mceSplitButton a.mceAction {width:22px} +.Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.Skin .mceSplitButton span.mceOpen {display:none} +.Skin table.mceSplitButtonEnabled:hover a.mceAction, .Skin .mceSplitButtonHover a.mceAction, .Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.Skin table.mceSplitButtonEnabled:hover a.mceOpen, .Skin .mceSplitButtonHover a.mceOpen, .Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.Skin .mceColorSplitMenu td {padding:2px} +.Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.Skin .mce_forecolor span.mceAction, .Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #435E91} +.Skin .mceNoIcons span.mceIcon {width:0;} +.Skin .mceNoIcons a .mceText {padding-left:10px} +.Skin .mceMenu table {background:#FFF} +.Skin .mceMenu a, .Skin .mceMenu span, .Skin .mceMenu {display:block} +.Skin .mceMenu td {height:20px} +.Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.Skin .mceMenu span.mceText, .Skin .mceMenu .mcePreview {font-size:11px} +.Skin .mceMenu pre.mceText {font-family:Monospace} +.Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.Skin .mceMenu .mceMenuItemEnabled a:hover, .Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.Skin .mceMenuItemTitle a {border:0; background:#EFEFEF; border-bottom:1px solid #435E91} +.Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.Skin .mceMenuItemDisabled .mceText {color:#888} +.Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.Skin .mceMenu span.mceMenuLine {display:none} +.Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.Skin .mce_formatPreview a {font-size:10px} +.Skin .mce_p span.mceText {} +.Skin .mce_address span.mceText {font-style:italic} +.Skin .mce_pre span.mceText {font-family:monospace} +.Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.Skin span.mce_bold {background-position:0 0} +.Skin span.mce_italic {background-position:-60px 0} +.Skin span.mce_underline {background-position:-140px 0} +.Skin span.mce_strikethrough {background-position:-120px 0} +.Skin span.mce_undo {background-position:-160px 0} +.Skin span.mce_redo {background-position:-100px 0} +.Skin span.mce_cleanup {background-position:-40px 0} +.Skin span.mce_bullist {background-position:-20px 0} +.Skin span.mce_numlist {background-position:-80px 0} +.Skin span.mce_justifyleft {background-position:-460px 0} +.Skin span.mce_justifyright {background-position:-480px 0} +.Skin span.mce_justifycenter {background-position:-420px 0} +.Skin span.mce_justifyfull {background-position:-440px 0} +.Skin span.mce_anchor {background-position:-200px 0} +.Skin span.mce_indent {background-position:-400px 0} +.Skin span.mce_outdent {background-position:-540px 0} +.Skin span.mce_link {background-position:-500px 0} +.Skin span.mce_unlink {background-position:-640px 0} +.Skin span.mce_sub {background-position:-600px 0} +.Skin span.mce_sup {background-position:-620px 0} +.Skin span.mce_removeformat {background-position:-580px 0} +.Skin span.mce_newdocument {background-position:-520px 0} +.Skin span.mce_image {background-position:-380px 0} +.Skin span.mce_help {background-position:-340px 0} +.Skin span.mce_code {background-position:-260px 0} +.Skin span.mce_hr {background-position:-360px 0} +.Skin span.mce_visualaid {background-position:-660px 0} +.Skin span.mce_charmap {background-position:-240px 0} +.Skin span.mce_paste {background-position:-560px 0} +.Skin span.mce_copy {background-position:-700px 0} +.Skin span.mce_cut {background-position:-680px 0} +.Skin span.mce_blockquote {background-position:-220px 0} +.Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.Skin span.mce_forecolorpicker {background-position:-720px 0} +.Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.Skin span.mce_advhr {background-position:-0px -20px} +.Skin span.mce_ltr {background-position:-20px -20px} +.Skin span.mce_rtl {background-position:-40px -20px} +.Skin span.mce_emotions {background-position:-60px -20px} +.Skin span.mce_fullpage {background-position:-80px -20px} +.Skin span.mce_fullscreen {background-position:-100px -20px} +.Skin span.mce_iespell {background-position:-120px -20px} +.Skin span.mce_insertdate {background-position:-140px -20px} +.Skin span.mce_inserttime {background-position:-160px -20px} +.Skin span.mce_absolute {background-position:-180px -20px} +.Skin span.mce_backward {background-position:-200px -20px} +.Skin span.mce_forward {background-position:-220px -20px} +.Skin span.mce_insert_layer {background-position:-240px -20px} +.Skin span.mce_insertlayer {background-position:-260px -20px} +.Skin span.mce_movebackward {background-position:-280px -20px} +.Skin span.mce_moveforward {background-position:-300px -20px} +.Skin span.mce_media {background-position:-320px -20px} +.Skin span.mce_nonbreaking {background-position:-340px -20px} +.Skin span.mce_pastetext {background-position:-360px -20px} +.Skin span.mce_pasteword {background-position:-380px -20px} +.Skin span.mce_selectall {background-position:-400px -20px} +.Skin span.mce_preview {background-position:-420px -20px} +.Skin span.mce_print {background-position:-440px -20px} +.Skin span.mce_cancel {background-position:-460px -20px} +.Skin span.mce_save {background-position:-480px -20px} +.Skin span.mce_replace {background-position:-500px -20px} +.Skin span.mce_search {background-position:-520px -20px} +.Skin span.mce_styleprops {background-position:-560px -20px} +.Skin span.mce_table {background-position:-580px -20px} +.Skin span.mce_cell_props {background-position:-600px -20px} +.Skin span.mce_delete_table {background-position:-620px -20px} +.Skin span.mce_delete_col {background-position:-640px -20px} +.Skin span.mce_delete_row {background-position:-660px -20px} +.Skin span.mce_col_after {background-position:-680px -20px} +.Skin span.mce_col_before {background-position:-700px -20px} +.Skin span.mce_row_after {background-position:-720px -20px} +.Skin span.mce_row_before {background-position:-740px -20px} +.Skin span.mce_merge_cells {background-position:-760px -20px} +.Skin span.mce_table_props {background-position:-980px -20px} +.Skin span.mce_row_props {background-position:-780px -20px} +.Skin span.mce_split_cells {background-position:-800px -20px} +.Skin span.mce_template {background-position:-820px -20px} +.Skin span.mce_visualchars {background-position:-840px -20px} +.Skin span.mce_abbr {background-position:-860px -20px} +.Skin span.mce_acronym {background-position:-880px -20px} +.Skin span.mce_attribs {background-position:-900px -20px} +.Skin span.mce_cite {background-position:-920px -20px} +.Skin span.mce_del {background-position:-940px -20px} +.Skin span.mce_ins {background-position:-960px -20px} +.Skin span.mce_pagebreak {background-position:0 -40px} +.Skin span.mce_restoredraft {background-position:-20px -40px} +.Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/content.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/content.css new file mode 100644 index 0000000..0297591 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/content.css @@ -0,0 +1,43 @@ +body, td, pre {color:#A0A0A0; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#151515;} +body.mceForceColors {background:#151515; color:#A0A0A0;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block; font-weight:bold;font-size:large} +blockquote{ background-color:#444444; padding:2px;} + +code{background-color:lightgray;} + +.snInfoBoxHead{font-weight:bold;color:#FE9800;display:block;} +.snInfoBox{display:block;border: solid #A0A0A0 2px; padding:4px;background-color:#444;color:#A0A0A0;} + +h1{color:#6B8797;} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/dialog.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_games.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_games.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/buttons.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/img/buttons.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/ui.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/ui.css new file mode 100644 index 0000000..d1951e2 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_games/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +._gamesSkin table, ._gamesSkin tbody, ._gamesSkin a, ._gamesSkin img, ._gamesSkin tr, ._gamesSkin div, ._gamesSkin td, ._gamesSkin iframe, ._gamesSkin span, ._gamesSkin *, ._gamesSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +._gamesSkin a:hover, ._gamesSkin a:link, ._gamesSkin a:visited, ._gamesSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +._gamesSkin table td {vertical-align:middle} + +/* Containers */ +._gamesSkin table {background:#212121} +._gamesSkin iframe {display:block; background:#FFF} +._gamesSkin .mceToolbar {height:26px} + +/* External */ +._gamesSkin .mceExternalToolbar {position:absolute; border:1px solid #444444; border-bottom:0; display:none} +._gamesSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +._gamesSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +._gamesSkin table.mceLayout {border:0; border-left:1px solid #444444; border-right:1px solid #444444} +._gamesSkin table.mceLayout tr.mceFirst td {border-top:1px solid #444444} +._gamesSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #444444} +._gamesSkin table.mceToolbar, ._gamesSkin tr.mceFirst .mceToolbar tr td, ._gamesSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +._gamesSkin .mceIframeContainer {border-top:1px solid #444444; border-bottom:1px solid #444444} +._gamesSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +._gamesSkin .mceStatusbar div {float:left; padding:2px} +._gamesSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +._gamesSkin .mceStatusbar a:hover {text-decoration:underline} +._gamesSkin table.mceToolbar {margin-left:3px} +._gamesSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg_games.png) -22px 0; width:1px; height:22px; margin-left:3px;} +._gamesSkin .mceToolbar td.mceFirst span {margin:0} +._gamesSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg_games.png) -22px 0; width:1px; height:22px} +._gamesSkin .mceToolbar .mceToolbarEndListBox span, ._gamesSkin .mceToolbar .mceToolbarStartListBox span {display:none} +._gamesSkin span.mceIcon, ._gamesSkin img.mceIcon {display:block; width:20px; height:20px} +._gamesSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +._gamesSkin td.mceCenter {text-align:center;} +._gamesSkin td.mceCenter table {margin:0 auto; text-align:left;} +._gamesSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +._gamesSkin .mceButton {display:block; background:url(img/button_bg_games.png); width:22px; height:22px} +._gamesSkin a.mceButton span, ._gamesSkin a.mceButton img {margin-left:1px} +._gamesSkin .mceOldBoxModel a.mceButton span, ._gamesSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +._gamesSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +._gamesSkin a.mceButtonActive, ._gamesSkin a.mceButtonSelected {background-position:0 -44px} +._gamesSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._gamesSkin .mceButtonLabeled {width:auto} +._gamesSkin .mceButtonLabeled span.mceIcon {float:left} +._gamesSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +._gamesSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +._gamesSkin .mceSeparator {display:block; background:url(img/button_bg_games.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +._gamesSkin .mceListBox {margin-left:3px} +._gamesSkin .mceListBox, ._gamesSkin .mceListBox a {display:block} +._gamesSkin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +._gamesSkin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg_games.png) -66px 0} +._gamesSkin table.mceListBoxEnabled:hover .mceText, ._gamesSkin .mceListBoxHover .mceText, ._gamesSkin .mceListBoxSelected .mceText {background:#FFF} +._gamesSkin table.mceListBoxEnabled:hover .mceOpen, ._gamesSkin .mceListBoxHover .mceOpen, ._gamesSkin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +._gamesSkin .mceListBoxDisabled .mceText {color:gray} +._gamesSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +._gamesSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +._gamesSkin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +._gamesSkin .mceSplitButton, ._gamesSkin .mceSplitButton a, ._gamesSkin .mceSplitButton span {display:block; height:22px} +._gamesSkin .mceSplitButton {background:url(img/button_bg_games.png)} +._gamesSkin .mceSplitButton a.mceAction {width:22px} +._gamesSkin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +._gamesSkin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg_games.png) -44px 0} +._gamesSkin .mceSplitButton span.mceOpen {display:none} +._gamesSkin table.mceSplitButtonEnabled:hover a.mceAction, ._gamesSkin .mceSplitButtonHover a.mceAction, ._gamesSkin .mceSplitButtonSelected {background:url(img/button_bg_games.png) 0 -22px} +._gamesSkin table.mceSplitButtonEnabled:hover a.mceOpen, ._gamesSkin .mceSplitButtonHover a.mceOpen, ._gamesSkin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +._gamesSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._gamesSkin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +._gamesSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +._gamesSkin .mceColorSplitMenu td {padding:2px} +._gamesSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +._gamesSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +._gamesSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +._gamesSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +._gamesSkin a.mceMoreColors:hover {border:1px solid #0A246A} +._gamesSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +._gamesSkin .mce_forecolor span.mceAction, ._gamesSkin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +._gamesSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #444444} +._gamesSkin .mceNoIcons span.mceIcon {width:0;} +._gamesSkin .mceNoIcons a .mceText {padding-left:10px} +._gamesSkin .mceMenu table {background:#FFF} +._gamesSkin .mceMenu a, ._gamesSkin .mceMenu span, ._gamesSkin .mceMenu {display:block} +._gamesSkin .mceMenu td {height:20px} +._gamesSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +._gamesSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +._gamesSkin .mceMenu span.mceText, ._gamesSkin .mceMenu .mcePreview {font-size:11px} +._gamesSkin .mceMenu pre.mceText {font-family:Monospace} +._gamesSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +._gamesSkin .mceMenu .mceMenuItemEnabled a:hover, ._gamesSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +._gamesSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +._gamesSkin .mceMenuItemTitle a {border:0; background:#212121; border-bottom:1px solid #444444} +._gamesSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +._gamesSkin .mceMenuItemDisabled .mceText {color:#888} +._gamesSkin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +._gamesSkin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +._gamesSkin .mceMenu span.mceMenuLine {display:none} +._gamesSkin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +._gamesSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +._gamesSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +._gamesSkin .mce_formatPreview a {font-size:10px} +._gamesSkin .mce_p span.mceText {} +._gamesSkin .mce_address span.mceText {font-style:italic} +._gamesSkin .mce_pre span.mceText {font-family:monospace} +._gamesSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +._gamesSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +._gamesSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +._gamesSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +._gamesSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +._gamesSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +._gamesSkin span.mce_bold {background-position:0 0} +._gamesSkin span.mce_italic {background-position:-60px 0} +._gamesSkin span.mce_underline {background-position:-140px 0} +._gamesSkin span.mce_strikethrough {background-position:-120px 0} +._gamesSkin span.mce_undo {background-position:-160px 0} +._gamesSkin span.mce_redo {background-position:-100px 0} +._gamesSkin span.mce_cleanup {background-position:-40px 0} +._gamesSkin span.mce_bullist {background-position:-20px 0} +._gamesSkin span.mce_numlist {background-position:-80px 0} +._gamesSkin span.mce_justifyleft {background-position:-460px 0} +._gamesSkin span.mce_justifyright {background-position:-480px 0} +._gamesSkin span.mce_justifycenter {background-position:-420px 0} +._gamesSkin span.mce_justifyfull {background-position:-440px 0} +._gamesSkin span.mce_anchor {background-position:-200px 0} +._gamesSkin span.mce_indent {background-position:-400px 0} +._gamesSkin span.mce_outdent {background-position:-540px 0} +._gamesSkin span.mce_link {background-position:-500px 0} +._gamesSkin span.mce_unlink {background-position:-640px 0} +._gamesSkin span.mce_sub {background-position:-600px 0} +._gamesSkin span.mce_sup {background-position:-620px 0} +._gamesSkin span.mce_removeformat {background-position:-580px 0} +._gamesSkin span.mce_newdocument {background-position:-520px 0} +._gamesSkin span.mce_image {background-position:-380px 0} +._gamesSkin span.mce_help {background-position:-340px 0} +._gamesSkin span.mce_code {background-position:-260px 0} +._gamesSkin span.mce_hr {background-position:-360px 0} +._gamesSkin span.mce_visualaid {background-position:-660px 0} +._gamesSkin span.mce_charmap {background-position:-240px 0} +._gamesSkin span.mce_paste {background-position:-560px 0} +._gamesSkin span.mce_copy {background-position:-700px 0} +._gamesSkin span.mce_cut {background-position:-680px 0} +._gamesSkin span.mce_blockquote {background-position:-220px 0} +._gamesSkin .mce_forecolor span.mceAction {background-position:-720px 0} +._gamesSkin .mce_backcolor span.mceAction {background-position:-760px 0} +._gamesSkin span.mce_forecolorpicker {background-position:-720px 0} +._gamesSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +._gamesSkin span.mce_advhr {background-position:-0px -20px} +._gamesSkin span.mce_ltr {background-position:-20px -20px} +._gamesSkin span.mce_rtl {background-position:-40px -20px} +._gamesSkin span.mce_emotions {background-position:-60px -20px} +._gamesSkin span.mce_fullpage {background-position:-80px -20px} +._gamesSkin span.mce_fullscreen {background-position:-100px -20px} +._gamesSkin span.mce_iespell {background-position:-120px -20px} +._gamesSkin span.mce_insertdate {background-position:-140px -20px} +._gamesSkin span.mce_inserttime {background-position:-160px -20px} +._gamesSkin span.mce_absolute {background-position:-180px -20px} +._gamesSkin span.mce_backward {background-position:-200px -20px} +._gamesSkin span.mce_forward {background-position:-220px -20px} +._gamesSkin span.mce_insert_layer {background-position:-240px -20px} +._gamesSkin span.mce_insertlayer {background-position:-260px -20px} +._gamesSkin span.mce_movebackward {background-position:-280px -20px} +._gamesSkin span.mce_moveforward {background-position:-300px -20px} +._gamesSkin span.mce_media {background-position:-320px -20px} +._gamesSkin span.mce_nonbreaking {background-position:-340px -20px} +._gamesSkin span.mce_pastetext {background-position:-360px -20px} +._gamesSkin span.mce_pasteword {background-position:-380px -20px} +._gamesSkin span.mce_selectall {background-position:-400px -20px} +._gamesSkin span.mce_preview {background-position:-420px -20px} +._gamesSkin span.mce_print {background-position:-440px -20px} +._gamesSkin span.mce_cancel {background-position:-460px -20px} +._gamesSkin span.mce_save {background-position:-480px -20px} +._gamesSkin span.mce_replace {background-position:-500px -20px} +._gamesSkin span.mce_search {background-position:-520px -20px} +._gamesSkin span.mce_styleprops {background-position:-560px -20px} +._gamesSkin span.mce_table {background-position:-580px -20px} +._gamesSkin span.mce_cell_props {background-position:-600px -20px} +._gamesSkin span.mce_delete_table {background-position:-620px -20px} +._gamesSkin span.mce_delete_col {background-position:-640px -20px} +._gamesSkin span.mce_delete_row {background-position:-660px -20px} +._gamesSkin span.mce_col_after {background-position:-680px -20px} +._gamesSkin span.mce_col_before {background-position:-700px -20px} +._gamesSkin span.mce_row_after {background-position:-720px -20px} +._gamesSkin span.mce_row_before {background-position:-740px -20px} +._gamesSkin span.mce_merge_cells {background-position:-760px -20px} +._gamesSkin span.mce_table_props {background-position:-980px -20px} +._gamesSkin span.mce_row_props {background-position:-780px -20px} +._gamesSkin span.mce_split_cells {background-position:-800px -20px} +._gamesSkin span.mce_template {background-position:-820px -20px} +._gamesSkin span.mce_visualchars {background-position:-840px -20px} +._gamesSkin span.mce_abbr {background-position:-860px -20px} +._gamesSkin span.mce_acronym {background-position:-880px -20px} +._gamesSkin span.mce_attribs {background-position:-900px -20px} +._gamesSkin span.mce_cite {background-position:-920px -20px} +._gamesSkin span.mce_del {background-position:-940px -20px} +._gamesSkin span.mce_ins {background-position:-960px -20px} +._gamesSkin span.mce_pagebreak {background-position:0 -40px} +._gamesSkin span.mce_restoredraft {background-position:-20px -40px} +._gamesSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/content.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/content.css new file mode 100644 index 0000000..024543a --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/content.css @@ -0,0 +1,43 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFD5A1;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block;font-weight:bold;font-size:large} +blockquote{ background-color:#FAB47E; padding:2px;} + +code{} + +.snInfoBoxHead{font-weight:bold;color:blue;display:block;} +.snInfoBox{display:block; border: solid black 2px; padding:4px;background-color:#FFE9CD;} + +h1{color:#6F741C;} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/dialog.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/buttons.png b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/img/buttons.png differ diff --git a/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/ui.css b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/ui.css new file mode 100644 index 0000000..b69ec56 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/skins/supportnet_kochen/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +._kochenSkin table, ._kochenSkin tbody, ._kochenSkin a, ._kochenSkin img, ._kochenSkin tr, ._kochenSkin div, ._kochenSkin td, ._kochenSkin iframe, ._kochenSkin span, ._kochenSkin *, ._kochenSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +._kochenSkin a:hover, ._kochenSkin a:link, ._kochenSkin a:visited, ._kochenSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +._kochenSkin table td {vertical-align:middle} + +/* Containers */ +._kochenSkin table {background:#FFE9CD} +._kochenSkin iframe {display:block; background:#FFF} +._kochenSkin .mceToolbar {height:26px} + +/* External */ +._kochenSkin .mceExternalToolbar {position:absolute; border:1px solid #D54510; border-bottom:0; display:none} +._kochenSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +._kochenSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +._kochenSkin table.mceLayout {border:0; border-left:1px solid #D54510; border-right:1px solid #D54510} +._kochenSkin table.mceLayout tr.mceFirst td {border-top:1px solid #D54510} +._kochenSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #D54510} +._kochenSkin table.mceToolbar, ._kochenSkin tr.mceFirst .mceToolbar tr td, ._kochenSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +._kochenSkin .mceIframeContainer {border-top:1px solid #D54510; border-bottom:1px solid #D54510} +._kochenSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +._kochenSkin .mceStatusbar div {float:left; padding:2px} +._kochenSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +._kochenSkin .mceStatusbar a:hover {text-decoration:underline} +._kochenSkin table.mceToolbar {margin-left:3px} +._kochenSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg_kochen.png) -22px 0; width:1px; height:22px; margin-left:3px;} +._kochenSkin .mceToolbar td.mceFirst span {margin:0} +._kochenSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg_kochen.png) -22px 0; width:1px; height:22px} +._kochenSkin .mceToolbar .mceToolbarEndListBox span, ._kochenSkin .mceToolbar .mceToolbarStartListBox span {display:none} +._kochenSkin span.mceIcon, ._kochenSkin img.mceIcon {display:block; width:20px; height:20px} +._kochenSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +._kochenSkin td.mceCenter {text-align:center;} +._kochenSkin td.mceCenter table {margin:0 auto; text-align:left;} +._kochenSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +._kochenSkin .mceButton {display:block; background:url(img/button_bg_kochen.png); width:22px; height:22px} +._kochenSkin a.mceButton span, ._kochenSkin a.mceButton img {margin-left:1px} +._kochenSkin .mceOldBoxModel a.mceButton span, ._kochenSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +._kochenSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +._kochenSkin a.mceButtonActive, ._kochenSkin a.mceButtonSelected {background-position:0 -44px} +._kochenSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._kochenSkin .mceButtonLabeled {width:auto} +._kochenSkin .mceButtonLabeled span.mceIcon {float:left} +._kochenSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +._kochenSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +._kochenSkin .mceSeparator {display:block; background:url(img/button_bg_kochen.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +._kochenSkin .mceListBox {margin-left:3px} +._kochenSkin .mceListBox, ._kochenSkin .mceListBox a {display:block} +._kochenSkin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +._kochenSkin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg_kochen.png) -66px 0} +._kochenSkin table.mceListBoxEnabled:hover .mceText, ._kochenSkin .mceListBoxHover .mceText, ._kochenSkin .mceListBoxSelected .mceText {background:#FFF} +._kochenSkin table.mceListBoxEnabled:hover .mceOpen, ._kochenSkin .mceListBoxHover .mceOpen, ._kochenSkin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +._kochenSkin .mceListBoxDisabled .mceText {color:gray} +._kochenSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +._kochenSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +._kochenSkin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +._kochenSkin .mceSplitButton, ._kochenSkin .mceSplitButton a, ._kochenSkin .mceSplitButton span {display:block; height:22px} +._kochenSkin .mceSplitButton {background:url(img/button_bg_kochen.png)} +._kochenSkin .mceSplitButton a.mceAction {width:22px} +._kochenSkin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +._kochenSkin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg_kochen.png) -44px 0} +._kochenSkin .mceSplitButton span.mceOpen {display:none} +._kochenSkin table.mceSplitButtonEnabled:hover a.mceAction, ._kochenSkin .mceSplitButtonHover a.mceAction, ._kochenSkin .mceSplitButtonSelected {background:url(img/button_bg_kochen.png) 0 -22px} +._kochenSkin table.mceSplitButtonEnabled:hover a.mceOpen, ._kochenSkin .mceSplitButtonHover a.mceOpen, ._kochenSkin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +._kochenSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._kochenSkin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +._kochenSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +._kochenSkin .mceColorSplitMenu td {padding:2px} +._kochenSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +._kochenSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +._kochenSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +._kochenSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +._kochenSkin a.mceMoreColors:hover {border:1px solid #0A246A} +._kochenSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +._kochenSkin .mce_forecolor span.mceAction, ._kochenSkin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +._kochenSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D54510} +._kochenSkin .mceNoIcons span.mceIcon {width:0;} +._kochenSkin .mceNoIcons a .mceText {padding-left:10px} +._kochenSkin .mceMenu table {background:#FFF} +._kochenSkin .mceMenu a, ._kochenSkin .mceMenu span, ._kochenSkin .mceMenu {display:block} +._kochenSkin .mceMenu td {height:20px} +._kochenSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +._kochenSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +._kochenSkin .mceMenu span.mceText, ._kochenSkin .mceMenu .mcePreview {font-size:11px} +._kochenSkin .mceMenu pre.mceText {font-family:Monospace} +._kochenSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +._kochenSkin .mceMenu .mceMenuItemEnabled a:hover, ._kochenSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +._kochenSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +._kochenSkin .mceMenuItemTitle a {border:0; background:#FFE9CD; border-bottom:1px solid #D54510} +._kochenSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +._kochenSkin .mceMenuItemDisabled .mceText {color:#888} +._kochenSkin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +._kochenSkin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +._kochenSkin .mceMenu span.mceMenuLine {display:none} +._kochenSkin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +._kochenSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +._kochenSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +._kochenSkin .mce_formatPreview a {font-size:10px} +._kochenSkin .mce_p span.mceText {} +._kochenSkin .mce_address span.mceText {font-style:italic} +._kochenSkin .mce_pre span.mceText {font-family:monospace} +._kochenSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +._kochenSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +._kochenSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +._kochenSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +._kochenSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +._kochenSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +._kochenSkin span.mce_bold {background-position:0 0} +._kochenSkin span.mce_italic {background-position:-60px 0} +._kochenSkin span.mce_underline {background-position:-140px 0} +._kochenSkin span.mce_strikethrough {background-position:-120px 0} +._kochenSkin span.mce_undo {background-position:-160px 0} +._kochenSkin span.mce_redo {background-position:-100px 0} +._kochenSkin span.mce_cleanup {background-position:-40px 0} +._kochenSkin span.mce_bullist {background-position:-20px 0} +._kochenSkin span.mce_numlist {background-position:-80px 0} +._kochenSkin span.mce_justifyleft {background-position:-460px 0} +._kochenSkin span.mce_justifyright {background-position:-480px 0} +._kochenSkin span.mce_justifycenter {background-position:-420px 0} +._kochenSkin span.mce_justifyfull {background-position:-440px 0} +._kochenSkin span.mce_anchor {background-position:-200px 0} +._kochenSkin span.mce_indent {background-position:-400px 0} +._kochenSkin span.mce_outdent {background-position:-540px 0} +._kochenSkin span.mce_link {background-position:-500px 0} +._kochenSkin span.mce_unlink {background-position:-640px 0} +._kochenSkin span.mce_sub {background-position:-600px 0} +._kochenSkin span.mce_sup {background-position:-620px 0} +._kochenSkin span.mce_removeformat {background-position:-580px 0} +._kochenSkin span.mce_newdocument {background-position:-520px 0} +._kochenSkin span.mce_image {background-position:-380px 0} +._kochenSkin span.mce_help {background-position:-340px 0} +._kochenSkin span.mce_code {background-position:-260px 0} +._kochenSkin span.mce_hr {background-position:-360px 0} +._kochenSkin span.mce_visualaid {background-position:-660px 0} +._kochenSkin span.mce_charmap {background-position:-240px 0} +._kochenSkin span.mce_paste {background-position:-560px 0} +._kochenSkin span.mce_copy {background-position:-700px 0} +._kochenSkin span.mce_cut {background-position:-680px 0} +._kochenSkin span.mce_blockquote {background-position:-220px 0} +._kochenSkin .mce_forecolor span.mceAction {background-position:-720px 0} +._kochenSkin .mce_backcolor span.mceAction {background-position:-760px 0} +._kochenSkin span.mce_forecolorpicker {background-position:-720px 0} +._kochenSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +._kochenSkin span.mce_advhr {background-position:-0px -20px} +._kochenSkin span.mce_ltr {background-position:-20px -20px} +._kochenSkin span.mce_rtl {background-position:-40px -20px} +._kochenSkin span.mce_emotions {background-position:-60px -20px} +._kochenSkin span.mce_fullpage {background-position:-80px -20px} +._kochenSkin span.mce_fullscreen {background-position:-100px -20px} +._kochenSkin span.mce_iespell {background-position:-120px -20px} +._kochenSkin span.mce_insertdate {background-position:-140px -20px} +._kochenSkin span.mce_inserttime {background-position:-160px -20px} +._kochenSkin span.mce_absolute {background-position:-180px -20px} +._kochenSkin span.mce_backward {background-position:-200px -20px} +._kochenSkin span.mce_forward {background-position:-220px -20px} +._kochenSkin span.mce_insert_layer {background-position:-240px -20px} +._kochenSkin span.mce_insertlayer {background-position:-260px -20px} +._kochenSkin span.mce_movebackward {background-position:-280px -20px} +._kochenSkin span.mce_moveforward {background-position:-300px -20px} +._kochenSkin span.mce_media {background-position:-320px -20px} +._kochenSkin span.mce_nonbreaking {background-position:-340px -20px} +._kochenSkin span.mce_pastetext {background-position:-360px -20px} +._kochenSkin span.mce_pasteword {background-position:-380px -20px} +._kochenSkin span.mce_selectall {background-position:-400px -20px} +._kochenSkin span.mce_preview {background-position:-420px -20px} +._kochenSkin span.mce_print {background-position:-440px -20px} +._kochenSkin span.mce_cancel {background-position:-460px -20px} +._kochenSkin span.mce_save {background-position:-480px -20px} +._kochenSkin span.mce_replace {background-position:-500px -20px} +._kochenSkin span.mce_search {background-position:-520px -20px} +._kochenSkin span.mce_styleprops {background-position:-560px -20px} +._kochenSkin span.mce_table {background-position:-580px -20px} +._kochenSkin span.mce_cell_props {background-position:-600px -20px} +._kochenSkin span.mce_delete_table {background-position:-620px -20px} +._kochenSkin span.mce_delete_col {background-position:-640px -20px} +._kochenSkin span.mce_delete_row {background-position:-660px -20px} +._kochenSkin span.mce_col_after {background-position:-680px -20px} +._kochenSkin span.mce_col_before {background-position:-700px -20px} +._kochenSkin span.mce_row_after {background-position:-720px -20px} +._kochenSkin span.mce_row_before {background-position:-740px -20px} +._kochenSkin span.mce_merge_cells {background-position:-760px -20px} +._kochenSkin span.mce_table_props {background-position:-980px -20px} +._kochenSkin span.mce_row_props {background-position:-780px -20px} +._kochenSkin span.mce_split_cells {background-position:-800px -20px} +._kochenSkin span.mce_template {background-position:-820px -20px} +._kochenSkin span.mce_visualchars {background-position:-840px -20px} +._kochenSkin span.mce_abbr {background-position:-860px -20px} +._kochenSkin span.mce_acronym {background-position:-880px -20px} +._kochenSkin span.mce_attribs {background-position:-900px -20px} +._kochenSkin span.mce_cite {background-position:-920px -20px} +._kochenSkin span.mce_del {background-position:-940px -20px} +._kochenSkin span.mce_ins {background-position:-960px -20px} +._kochenSkin span.mce_pagebreak {background-position:0 -40px} +._kochenSkin span.mce_restoredraft {background-position:-20px -40px} +._kochenSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_computer/html/tiny_mce/themes/advanced/source_editor.htm b/sn_computer/html/tiny_mce/themes/advanced/source_editor.htm new file mode 100644 index 0000000..78033fd --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/advanced/source_editor.htm @@ -0,0 +1,25 @@ + + + {#advanced_dlg.code_title} + + + + +
    +
    {#advanced_dlg.code_title}
    + +
    + +
    + +
    + + + +
    + + +
    +
    + + diff --git a/sn_computer/html/tiny_mce/themes/simple/editor_template.js b/sn_computer/html/tiny_mce/themes/simple/editor_template.js new file mode 100644 index 0000000..ed89abc --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/editor_template.js @@ -0,0 +1 @@ +(function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})});c.dom.loadCSS(d+"/skins/"+f.skin+"/content.css")});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/simple/editor_template_src.js b/sn_computer/html/tiny_mce/themes/simple/editor_template_src.js new file mode 100644 index 0000000..ec9e963 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/editor_template_src.js @@ -0,0 +1,85 @@ +/** + * editor_template_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM; + + // Tell it to load theme specific language pack(s) + tinymce.ThemeManager.requireLangPack('simple'); + + tinymce.create('tinymce.themes.SimpleTheme', { + init : function(ed, url) { + var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings; + + t.editor = ed; + + ed.onInit.add(function() { + ed.onNodeChange.add(function(ed, cm) { + tinymce.each(states, function(c) { + cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c)); + }); + }); + + ed.dom.loadCSS(url + "/skins/" + s.skin + "/content.css"); + }); + + DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css"); + }, + + renderUI : function(o) { + var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc; + + n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n); + n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'}); + n = tb = DOM.add(n, 'tbody'); + + // Create iframe container + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'}); + + // Create toolbar container + n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'}); + + // Create toolbar + tb = t.toolbar = cf.createToolbar("tools1"); + tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'})); + tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'})); + tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'})); + tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'})); + tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'})); + tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'})); + tb.renderTo(n); + + return { + iframeContainer : ic, + editorContainer : ed.id + '_container', + sizeContainer : sc, + deltaHeight : -20 + }; + }, + + getInfo : function() { + return { + longname : 'Simple theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + } + }); + + tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme); +})(); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/simple/img/icons.gif b/sn_computer/html/tiny_mce/themes/simple/img/icons.gif new file mode 100644 index 0000000..16af141 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/simple/img/icons.gif differ diff --git a/sn_computer/html/tiny_mce/themes/simple/langs/de.js b/sn_computer/html/tiny_mce/themes/simple/langs/de.js new file mode 100644 index 0000000..ce0a376 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/langs/de.js @@ -0,0 +1,11 @@ +tinyMCE.addI18n('de.simple',{ +bold_desc:"Fett (Strg+B)", +italic_desc:"Kursiv (Strg+I)", +underline_desc:"Unterstrichen (Strg+U)", +striketrough_desc:"Durchgestrichen", +bullist_desc:"Aufz\u00E4hlung", +numlist_desc:"Nummerierung", +undo_desc:"R\u00FCckg\u00E4ngig (Strg+Z)", +redo_desc:"Wiederholen (Strg+Y)", +cleanup_desc:"Quellcode s\u00E4ubern" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/simple/langs/en.js b/sn_computer/html/tiny_mce/themes/simple/langs/en.js new file mode 100644 index 0000000..6f09531 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/langs/en.js @@ -0,0 +1,11 @@ +tinyMCE.addI18n('en.simple',{ +bold_desc:"Bold (Ctrl+B)", +italic_desc:"Italic (Ctrl+I)", +underline_desc:"Underline (Ctrl+U)", +striketrough_desc:"Strikethrough", +bullist_desc:"Unordered list", +numlist_desc:"Ordered list", +undo_desc:"Undo (Ctrl+Z)", +redo_desc:"Redo (Ctrl+Y)", +cleanup_desc:"Cleanup messy code" +}); \ No newline at end of file diff --git a/sn_computer/html/tiny_mce/themes/simple/skins/default/content.css b/sn_computer/html/tiny_mce/themes/simple/skins/default/content.css new file mode 100644 index 0000000..783b170 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/skins/default/content.css @@ -0,0 +1,25 @@ +body, td, pre { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; +} + +body { + background-color: #FFFFFF; +} + +.mceVisualAid { + border: 1px dashed #BBBBBB; +} + +/* MSIE specific */ + +* html body { + scrollbar-3dlight-color: #F0F0EE; + scrollbar-arrow-color: #676662; + scrollbar-base-color: #F0F0EE; + scrollbar-darkshadow-color: #DDDDDD; + scrollbar-face-color: #E0E0DD; + scrollbar-highlight-color: #F0F0EE; + scrollbar-shadow-color: #F0F0EE; + scrollbar-track-color: #F5F5F5; +} diff --git a/sn_computer/html/tiny_mce/themes/simple/skins/default/ui.css b/sn_computer/html/tiny_mce/themes/simple/skins/default/ui.css new file mode 100644 index 0000000..32feae6 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/skins/default/ui.css @@ -0,0 +1,32 @@ +/* Reset */ +.defaultSimpleSkin table, .defaultSimpleSkin tbody, .defaultSimpleSkin a, .defaultSimpleSkin img, .defaultSimpleSkin tr, .defaultSimpleSkin div, .defaultSimpleSkin td, .defaultSimpleSkin iframe, .defaultSimpleSkin span, .defaultSimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000} + +/* Containers */ +.defaultSimpleSkin {position:relative} +.defaultSimpleSkin table.mceLayout {background:#F0F0EE; border:1px solid #CCC;} +.defaultSimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #CCC;} +.defaultSimpleSkin .mceToolbar {height:24px;} + +/* Layout */ +.defaultSimpleSkin span.mceIcon, .defaultSimpleSkin img.mceIcon {display:block; width:20px; height:20px} +.defaultSimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} + +/* Button */ +.defaultSimpleSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px} +.defaultSimpleSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0} +.defaultSimpleSkin a.mceButtonActive {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} + +/* Separator */ +.defaultSimpleSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:0 2px 0 4px} + +/* Theme */ +.defaultSimpleSkin span.mce_bold {background-position:0 0} +.defaultSimpleSkin span.mce_italic {background-position:-60px 0} +.defaultSimpleSkin span.mce_underline {background-position:-140px 0} +.defaultSimpleSkin span.mce_strikethrough {background-position:-120px 0} +.defaultSimpleSkin span.mce_undo {background-position:-160px 0} +.defaultSimpleSkin span.mce_redo {background-position:-100px 0} +.defaultSimpleSkin span.mce_cleanup {background-position:-40px 0} +.defaultSimpleSkin span.mce_insertunorderedlist {background-position:-20px 0} +.defaultSimpleSkin span.mce_insertorderedlist {background-position:-80px 0} diff --git a/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/content.css b/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/content.css new file mode 100644 index 0000000..e10558f --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/content.css @@ -0,0 +1,17 @@ +body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} + +body {background: #FFF;} +.mceVisualAid {border: 1px dashed #BBB;} + +/* IE */ + +* html body { +scrollbar-3dlight-color: #F0F0EE; +scrollbar-arrow-color: #676662; +scrollbar-base-color: #F0F0EE; +scrollbar-darkshadow-color: #DDDDDD; +scrollbar-face-color: #E0E0DD; +scrollbar-highlight-color: #F0F0EE; +scrollbar-shadow-color: #F0F0EE; +scrollbar-track-color: #F5F5F5; +} diff --git a/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png b/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png new file mode 100644 index 0000000..527e349 Binary files /dev/null and b/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png differ diff --git a/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/ui.css b/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/ui.css new file mode 100644 index 0000000..021d650 --- /dev/null +++ b/sn_computer/html/tiny_mce/themes/simple/skins/o2k7/ui.css @@ -0,0 +1,35 @@ +/* Reset */ +.o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000} + +/* Containers */ +.o2k7SimpleSkin {position:relative} +.o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;} +.o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;} +.o2k7SimpleSkin .mceToolbar {height:26px;} + +/* Layout */ +.o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; } +.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px} +.o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} + +/* Button */ +.o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px} +.o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px} +.o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} + +/* Separator */ +.o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* Theme */ +.o2k7SimpleSkin span.mce_bold {background-position:0 0} +.o2k7SimpleSkin span.mce_italic {background-position:-60px 0} +.o2k7SimpleSkin span.mce_underline {background-position:-140px 0} +.o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0} +.o2k7SimpleSkin span.mce_undo {background-position:-160px 0} +.o2k7SimpleSkin span.mce_redo {background-position:-100px 0} +.o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0} +.o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0} +.o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0} diff --git a/sn_computer/html/tiny_mce/tiny_mce.js b/sn_computer/html/tiny_mce/tiny_mce.js new file mode 100644 index 0000000..963ad2f --- /dev/null +++ b/sn_computer/html/tiny_mce/tiny_mce.js @@ -0,0 +1 @@ +(function(c){var a=/^\s*|\s*$/g,d;var b={majorVersion:"3",minorVersion:"3.6",releaseDate:"2010-05-20",_init:function(){var r=this,o=document,m=navigator,f=m.userAgent,l,e,k,j,h,q;r.isOpera=c.opera&&opera.buildNumber;r.isWebKit=/WebKit/.test(f);r.isIE=!r.isWebKit&&!r.isOpera&&(/MSIE/gi).test(f)&&(/Explorer/gi).test(m.appName);r.isIE6=r.isIE&&/MSIE [56]/.test(f);r.isGecko=!r.isWebKit&&/Gecko/.test(f);r.isMac=f.indexOf("Mac")!=-1;r.isAir=/adobeair/i.test(f);r.isIDevice=/(iPad|iPhone)/.test(f);if(c.tinyMCEPreInit){r.suffix=tinyMCEPreInit.suffix;r.baseURL=tinyMCEPreInit.base;r.query=tinyMCEPreInit.query;return}r.suffix="";e=o.getElementsByTagName("base");for(l=0;l=c.length){for(e=0,b=g.length;e=c.length||g[e]!=c[e]){f=e+1;break}}}if(g.length=g.length||g[e]!=c[e]){f=e+1;break}}}if(f==1){return h}for(e=0,b=g.length-(f-1);e=0;c--){if(f[c].length==0||f[c]=="."){continue}if(f[c]==".."){b++;continue}if(b>0){b--;continue}h.push(f[c])}c=e.length-b;if(c<=0){g=h.reverse().join("/")}else{g=e.slice(0,c).join("/")+"/"+h.reverse().join("/")}if(g.indexOf("/")!==0){g="/"+g}if(d&&g.lastIndexOf("/")!==g.length-1){g+=d}return g},getURI:function(d){var c,b=this;if(!b.source||d){c="";if(!d){if(b.protocol){c+=b.protocol+"://"}if(b.userInfo){c+=b.userInfo+"@"}if(b.host){c+=b.host}if(b.port){c+=":"+b.port}}if(b.path){c+=b.path}if(b.query){c+="?"+b.query}if(b.anchor){c+="#"+b.anchor}b.source=c}return b.source}})})();(function(){var a=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(d){var b=this.get(d),c;if(b){a(b.split("&"),function(e){e=e.split("=");c=c||{};c[unescape(e[0])]=unescape(e[1])})}return c},setHash:function(j,b,g,f,i,c){var h="";a(b,function(e,d){h+=(!h?"":"&")+escape(d)+"="+escape(e)});this.set(j,h,g,f,i,c)},get:function(i){var h=document.cookie,g,f=i+"=",d;if(!h){return}d=h.indexOf("; "+f);if(d==-1){d=h.indexOf(f);if(d!=0){return null}}else{d+=2}g=h.indexOf(";",d);if(g==-1){g=h.length}return unescape(h.substring(d+f.length,g))},set:function(i,b,g,f,h,c){document.cookie=i+"="+escape(b)+((g)?"; expires="+g.toGMTString():"")+((f)?"; path="+escape(f):"")+((h)?"; domain="+h:"")+((c)?"; secure":"")},remove:function(e,b){var c=new Date();c.setTime(c.getTime()-1000);this.set(e,"",c,b,c)}})})();tinymce.create("static tinymce.util.JSON",{serialize:function(e){var c,a,d=tinymce.util.JSON.serialize,b;if(e==null){return"null"}b=typeof e;if(b=="string"){a="\bb\tt\nn\ff\rr\"\"''\\\\";return'"'+e.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(g,f){c=a.indexOf(f);if(c+1){return"\\"+a.charAt(c+1)}g=f.charCodeAt().toString(16);return"\\u"+"0000".substring(g.length)+g})+'"'}if(b=="object"){if(e.hasOwnProperty&&e instanceof Array){for(c=0,a="[";c0?",":"")+d(e[c])}return a+"]"}a="{";for(c in e){a+=typeof e[c]!="function"?(a.length>1?',"':'"')+c+'":'+d(e[c]):""}return a+"}"}return""+e},parse:function(s){try{return eval("("+s+")")}catch(ex){}}});tinymce.create("static tinymce.util.XHR",{send:function(g){var a,e,b=window,h=0;g.scope=g.scope||this;g.success_scope=g.success_scope||g.scope;g.error_scope=g.error_scope||g.scope;g.async=g.async===false?false:true;g.data=g.data||"";function d(i){a=0;try{a=new ActiveXObject(i)}catch(c){}return a}a=b.XMLHttpRequest?new XMLHttpRequest():d("Microsoft.XMLHTTP")||d("Msxml2.XMLHTTP");if(a){if(a.overrideMimeType){a.overrideMimeType(g.content_type)}a.open(g.type||(g.data?"POST":"GET"),g.url,g.async);if(g.content_type){a.setRequestHeader("Content-Type",g.content_type)}a.setRequestHeader("X-Requested-With","XMLHttpRequest");a.send(g.data);function f(){if(!g.async||a.readyState==4||h++>10000){if(g.success&&h<10000&&a.status==200){g.success.call(g.success_scope,""+a.responseText,a,g)}else{if(g.error){g.error.call(g.error_scope,h>10000?"TIMED_OUT":"GENERAL",a,g)}}a=null}else{b.setTimeout(f,10)}}if(!g.async){return f()}e=b.setTimeout(f,10)}}});(function(){var c=tinymce.extend,b=tinymce.util.JSON,a=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(d){this.settings=c({},d);this.count=0},send:function(f){var e=f.error,d=f.success;f=c(this.settings,f);f.success=function(h,g){h=b.parse(h);if(typeof(h)=="undefined"){h={error:"JSON Parse error."}}if(h.error){e.call(f.error_scope||f.scope,h.error,g)}else{d.call(f.success_scope||f.scope,h.result)}};f.error=function(h,g){e.call(f.error_scope||f.scope,h,g)};f.data=b.serialize({id:f.id||"c"+(this.count++),method:f.method,params:f.params});f.content_type="application/json";a.send(f)},"static":{sendRPC:function(d){return new tinymce.util.JSONRequest().send(d)}}})}());(function(m){var k=m.each,j=m.is,i=m.isWebKit,d=m.isIE,a=/^(H[1-6R]|P|DIV|ADDRESS|PRE|FORM|T(ABLE|BODY|HEAD|FOOT|H|R|D)|LI|OL|UL|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|MENU|ISINDEX|SAMP)$/,e=g("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),f=g("src,href,style,coords,shape"),c={"&":"&",'"':""","<":"<",">":">"},n=/[<>&\"]/g,b=/^([a-z0-9],?)+$/i,h=/<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)(\s*\/?)>/g,l=/(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g;function g(q){var p={},o;q=q.split(",");for(o=q.length;o>=0;o--){p[q[o]]=1}return p}m.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(u,q){var p=this,o;p.doc=u;p.win=window;p.files={};p.cssFlicker=false;p.counter=0;p.boxModel=!m.isIE||u.compatMode=="CSS1Compat";p.stdMode=u.documentMode===8;p.settings=q=m.extend({keep_values:false,hex_colors:1,process_html:1},q);if(m.isIE6){try{u.execCommand("BackgroundImageCache",false,true)}catch(r){p.cssFlicker=true}}if(q.valid_styles){p._styles={};k(q.valid_styles,function(t,s){p._styles[s]=m.explode(t)})}m.addUnload(p.destroy,p)},getRoot:function(){var o=this,p=o.settings;return(p&&o.get(p.root_element))||o.doc.body},getViewPort:function(p){var q,o;p=!p?this.win:p;q=p.document;o=this.boxModel?q.documentElement:q.body;return{x:p.pageXOffset||o.scrollLeft,y:p.pageYOffset||o.scrollTop,w:p.innerWidth||o.clientWidth,h:p.innerHeight||o.clientHeight}},getRect:function(s){var r,o=this,q;s=o.get(s);r=o.getPos(s);q=o.getSize(s);return{x:r.x,y:r.y,w:q.w,h:q.h}},getSize:function(r){var p=this,o,q;r=p.get(r);o=p.getStyle(r,"width");q=p.getStyle(r,"height");if(o.indexOf("px")===-1){o=0}if(q.indexOf("px")===-1){q=0}return{w:parseInt(o)||r.offsetWidth||r.clientWidth,h:parseInt(q)||r.offsetHeight||r.clientHeight}},getParent:function(q,p,o){return this.getParents(q,p,o,false)},getParents:function(z,v,s,y){var q=this,p,u=q.settings,x=[];z=q.get(z);y=y===undefined;if(u.strict_root){s=s||q.getRoot()}if(j(v,"string")){p=v;if(v==="*"){v=function(o){return o.nodeType==1}}else{v=function(o){return q.is(o,p)}}}while(z){if(z==s||!z.nodeType||z.nodeType===9){break}if(!v||v(z)){if(y){x.push(z)}else{return z}}z=z.parentNode}return y?x:null},get:function(o){var p;if(o&&this.doc&&typeof(o)=="string"){p=o;o=this.doc.getElementById(o);if(o&&o.id!==p){return this.doc.getElementsByName(p)[1]}}return o},getNext:function(p,o){return this._findSib(p,o,"nextSibling")},getPrev:function(p,o){return this._findSib(p,o,"previousSibling")},select:function(q,p){var o=this;return m.dom.Sizzle(q,o.get(p)||o.get(o.settings.root_element)||o.doc,[])},is:function(q,o){var p;if(q.length===undefined){if(o==="*"){return q.nodeType==1}if(b.test(o)){o=o.toLowerCase().split(/,/);q=q.nodeName.toLowerCase();for(p=o.length-1;p>=0;p--){if(o[p]==q){return true}}return false}}return m.dom.Sizzle.matches(o,q.nodeType?[q]:q).length>0},add:function(s,v,o,r,u){var q=this;return this.run(s,function(y){var x,t;x=j(v,"string")?q.doc.createElement(v):v;q.setAttribs(x,o);if(r){if(r.nodeType){x.appendChild(r)}else{q.setHTML(x,r)}}return !u?y.appendChild(x):x})},create:function(q,o,p){return this.add(this.doc.createElement(q),q,o,p,1)},createHTML:function(v,p,s){var u="",r=this,q;u+="<"+v;for(q in p){if(p.hasOwnProperty(q)){u+=" "+q+'="'+r.encode(p[q])+'"'}}if(m.is(s)){return u+">"+s+""}return u+" />"},remove:function(o,p){return this.run(o,function(r){var q,s;q=r.parentNode;if(!q){return null}if(p){while(s=r.firstChild){if(!m.isIE||s.nodeType!==3||s.nodeValue){q.insertBefore(s,r)}else{r.removeChild(s)}}}return q.removeChild(r)})},setStyle:function(r,o,p){var q=this;return q.run(r,function(v){var u,t;u=v.style;o=o.replace(/-(\D)/g,function(x,s){return s.toUpperCase()});if(q.pixelStyles.test(o)&&(m.is(p,"number")||/^[\-0-9\.]+$/.test(p))){p+="px"}switch(o){case"opacity":if(d){u.filter=p===""?"":"alpha(opacity="+(p*100)+")";if(!r.currentStyle||!r.currentStyle.hasLayout){u.display="inline-block"}}u[o]=u["-moz-opacity"]=u["-khtml-opacity"]=p||"";break;case"float":d?u.styleFloat=p:u.cssFloat=p;break;default:u[o]=p||""}if(q.settings.update_styles){q.setAttrib(v,"_mce_style")}})},getStyle:function(r,o,q){r=this.get(r);if(!r){return false}if(this.doc.defaultView&&q){o=o.replace(/[A-Z]/g,function(s){return"-"+s});try{return this.doc.defaultView.getComputedStyle(r,null).getPropertyValue(o)}catch(p){return null}}o=o.replace(/-(\D)/g,function(t,s){return s.toUpperCase()});if(o=="float"){o=d?"styleFloat":"cssFloat"}if(r.currentStyle&&q){return r.currentStyle[o]}return r.style[o]},setStyles:function(u,v){var q=this,r=q.settings,p;p=r.update_styles;r.update_styles=0;k(v,function(o,s){q.setStyle(u,s,o)});r.update_styles=p;if(r.update_styles){q.setAttrib(u,r.cssText)}},setAttrib:function(q,r,o){var p=this;if(!q||!r){return}if(p.settings.strict){r=r.toLowerCase()}return this.run(q,function(u){var t=p.settings;switch(r){case"style":if(!j(o,"string")){k(o,function(s,x){p.setStyle(u,x,s)});return}if(t.keep_values){if(o&&!p._isRes(o)){u.setAttribute("_mce_style",o,2)}else{u.removeAttribute("_mce_style",2)}}u.style.cssText=o;break;case"class":u.className=o||"";break;case"src":case"href":if(t.keep_values){if(t.url_converter){o=t.url_converter.call(t.url_converter_scope||p,o,r,u)}p.setAttrib(u,"_mce_"+r,o,2)}break;case"shape":u.setAttribute("_mce_style",o);break}if(j(o)&&o!==null&&o.length!==0){u.setAttribute(r,""+o,2)}else{u.removeAttribute(r,2)}})},setAttribs:function(q,r){var p=this;return this.run(q,function(o){k(r,function(s,t){p.setAttrib(o,t,s)})})},getAttrib:function(r,s,q){var o,p=this;r=p.get(r);if(!r||r.nodeType!==1){return false}if(!j(q)){q=""}if(/^(src|href|style|coords|shape)$/.test(s)){o=r.getAttribute("_mce_"+s);if(o){return o}}if(d&&p.props[s]){o=r[p.props[s]];o=o&&o.nodeValue?o.nodeValue:o}if(!o){o=r.getAttribute(s,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(s)){if(r[p.props[s]]===true&&o===""){return s}return o?s:""}if(r.nodeName==="FORM"&&r.getAttributeNode(s)){return r.getAttributeNode(s).nodeValue}if(s==="style"){o=o||r.style.cssText;if(o){o=p.serializeStyle(p.parseStyle(o),r.nodeName);if(p.settings.keep_values&&!p._isRes(o)){r.setAttribute("_mce_style",o)}}}if(i&&s==="class"&&o){o=o.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(d){switch(s){case"rowspan":case"colspan":if(o===1){o=""}break;case"size":if(o==="+0"||o===20||o===0){o=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(o===0){o=""}break;case"hspace":if(o===-1){o=""}break;case"maxlength":case"tabindex":if(o===32768||o===2147483647||o==="32768"){o=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(o===65535){return s}return q;case"shape":o=o.toLowerCase();break;default:if(s.indexOf("on")===0&&o){o=(""+o).replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1")}}}return(o!==undefined&&o!==null&&o!=="")?""+o:q},getPos:function(A,s){var p=this,o=0,z=0,u,v=p.doc,q;A=p.get(A);s=s||v.body;if(A){if(d&&!p.stdMode){A=A.getBoundingClientRect();u=p.boxModel?v.documentElement:v.body;o=p.getStyle(p.select("html")[0],"borderWidth");o=(o=="medium"||p.boxModel&&!p.isIE6)&&2||o;A.top+=p.win.self!=p.win.top?2:0;return{x:A.left+u.scrollLeft-o,y:A.top+u.scrollTop-o}}q=A;while(q&&q!=s&&q.nodeType){o+=q.offsetLeft||0;z+=q.offsetTop||0;q=q.offsetParent}q=A.parentNode;while(q&&q!=s&&q.nodeType){o-=q.scrollLeft||0;z-=q.scrollTop||0;q=q.parentNode}}return{x:o,y:z}},parseStyle:function(r){var u=this,v=u.settings,x={};if(!r){return x}function p(D,A,C){var z,B,o,y;z=x[D+"-top"+A];if(!z){return}B=x[D+"-right"+A];if(z!=B){return}o=x[D+"-bottom"+A];if(B!=o){return}y=x[D+"-left"+A];if(o!=y){return}x[C]=y;delete x[D+"-top"+A];delete x[D+"-right"+A];delete x[D+"-bottom"+A];delete x[D+"-left"+A]}function q(y,s,o,A){var z;z=x[s];if(!z){return}z=x[o];if(!z){return}z=x[A];if(!z){return}x[y]=x[s]+" "+x[o]+" "+x[A];delete x[s];delete x[o];delete x[A]}r=r.replace(/&(#?[a-z0-9]+);/g,"&$1_MCE_SEMI_");k(r.split(";"),function(s){var o,t=[];if(s){s=s.replace(/_MCE_SEMI_/g,";");s=s.replace(/url\([^\)]+\)/g,function(y){t.push(y);return"url("+t.length+")"});s=s.split(":");o=m.trim(s[1]);o=o.replace(/url\(([^\)]+)\)/g,function(z,y){return t[parseInt(y)-1]});o=o.replace(/rgb\([^\)]+\)/g,function(y){return u.toHex(y)});if(v.url_converter){o=o.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g,function(y,z){return"url("+v.url_converter.call(v.url_converter_scope||u,u.decode(z),"style",null)+")"})}x[m.trim(s[0]).toLowerCase()]=o}});p("border","","border");p("border","-width","border-width");p("border","-color","border-color");p("border","-style","border-style");p("padding","","padding");p("margin","","margin");q("border","border-width","border-style","border-color");if(d){if(x.border=="medium none"){x.border=""}}return x},serializeStyle:function(v,p){var q=this,r="";function u(s,o){if(o&&s){if(o.indexOf("-")===0){return}switch(o){case"font-weight":if(s==700){s="bold"}break;case"color":case"background-color":s=s.toLowerCase();break}r+=(r?" ":"")+o+": "+s+";"}}if(p&&q._styles){k(q._styles["*"],function(o){u(v[o],o)});k(q._styles[p.toLowerCase()],function(o){u(v[o],o)})}else{k(v,u)}return r},loadCSS:function(o){var q=this,r=q.doc,p;if(!o){o=""}p=q.select("head")[0];k(o.split(","),function(s){var t;if(q.files[s]){return}q.files[s]=true;t=q.create("link",{rel:"stylesheet",href:m._addVer(s)});if(d&&r.documentMode){t.onload=function(){r.recalc();t.onload=null}}p.appendChild(t)})},addClass:function(o,p){return this.run(o,function(q){var r;if(!p){return 0}if(this.hasClass(q,p)){return q.className}r=this.removeClass(q,p);return q.className=(r!=""?(r+" "):"")+p})},removeClass:function(q,r){var o=this,p;return o.run(q,function(t){var s;if(o.hasClass(t,r)){if(!p){p=new RegExp("(^|\\s+)"+r+"(\\s+|$)","g")}s=t.className.replace(p," ");s=m.trim(s!=" "?s:"");t.className=s;if(!s){t.removeAttribute("class");t.removeAttribute("className")}return s}return t.className})},hasClass:function(p,o){p=this.get(p);if(!p||!o){return false}return(" "+p.className+" ").indexOf(" "+o+" ")!==-1},show:function(o){return this.setStyle(o,"display","block")},hide:function(o){return this.setStyle(o,"display","none")},isHidden:function(o){o=this.get(o);return !o||o.style.display=="none"||this.getStyle(o,"display")=="none"},uniqueId:function(o){return(!o?"mce_":o)+(this.counter++)},setHTML:function(q,p){var o=this;return this.run(q,function(v){var r,t,s,z,u,r;p=o.processHTML(p);if(d){function y(){while(v.firstChild){v.firstChild.removeNode()}try{v.innerHTML="
    "+p;v.removeChild(v.firstChild)}catch(x){r=o.create("div");r.innerHTML="
    "+p;k(r.childNodes,function(B,A){if(A){v.appendChild(B)}})}}if(o.settings.fix_ie_paragraphs){p=p.replace(/

    <\/p>|]+)><\/p>|/gi,' 

    ')}y();if(o.settings.fix_ie_paragraphs){s=v.getElementsByTagName("p");for(t=s.length-1,r=0;t>=0;t--){z=s[t];if(!z.hasChildNodes()){if(!z._mce_keep){r=1;break}z.removeAttribute("_mce_keep")}}}if(r){p=p.replace(/

    ]+)>|

    /ig,'

    ');p=p.replace(/<\/p>/gi,"
    ");y();if(o.settings.fix_ie_paragraphs){s=v.getElementsByTagName("DIV");for(t=s.length-1;t>=0;t--){z=s[t];if(z._mce_tmp){u=o.doc.createElement("p");z.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi,function(A,x){var B;if(x!=="_mce_tmp"){B=z.getAttribute(x);if(!B&&x==="class"){B=z.className}u.setAttribute(x,B)}});for(r=0;r]+)\/>|/gi,"");if(q.keep_values){if(/)/g,"\n");t=t.replace(/^[\r\n]*|[\r\n]*$/g,"");t=t.replace(/^\s*(\/\/\s*|\]\]>|-->|\]\]-->)\s*$/g,"");return t}r=r.replace(/]+|)>([\s\S]*?)<\/script>/gi,function(s,x,t){if(!x){x=' type="text/javascript"'}x=x.replace(/src=\"([^\"]+)\"?/i,function(y,z){if(q.url_converter){z=p.encode(q.url_converter.call(q.url_converter_scope||p,p.decode(z),"src","script"))}return'_mce_src="'+z+'"'});if(m.trim(t)){v.push(o(t));t=""}return""+t+""});r=r.replace(/]+|)>([\s\S]*?)<\/style>/gi,function(s,x,t){if(t){v.push(o(t));t=""}return""+t+""});r=r.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(s,x,t){return""})}r=r.replace(//g,"");function u(s){return s.replace(h,function(y,z,x,t){return"<"+z+x.replace(l,function(B,A,E,D,C){var F;A=A.toLowerCase();E=E||D||C||"";if(e[A]){if(E==="false"||E==="0"){return}return A+'="'+A+'"'}if(f[A]&&x.indexOf("_mce_"+A)==-1){F=p.decode(E);if(q.url_converter&&(A=="src"||A=="href")){F=q.url_converter.call(q.url_converter_scope||p,F,A,z)}if(A=="style"){F=p.serializeStyle(p.parseStyle(F),A)}return A+'="'+E+'" _mce_'+A+'="'+p.encode(F)+'"'}return B})+t+">"})}r=u(r);r=r.replace(/MCE_SCRIPT:([0-9]+)/g,function(t,s){return v[s]})}return r},getOuterHTML:function(o){var p;o=this.get(o);if(!o){return null}if(o.outerHTML!==undefined){return o.outerHTML}p=(o.ownerDocument||this.doc).createElement("body");p.appendChild(o.cloneNode(true));return p.innerHTML},setOuterHTML:function(r,p,s){var o=this;function q(u,t,x){var y,v;v=x.createElement("body");v.innerHTML=t;y=v.lastChild;while(y){o.insertAfter(y.cloneNode(true),u);y=y.previousSibling}o.remove(u)}return this.run(r,function(u){u=o.get(u);if(u.nodeType==1){s=s||u.ownerDocument||o.doc;if(d){try{if(d&&u.nodeType==1){u.outerHTML=p}else{q(u,p,s)}}catch(t){q(u,p,s)}}else{q(u,p,s)}}})},decode:function(p){var q,r,o;if(/&[\w#]+;/.test(p)){q=this.doc.createElement("div");q.innerHTML=p;r=q.firstChild;o="";if(r){do{o+=r.nodeValue}while(r=r.nextSibling)}return o||p}return p},encode:function(o){return(""+o).replace(n,function(p){return c[p]})},insertAfter:function(o,p){p=this.get(p);return this.run(o,function(r){var q,s;q=p.parentNode;s=p.nextSibling;if(s){q.insertBefore(r,s)}else{q.appendChild(r)}return r})},isBlock:function(o){if(o.nodeType&&o.nodeType!==1){return false}o=o.nodeName||o;return a.test(o)},replace:function(s,r,p){var q=this;if(j(r,"array")){s=s.cloneNode(true)}return q.run(r,function(t){if(p){k(m.grep(t.childNodes),function(o){s.appendChild(o)})}return t.parentNode.replaceChild(s,t)})},rename:function(r,o){var q=this,p;if(r.nodeName!=o.toUpperCase()){p=q.create(o);k(q.getAttribs(r),function(s){q.setAttrib(p,s.nodeName,q.getAttrib(r,s.nodeName))});q.replace(p,r,1)}return p||r},findCommonAncestor:function(q,o){var r=q,p;while(r){p=o;while(p&&r!=p){p=p.parentNode}if(r==p){break}r=r.parentNode}if(!r&&q.ownerDocument){return q.ownerDocument.documentElement}return r},toHex:function(o){var q=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(o);function p(r){r=parseInt(r).toString(16);return r.length>1?r:"0"+r}if(q){o="#"+p(q[1])+p(q[2])+p(q[3]);return o}return o},getClasses:function(){var s=this,o=[],r,u={},v=s.settings.class_filter,q;if(s.classes){return s.classes}function x(t){k(t.imports,function(y){x(y)});k(t.cssRules||t.rules,function(y){switch(y.type||1){case 1:if(y.selectorText){k(y.selectorText.split(","),function(z){z=z.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(z)||!/\.[\w\-]+$/.test(z)){return}q=z;z=z.replace(/.*\.([a-z0-9_\-]+).*/i,"$1");if(v&&!(z=v(z,q))){return}if(!u[z]){o.push({"class":z});u[z]=1}})}break;case 3:x(y.styleSheet);break}})}try{k(s.doc.styleSheets,x)}catch(p){}if(o.length>0){s.classes=o}return o},run:function(u,r,q){var p=this,v;if(p.doc&&typeof(u)==="string"){u=p.get(u)}if(!u){return false}q=q||this;if(!u.nodeType&&(u.length||u.length===0)){v=[];k(u,function(s,o){if(s){if(typeof(s)=="string"){s=p.doc.getElementById(s)}v.push(r.call(q,s,o))}});return v}return r.call(q,u)},getAttribs:function(q){var p;q=this.get(q);if(!q){return[]}if(d){p=[];if(q.nodeName=="OBJECT"){return q.attributes}if(q.nodeName==="OPTION"&&this.getAttrib(q,"selected")){p.push({specified:1,nodeName:"selected"})}q.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(o){p.push({specified:1,nodeName:o})});return p}return q.attributes},destroy:function(p){var o=this;if(o.events){o.events.destroy()}o.win=o.doc=o.root=o.events=null;if(!p){m.removeUnload(o.destroy)}},createRng:function(){var o=this.doc;return o.createRange?o.createRange():new m.dom.Range(this)},nodeIndex:function(s,t){var o=0,q,r,p;if(s){for(q=s.nodeType,s=s.previousSibling,r=s;s;s=s.previousSibling){p=s.nodeType;if(t&&p==3){if(p==q||!s.nodeValue.length){continue}}o++;q=p}}return o},split:function(u,s,y){var z=this,o=z.createRng(),v,q,x;function p(A){var t,r=A.childNodes;if(A.nodeType==1&&A.getAttribute("_mce_type")=="bookmark"){return}for(t=r.length-1;t>=0;t--){p(r[t])}if(A.nodeType!=9){if(A.nodeType==3&&A.nodeValue.length>0){return}if(A.nodeType==1){r=A.childNodes;if(r.length==1&&r[0]&&r[0].nodeType==1&&r[0].getAttribute("_mce_type")=="bookmark"){A.parentNode.insertBefore(r[0],A)}if(r.length||/^(br|hr|input|img)$/i.test(A.nodeName)){return}}z.remove(A)}return A}if(u&&s){o.setStart(u.parentNode,z.nodeIndex(u));o.setEnd(s.parentNode,z.nodeIndex(s));v=o.extractContents();o=z.createRng();o.setStart(s.parentNode,z.nodeIndex(s)+1);o.setEnd(u.parentNode,z.nodeIndex(u)+1);q=o.extractContents();x=u.parentNode;x.insertBefore(p(v),u);if(y){x.replaceChild(y,s)}else{x.insertBefore(s,u)}x.insertBefore(p(q),u);z.remove(u);return y||s}},bind:function(s,o,r,q){var p=this;if(!p.events){p.events=new m.dom.EventUtils()}return p.events.add(s,o,r,q||this)},unbind:function(r,o,q){var p=this;if(!p.events){p.events=new m.dom.EventUtils()}return p.events.remove(r,o,q)},_findSib:function(r,o,p){var q=this,s=o;if(r){if(j(s,"string")){s=function(t){return q.is(t,o)}}for(r=r[p];r;r=r[p]){if(s(r)){return r}}}return null},_isRes:function(o){return/^(top|left|bottom|right|width|height)/i.test(o)||/;\s*(top|left|bottom|right|width|height)/i.test(o)}});m.DOM=new m.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(a){function b(c){var N=this,e=c.doc,S=0,E=1,j=2,D=true,R=false,U="startOffset",h="startContainer",P="endContainer",z="endOffset",k=tinymce.extend,n=c.nodeIndex;k(N,{startContainer:e,startOffset:0,endContainer:e,endOffset:0,collapsed:D,commonAncestorContainer:e,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:q,setEnd:s,setStartBefore:g,setStartAfter:I,setEndBefore:J,setEndAfter:u,collapse:A,selectNode:x,selectNodeContents:F,compareBoundaryPoints:v,deleteContents:p,extractContents:H,cloneContents:d,insertNode:C,surroundContents:M,cloneRange:K});function q(V,t){B(D,V,t)}function s(V,t){B(R,V,t)}function g(t){q(t.parentNode,n(t))}function I(t){q(t.parentNode,n(t)+1)}function J(t){s(t.parentNode,n(t))}function u(t){s(t.parentNode,n(t)+1)}function A(t){if(t){N[P]=N[h];N[z]=N[U]}else{N[h]=N[P];N[U]=N[z]}N.collapsed=D}function x(t){g(t);u(t)}function F(t){q(t,0);s(t,t.nodeType===1?t.childNodes.length:t.nodeValue.length)}function v(W,X){var Z=N[h],Y=N[U],V=N[P],t=N[z];if(W===0){return G(Z,Y,Z,Y)}if(W===1){return G(Z,Y,V,t)}if(W===2){return G(V,t,V,t)}if(W===3){return G(V,t,Z,Y)}}function p(){m(j)}function H(){return m(S)}function d(){return m(E)}function C(Y){var V=this[h],t=this[U],X,W;if((V.nodeType===3||V.nodeType===4)&&V.nodeValue){if(!t){V.parentNode.insertBefore(Y,V)}else{if(t>=V.nodeValue.length){c.insertAfter(Y,V)}else{X=V.splitText(t);V.parentNode.insertBefore(Y,X)}}}else{if(V.childNodes.length>0){W=V.childNodes[t]}if(W){V.insertBefore(Y,W)}else{V.appendChild(Y)}}}function M(V){var t=N.extractContents();N.insertNode(V);V.appendChild(t);N.selectNode(V)}function K(){return k(new b(c),{startContainer:N[h],startOffset:N[U],endContainer:N[P],endOffset:N[z],collapsed:N.collapsed,commonAncestorContainer:N.commonAncestorContainer})}function O(t,V){var W;if(t.nodeType==3){return t}if(V<0){return t}W=t.firstChild;while(W&&V>0){--V;W=W.nextSibling}if(W){return W}return t}function l(){return(N[h]==N[P]&&N[U]==N[z])}function G(X,Z,V,Y){var aa,W,t,ab,ad,ac;if(X==V){if(Z==Y){return 0}if(Z0){N.collapse(V)}}else{N.collapse(V)}N.collapsed=l();N.commonAncestorContainer=c.findCommonAncestor(N[h],N[P])}function m(ab){var aa,X=0,ad=0,V,Z,W,Y,t,ac;if(N[h]==N[P]){return f(ab)}for(aa=N[P],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[h]){return r(aa,ab)}++X}for(aa=N[h],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[P]){return T(aa,ab)}++ad}Z=ad-X;W=N[h];while(Z>0){W=W.parentNode;Z--}Y=N[P];while(Z<0){Y=Y.parentNode;Z++}for(t=W.parentNode,ac=Y.parentNode;t!=ac;t=t.parentNode,ac=ac.parentNode){W=t;Y=ac}return o(W,Y,ab)}function f(Z){var ab,Y,X,aa,t,W,V;if(Z!=j){ab=e.createDocumentFragment()}if(N[U]==N[z]){return ab}if(N[h].nodeType==3){Y=N[h].nodeValue;X=Y.substring(N[U],N[z]);if(Z!=E){N[h].deleteData(N[U],N[z]-N[U]);N.collapse(D)}if(Z==j){return}ab.appendChild(e.createTextNode(X));return ab}aa=O(N[h],N[U]);t=N[z]-N[U];while(t>0){W=aa.nextSibling;V=y(aa,Z);if(ab){ab.appendChild(V)}--t;aa=W}if(Z!=E){N.collapse(D)}return ab}function r(ab,Y){var aa,Z,V,t,X,W;if(Y!=j){aa=e.createDocumentFragment()}Z=i(ab,Y);if(aa){aa.appendChild(Z)}V=n(ab);t=V-N[U];if(t<=0){if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}Z=ab.previousSibling;while(t>0){X=Z.previousSibling;W=y(Z,Y);if(aa){aa.insertBefore(W,aa.firstChild)}--t;Z=X}if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}function T(Z,Y){var ab,V,aa,t,X,W;if(Y!=j){ab=e.createDocumentFragment()}aa=Q(Z,Y);if(ab){ab.appendChild(aa)}V=n(Z);++V;t=N[z]-V;aa=Z.nextSibling;while(t>0){X=aa.nextSibling;W=y(aa,Y);if(ab){ab.appendChild(W)}--t;aa=X}if(Y!=E){N.setStartAfter(Z);N.collapse(D)}return ab}function o(Z,t,ac){var W,ae,Y,aa,ab,V,ad,X;if(ac!=j){ae=e.createDocumentFragment()}W=Q(Z,ac);if(ae){ae.appendChild(W)}Y=Z.parentNode;aa=n(Z);ab=n(t);++aa;V=ab-aa;ad=Z.nextSibling;while(V>0){X=ad.nextSibling;W=y(ad,ac);if(ae){ae.appendChild(W)}ad=X;--V}W=i(t,ac);if(ae){ae.appendChild(W)}if(ac!=E){N.setStartAfter(Z);N.collapse(D)}return ae}function i(aa,ab){var W=O(N[P],N[z]-1),ac,Z,Y,t,V,X=W!=N[P];if(W==aa){return L(W,X,R,ab)}ac=W.parentNode;Z=L(ac,R,R,ab);while(ac){while(W){Y=W.previousSibling;t=L(W,X,R,ab);if(ab!=j){Z.insertBefore(t,Z.firstChild)}X=D;W=Y}if(ac==aa){return Z}W=ac.previousSibling;ac=ac.parentNode;V=L(ac,R,R,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function Q(aa,ab){var X=O(N[h],N[U]),Y=X!=N[h],ac,Z,W,t,V;if(X==aa){return L(X,Y,D,ab)}ac=X.parentNode;Z=L(ac,R,D,ab);while(ac){while(X){W=X.nextSibling;t=L(X,Y,D,ab);if(ab!=j){Z.appendChild(t)}Y=D;X=W}if(ac==aa){return Z}X=ac.nextSibling;ac=ac.parentNode;V=L(ac,R,D,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function L(t,Y,ab,ac){var X,W,Z,V,aa;if(Y){return y(t,ac)}if(t.nodeType==3){X=t.nodeValue;if(ab){V=N[U];W=X.substring(V);Z=X.substring(0,V)}else{V=N[z];W=X.substring(0,V);Z=X.substring(V)}if(ac!=E){t.nodeValue=Z}if(ac==j){return}aa=t.cloneNode(R);aa.nodeValue=W;return aa}if(ac==j){return}return t.cloneNode(R)}function y(V,t){if(t!=j){return t==E?V.cloneNode(D):V}V.parentNode.removeChild(V)}}a.Range=b})(tinymce.dom);(function(){function a(g){var i=this,j="\uFEFF",e,h,d=g.dom,c=true,f=false;function b(){var n=g.getRng(),k=d.createRng(),m,o;m=n.item?n.item(0):n.parentElement();if(m.ownerDocument!=d.doc){return k}if(n.item||!m.hasChildNodes()){k.setStart(m.parentNode,d.nodeIndex(m));k.setEnd(k.startContainer,k.startOffset+1);return k}o=g.isCollapsed();function l(s){var u,q,t,p,A=0,x,y,z,r,v;r=n.duplicate();r.collapse(s);u=d.create("a");z=r.parentElement();z.appendChild(u);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){k[s?"setStartAfter":"setEndAfter"](z);d.remove(u);return}p=tinymce.grep(z.childNodes);x=p.length-1;while(A<=x){y=Math.floor((A+x)/2);z.insertBefore(u,p[y]);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){A=y+1}else{if(v<0){x=y-1}else{found=true;break}}}q=v>0||y==0?u.nextSibling:u.previousSibling;if(q.nodeType==1){d.remove(u);t=d.nodeIndex(q);q=q.parentNode;if(!s||y>0){t++}}else{if(v>0||y==0){r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=r.text.length}else{r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=q.nodeValue.length-r.text.length}d.remove(u)}k[s?"setStart":"setEnd"](q,t)}l(true);if(!o){l()}return k}this.addRange=function(l){var t,A,z=g.dom.doc,r=z.body,u,n,y,o,s,k,p,q,x,m;this.destroy();y=l.startContainer;o=l.startOffset;s=l.endContainer;k=l.endOffset;t=r.createTextRange();if(y==z||s==z){t=r.createTextRange();t.collapse();t.select();return}if(y.nodeType==1&&y.hasChildNodes()){q=y.childNodes.length-1;if(o>q){x=1;y=y.childNodes[q]}else{y=y.childNodes[o]}if(y.nodeType==3){o=0}}if(s.nodeType==1&&s.hasChildNodes()){q=s.childNodes.length-1;if(k==0){m=1;s=s.childNodes[0]}else{s=s.childNodes[Math.min(q,k-1)];if(s.nodeType==3){k=s.nodeValue.length}}}if(y==s&&y.nodeType==1){if(/^(IMG|TABLE)$/.test(y.nodeName)&&o!=k){t=r.createControlRange();t.addElement(y)}else{t=r.createTextRange();if(!y.hasChildNodes()&&y.canHaveHTML){y.innerHTML=j}t.moveToElementText(y);if(y.innerHTML==j){t.collapse(c);y.removeChild(y.firstChild)}}if(o==k){t.collapse(k<=l.endContainer.childNodes.length-1)}t.select();t.scrollIntoView();return}t=r.createTextRange();p=z.createElement("span");p.innerHTML=" ";if(y.nodeType==3){if(x){d.insertAfter(p,y)}else{y.parentNode.insertBefore(p,y)}t.moveToElementText(p);p.parentNode.removeChild(p);t.move("character",o)}else{t.moveToElementText(y);if(x){t.collapse(f)}}if(y==s&&y.nodeType==3){try{t.moveEnd("character",k-o);t.select();t.scrollIntoView()}catch(v){}return}A=r.createTextRange();if(s.nodeType==3){s.parentNode.insertBefore(p,s);A.moveToElementText(p);p.parentNode.removeChild(p);A.move("character",k);t.setEndPoint("EndToStart",A)}else{A.moveToElementText(s);A.collapse(!!m);t.setEndPoint("EndToEnd",A)}t.select();t.scrollIntoView()};this.getRangeAt=function(){if(!e||!tinymce.dom.RangeUtils.compareRanges(h,g.getRng())){e=b();h=g.getRng()}try{e.startContainer.nextSibling}catch(k){e=b();h=null}return e};this.destroy=function(){h=e=null};if(g.dom.boxModel){(function(){var q=d.doc,l=q.body,n,o;q.documentElement.unselectable=c;function p(r,u){var s=l.createTextRange();try{s.moveToPoint(r,u)}catch(t){s=null}return s}function m(s){var r;if(s.button){r=p(s.x,s.y);if(r){if(r.compareEndPoints("StartToStart",o)>0){r.setEndPoint("StartToStart",o)}else{r.setEndPoint("EndToEnd",o)}r.select()}}else{k()}}function k(){d.unbind(q,"mouseup",k);d.unbind(q,"mousemove",m);n=0}d.bind(q,"mousedown",function(r){if(r.target.nodeName==="HTML"){if(n){k()}n=1;o=p(r.x,r.y);if(o){d.bind(q,"mouseup",k);d.bind(q,"mousemove",m);o.select()}}})})()}}tinymce.dom.TridentSelection=a})();(function(){var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,d=Object.prototype.toString,n=false;var b=function(E,t,B,v){B=B||[];var e=t=t||document;if(t.nodeType!==1&&t.nodeType!==9){return[]}if(!E||typeof E!=="string"){return B}var C=[],D,z,H,G,A,s,r=true,x=o(t);p.lastIndex=0;while((D=p.exec(E))!==null){C.push(D[1]);if(D[2]){s=RegExp.rightContext;break}}if(C.length>1&&j.exec(E)){if(C.length===2&&f.relative[C[0]]){z=g(C[0]+C[1],t)}else{z=f.relative[C[0]]?[t]:b(C.shift(),t);while(C.length){E=C.shift();if(f.relative[E]){E+=C.shift()}z=g(E,z)}}}else{if(!v&&C.length>1&&t.nodeType===9&&!x&&f.match.ID.test(C[0])&&!f.match.ID.test(C[C.length-1])){var I=b.find(C.shift(),t,x);t=I.expr?b.filter(I.expr,I.set)[0]:I.set[0]}if(t){var I=v?{expr:C.pop(),set:a(v)}:b.find(C.pop(),C.length===1&&(C[0]==="~"||C[0]==="+")&&t.parentNode?t.parentNode:t,x);z=I.expr?b.filter(I.expr,I.set):I.set;if(C.length>0){H=a(z)}else{r=false}while(C.length){var u=C.pop(),y=u;if(!f.relative[u]){u=""}else{y=C.pop()}if(y==null){y=t}f.relative[u](H,y,x)}}else{H=C=[]}}if(!H){H=z}if(!H){throw"Syntax error, unrecognized expression: "+(u||E)}if(d.call(H)==="[object Array]"){if(!r){B.push.apply(B,H)}else{if(t&&t.nodeType===1){for(var F=0;H[F]!=null;F++){if(H[F]&&(H[F]===true||H[F].nodeType===1&&h(t,H[F]))){B.push(z[F])}}}else{for(var F=0;H[F]!=null;F++){if(H[F]&&H[F].nodeType===1){B.push(z[F])}}}}}else{a(H,B)}if(s){b(s,e,B,v);b.uniqueSort(B)}return B};b.uniqueSort=function(r){if(c){n=false;r.sort(c);if(n){for(var e=1;e":function(x,r,y){var u=typeof r==="string";if(u&&!/\W/.test(r)){r=y?r:r.toUpperCase();for(var s=0,e=x.length;s=0)){if(!s){e.push(v)}}else{if(s){r[u]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(r,e){for(var s=0;e[s]===false;s++){}return e[s]&&o(e[s])?r[1]:r[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(r[1]+(r[2]||1))-0;e[3]=r[3]-0}e[0]=i++;return e},ATTR:function(u,r,s,e,v,x){var t=u[1].replace(/\\/g,"");if(!x&&f.attrMap[t]){u[1]=f.attrMap[t]}if(u[2]==="~="){u[4]=" "+u[4]+" "}return u},PSEUDO:function(u,r,s,e,v){if(u[1]==="not"){if(u[3].match(p).length>1||/^\w/.test(u[3])){u[3]=b(u[3],null,null,r)}else{var t=b.filter(u[3],r,s,true^v);if(!s){e.push.apply(e,t)}return false}}else{if(f.match.POS.test(u[0])||f.match.CHILD.test(u[0])){return true}}return u},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(s,r,e){return !!b(e[3],s).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(r,e){return e===0},last:function(s,r,e,t){return r===t.length-1},even:function(r,e){return e%2===0},odd:function(r,e){return e%2===1},lt:function(s,r,e){return re[3]-0},nth:function(s,r,e){return e[3]-0==r},eq:function(s,r,e){return e[3]-0==r}},filter:{PSEUDO:function(x,s,t,y){var r=s[1],u=f.filters[r];if(u){return u(x,t,s,y)}else{if(r==="contains"){return(x.textContent||x.innerText||"").indexOf(s[3])>=0}else{if(r==="not"){var v=s[3];for(var t=0,e=v.length;t=0)}}},ID:function(r,e){return r.nodeType===1&&r.getAttribute("id")===e},TAG:function(r,e){return(e==="*"&&r.nodeType===1)||r.nodeName===e},CLASS:function(r,e){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(v,t){var s=t[1],e=f.attrHandle[s]?f.attrHandle[s](v):v[s]!=null?v[s]:v.getAttribute(s),x=e+"",u=t[2],r=t[4];return e==null?u==="!=":u==="="?x===r:u==="*="?x.indexOf(r)>=0:u==="~="?(" "+x+" ").indexOf(r)>=0:!r?x&&e!==false:u==="!="?x!=r:u==="^="?x.indexOf(r)===0:u==="$="?x.substr(x.length-r.length)===r:u==="|="?x===r||x.substr(0,r.length+1)===r+"-":false},POS:function(u,r,s,v){var e=r[2],t=f.setFilters[e];if(t){return t(u,s,r,v)}}}};var j=f.match.POS;for(var l in f.match){f.match[l]=new RegExp(f.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var a=function(r,e){r=Array.prototype.slice.call(r);if(e){e.push.apply(e,r);return e}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(k){a=function(u,t){var r=t||[];if(d.call(u)==="[object Array]"){Array.prototype.push.apply(r,u)}else{if(typeof u.length==="number"){for(var s=0,e=u.length;s";var e=document.documentElement;e.insertBefore(r,e.firstChild);if(!!document.getElementById(s)){f.find.ID=function(u,v,x){if(typeof v.getElementById!=="undefined"&&!x){var t=v.getElementById(u[1]);return t?t.id===u[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===u[1]?[t]:undefined:[]}};f.filter.ID=function(v,t){var u=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&u&&u.nodeValue===t}}e.removeChild(r)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(r,v){var u=v.getElementsByTagName(r[1]);if(r[1]==="*"){var t=[];for(var s=0;u[s];s++){if(u[s].nodeType===1){t.push(u[s])}}u=t}return u}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var e=b,s=document.createElement("div");s.innerHTML="

    ";if(s.querySelectorAll&&s.querySelectorAll(".TEST").length===0){return}b=function(x,v,t,u){v=v||document;if(!u&&v.nodeType===9&&!o(v)){try{return a(v.querySelectorAll(x),t)}catch(y){}}return e(x,v,t,u)};for(var r in e){b[r]=e[r]}})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="
    ";if(e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(r,s,t){if(typeof s.getElementsByClassName!=="undefined"&&!t){return s.getElementsByClassName(r[1])}}})()}function m(r,x,v,B,y,A){var z=r=="previousSibling"&&!A;for(var t=0,s=B.length;t0){u=e;break}}}e=e[r]}B[t]=u}}}var h=document.compareDocumentPosition?function(r,e){return r.compareDocumentPosition(e)&16}:function(r,e){return r!==e&&(r.contains?r.contains(e):true)};var o=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&e.ownerDocument.documentElement.nodeName!=="HTML"};var g=function(e,y){var t=[],u="",v,s=y.nodeType?[y]:y;while((v=f.match.PSEUDO.exec(e))){u+=v[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var x=0,r=s.length;x=0;h--){k=g[h];if(k.obj===l){j._remove(k.obj,k.name,k.cfunc);k.obj=k.cfunc=null;g.splice(h,1)}}}},cancel:function(g){if(!g){return false}this.stop(g);return this.prevent(g)},stop:function(g){if(g.stopPropagation){g.stopPropagation()}else{g.cancelBubble=true}return false},prevent:function(g){if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}return false},destroy:function(){var g=this;f(g.events,function(j,h){g._remove(j.obj,j.name,j.cfunc);j.obj=j.cfunc=null});g.events=[];g=null},_add:function(h,i,g){if(h.attachEvent){h.attachEvent("on"+i,g)}else{if(h.addEventListener){h.addEventListener(i,g,false)}else{h["on"+i]=g}}},_remove:function(i,j,h){if(i){try{if(i.detachEvent){i.detachEvent("on"+j,h)}else{if(i.removeEventListener){i.removeEventListener(j,h,false)}else{i["on"+j]=null}}}catch(g){}}},_pageInit:function(h){var g=this;if(g.domLoaded){return}g.domLoaded=true;f(g.inits,function(i){i()});g.inits=[]},_wait:function(i){var g=this,h=i.document;if(i.tinyMCE_GZ&&tinyMCE_GZ.loaded){g.domLoaded=1;return}if(h.attachEvent){h.attachEvent("onreadystatechange",function(){if(h.readyState==="complete"){h.detachEvent("onreadystatechange",arguments.callee);g._pageInit(i)}});if(h.documentElement.doScroll&&i==i.top){(function(){if(g.domLoaded){return}try{h.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);return}g._pageInit(i)})()}}else{if(h.addEventListener){g._add(i,"DOMContentLoaded",function(){g._pageInit(i)})}}g._add(i,"load",function(){g._pageInit(i)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});a=d.dom.Event=new d.dom.EventUtils();a._wait(window);d.addUnload(function(){a.destroy()})})(tinymce);(function(a){a.dom.Element=function(f,d){var b=this,e,c;b.settings=d=d||{};b.id=f;b.dom=e=d.dom||a.DOM;if(!a.isIE){c=e.get(b.id)}a.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(g){b[g]=function(){var h=[f],j;for(j=0;j_';if(j.startContainer==k&&j.endContainer==k){k.body.innerHTML=i}else{j.deleteContents();if(k.body.childNodes.length==0){k.body.innerHTML=i}else{j.insertNode(j.createContextualFragment(i))}}l=f.dom.get("__caret");j=k.createRange();j.setStartBefore(l);j.setEndBefore(l);f.setRng(j);f.dom.remove("__caret")}else{if(j.item){k.execCommand("Delete",false,null);j=f.getRng()}j.pasteHTML(i)}f.onSetContent.dispatch(f,g)},getStart:function(){var f=this,g=f.getRng(),h;if(g.duplicate||g.item){if(g.item){return g.item(0)}g=g.duplicate();g.collapse(1);h=g.parentElement();if(h&&h.nodeName=="BODY"){return h.firstChild||h}return h}else{h=g.startContainer;if(h.nodeType==1&&h.hasChildNodes()){h=h.childNodes[Math.min(h.childNodes.length-1,g.startOffset)]}if(h&&h.nodeType==3){return h.parentNode}return h}},getEnd:function(){var g=this,h=g.getRng(),i,f;if(h.duplicate||h.item){if(h.item){return h.item(0)}h=h.duplicate();h.collapse(0);i=h.parentElement();if(i&&i.nodeName=="BODY"){return i.lastChild||i}return i}else{i=h.endContainer;f=h.endOffset;if(i.nodeType==1&&i.hasChildNodes()){i=i.childNodes[f>0?f-1:f]}if(i&&i.nodeType==3){return i.parentNode}return i}},getBookmark:function(q,r){var u=this,m=u.dom,g,j,i,n,h,o,p,l="\uFEFF",s;function f(v,x){var t=0;d(m.select(v),function(z,y){if(z==x){t=y}});return t}if(q==2){function k(){var v=u.getRng(true),t=m.getRoot(),x={};function y(B,G){var A=B[G?"startContainer":"endContainer"],F=B[G?"startOffset":"endOffset"],z=[],C,E,D=0;if(A.nodeType==3){if(r){for(C=A.previousSibling;C&&C.nodeType==3;C=C.previousSibling){F+=C.nodeValue.length}}z.push(F)}else{E=A.childNodes;if(F>=E.length&&E.length){D=1;F=Math.max(0,E.length-1)}z.push(u.dom.nodeIndex(E[F],r)+D)}for(;A&&A!=t;A=A.parentNode){z.push(u.dom.nodeIndex(A,r))}return z}x.start=y(v,true);if(!u.isCollapsed()){x.end=y(v)}return x}return k()}if(q){return{rng:u.getRng()}}g=u.getRng();i=m.uniqueId();n=tinyMCE.activeEditor.selection.isCollapsed();s="overflow:hidden;line-height:0px";if(g.duplicate||g.item){if(!g.item){j=g.duplicate();g.collapse();g.pasteHTML(''+l+"");if(!n){j.collapse(false);j.pasteHTML(''+l+"")}}else{o=g.item(0);h=o.nodeName;return{name:h,index:f(h,o)}}}else{o=u.getNode();h=o.nodeName;if(h=="IMG"){return{name:h,index:f(h,o)}}j=g.cloneRange();if(!n){j.collapse(false);j.insertNode(m.create("span",{_mce_type:"bookmark",id:i+"_end",style:s},l))}g.collapse(true);g.insertNode(m.create("span",{_mce_type:"bookmark",id:i+"_start",style:s},l))}u.moveToBookmark({id:i,keep:1});return{id:i}},moveToBookmark:function(m){var q=this,l=q.dom,i,h,f,p,j,r,n,o;if(q.tridentSel){q.tridentSel.destroy()}if(m){if(m.start){f=l.createRng();p=l.getRoot();function g(x){var s=m[x?"start":"end"],t,u,v;if(s){for(u=p,t=s.length-1;t>=1;t--){u=u.childNodes[s[t]]}if(x){f.setStart(u,s[0])}else{f.setEnd(u,s[0])}}}g(true);g();q.setRng(f)}else{if(m.id){function k(z){var t=l.get(m.id+"_"+z),y,s,v,x,u=m.keep;if(t){y=t.parentNode;if(z=="start"){if(!u){s=l.nodeIndex(t)}else{y=t;s=1}j=r=y;n=o=s}else{if(!u){s=l.nodeIndex(t)}else{y=t;s=1}r=y;o=s}if(!u){x=t.previousSibling;v=t.nextSibling;d(c.grep(t.childNodes),function(A){if(A.nodeType==3){A.nodeValue=A.nodeValue.replace(/\uFEFF/g,"")}});while(t=l.get(m.id+"_"+z)){l.remove(t,1)}if(x&&v&&x.nodeType==v.nodeType&&x.nodeType==3){s=x.nodeValue.length;x.appendData(v.nodeValue);l.remove(v);if(z=="start"){j=r=x;n=o=s}else{r=x;o=s}}}}}k("start");k("end");f=l.createRng();f.setStart(j,n);f.setEnd(r,o);q.setRng(f)}else{if(m.name){q.select(l.select(m.name)[m.index])}else{if(m.rng){q.setRng(m.rng)}}}}}},select:function(k,j){var i=this,l=i.dom,g=l.createRng(),f;f=l.nodeIndex(k);g.setStart(k.parentNode,f);g.setEnd(k.parentNode,f+1);if(j){function h(m,o){var n=new c.dom.TreeWalker(m,m);do{if(m.nodeType==3&&c.trim(m.nodeValue).length!=0){if(o){g.setStart(m,0)}else{g.setEnd(m,m.nodeValue.length)}return}if(m.nodeName=="BR"){if(o){g.setStartBefore(m)}else{g.setEndBefore(m)}return}}while(m=(o?n.next():n.prev()))}h(k,1);h(k)}i.setRng(g);return k},isCollapsed:function(){var f=this,h=f.getRng(),g=f.getSel();if(!h||h.item){return false}if(h.compareEndPoints){return h.compareEndPoints("StartToEnd",h)===0}return !g||h.collapsed},collapse:function(f){var g=this,h=g.getRng(),i;if(h.item){i=h.item(0);h=this.win.document.body.createTextRange();h.moveToElementText(i)}h.collapse(!!f);g.setRng(h)},getSel:function(){var g=this,f=this.win;return f.getSelection?f.getSelection():f.document.selection},getRng:function(j){var g=this,h,i;if(j&&g.tridentSel){return g.tridentSel.getRangeAt(0)}try{if(h=g.getSel()){i=h.rangeCount>0?h.getRangeAt(0):(h.createRange?h.createRange():g.win.document.createRange())}}catch(f){}if(!i){i=g.win.document.createRange?g.win.document.createRange():g.win.document.body.createTextRange()}if(g.selectedRange&&g.explicitRange){if(i.compareBoundaryPoints(i.START_TO_START,g.selectedRange)===0&&i.compareBoundaryPoints(i.END_TO_END,g.selectedRange)===0){i=g.explicitRange}else{g.selectedRange=null;g.explicitRange=null}}return i},setRng:function(i){var h,g=this;if(!g.tridentSel){h=g.getSel();if(h){g.explicitRange=i;h.removeAllRanges();h.addRange(i);g.selectedRange=h.getRangeAt(0)}}else{if(i.cloneRange){g.tridentSel.addRange(i);return}try{i.select()}catch(f){}}},setNode:function(g){var f=this;f.setContent(f.dom.getOuterHTML(g));return g},getNode:function(){var g=this,f=g.getRng(),h=g.getSel(),i;if(f.setStart){if(!f){return g.dom.getRoot()}i=f.commonAncestorContainer;if(!f.collapsed){if(f.startContainer==f.endContainer){if(f.startOffset-f.endOffset<2){if(f.startContainer.hasChildNodes()){i=f.startContainer.childNodes[f.startOffset]}}}if(c.isWebKit&&h.anchorNode&&h.anchorNode.nodeType==1){return h.anchorNode.childNodes[h.anchorOffset]}}if(i&&i.nodeType==3){return i.parentNode}return i}return f.item?f.item(0):f.parentElement()},getSelectedBlocks:function(g,f){var i=this,j=i.dom,m,h,l,k=[];m=j.getParent(g||i.getStart(),j.isBlock);h=j.getParent(f||i.getEnd(),j.isBlock);if(m){k.push(m)}if(m&&h&&m!=h){l=m;while((l=l.nextSibling)&&l!=h){if(j.isBlock(l)){k.push(l)}}}if(h&&m!=h){k.push(h)}return k},destroy:function(g){var f=this;f.win=null;if(f.tridentSel){f.tridentSel.destroy()}if(!g){c.removeUnload(f.destroy)}}})})(tinymce);(function(a){a.create("tinymce.dom.XMLWriter",{node:null,XMLWriter:function(c){function b(){var e=document.implementation;if(!e||!e.createDocument){try{return new ActiveXObject("MSXML2.DOMDocument")}catch(d){}try{return new ActiveXObject("Microsoft.XmlDom")}catch(d){}}else{return e.createDocument("","",null)}}this.doc=b();this.valid=a.isOpera||a.isWebKit;this.reset()},reset:function(){var b=this,c=b.doc;if(c.firstChild){c.removeChild(c.firstChild)}b.node=c.appendChild(c.createElement("html"))},writeStartElement:function(c){var b=this;b.node=b.node.appendChild(b.doc.createElement(c))},writeAttribute:function(c,b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.setAttribute(c,b)},writeEndElement:function(){this.node=this.node.parentNode},writeFullEndElement:function(){var b=this,c=b.node;c.appendChild(b.doc.createTextNode(""));b.node=c.parentNode},writeText:function(b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.appendChild(this.doc.createTextNode(b))},writeCDATA:function(b){this.node.appendChild(this.doc.createCDATASection(b))},writeComment:function(b){if(a.isIE){b=b.replace(/^\-|\-$/g," ")}this.node.appendChild(this.doc.createComment(b.replace(/\-\-/g," ")))},getContent:function(){var b;b=this.doc.xml||new XMLSerializer().serializeToString(this.doc);b=b.replace(/<\?[^?]+\?>||<\/html>||]+>/g,"");b=b.replace(/ ?\/>/g," />");if(this.valid){b=b.replace(/\%MCGT%/g,">")}return b}})})(tinymce);(function(a){a.create("tinymce.dom.StringWriter",{str:null,tags:null,count:0,settings:null,indent:null,StringWriter:function(b){this.settings=a.extend({indent_char:" ",indentation:0},b);this.reset()},reset:function(){this.indent="";this.str="";this.tags=[];this.count=0},writeStartElement:function(b){this._writeAttributesEnd();this.writeRaw("<"+b);this.tags.push(b);this.inAttr=true;this.count++;this.elementCount=this.count},writeAttribute:function(d,b){var c=this;c.writeRaw(" "+c.encode(d)+'="'+c.encode(b)+'"')},writeEndElement:function(){var b;if(this.tags.length>0){b=this.tags.pop();if(this._writeAttributesEnd(1)){this.writeRaw("")}if(this.settings.indentation>0){this.writeRaw("\n")}}},writeFullEndElement:function(){if(this.tags.length>0){this._writeAttributesEnd();this.writeRaw("");if(this.settings.indentation>0){this.writeRaw("\n")}}},writeText:function(b){this._writeAttributesEnd();this.writeRaw(this.encode(b));this.count++},writeCDATA:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeComment:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeRaw:function(b){this.str+=b},encode:function(b){return b.replace(/[<>&"]/g,function(c){switch(c){case"<":return"<";case">":return">";case"&":return"&";case'"':return"""}return c})},getContent:function(){return this.str},_writeAttributesEnd:function(b){if(!this.inAttr){return}this.inAttr=false;if(b&&this.elementCount==this.count){this.writeRaw(" />");return false}this.writeRaw(">");return true}})})(tinymce);(function(e){var g=e.extend,f=e.each,b=e.util.Dispatcher,d=e.isIE,a=e.isGecko;function c(h){return h.replace(/([?+*])/g,".$1")}e.create("tinymce.dom.Serializer",{Serializer:function(j){var i=this;i.key=0;i.onPreProcess=new b(i);i.onPostProcess=new b(i);try{i.writer=new e.dom.XMLWriter()}catch(h){i.writer=new e.dom.StringWriter()}i.settings=j=g({dom:e.DOM,valid_nodes:0,node_filter:0,attr_filter:0,invalid_attrs:/^(_mce_|_moz_|sizset|sizcache)/,closed:/^(br|hr|input|meta|img|link|param|area)$/,entity_encoding:"named",entities:"160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro",valid_elements:"*[*]",extended_valid_elements:0,invalid_elements:0,fix_table_elements:1,fix_list_elements:true,fix_content_duplication:true,convert_fonts_to_spans:false,font_size_classes:0,apply_source_formatting:0,indent_mode:"simple",indent_char:"\t",indent_levels:1,remove_linebreaks:1,remove_redundant_brs:1,element_format:"xhtml"},j);i.dom=j.dom;i.schema=j.schema;if(j.entity_encoding=="named"&&!j.entities){j.entity_encoding="raw"}if(j.remove_redundant_brs){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/(
    \s*)+<\/(p|h[1-6]|div|li)>/gi,function(n,m,o){if(/^
    \s*<\//.test(n)){return""}return n})})}if(j.element_format=="html"){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/<([^>]+) \/>/g,"<$1>")})}if(j.fix_list_elements){i.onPreProcess.add(function(v,s){var l,z,y=["ol","ul"],u,t,q,k=/^(OL|UL)$/,A;function m(r,x){var o=x.split(","),p;while((r=r.previousSibling)!=null){for(p=0;p=1767){f(i.dom.select("p table",l.node).reverse(),function(p){var o=i.dom.getParent(p.parentNode,"table,p");if(o.nodeName!="TABLE"){try{i.dom.split(o,p)}catch(m){}}})}})}},setEntities:function(o){var n=this,j,m,h={},k;if(n.entityLookup){return}j=o.split(",");for(m=0;m1){f(q[1].split("|"),function(u){var p={},t;k=k||[];u=u.replace(/::/g,"~");u=/^([!\-])?([\w*.?~_\-]+|)([=:<])?(.+)?$/.exec(u);u[2]=u[2].replace(/~/g,":");if(u[1]=="!"){r=r||[];r.push(u[2])}if(u[1]=="-"){for(t=0;t=1767)){p=j.createHTMLDocument("");f(r.nodeName=="BODY"?r.childNodes:[r],function(h){p.body.appendChild(p.importNode(h,true))});if(r.nodeName!="BODY"){r=p.body.firstChild}else{r=p.body}i=k.dom.doc;k.dom.doc=p}k.key=""+(parseInt(k.key)+1);if(!q.no_events){q.node=r;k.onPreProcess.dispatch(k,q)}k.writer.reset();k._info=q;k._serializeNode(r,q.getInner);q.content=k.writer.getContent();if(i){k.dom.doc=i}if(!q.no_events){k.onPostProcess.dispatch(k,q)}k._postProcess(q);q.node=null;return e.trim(q.content)},_postProcess:function(n){var i=this,k=i.settings,j=n.content,m=[],l;if(n.format=="html"){l=i._protect({content:j,patterns:[{pattern:/(]*>)(.*?)(<\/script>)/g},{pattern:/(]*>)(.*?)(<\/noscript>)/g},{pattern:/(]*>)(.*?)(<\/style>)/g},{pattern:/(]*>)(.*?)(<\/pre>)/g,encode:1},{pattern:/()/g}]});j=l.content;if(k.entity_encoding!=="raw"){j=i._encode(j)}if(!n.set){j=j.replace(/

    \s+<\/p>|]+)>\s+<\/p>/g,k.entity_encoding=="numeric"?" 

    ":" 

    ");if(k.remove_linebreaks){j=j.replace(/\r?\n|\r/g," ");j=j.replace(/(<[^>]+>)\s+/g,"$1 ");j=j.replace(/\s+(<\/[^>]+>)/g," $1");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object) ([^>]+)>\s+/g,"<$1 $2>");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>\s+/g,"<$1>");j=j.replace(/\s+<\/(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>/g,"")}if(k.apply_source_formatting&&k.indent_mode=="simple"){j=j.replace(/<(\/?)(ul|hr|table|meta|link|tbody|tr|object|body|head|html|map)(|[^>]+)>\s*/g,"\n<$1$2$3>\n");j=j.replace(/\s*<(p|h[1-6]|blockquote|div|title|style|pre|script|td|li|area)(|[^>]+)>/g,"\n<$1$2>");j=j.replace(/<\/(p|h[1-6]|blockquote|div|title|style|pre|script|td|li)>\s*/g,"\n");j=j.replace(/\n\n/g,"\n")}}j=i._unprotect(j,l);j=j.replace(//g,"");if(k.entity_encoding=="raw"){j=j.replace(/

     <\/p>|]+)> <\/p>/g,"\u00a0

    ")}j=j.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(h,p,o){return""+i.dom.decode(o.replace(//g,""))+""})}n.content=j},_serializeNode:function(D,I){var z=this,A=z.settings,x=z.writer,q,j,u,F,E,H,B,h,y,k,r,C,p,m,G,o;if(!A.node_filter||A.node_filter(D)){switch(D.nodeType){case 1:if(D.hasAttribute?D.hasAttribute("_mce_bogus"):D.getAttribute("_mce_bogus")){return}p=G=false;q=D.hasChildNodes();k=D.getAttribute("_mce_name")||D.nodeName.toLowerCase();o=D.getAttribute("_mce_type");if(o){if(!z._info.cleanup){p=true;return}else{G=1}}if(d){if(D.scopeName!=="HTML"&&D.scopeName!=="html"){k=D.scopeName+":"+k}}if(k.indexOf("mce:")===0){k=k.substring(4)}if(!G){if(!z.validElementsRE||!z.validElementsRE.test(k)||(z.invalidElementsRE&&z.invalidElementsRE.test(k))||I){p=true;break}}if(d){if(A.fix_content_duplication){if(D._mce_serialized==z.key){return}D._mce_serialized=z.key}if(k.charAt(0)=="/"){k=k.substring(1)}}else{if(a){if(D.nodeName==="BR"&&D.getAttribute("type")=="_moz"){return}}}if(A.validate_children){if(z.elementName&&!z.schema.isValid(z.elementName,k)){p=true;break}z.elementName=k}r=z.findRule(k);if(!r){p=true;break}k=r.name||k;m=A.closed.test(k);if((!q&&r.noEmpty)||(d&&!k)){p=true;break}if(r.requiredAttribs){H=r.requiredAttribs;for(F=H.length-1;F>=0;F--){if(this.dom.getAttrib(D,H[F])!==""){break}}if(F==-1){p=true;break}}x.writeStartElement(k);if(r.attribs){for(F=0,B=r.attribs,E=B.length;F-1;F--){h=B[F];if(h.specified){H=h.nodeName.toLowerCase();if(A.invalid_attrs.test(H)||!r.validAttribsRE.test(H)){continue}C=z.findAttribRule(r,H);y=z._getAttrib(D,C,H);if(y!==null){x.writeAttribute(H,y)}}}}if(o&&G){x.writeAttribute("_mce_type",o)}if(k==="script"&&e.trim(D.innerHTML)){x.writeText("// ");x.writeCDATA(D.innerHTML.replace(/|<\[CDATA\[|\]\]>/g,""));q=false;break}if(r.padd){if(q&&(u=D.firstChild)&&u.nodeType===1&&D.childNodes.length===1){if(u.hasAttribute?u.hasAttribute("_mce_bogus"):u.getAttribute("_mce_bogus")){x.writeText("\u00a0")}}else{if(!q){x.writeText("\u00a0")}}}break;case 3:if(A.validate_children&&z.elementName&&!z.schema.isValid(z.elementName,"#text")){return}return x.writeText(D.nodeValue);case 4:return x.writeCDATA(D.nodeValue);case 8:return x.writeComment(D.nodeValue)}}else{if(D.nodeType==1){q=D.hasChildNodes()}}if(q&&!m){u=D.firstChild;while(u){z._serializeNode(u);z.elementName=k;u=u.nextSibling}}if(!p){if(!m){x.writeFullEndElement()}else{x.writeEndElement()}}},_protect:function(j){var i=this;j.items=j.items||[];function h(l){return l.replace(/[\r\n\\]/g,function(m){if(m==="\n"){return"\\n"}else{if(m==="\\"){return"\\\\"}}return"\\r"})}function k(l){return l.replace(/\\[\\rn]/g,function(m){if(m==="\\n"){return"\n"}else{if(m==="\\\\"){return"\\"}}return"\r"})}f(j.patterns,function(l){j.content=k(h(j.content).replace(l.pattern,function(n,o,m,p){m=k(m);if(l.encode){m=i._encode(m)}j.items.push(m);return o+""+p}))});return j},_unprotect:function(i,j){i=i.replace(/\"))}if(a&&j.ListBox){if(a.Button||a.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarEnd"},b.createHTML("span",null,""))}}if(b.stdMode){e+=''+j.renderHTML()+""}else{e+=""+j.renderHTML()+""}if(f&&j.ListBox){if(f.Button||f.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarStart"},b.createHTML("span",null,""))}}}g="mceToolbarEnd";if(j.Button){g+=" mceToolbarEndButton"}else{if(j.SplitButton){g+=" mceToolbarEndSplitButton"}else{if(j.ListBox){g+=" mceToolbarEndListBox"}}}e+=b.createHTML("td",{"class":g},b.createHTML("span",null,""));return b.createHTML("table",{id:l.id,"class":"mceToolbar"+(m["class"]?" "+m["class"]:""),cellpadding:"0",cellspacing:"0",align:l.settings.align||""},""+e+"")}});(function(b){var a=b.util.Dispatcher,c=b.each;b.create("tinymce.AddOnManager",{items:[],urls:{},lookup:{},onAdd:new a(this),get:function(d){return this.lookup[d]},requireLangPack:function(e){var d=b.settings;if(d&&d.language){b.ScriptLoader.add(this.urls[e]+"/langs/"+d.language+".js")}},add:function(e,d){this.items.push(d);this.lookup[e]=d;this.onAdd.dispatch(this,e,d);return d},load:function(h,e,d,g){var f=this;if(f.urls[h]){return}if(e.indexOf("/")!=0&&e.indexOf("://")==-1){e=b.baseURL+"/"+e}f.urls[h]=e.substring(0,e.lastIndexOf("/"));b.ScriptLoader.add(e,d,g)}});b.PluginManager=new b.AddOnManager();b.ThemeManager=new b.AddOnManager()}(tinymce));(function(j){var g=j.each,d=j.extend,k=j.DOM,i=j.dom.Event,f=j.ThemeManager,b=j.PluginManager,e=j.explode,h=j.util.Dispatcher,a,c=0;j.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(j.documentBaseURL)){j.documentBaseURL+="/"}j.baseURL=new j.util.URI(j.documentBaseURL).toAbsolute(j.baseURL);j.baseURI=new j.util.URI(j.baseURL);j.onBeforeUnload=new h(j);i.add(window,"beforeunload",function(l){j.onBeforeUnload.dispatch(j,l)});j.onAddEditor=new h(j);j.onRemoveEditor=new h(j);j.EditorManager=d(j,{editors:[],i18n:{},activeEditor:null,init:function(q){var n=this,p,l=j.ScriptLoader,u,o=[],m;function r(x,y,t){var v=x[y];if(!v){return}if(j.is(v,"string")){t=v.replace(/\.\w+$/,"");t=t?j.resolve(t):0;v=j.resolve(v)}return v.apply(t||this,Array.prototype.slice.call(arguments,2))}q=d({theme:"simple",language:"en"},q);n.settings=q;i.add(document,"init",function(){var s,v;r(q,"onpageload");switch(q.mode){case"exact":s=q.elements||"";if(s.length>0){g(e(s),function(x){if(k.get(x)){m=new j.Editor(x,q);o.push(m);m.render(1)}else{g(document.forms,function(y){g(y.elements,function(z){if(z.name===x){x="mce_editor_"+c++;k.setAttrib(z,"id",x);m=new j.Editor(x,q);o.push(m);m.render(1)}})})}})}break;case"textareas":case"specific_textareas":function t(y,x){return x.constructor===RegExp?x.test(y.className):k.hasClass(y,x)}g(k.select("textarea"),function(x){if(q.editor_deselector&&t(x,q.editor_deselector)){return}if(!q.editor_selector||t(x,q.editor_selector)){u=k.get(x.name);if(!x.id&&!u){x.id=x.name}if(!x.id||n.get(x.id)){x.id=k.uniqueId()}m=new j.Editor(x.id,q);o.push(m);m.render(1)}});break}if(q.oninit){s=v=0;g(o,function(x){v++;if(!x.initialized){x.onInit.add(function(){s++;if(s==v){r(q,"oninit")}})}else{s++}if(s==v){r(q,"oninit")}})}})},get:function(l){if(l===a){return this.editors}return this.editors[l]},getInstanceById:function(l){return this.get(l)},add:function(m){var l=this,n=l.editors;n[m.id]=m;n.push(m);l._setActive(m);l.onAddEditor.dispatch(l,m);return m},remove:function(n){var m=this,l,o=m.editors;if(!o[n.id]){return null}delete o[n.id];for(l=0;l':"",visual_table_class:"mceItemTable",visual:1,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",valid_elements:"@[id|class|style|title|dir';if(F.document_base_url!=m.documentBaseURL){E.iframeHTML+=''}E.iframeHTML+='';if(m.relaxedDomain){E.iframeHTML+=''; + + bi = s.body_id || 'tinymce'; + if (bi.indexOf('=') != -1) { + bi = t.getParam('body_id', '', 'hash'); + bi = bi[t.id] || bi; + } + + bc = s.body_class || ''; + if (bc.indexOf('=') != -1) { + bc = t.getParam('body_class', '', 'hash'); + bc = bc[t.id] || ''; + } + + t.iframeHTML += ''; + + // Domain relaxing enabled, then set document domain + if (tinymce.relaxedDomain) { + // We need to write the contents here in IE since multiple writes messes up refresh button and back button + if (isIE || (tinymce.isOpera && parseFloat(opera.version()) >= 9.5)) + u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";var ed = window.parent.tinyMCE.get("' + t.id + '");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()'; + else if (tinymce.isOpera) + u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";document.close();ed.setupIframe();})()'; + } + + // Create iframe + n = DOM.add(o.iframeContainer, 'iframe', { + id : t.id + "_ifr", + src : u || 'javascript:""', // Workaround for HTTPS warning in IE6/7 + frameBorder : '0', + style : { + width : '100%', + height : h + } + }); + + t.contentAreaContainer = o.iframeContainer; + DOM.get(o.editorContainer).style.display = t.orgDisplay; + DOM.get(t.id).style.display = 'none'; + + if (!isIE || !tinymce.relaxedDomain) + t.setupIframe(); + + e = n = o = null; // Cleanup + }, + + setupIframe : function() { + var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b; + + // Setup iframe body + if (!isIE || !tinymce.relaxedDomain) { + d.open(); + d.write(t.iframeHTML); + d.close(); + } + + // Design mode needs to be added here Ctrl+A will fail otherwise + if (!isIE) { + try { + if (!s.readonly) + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } + } + + // IE needs to use contentEditable or it will display non secure items for HTTPS + if (isIE) { + // It will not steal focus if we hide it while setting contentEditable + b = t.getBody(); + DOM.hide(b); + + if (!s.readonly) + b.contentEditable = true; + + DOM.show(b); + } + + t.dom = new tinymce.dom.DOMUtils(t.getDoc(), { + keep_values : true, + url_converter : t.convertURL, + url_converter_scope : t, + hex_colors : s.force_hex_style_colors, + class_filter : s.class_filter, + update_styles : 1, + fix_ie_paragraphs : 1, + valid_styles : s.valid_styles + }); + + t.schema = new tinymce.dom.Schema(); + + t.serializer = new tinymce.dom.Serializer(extend(s, { + valid_elements : s.verify_html === false ? '*[*]' : s.valid_elements, + dom : t.dom, + schema : t.schema + })); + + t.selection = new tinymce.dom.Selection(t.dom, t.getWin(), t.serializer); + + t.formatter = new tinymce.Formatter(this); + + // Register default formats + t.formatter.register({ + alignleft : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}}, + {selector : 'img,table', styles : {'float' : 'left'}} + ], + + aligncenter : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}}, + {selector : 'img', styles : {display : 'block', marginLeft : 'auto', marginRight : 'auto'}}, + {selector : 'table', styles : {marginLeft : 'auto', marginRight : 'auto'}} + ], + + alignright : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}}, + {selector : 'img,table', styles : {'float' : 'right'}} + ], + + alignfull : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'justify'}} + ], + + bold : [ + {inline : 'strong'}, + {inline : 'span', styles : {fontWeight : 'bold'}}, + {inline : 'b'} + ], + + italic : [ + {inline : 'em'}, + {inline : 'span', styles : {fontStyle : 'italic'}}, + {inline : 'i'} + ], + + underline : [ + {inline : 'span', styles : {textDecoration : 'underline'}, exact : true}, + {inline : 'u'} + ], + + strikethrough : [ + {inline : 'span', styles : {textDecoration : 'line-through'}, exact : true}, + {inline : 'u'} + ], + + forecolor : {inline : 'span', styles : {color : '%value'}}, + hilitecolor : {inline : 'span', styles : {backgroundColor : '%value'}}, + fontname : {inline : 'span', styles : {fontFamily : '%value'}}, + fontsize : {inline : 'span', styles : {fontSize : '%value'}}, + fontsize_class : {inline : 'span', attributes : {'class' : '%value'}}, + blockquote : {block : 'blockquote', wrapper : 1, remove : 'all'}, + + removeformat : [ + {selector : 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand : true, deep : true}, + {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true}, + {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true} + ] + }); + + // Register default block formats + each('p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp'.split(/\s/), function(name) { + t.formatter.register(name, {block : name, remove : 'all'}); + }); + + // Register user defined formats + t.formatter.register(t.settings.formats); + + t.undoManager = new tinymce.UndoManager(t); + + // Pass through + t.undoManager.onAdd.add(function(um, l) { + if (!l.initial) + return t.onChange.dispatch(t, l, um); + }); + + t.undoManager.onUndo.add(function(um, l) { + return t.onUndo.dispatch(t, l, um); + }); + + t.undoManager.onRedo.add(function(um, l) { + return t.onRedo.dispatch(t, l, um); + }); + + t.forceBlocks = new tinymce.ForceBlocks(t, { + forced_root_block : s.forced_root_block + }); + + t.editorCommands = new tinymce.EditorCommands(t); + + // Pass through + t.serializer.onPreProcess.add(function(se, o) { + return t.onPreProcess.dispatch(t, o, se); + }); + + t.serializer.onPostProcess.add(function(se, o) { + return t.onPostProcess.dispatch(t, o, se); + }); + + t.onPreInit.dispatch(t); + + if (!s.gecko_spellcheck) + t.getBody().spellcheck = 0; + + if (!s.readonly) + t._addEvents(); + + t.controlManager.onPostRender.dispatch(t, t.controlManager); + t.onPostRender.dispatch(t); + + if (s.directionality) + t.getBody().dir = s.directionality; + + if (s.nowrap) + t.getBody().style.whiteSpace = "nowrap"; + + if (s.custom_elements) { + function handleCustom(ed, o) { + each(explode(s.custom_elements), function(v) { + var n; + + if (v.indexOf('~') === 0) { + v = v.substring(1); + n = 'span'; + } else + n = 'div'; + + o.content = o.content.replace(new RegExp('<(' + v + ')([^>]*)>', 'g'), '<' + n + ' _mce_name="$1"$2>'); + o.content = o.content.replace(new RegExp('', 'g'), ''); + }); + }; + + t.onBeforeSetContent.add(handleCustom); + t.onPostProcess.add(function(ed, o) { + if (o.set) + handleCustom(ed, o); + }); + } + + if (s.handle_node_change_callback) { + t.onNodeChange.add(function(ed, cm, n) { + t.execCallback('handle_node_change_callback', t.id, n, -1, -1, true, t.selection.isCollapsed()); + }); + } + + if (s.save_callback) { + t.onSaveContent.add(function(ed, o) { + var h = t.execCallback('save_callback', t.id, o.content, t.getBody()); + + if (h) + o.content = h; + }); + } + + if (s.onchange_callback) { + t.onChange.add(function(ed, l) { + t.execCallback('onchange_callback', t, l); + }); + } + + if (s.convert_newlines_to_brs) { + t.onBeforeSetContent.add(function(ed, o) { + if (o.initial) + o.content = o.content.replace(/\r?\n/g, '
    '); + }); + } + + if (s.fix_nesting && isIE) { + t.onBeforeSetContent.add(function(ed, o) { + o.content = t._fixNesting(o.content); + }); + } + + if (s.preformatted) { + t.onPostProcess.add(function(ed, o) { + o.content = o.content.replace(/^\s*/, ''); + o.content = o.content.replace(/<\/pre>\s*$/, ''); + + if (o.set) + o.content = '
    ' + o.content + '
    '; + }); + } + + if (s.verify_css_classes) { + t.serializer.attribValueFilter = function(n, v) { + var s, cl; + + if (n == 'class') { + // Build regexp for classes + if (!t.classesRE) { + cl = t.dom.getClasses(); + + if (cl.length > 0) { + s = ''; + + each (cl, function(o) { + s += (s ? '|' : '') + o['class']; + }); + + t.classesRE = new RegExp('(' + s + ')', 'gi'); + } + } + + return !t.classesRE || /(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(v) || t.classesRE.test(v) ? v : ''; + } + + return v; + }; + } + + if (s.cleanup_callback) { + t.onBeforeSetContent.add(function(ed, o) { + o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o); + }); + + t.onPreProcess.add(function(ed, o) { + if (o.set) + t.execCallback('cleanup_callback', 'insert_to_editor_dom', o.node, o); + + if (o.get) + t.execCallback('cleanup_callback', 'get_from_editor_dom', o.node, o); + }); + + t.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o); + + if (o.get) + o.content = t.execCallback('cleanup_callback', 'get_from_editor', o.content, o); + }); + } + + if (s.save_callback) { + t.onGetContent.add(function(ed, o) { + if (o.save) + o.content = t.execCallback('save_callback', t.id, o.content, t.getBody()); + }); + } + + if (s.handle_event_callback) { + t.onEvent.add(function(ed, e, o) { + if (t.execCallback('handle_event_callback', e, ed, o) === false) + Event.cancel(e); + }); + } + + // Add visual aids when new contents is added + t.onSetContent.add(function() { + t.addVisual(t.getBody()); + }); + + // Remove empty contents + if (s.padd_empty_editor) { + t.onPostProcess.add(function(ed, o) { + o.content = o.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
    [\r\n]*)$/, ''); + }); + } + + if (isGecko) { + // Fix gecko link bug, when a link is placed at the end of block elements there is + // no way to move the caret behind the link. This fix adds a bogus br element after the link + function fixLinks(ed, o) { + each(ed.dom.select('a'), function(n) { + var pn = n.parentNode; + + if (ed.dom.isBlock(pn) && pn.lastChild === n) + ed.dom.add(pn, 'br', {'_mce_bogus' : 1}); + }); + }; + + t.onExecCommand.add(function(ed, cmd) { + if (cmd === 'CreateLink') + fixLinks(ed); + }); + + t.onSetContent.add(t.selection.onSetContent.add(fixLinks)); + + if (!s.readonly) { + try { + // Design mode must be set here once again to fix a bug where + // Ctrl+A/Delete/Backspace didn't work if the editor was added using mceAddControl then removed then added again + d.designMode = 'Off'; + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } + } + } + + // A small timeout was needed since firefox will remove. Bug: #1838304 + setTimeout(function () { + if (t.removed) + return; + + t.load({initial : true, format : (s.cleanup_on_startup ? 'html' : 'raw')}); + t.startContent = t.getContent({format : 'raw'}); + t.initialized = true; + + t.onInit.dispatch(t); + t.execCallback('setupcontent_callback', t.id, t.getBody(), t.getDoc()); + t.execCallback('init_instance_callback', t); + t.focus(true); + t.nodeChanged({initial : 1}); + + // Load specified content CSS last + if (s.content_css) { + tinymce.each(explode(s.content_css), function(u) { + t.dom.loadCSS(t.documentBaseURI.toAbsolute(u)); + }); + } + + // Handle auto focus + if (s.auto_focus) { + setTimeout(function () { + var ed = tinymce.get(s.auto_focus); + + ed.selection.select(ed.getBody(), 1); + ed.selection.collapse(1); + ed.getWin().focus(); + }, 100); + } + }, 1); + + e = null; + }, + + + focus : function(sf) { + var oed, t = this, ce = t.settings.content_editable, ieRng, controlElm, doc = t.getDoc(); + + if (!sf) { + // Get selected control element + ieRng = t.selection.getRng(); + if (ieRng.item) { + controlElm = ieRng.item(0); + } + + // Is not content editable + if (!ce) + t.getWin().focus(); + + // Restore selected control element + // This is needed when for example an image is selected within a + // layer a call to focus will then remove the control selection + if (controlElm && controlElm.ownerDocument == doc) { + ieRng = doc.body.createControlRange(); + ieRng.addElement(controlElm); + ieRng.select(); + } + + } + + if (tinymce.activeEditor != t) { + if ((oed = tinymce.activeEditor) != null) + oed.onDeactivate.dispatch(oed, t); + + t.onActivate.dispatch(t, oed); + } + + tinymce._setActive(t); + }, + + execCallback : function(n) { + var t = this, f = t.settings[n], s; + + if (!f) + return; + + // Look through lookup + if (t.callbackLookup && (s = t.callbackLookup[n])) { + f = s.func; + s = s.scope; + } + + if (is(f, 'string')) { + s = f.replace(/\.\w+$/, ''); + s = s ? tinymce.resolve(s) : 0; + f = tinymce.resolve(f); + t.callbackLookup = t.callbackLookup || {}; + t.callbackLookup[n] = {func : f, scope : s}; + } + + return f.apply(s || t, Array.prototype.slice.call(arguments, 1)); + }, + + translate : function(s) { + var c = this.settings.language || 'en', i18n = tinymce.i18n; + + if (!s) + return ''; + + return i18n[c + '.' + s] || s.replace(/{\#([^}]+)\}/g, function(a, b) { + return i18n[c + '.' + b] || '{#' + b + '}'; + }); + }, + + getLang : function(n, dv) { + return tinymce.i18n[(this.settings.language || 'en') + '.' + n] || (is(dv) ? dv : '{#' + n + '}'); + }, + + getParam : function(n, dv, ty) { + var tr = tinymce.trim, v = is(this.settings[n]) ? this.settings[n] : dv, o; + + if (ty === 'hash') { + o = {}; + + if (is(v, 'string')) { + each(v.indexOf('=') > 0 ? v.split(/[;,](?![^=;,]*(?:[;,]|$))/) : v.split(','), function(v) { + v = v.split('='); + + if (v.length > 1) + o[tr(v[0])] = tr(v[1]); + else + o[tr(v[0])] = tr(v); + }); + } else + o = v; + + return o; + } + + return v; + }, + + nodeChanged : function(o) { + var t = this, s = t.selection, n = (isIE ? s.getNode() : s.getStart()) || t.getBody(); + + // Fix for bug #1896577 it seems that this can not be fired while the editor is loading + if (t.initialized) { + o = o || {}; + n = isIE && n.ownerDocument != t.getDoc() ? t.getBody() : n; // Fix for IE initial state + + // Get parents and add them to object + o.parents = []; + t.dom.getParent(n, function(node) { + if (node.nodeName == 'BODY') + return true; + + o.parents.push(node); + }); + + t.onNodeChange.dispatch( + t, + o ? o.controlManager || t.controlManager : t.controlManager, + n, + s.isCollapsed(), + o + ); + } + }, + + addButton : function(n, s) { + var t = this; + + t.buttons = t.buttons || {}; + t.buttons[n] = s; + }, + + addCommand : function(n, f, s) { + this.execCommands[n] = {func : f, scope : s || this}; + }, + + addQueryStateHandler : function(n, f, s) { + this.queryStateCommands[n] = {func : f, scope : s || this}; + }, + + addQueryValueHandler : function(n, f, s) { + this.queryValueCommands[n] = {func : f, scope : s || this}; + }, + + addShortcut : function(pa, desc, cmd_func, sc) { + var t = this, c; + + if (!t.settings.custom_shortcuts) + return false; + + t.shortcuts = t.shortcuts || {}; + + if (is(cmd_func, 'string')) { + c = cmd_func; + + cmd_func = function() { + t.execCommand(c, false, null); + }; + } + + if (is(cmd_func, 'object')) { + c = cmd_func; + + cmd_func = function() { + t.execCommand(c[0], c[1], c[2]); + }; + } + + each(explode(pa), function(pa) { + var o = { + func : cmd_func, + scope : sc || this, + desc : desc, + alt : false, + ctrl : false, + shift : false + }; + + each(explode(pa, '+'), function(v) { + switch (v) { + case 'alt': + case 'ctrl': + case 'shift': + o[v] = true; + break; + + default: + o.charCode = v.charCodeAt(0); + o.keyCode = v.toUpperCase().charCodeAt(0); + } + }); + + t.shortcuts[(o.ctrl ? 'ctrl' : '') + ',' + (o.alt ? 'alt' : '') + ',' + (o.shift ? 'shift' : '') + ',' + o.keyCode] = o; + }); + + return true; + }, + + execCommand : function(cmd, ui, val, a) { + var t = this, s = 0, o, st; + + if (!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd) && (!a || !a.skip_focus)) + t.focus(); + + o = {}; + t.onBeforeExecCommand.dispatch(t, cmd, ui, val, o); + if (o.terminate) + return false; + + // Command callback + if (t.execCallback('execcommand_callback', t.id, t.selection.getNode(), cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Registred commands + if (o = t.execCommands[cmd]) { + st = o.func.call(o.scope, ui, val); + + // Fall through on true + if (st !== true) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return st; + } + } + + // Plugin commands + each(t.plugins, function(p) { + if (p.execCommand && p.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + s = 1; + return false; + } + }); + + if (s) + return true; + + // Theme commands + if (t.theme && t.theme.execCommand && t.theme.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Execute global commands + if (tinymce.GlobalCommands.execCommand(t, cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Editor commands + if (t.editorCommands.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Browser commands + t.getDoc().execCommand(cmd, ui, val); + t.onExecCommand.dispatch(t, cmd, ui, val, a); + }, + + queryCommandState : function(cmd) { + var t = this, o, s; + + // Is hidden then return undefined + if (t._isHidden()) + return; + + // Registred commands + if (o = t.queryStateCommands[cmd]) { + s = o.func.call(o.scope); + + // Fall though on true + if (s !== true) + return s; + } + + // Registred commands + o = t.editorCommands.queryCommandState(cmd); + if (o !== -1) + return o; + + // Browser commands + try { + return this.getDoc().queryCommandState(cmd); + } catch (ex) { + // Fails sometimes see bug: 1896577 + } + }, + + queryCommandValue : function(c) { + var t = this, o, s; + + // Is hidden then return undefined + if (t._isHidden()) + return; + + // Registred commands + if (o = t.queryValueCommands[c]) { + s = o.func.call(o.scope); + + // Fall though on true + if (s !== true) + return s; + } + + // Registred commands + o = t.editorCommands.queryCommandValue(c); + if (is(o)) + return o; + + // Browser commands + try { + return this.getDoc().queryCommandValue(c); + } catch (ex) { + // Fails sometimes see bug: 1896577 + } + }, + + show : function() { + var t = this; + + DOM.show(t.getContainer()); + DOM.hide(t.id); + t.load(); + }, + + hide : function() { + var t = this, d = t.getDoc(); + + // Fixed bug where IE has a blinking cursor left from the editor + if (isIE && d) + d.execCommand('SelectAll'); + + // We must save before we hide so Safari doesn't crash + t.save(); + DOM.hide(t.getContainer()); + DOM.setStyle(t.id, 'display', t.orgDisplay); + }, + + isHidden : function() { + return !DOM.isHidden(this.id); + }, + + setProgressState : function(b, ti, o) { + this.onSetProgressState.dispatch(this, b, ti, o); + + return b; + }, + + load : function(o) { + var t = this, e = t.getElement(), h; + + if (e) { + o = o || {}; + o.load = true; + + // Double encode existing entities in the value + h = t.setContent(is(e.value) ? e.value : e.innerHTML, o); + o.element = e; + + if (!o.no_events) + t.onLoadContent.dispatch(t, o); + + o.element = e = null; + + return h; + } + }, + + save : function(o) { + var t = this, e = t.getElement(), h, f; + + if (!e || !t.initialized) + return; + + o = o || {}; + o.save = true; + + // Add undo level will trigger onchange event + if (!o.no_events) { + t.undoManager.typing = 0; + t.undoManager.add(); + } + + o.element = e; + h = o.content = t.getContent(o); + + if (!o.no_events) + t.onSaveContent.dispatch(t, o); + + h = o.content; + + if (!/TEXTAREA|INPUT/i.test(e.nodeName)) { + e.innerHTML = h; + + // Update hidden form element + if (f = DOM.getParent(t.id, 'form')) { + each(f.elements, function(e) { + if (e.name == t.id) { + e.value = h; + return false; + } + }); + } + } else + e.value = h; + + o.element = e = null; + + return h; + }, + + setContent : function(h, o) { + var t = this; + + o = o || {}; + o.format = o.format || 'html'; + o.set = true; + o.content = h; + + if (!o.no_events) + t.onBeforeSetContent.dispatch(t, o); + + // Padd empty content in Gecko and Safari. Commands will otherwise fail on the content + // It will also be impossible to place the caret in the editor unless there is a BR element present + if (!tinymce.isIE && (h.length === 0 || /^\s+$/.test(h))) { + o.content = t.dom.setHTML(t.getBody(), '
    '); + o.format = 'raw'; + } + + o.content = t.dom.setHTML(t.getBody(), tinymce.trim(o.content)); + + if (o.format != 'raw' && t.settings.cleanup) { + o.getInner = true; + o.content = t.dom.setHTML(t.getBody(), t.serializer.serialize(t.getBody(), o)); + } + + if (!o.no_events) + t.onSetContent.dispatch(t, o); + + return o.content; + }, + + getContent : function(o) { + var t = this, h; + + o = o || {}; + o.format = o.format || 'html'; + o.get = true; + + if (!o.no_events) + t.onBeforeGetContent.dispatch(t, o); + + if (o.format != 'raw' && t.settings.cleanup) { + o.getInner = true; + h = t.serializer.serialize(t.getBody(), o); + } else + h = t.getBody().innerHTML; + + h = h.replace(/^\s*|\s*$/g, ''); + o.content = h; + + if (!o.no_events) + t.onGetContent.dispatch(t, o); + + return o.content; + }, + + isDirty : function() { + var t = this; + + return tinymce.trim(t.startContent) != tinymce.trim(t.getContent({format : 'raw', no_events : 1})) && !t.isNotDirty; + }, + + getContainer : function() { + var t = this; + + if (!t.container) + t.container = DOM.get(t.editorContainer || t.id + '_parent'); + + return t.container; + }, + + getContentAreaContainer : function() { + return this.contentAreaContainer; + }, + + getElement : function() { + return DOM.get(this.settings.content_element || this.id); + }, + + getWin : function() { + var t = this, e; + + if (!t.contentWindow) { + e = DOM.get(t.id + "_ifr"); + + if (e) + t.contentWindow = e.contentWindow; + } + + return t.contentWindow; + }, + + getDoc : function() { + var t = this, w; + + if (!t.contentDocument) { + w = t.getWin(); + + if (w) + t.contentDocument = w.document; + } + + return t.contentDocument; + }, + + getBody : function() { + return this.bodyElement || this.getDoc().body; + }, + + convertURL : function(u, n, e) { + var t = this, s = t.settings; + + // Use callback instead + if (s.urlconverter_callback) + return t.execCallback('urlconverter_callback', u, e, true, n); + + // Don't convert link href since thats the CSS files that gets loaded into the editor also skip local file URLs + if (!s.convert_urls || (e && e.nodeName == 'LINK') || u.indexOf('file:') === 0) + return u; + + // Convert to relative + if (s.relative_urls) + return t.documentBaseURI.toRelative(u); + + // Convert to absolute + u = t.documentBaseURI.toAbsolute(u, s.remove_script_host); + + return u; + }, + + addVisual : function(e) { + var t = this, s = t.settings; + + e = e || t.getBody(); + + if (!is(t.hasVisual)) + t.hasVisual = s.visual; + + each(t.dom.select('table,a', e), function(e) { + var v; + + switch (e.nodeName) { + case 'TABLE': + v = t.dom.getAttrib(e, 'border'); + + if (!v || v == '0') { + if (t.hasVisual) + t.dom.addClass(e, s.visual_table_class); + else + t.dom.removeClass(e, s.visual_table_class); + } + + return; + + case 'A': + v = t.dom.getAttrib(e, 'name'); + + if (v) { + if (t.hasVisual) + t.dom.addClass(e, 'mceItemAnchor'); + else + t.dom.removeClass(e, 'mceItemAnchor'); + } + + return; + } + }); + + t.onVisualAid.dispatch(t, e, t.hasVisual); + }, + + remove : function() { + var t = this, e = t.getContainer(); + + t.removed = 1; // Cancels post remove event execution + t.hide(); + + t.execCallback('remove_instance_callback', t); + t.onRemove.dispatch(t); + + // Clear all execCommand listeners this is required to avoid errors if the editor was removed inside another command + t.onExecCommand.listeners = []; + + tinymce.remove(t); + DOM.remove(e); + }, + + destroy : function(s) { + var t = this; + + // One time is enough + if (t.destroyed) + return; + + if (!s) { + tinymce.removeUnload(t.destroy); + tinyMCE.onBeforeUnload.remove(t._beforeUnload); + + // Manual destroy + if (t.theme && t.theme.destroy) + t.theme.destroy(); + + // Destroy controls, selection and dom + t.controlManager.destroy(); + t.selection.destroy(); + t.dom.destroy(); + + // Remove all events + + // Don't clear the window or document if content editable + // is enabled since other instances might still be present + if (!t.settings.content_editable) { + Event.clear(t.getWin()); + Event.clear(t.getDoc()); + } + + Event.clear(t.getBody()); + Event.clear(t.formElement); + } + + if (t.formElement) { + t.formElement.submit = t.formElement._mceOldSubmit; + t.formElement._mceOldSubmit = null; + } + + t.contentAreaContainer = t.formElement = t.container = t.settings.content_element = t.bodyElement = t.contentDocument = t.contentWindow = null; + + if (t.selection) + t.selection = t.selection.win = t.selection.dom = t.selection.dom.doc = null; + + t.destroyed = 1; + }, + + // Internal functions + + _addEvents : function() { + // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset + var t = this, i, s = t.settings, lo = { + mouseup : 'onMouseUp', + mousedown : 'onMouseDown', + click : 'onClick', + keyup : 'onKeyUp', + keydown : 'onKeyDown', + keypress : 'onKeyPress', + submit : 'onSubmit', + reset : 'onReset', + contextmenu : 'onContextMenu', + dblclick : 'onDblClick', + paste : 'onPaste' // Doesn't work in all browsers yet + }; + + function eventHandler(e, o) { + var ty = e.type; + + // Don't fire events when it's removed + if (t.removed) + return; + + // Generic event handler + if (t.onEvent.dispatch(t, e, o) !== false) { + // Specific event handler + t[lo[e.fakeType || e.type]].dispatch(t, e, o); + } + }; + + // Add DOM events + each(lo, function(v, k) { + switch (k) { + case 'contextmenu': + if (tinymce.isOpera) { + // Fake contextmenu on Opera + t.dom.bind(t.getBody(), 'mousedown', function(e) { + if (e.ctrlKey) { + e.fakeType = 'contextmenu'; + eventHandler(e); + } + }); + } else + t.dom.bind(t.getBody(), k, eventHandler); + break; + + case 'paste': + t.dom.bind(t.getBody(), k, function(e) { + eventHandler(e); + }); + break; + + case 'submit': + case 'reset': + t.dom.bind(t.getElement().form || DOM.getParent(t.id, 'form'), k, eventHandler); + break; + + default: + t.dom.bind(s.content_editable ? t.getBody() : t.getDoc(), k, eventHandler); + } + }); + + t.dom.bind(s.content_editable ? t.getBody() : (isGecko ? t.getDoc() : t.getWin()), 'focus', function(e) { + t.focus(true); + }); + + + // Fixes bug where a specified document_base_uri could result in broken images + // This will also fix drag drop of images in Gecko + if (tinymce.isGecko) { + // Convert all images to absolute URLs +/* t.onSetContent.add(function(ed, o) { + each(ed.dom.select('img'), function(e) { + var v; + + if (v = e.getAttribute('_mce_src')) + e.src = t.documentBaseURI.toAbsolute(v); + }) + });*/ + + t.dom.bind(t.getDoc(), 'DOMNodeInserted', function(e) { + var v; + + e = e.target; + + if (e.nodeType === 1 && e.nodeName === 'IMG' && (v = e.getAttribute('_mce_src'))) + e.src = t.documentBaseURI.toAbsolute(v); + }); + } + + // Set various midas options in Gecko + if (isGecko) { + function setOpts() { + var t = this, d = t.getDoc(), s = t.settings; + + if (isGecko && !s.readonly) { + if (t._isHidden()) { + try { + if (!s.content_editable) + d.designMode = 'On'; + } catch (ex) { + // Fails if it's hidden + } + } + + try { + // Try new Gecko method + d.execCommand("styleWithCSS", 0, false); + } catch (ex) { + // Use old method + if (!t._isHidden()) + try {d.execCommand("useCSS", 0, true);} catch (ex) {} + } + + if (!s.table_inline_editing) + try {d.execCommand('enableInlineTableEditing', false, false);} catch (ex) {} + + if (!s.object_resizing) + try {d.execCommand('enableObjectResizing', false, false);} catch (ex) {} + } + }; + + t.onBeforeExecCommand.add(setOpts); + t.onMouseDown.add(setOpts); + } + + // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250 + // WebKit can't even do simple things like selecting an image + // This also fixes so it's possible to select mceItemAnchors + if (tinymce.isWebKit) { + t.onClick.add(function(ed, e) { + e = e.target; + + // Needs tobe the setBaseAndExtend or it will fail to select floated images + if (e.nodeName == 'IMG' || (e.nodeName == 'A' && t.dom.hasClass(e, 'mceItemAnchor'))) + t.selection.getSel().setBaseAndExtent(e, 0, e, 1); + }); + } + + // Add node change handlers + t.onMouseUp.add(t.nodeChanged); + t.onClick.add(t.nodeChanged); + t.onKeyUp.add(function(ed, e) { + var c = e.keyCode; + + if ((c >= 33 && c <= 36) || (c >= 37 && c <= 40) || c == 13 || c == 45 || c == 46 || c == 8 || (tinymce.isMac && (c == 91 || c == 93)) || e.ctrlKey) + t.nodeChanged(); + }); + + // Add reset handler + t.onReset.add(function() { + t.setContent(t.startContent, {format : 'raw'}); + }); + + // Add shortcuts + if (s.custom_shortcuts) { + if (s.custom_undo_redo_keyboard_shortcuts) { + t.addShortcut('ctrl+z', t.getLang('undo_desc'), 'Undo'); + t.addShortcut('ctrl+y', t.getLang('redo_desc'), 'Redo'); + } + + // Add default shortcuts for gecko + t.addShortcut('ctrl+b', t.getLang('bold_desc'), 'Bold'); + t.addShortcut('ctrl+i', t.getLang('italic_desc'), 'Italic'); + t.addShortcut('ctrl+u', t.getLang('underline_desc'), 'Underline'); + + // BlockFormat shortcuts keys + for (i=1; i<=6; i++) + t.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]); + + t.addShortcut('ctrl+7', '', ['FormatBlock', false, '

    ']); + t.addShortcut('ctrl+8', '', ['FormatBlock', false, '

    ']); + t.addShortcut('ctrl+9', '', ['FormatBlock', false, '
    ']); + + function find(e) { + var v = null; + + if (!e.altKey && !e.ctrlKey && !e.metaKey) + return v; + + each(t.shortcuts, function(o) { + if (tinymce.isMac && o.ctrl != e.metaKey) + return; + else if (!tinymce.isMac && o.ctrl != e.ctrlKey) + return; + + if (o.alt != e.altKey) + return; + + if (o.shift != e.shiftKey) + return; + + if (e.keyCode == o.keyCode || (e.charCode && e.charCode == o.charCode)) { + v = o; + return false; + } + }); + + return v; + }; + + t.onKeyUp.add(function(ed, e) { + var o = find(e); + + if (o) + return Event.cancel(e); + }); + + t.onKeyPress.add(function(ed, e) { + var o = find(e); + + if (o) + return Event.cancel(e); + }); + + t.onKeyDown.add(function(ed, e) { + var o = find(e); + + if (o) { + o.func.call(o.scope); + return Event.cancel(e); + } + }); + } + + if (tinymce.isIE) { + // Fix so resize will only update the width and height attributes not the styles of an image + // It will also block mceItemNoResize items + t.dom.bind(t.getDoc(), 'controlselect', function(e) { + var re = t.resizeInfo, cb; + + e = e.target; + + // Don't do this action for non image elements + if (e.nodeName !== 'IMG') + return; + + if (re) + t.dom.unbind(re.node, re.ev, re.cb); + + if (!t.dom.hasClass(e, 'mceItemNoResize')) { + ev = 'resizeend'; + cb = t.dom.bind(e, ev, function(e) { + var v; + + e = e.target; + + if (v = t.dom.getStyle(e, 'width')) { + t.dom.setAttrib(e, 'width', v.replace(/[^0-9%]+/g, '')); + t.dom.setStyle(e, 'width', ''); + } + + if (v = t.dom.getStyle(e, 'height')) { + t.dom.setAttrib(e, 'height', v.replace(/[^0-9%]+/g, '')); + t.dom.setStyle(e, 'height', ''); + } + }); + } else { + ev = 'resizestart'; + cb = t.dom.bind(e, 'resizestart', Event.cancel, Event); + } + + re = t.resizeInfo = { + node : e, + ev : ev, + cb : cb + }; + }); + + t.onKeyDown.add(function(ed, e) { + switch (e.keyCode) { + case 8: + // Fix IE control + backspace browser bug + if (t.selection.getRng().item) { + ed.dom.remove(t.selection.getRng().item(0)); + return Event.cancel(e); + } + } + }); + + /*if (t.dom.boxModel) { + t.getBody().style.height = '100%'; + + Event.add(t.getWin(), 'resize', function(e) { + var docElm = t.getDoc().documentElement; + + docElm.style.height = (docElm.offsetHeight - 10) + 'px'; + }); + }*/ + } + + if (tinymce.isOpera) { + t.onClick.add(function(ed, e) { + Event.prevent(e); + }); + } + + // Add custom undo/redo handlers + if (s.custom_undo_redo) { + function addUndo() { + t.undoManager.typing = 0; + t.undoManager.add(); + }; + + t.dom.bind(t.getDoc(), 'focusout', function(e) { + if (!t.removed && t.undoManager.typing) + addUndo(); + }); + + t.onKeyUp.add(function(ed, e) { + if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45 || e.ctrlKey) + addUndo(); + }); + + t.onKeyDown.add(function(ed, e) { + // Is caracter positon keys + if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45) { + if (t.undoManager.typing) + addUndo(); + + return; + } + + if (!t.undoManager.typing) { + t.undoManager.add(); + t.undoManager.typing = 1; + } + }); + + t.onMouseDown.add(function() { + if (t.undoManager.typing) + addUndo(); + }); + } + }, + + _isHidden : function() { + var s; + + if (!isGecko) + return 0; + + // Weird, wheres that cursor selection? + s = this.selection.getSel(); + return (!s || !s.rangeCount || s.rangeCount == 0); + }, + + // Fix for bug #1867292 + _fixNesting : function(s) { + var d = [], i; + + s = s.replace(/<(\/)?([^\s>]+)[^>]*?>/g, function(a, b, c) { + var e; + + // Handle end element + if (b === '/') { + if (!d.length) + return ''; + + if (c !== d[d.length - 1].tag) { + for (i=d.length - 1; i>=0; i--) { + if (d[i].tag === c) { + d[i].close = 1; + break; + } + } + + return ''; + } else { + d.pop(); + + if (d.length && d[d.length - 1].close) { + a = a + ''; + d.pop(); + } + } + } else { + // Ignore these + if (/^(br|hr|input|meta|img|link|param)$/i.test(c)) + return a; + + // Ignore closed ones + if (/\/>$/.test(a)) + return a; + + d.push({tag : c}); // Push start element + } + + return a; + }); + + // End all open tags + for (i=d.length - 1; i>=0; i--) + s += ''; + + return s; + } + }); +})(tinymce); + +(function(tinymce) { + // Added for compression purposes + var each = tinymce.each, undefined, TRUE = true, FALSE = false; + + tinymce.EditorCommands = function(editor) { + var dom = editor.dom, + selection = editor.selection, + commands = {state: {}, exec : {}, value : {}}, + settings = editor.settings, + bookmark; + + function execCommand(command, ui, value) { + var func; + + command = command.toLowerCase(); + if (func = commands.exec[command]) { + func(command, ui, value); + return TRUE; + } + + return FALSE; + }; + + function queryCommandState(command) { + var func; + + command = command.toLowerCase(); + if (func = commands.state[command]) + return func(command); + + return -1; + }; + + function queryCommandValue(command) { + var func; + + command = command.toLowerCase(); + if (func = commands.value[command]) + return func(command); + + return FALSE; + }; + + function addCommands(command_list, type) { + type = type || 'exec'; + + each(command_list, function(callback, command) { + each(command.toLowerCase().split(','), function(command) { + commands[type][command] = callback; + }); + }); + }; + + // Expose public methods + tinymce.extend(this, { + execCommand : execCommand, + queryCommandState : queryCommandState, + queryCommandValue : queryCommandValue, + addCommands : addCommands + }); + + // Private methods + + function execNativeCommand(command, ui, value) { + if (ui === undefined) + ui = FALSE; + + if (value === undefined) + value = null; + + return editor.getDoc().execCommand(command, ui, value); + }; + + function isFormatMatch(name) { + return editor.formatter.match(name); + }; + + function toggleFormat(name, value) { + editor.formatter.toggle(name, value ? {value : value} : undefined); + }; + + function storeSelection(type) { + bookmark = selection.getBookmark(type); + }; + + function restoreSelection() { + selection.moveToBookmark(bookmark); + }; + + // Add execCommand overrides + addCommands({ + // Ignore these, added for compatibility + 'mceResetDesignMode,mceBeginUndoLevel' : function() {}, + + // Add undo manager logic + 'mceEndUndoLevel,mceAddUndoLevel' : function() { + editor.undoManager.add(); + }, + + 'Cut,Copy,Paste' : function(command) { + var doc = editor.getDoc(), failed; + + // Try executing the native command + try { + execNativeCommand(command); + } catch (ex) { + // Command failed + failed = TRUE; + } + + // Present alert message about clipboard access not being available + if (failed || !doc.queryCommandSupported(command)) { + if (tinymce.isGecko) { + editor.windowManager.confirm(editor.getLang('clipboard_msg'), function(state) { + if (state) + open('http://www.mozilla.org/editor/midasdemo/securityprefs.html', '_blank'); + }); + } else + editor.windowManager.alert(editor.getLang('clipboard_no_support')); + } + }, + + // Override unlink command + unlink : function(command) { + if (selection.isCollapsed()) + selection.select(selection.getNode()); + + execNativeCommand(command); + selection.collapse(FALSE); + }, + + // Override justify commands to use the text formatter engine + 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) { + var align = command.substring(7); + + // Remove all other alignments first + each('left,center,right,full'.split(','), function(name) { + if (align != name) + editor.formatter.remove('align' + name); + }); + + toggleFormat('align' + align); + }, + + // Override list commands to fix WebKit bug + 'InsertUnorderedList,InsertOrderedList' : function(command) { + var listElm, listParent; + + execNativeCommand(command); + + // WebKit produces lists within block elements so we need to split them + // we will replace the native list creation logic to custom logic later on + // TODO: Remove this when the list creation logic is removed + listElm = dom.getParent(selection.getNode(), 'ol,ul'); + if (listElm) { + listParent = listElm.parentNode; + + // If list is within a text block then split that block + if (/^(H[1-6]|P|ADDRESS|PRE)$/.test(listParent.nodeName)) { + storeSelection(); + dom.split(listParent, listElm); + restoreSelection(); + } + } + }, + + // Override commands to use the text formatter engine + 'Bold,Italic,Underline,Strikethrough' : function(command) { + toggleFormat(command); + }, + + // Override commands to use the text formatter engine + 'ForeColor,HiliteColor,FontName' : function(command, ui, value) { + toggleFormat(command, value); + }, + + FontSize : function(command, ui, value) { + var fontClasses, fontSizes; + + // Convert font size 1-7 to styles + if (value >= 1 && value <= 7) { + fontSizes = tinymce.explode(settings.font_size_style_values); + fontClasses = tinymce.explode(settings.font_size_classes); + + if (fontClasses) + value = fontClasses[value - 1] || value; + else + value = fontSizes[value - 1] || value; + } + + toggleFormat(command, value); + }, + + RemoveFormat : function(command) { + editor.formatter.remove(command); + }, + + mceBlockQuote : function(command) { + toggleFormat('blockquote'); + }, + + FormatBlock : function(command, ui, value) { + return toggleFormat(value); + }, + + mceCleanup : function() { + storeSelection(); + editor.setContent(editor.getContent({cleanup : TRUE}), {cleanup : TRUE}); + restoreSelection(); + }, + + mceRemoveNode : function(command, ui, value) { + var node = value || selection.getNode(); + + // Make sure that the body node isn't removed + if (node != editor.getBody()) { + storeSelection(); + editor.dom.remove(node, TRUE); + restoreSelection(); + } + }, + + mceSelectNodeDepth : function(command, ui, value) { + var counter = 0; + + dom.getParent(selection.getNode(), function(node) { + if (node.nodeType == 1 && counter++ == value) { + selection.select(node); + return FALSE; + } + }, editor.getBody()); + }, + + mceSelectNode : function(command, ui, value) { + selection.select(value); + }, + + mceInsertContent : function(command, ui, value) { + selection.setContent(value); + }, + + mceInsertRawHTML : function(command, ui, value) { + selection.setContent('tiny_mce_marker'); + editor.setContent(editor.getContent().replace(/tiny_mce_marker/g, value)); + }, + + mceSetContent : function(command, ui, value) { + editor.setContent(value); + }, + + 'Indent,Outdent' : function(command) { + var intentValue, indentUnit, value; + + // Setup indent level + intentValue = settings.indentation; + indentUnit = /[a-z%]+$/i.exec(intentValue); + intentValue = parseInt(intentValue); + + if (!queryCommandState('InsertUnorderedList') && !queryCommandState('InsertOrderedList')) { + each(selection.getSelectedBlocks(), function(element) { + if (command == 'outdent') { + value = Math.max(0, parseInt(element.style.paddingLeft || 0) - intentValue); + dom.setStyle(element, 'paddingLeft', value ? value + indentUnit : ''); + } else + dom.setStyle(element, 'paddingLeft', (parseInt(element.style.paddingLeft || 0) + intentValue) + indentUnit); + }); + } else + execNativeCommand(command); + }, + + mceRepaint : function() { + var bookmark; + + if (tinymce.isGecko) { + try { + storeSelection(TRUE); + + if (selection.getSel()) + selection.getSel().selectAllChildren(editor.getBody()); + + selection.collapse(TRUE); + restoreSelection(); + } catch (ex) { + // Ignore + } + } + }, + + mceToggleFormat : function(command, ui, value) { + editor.formatter.toggle(value); + }, + + InsertHorizontalRule : function() { + selection.setContent('
    '); + }, + + mceToggleVisualAid : function() { + editor.hasVisual = !editor.hasVisual; + editor.addVisual(); + }, + + mceReplaceContent : function(command, ui, value) { + selection.setContent(value.replace(/\{\$selection\}/g, selection.getContent({format : 'text'}))); + }, + + mceInsertLink : function(command, ui, value) { + var link = dom.getParent(selection.getNode(), 'a'); + + if (tinymce.is(value, 'string')) + value = {href : value}; + + if (!link) { + execNativeCommand('CreateLink', FALSE, 'javascript:mctmp(0);'); + each(dom.select('a[href=javascript:mctmp(0);]'), function(link) { + dom.setAttribs(link, value); + }); + } else { + if (value.href) + dom.setAttribs(link, value); + else + editor.dom.remove(link, TRUE); + } + }, + + selectAll : function() { + var root = dom.getRoot(); + var rng = dom.createRng(); + rng.setStart(root, 0); + rng.setEnd(root, root.childNodes.length); + editor.selection.setRng(rng); + } + }); + + // Add queryCommandState overrides + addCommands({ + // Override justify commands + 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) { + return isFormatMatch('align' + command.substring(7)); + }, + + 'Bold,Italic,Underline,Strikethrough' : function(command) { + return isFormatMatch(command); + }, + + mceBlockQuote : function() { + return isFormatMatch('blockquote'); + }, + + Outdent : function() { + var node; + + if (settings.inline_styles) { + if ((node = dom.getParent(selection.getStart(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0) + return TRUE; + + if ((node = dom.getParent(selection.getEnd(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0) + return TRUE; + } + + return queryCommandState('InsertUnorderedList') || queryCommandState('InsertOrderedList') || (!settings.inline_styles && !!dom.getParent(selection.getNode(), 'BLOCKQUOTE')); + }, + + 'InsertUnorderedList,InsertOrderedList' : function(command) { + return dom.getParent(selection.getNode(), command == 'insertunorderedlist' ? 'UL' : 'OL'); + } + }, 'state'); + + // Add queryCommandValue overrides + addCommands({ + 'FontSize,FontName' : function(command) { + var value = 0, parent; + + if (parent = dom.getParent(selection.getNode(), 'span')) { + if (command == 'fontsize') + value = parent.style.fontSize; + else + value = parent.style.fontFamily.replace(/, /g, ',').replace(/[\'\"]/g, '').toLowerCase(); + } + + return value; + } + }, 'value'); + + // Add undo manager logic + if (settings.custom_undo_redo) { + addCommands({ + Undo : function() { + editor.undoManager.undo(); + }, + + Redo : function() { + editor.undoManager.redo(); + } + }); + } + }; +})(tinymce); +(function(tinymce) { + var Dispatcher = tinymce.util.Dispatcher; + + tinymce.UndoManager = function(editor) { + var self, index = 0, data = []; + + function getContent() { + return tinymce.trim(editor.getContent({format : 'raw', no_events : 1})); + }; + + return self = { + typing : 0, + + onAdd : new Dispatcher(self), + onUndo : new Dispatcher(self), + onRedo : new Dispatcher(self), + + add : function(level) { + var i, settings = editor.settings, lastLevel; + + level = level || {}; + level.content = getContent(); + + // Add undo level if needed + lastLevel = data[index]; + if (lastLevel && lastLevel.content == level.content) { + if (index > 0 || data.length == 1) + return null; + } + + // Time to compress + if (settings.custom_undo_redo_levels) { + if (data.length > settings.custom_undo_redo_levels) { + for (i = 0; i < data.length - 1; i++) + data[i] = data[i + 1]; + + data.length--; + index = data.length; + } + } + + // Get a non intrusive normalized bookmark + level.bookmark = editor.selection.getBookmark(2, true); + + // Crop array if needed + if (index < data.length - 1) { + // Treat first level as initial + if (index == 0) + data = []; + else + data.length = index + 1; + } + + data.push(level); + index = data.length - 1; + + self.onAdd.dispatch(self, level); + editor.isNotDirty = 0; + + return level; + }, + + undo : function() { + var level, i; + + if (self.typing) { + self.add(); + self.typing = 0; + } + + if (index > 0) { + level = data[--index]; + + editor.setContent(level.content, {format : 'raw'}); + editor.selection.moveToBookmark(level.bookmark); + + self.onUndo.dispatch(self, level); + } + + return level; + }, + + redo : function() { + var level; + + if (index < data.length - 1) { + level = data[++index]; + + editor.setContent(level.content, {format : 'raw'}); + editor.selection.moveToBookmark(level.bookmark); + + self.onRedo.dispatch(self, level); + } + + return level; + }, + + clear : function() { + data = []; + index = self.typing = 0; + }, + + hasUndo : function() { + return index > 0 || self.typing; + }, + + hasRedo : function() { + return index < data.length - 1; + } + }; + }; +})(tinymce); + +(function(tinymce) { + // Shorten names + var Event = tinymce.dom.Event, + isIE = tinymce.isIE, + isGecko = tinymce.isGecko, + isOpera = tinymce.isOpera, + each = tinymce.each, + extend = tinymce.extend, + TRUE = true, + FALSE = false; + + // Checks if the selection/caret is at the end of the specified block element + function isAtEnd(rng, par) { + var rng2 = par.ownerDocument.createRange(); + + rng2.setStart(rng.endContainer, rng.endOffset); + rng2.setEndAfter(par); + + // Get number of characters to the right of the cursor if it's zero then we are at the end and need to merge the next block element + return rng2.cloneContents().textContent.length == 0; + }; + + function isEmpty(n) { + n = n.innerHTML; + + n = n.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi, '-'); // Keep these convert them to - chars + n = n.replace(/<[^>]+>/g, ''); // Remove all tags + + return n.replace(/[ \u00a0\t\r\n]+/g, '') == ''; + }; + + function splitList(selection, dom, li) { + var listBlock, block; + + if (isEmpty(li)) { + listBlock = dom.getParent(li, 'ul,ol'); + + if (!dom.getParent(listBlock.parentNode, 'ul,ol')) { + dom.split(listBlock, li); + block = dom.create('p', 0, '
    '); + dom.replace(block, li); + selection.select(block, 1); + } + + return FALSE; + } + + return TRUE; + }; + + tinymce.create('tinymce.ForceBlocks', { + ForceBlocks : function(ed) { + var t = this, s = ed.settings, elm; + + t.editor = ed; + t.dom = ed.dom; + elm = (s.forced_root_block || 'p').toLowerCase(); + s.element = elm.toUpperCase(); + + ed.onPreInit.add(t.setup, t); + + t.reOpera = new RegExp('(\\u00a0| | )<\/' + elm + '>', 'gi'); + t.rePadd = new RegExp(']+)><\\\/p>|]+)\\\/>|]+)>\\s+<\\\/p>|

    <\\\/p>||

    \\s+<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR1 = new RegExp(']+)>[\\s\\u00a0]+<\\\/p>|

    [\\s\\u00a0]+<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR2 = new RegExp('<%p()([^>]+)>( | )<\\\/%p>|<%p>( | )<\\\/%p>'.replace(/%p/g, elm), 'gi'); + t.reBR2Nbsp = new RegExp(']+)>\\s*
    \\s*<\\\/p>|

    \\s*
    \\s*<\\\/p>'.replace(/p/g, elm), 'gi'); + + function padd(ed, o) { + if (isOpera) + o.content = o.content.replace(t.reOpera, ''); + + o.content = o.content.replace(t.rePadd, '<' + elm + '$1$2$3$4$5$6>\u00a0'); + + if (!isIE && !isOpera && o.set) { + // Use   instead of BR in padded paragraphs + o.content = o.content.replace(t.reNbsp2BR1, '<' + elm + '$1$2>
    '); + o.content = o.content.replace(t.reNbsp2BR2, '<' + elm + '$1$2>
    '); + } else + o.content = o.content.replace(t.reBR2Nbsp, '<' + elm + '$1$2>\u00a0'); + }; + + ed.onBeforeSetContent.add(padd); + ed.onPostProcess.add(padd); + + if (s.forced_root_block) { + ed.onInit.add(t.forceRoots, t); + ed.onSetContent.add(t.forceRoots, t); + ed.onBeforeGetContent.add(t.forceRoots, t); + } + }, + + setup : function() { + var t = this, ed = t.editor, s = ed.settings, dom = ed.dom, selection = ed.selection; + + // Force root blocks when typing and when getting output + if (s.forced_root_block) { + ed.onBeforeExecCommand.add(t.forceRoots, t); + ed.onKeyUp.add(t.forceRoots, t); + ed.onPreProcess.add(t.forceRoots, t); + } + + if (s.force_br_newlines) { + // Force IE to produce BRs on enter + if (isIE) { + ed.onKeyPress.add(function(ed, e) { + var n; + + if (e.keyCode == 13 && selection.getNode().nodeName != 'LI') { + selection.setContent('
    ', {format : 'raw'}); + n = dom.get('__'); + n.removeAttribute('id'); + selection.select(n); + selection.collapse(); + return Event.cancel(e); + } + }); + } + } + + if (!isIE && s.force_p_newlines) { + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && !e.shiftKey && !t.insertPara(e)) + Event.cancel(e); + }); + + if (isGecko) { + ed.onKeyDown.add(function(ed, e) { + if ((e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) + t.backspaceDelete(e, e.keyCode == 8); + }); + } + } + + // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973 + if (tinymce.isWebKit) { + function insertBr(ed) { + var rng = selection.getRng(), br, div = dom.create('div', null, ' '), divYPos, vpHeight = dom.getViewPort(ed.getWin()).h; + + // Insert BR element + rng.insertNode(br = dom.create('br')); + + // Place caret after BR + rng.setStartAfter(br); + rng.setEndAfter(br); + selection.setRng(rng); + + // Could not place caret after BR then insert an nbsp entity and move the caret + if (selection.getSel().focusNode == br.previousSibling) { + selection.select(dom.insertAfter(dom.doc.createTextNode('\u00a0'), br)); + selection.collapse(TRUE); + } + + // Create a temporary DIV after the BR and get the position as it + // seems like getPos() returns 0 for text nodes and BR elements. + dom.insertAfter(div, br); + divYPos = dom.getPos(div).y; + dom.remove(div); + + // Scroll to new position, scrollIntoView can't be used due to bug: http://bugs.webkit.org/show_bug.cgi?id=16117 + if (divYPos > vpHeight) // It is not necessary to scroll if the DIV is inside the view port. + ed.getWin().scrollTo(0, divYPos); + }; + + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && (e.shiftKey || (s.force_br_newlines && !dom.getParent(selection.getNode(), 'h1,h2,h3,h4,h5,h6,ol,ul')))) { + insertBr(ed); + Event.cancel(e); + } + }); + } + + // Padd empty inline elements within block elements + // For example:

    becomes

     

    + ed.onPreProcess.add(function(ed, o) { + each(dom.select('p,h1,h2,h3,h4,h5,h6,div', o.node), function(p) { + if (isEmpty(p)) { + each(dom.select('span,em,strong,b,i', o.node), function(n) { + if (!n.hasChildNodes()) { + n.appendChild(ed.getDoc().createTextNode('\u00a0')); + return FALSE; // Break the loop one padding is enough + } + }); + } + }); + }); + + // IE specific fixes + if (isIE) { + // Replaces IE:s auto generated paragraphs with the specified element name + if (s.element != 'P') { + ed.onKeyPress.add(function(ed, e) { + t.lastElm = selection.getNode().nodeName; + }); + + ed.onKeyUp.add(function(ed, e) { + var bl, n = selection.getNode(), b = ed.getBody(); + + if (b.childNodes.length === 1 && n.nodeName == 'P') { + n = dom.rename(n, s.element); + selection.select(n); + selection.collapse(); + ed.nodeChanged(); + } else if (e.keyCode == 13 && !e.shiftKey && t.lastElm != 'P') { + bl = dom.getParent(n, 'p'); + + if (bl) { + dom.rename(bl, s.element); + ed.nodeChanged(); + } + } + }); + } + } + }, + + find : function(n, t, s) { + var ed = this.editor, w = ed.getDoc().createTreeWalker(n, 4, null, FALSE), c = -1; + + while (n = w.nextNode()) { + c++; + + // Index by node + if (t == 0 && n == s) + return c; + + // Node by index + if (t == 1 && c == s) + return n; + } + + return -1; + }, + + forceRoots : function(ed, e) { + var t = this, ed = t.editor, b = ed.getBody(), d = ed.getDoc(), se = ed.selection, s = se.getSel(), r = se.getRng(), si = -2, ei, so, eo, tr, c = -0xFFFFFF; + var nx, bl, bp, sp, le, nl = b.childNodes, i, n, eid; + + // Fix for bug #1863847 + //if (e && e.keyCode == 13) + // return TRUE; + + // Wrap non blocks into blocks + for (i = nl.length - 1; i >= 0; i--) { + nx = nl[i]; + + // Ignore internal elements + if (nx.nodeType === 1 && nx.getAttribute('_mce_type')) { + bl = null; + continue; + } + + // Is text or non block element + if (nx.nodeType === 3 || (!t.dom.isBlock(nx) && nx.nodeType !== 8 && !/^(script|mce:script|style|mce:style)$/i.test(nx.nodeName))) { + if (!bl) { + // Create new block but ignore whitespace + if (nx.nodeType != 3 || /[^\s]/g.test(nx.nodeValue)) { + // Store selection + if (si == -2 && r) { + if (!isIE) { + // If selection is element then mark it + if (r.startContainer.nodeType == 1 && (n = r.startContainer.childNodes[r.startOffset]) && n.nodeType == 1) { + // Save the id of the selected element + eid = n.getAttribute("id"); + n.setAttribute("id", "__mce"); + } else { + // If element is inside body, might not be the case in contentEdiable mode + if (ed.dom.getParent(r.startContainer, function(e) {return e === b;})) { + so = r.startOffset; + eo = r.endOffset; + si = t.find(b, 0, r.startContainer); + ei = t.find(b, 0, r.endContainer); + } + } + } else { + // Force control range into text range + if (r.item) { + tr = d.body.createTextRange(); + tr.moveToElementText(r.item(0)); + r = tr; + } + + tr = d.body.createTextRange(); + tr.moveToElementText(b); + tr.collapse(1); + bp = tr.move('character', c) * -1; + + tr = r.duplicate(); + tr.collapse(1); + sp = tr.move('character', c) * -1; + + tr = r.duplicate(); + tr.collapse(0); + le = (tr.move('character', c) * -1) - sp; + + si = sp - bp; + ei = le; + } + } + + // Uses replaceChild instead of cloneNode since it removes selected attribute from option elements on IE + // See: http://support.microsoft.com/kb/829907 + bl = ed.dom.create(ed.settings.forced_root_block); + nx.parentNode.replaceChild(bl, nx); + bl.appendChild(nx); + } + } else { + if (bl.hasChildNodes()) + bl.insertBefore(nx, bl.firstChild); + else + bl.appendChild(nx); + } + } else + bl = null; // Time to create new block + } + + // Restore selection + if (si != -2) { + if (!isIE) { + bl = b.getElementsByTagName(ed.settings.element)[0]; + r = d.createRange(); + + // Select last location or generated block + if (si != -1) + r.setStart(t.find(b, 1, si), so); + else + r.setStart(bl, 0); + + // Select last location or generated block + if (ei != -1) + r.setEnd(t.find(b, 1, ei), eo); + else + r.setEnd(bl, 0); + + if (s) { + s.removeAllRanges(); + s.addRange(r); + } + } else { + try { + r = s.createRange(); + r.moveToElementText(b); + r.collapse(1); + r.moveStart('character', si); + r.moveEnd('character', ei); + r.select(); + } catch (ex) { + // Ignore + } + } + } else if (!isIE && (n = ed.dom.get('__mce'))) { + // Restore the id of the selected element + if (eid) + n.setAttribute('id', eid); + else + n.removeAttribute('id'); + + // Move caret before selected element + r = d.createRange(); + r.setStartBefore(n); + r.setEndBefore(n); + se.setRng(r); + } + }, + + getParentBlock : function(n) { + var d = this.dom; + + return d.getParent(n, d.isBlock); + }, + + insertPara : function(e) { + var t = this, ed = t.editor, dom = ed.dom, d = ed.getDoc(), se = ed.settings, s = ed.selection.getSel(), r = s.getRangeAt(0), b = d.body; + var rb, ra, dir, sn, so, en, eo, sb, eb, bn, bef, aft, sc, ec, n, vp = dom.getViewPort(ed.getWin()), y, ch, car; + + // If root blocks are forced then use Operas default behavior since it's really good +// Removed due to bug: #1853816 +// if (se.forced_root_block && isOpera) +// return TRUE; + + // Setup before range + rb = d.createRange(); + + // If is before the first block element and in body, then move it into first block element + rb.setStart(s.anchorNode, s.anchorOffset); + rb.collapse(TRUE); + + // Setup after range + ra = d.createRange(); + + // If is before the first block element and in body, then move it into first block element + ra.setStart(s.focusNode, s.focusOffset); + ra.collapse(TRUE); + + // Setup start/end points + dir = rb.compareBoundaryPoints(rb.START_TO_END, ra) < 0; + sn = dir ? s.anchorNode : s.focusNode; + so = dir ? s.anchorOffset : s.focusOffset; + en = dir ? s.focusNode : s.anchorNode; + eo = dir ? s.focusOffset : s.anchorOffset; + + // If selection is in empty table cell + if (sn === en && /^(TD|TH)$/.test(sn.nodeName)) { + if (sn.firstChild.nodeName == 'BR') + dom.remove(sn.firstChild); // Remove BR + + // Create two new block elements + if (sn.childNodes.length == 0) { + ed.dom.add(sn, se.element, null, '
    '); + aft = ed.dom.add(sn, se.element, null, '
    '); + } else { + n = sn.innerHTML; + sn.innerHTML = ''; + ed.dom.add(sn, se.element, null, n); + aft = ed.dom.add(sn, se.element, null, '
    '); + } + + // Move caret into the last one + r = d.createRange(); + r.selectNodeContents(aft); + r.collapse(1); + ed.selection.setRng(r); + + return FALSE; + } + + // If the caret is in an invalid location in FF we need to move it into the first block + if (sn == b && en == b && b.firstChild && ed.dom.isBlock(b.firstChild)) { + sn = en = sn.firstChild; + so = eo = 0; + rb = d.createRange(); + rb.setStart(sn, 0); + ra = d.createRange(); + ra.setStart(en, 0); + } + + // Never use body as start or end node + sn = sn.nodeName == "HTML" ? d.body : sn; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes + sn = sn.nodeName == "BODY" ? sn.firstChild : sn; + en = en.nodeName == "HTML" ? d.body : en; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes + en = en.nodeName == "BODY" ? en.firstChild : en; + + // Get start and end blocks + sb = t.getParentBlock(sn); + eb = t.getParentBlock(en); + bn = sb ? sb.nodeName : se.element; // Get block name to create + + // Return inside list use default browser behavior + if (n = t.dom.getParent(sb, 'li,pre')) { + if (n.nodeName == 'LI') + return splitList(ed.selection, t.dom, n); + + return TRUE; + } + + // If caption or absolute layers then always generate new blocks within + if (sb && (sb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { + bn = se.element; + sb = null; + } + + // If caption or absolute layers then always generate new blocks within + if (eb && (eb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { + bn = se.element; + eb = null; + } + + // Use P instead + if (/(TD|TABLE|TH|CAPTION)/.test(bn) || (sb && bn == "DIV" && /left|right/gi.test(dom.getStyle(sb, 'float', 1)))) { + bn = se.element; + sb = eb = null; + } + + // Setup new before and after blocks + bef = (sb && sb.nodeName == bn) ? sb.cloneNode(0) : ed.dom.create(bn); + aft = (eb && eb.nodeName == bn) ? eb.cloneNode(0) : ed.dom.create(bn); + + // Remove id from after clone + aft.removeAttribute('id'); + + // Is header and cursor is at the end, then force paragraph under + if (/^(H[1-6])$/.test(bn) && isAtEnd(r, sb)) + aft = ed.dom.create(se.element); + + // Find start chop node + n = sc = sn; + do { + if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName)) + break; + + sc = n; + } while ((n = n.previousSibling ? n.previousSibling : n.parentNode)); + + // Find end chop node + n = ec = en; + do { + if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName)) + break; + + ec = n; + } while ((n = n.nextSibling ? n.nextSibling : n.parentNode)); + + // Place first chop part into before block element + if (sc.nodeName == bn) + rb.setStart(sc, 0); + else + rb.setStartBefore(sc); + + rb.setEnd(sn, so); + bef.appendChild(rb.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari + + // Place secnd chop part within new block element + try { + ra.setEndAfter(ec); + } catch(ex) { + //console.debug(s.focusNode, s.focusOffset); + } + + ra.setStart(en, eo); + aft.appendChild(ra.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari + + // Create range around everything + r = d.createRange(); + if (!sc.previousSibling && sc.parentNode.nodeName == bn) { + r.setStartBefore(sc.parentNode); + } else { + if (rb.startContainer.nodeName == bn && rb.startOffset == 0) + r.setStartBefore(rb.startContainer); + else + r.setStart(rb.startContainer, rb.startOffset); + } + + if (!ec.nextSibling && ec.parentNode.nodeName == bn) + r.setEndAfter(ec.parentNode); + else + r.setEnd(ra.endContainer, ra.endOffset); + + // Delete and replace it with new block elements + r.deleteContents(); + + if (isOpera) + ed.getWin().scrollTo(0, vp.y); + + // Never wrap blocks in blocks + if (bef.firstChild && bef.firstChild.nodeName == bn) + bef.innerHTML = bef.firstChild.innerHTML; + + if (aft.firstChild && aft.firstChild.nodeName == bn) + aft.innerHTML = aft.firstChild.innerHTML; + + // Padd empty blocks + if (isEmpty(bef)) + bef.innerHTML = '
    '; + + function appendStyles(e, en) { + var nl = [], nn, n, i; + + e.innerHTML = ''; + + // Make clones of style elements + if (se.keep_styles) { + n = en; + do { + // We only want style specific elements + if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(n.nodeName)) { + nn = n.cloneNode(FALSE); + dom.setAttrib(nn, 'id', ''); // Remove ID since it needs to be unique + nl.push(nn); + } + } while (n = n.parentNode); + } + + // Append style elements to aft + if (nl.length > 0) { + for (i = nl.length - 1, nn = e; i >= 0; i--) + nn = nn.appendChild(nl[i]); + + // Padd most inner style element + nl[0].innerHTML = isOpera ? ' ' : '
    '; // Extra space for Opera so that the caret can move there + return nl[0]; // Move caret to most inner element + } else + e.innerHTML = isOpera ? ' ' : '
    '; // Extra space for Opera so that the caret can move there + }; + + // Fill empty afterblook with current style + if (isEmpty(aft)) + car = appendStyles(aft, en); + + // Opera needs this one backwards for older versions + if (isOpera && parseFloat(opera.version()) < 9.5) { + r.insertNode(bef); + r.insertNode(aft); + } else { + r.insertNode(aft); + r.insertNode(bef); + } + + // Normalize + aft.normalize(); + bef.normalize(); + + function first(n) { + return d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE).nextNode() || n; + }; + + // Move cursor and scroll into view + r = d.createRange(); + r.selectNodeContents(isGecko ? first(car || aft) : car || aft); + r.collapse(1); + s.removeAllRanges(); + s.addRange(r); + + // scrollIntoView seems to scroll the parent window in most browsers now including FF 3.0b4 so it's time to stop using it and do it our selfs + y = ed.dom.getPos(aft).y; + ch = aft.clientHeight; + + // Is element within viewport + if (y < vp.y || y + ch > vp.y + vp.h) { + ed.getWin().scrollTo(0, y < vp.y ? y : y - vp.h + 25); // Needs to be hardcoded to roughly one line of text if a huge text block is broken into two blocks + //console.debug('SCROLL!', 'vp.y: ' + vp.y, 'y' + y, 'vp.h' + vp.h, 'clientHeight' + aft.clientHeight, 'yyy: ' + (y < vp.y ? y : y - vp.h + aft.clientHeight)); + } + + return FALSE; + }, + + backspaceDelete : function(e, bs) { + var t = this, ed = t.editor, b = ed.getBody(), dom = ed.dom, n, se = ed.selection, r = se.getRng(), sc = r.startContainer, n, w, tn; + + // The caret sometimes gets stuck in Gecko if you delete empty paragraphs + // This workaround removes the element by hand and moves the caret to the previous element + if (sc && ed.dom.isBlock(sc) && !/^(TD|TH)$/.test(sc.nodeName) && bs) { + if (sc.childNodes.length == 0 || (sc.childNodes.length == 1 && sc.firstChild.nodeName == 'BR')) { + // Find previous block element + n = sc; + while ((n = n.previousSibling) && !ed.dom.isBlock(n)) ; + + if (n) { + if (sc != b.firstChild) { + // Find last text node + w = ed.dom.doc.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE); + while (tn = w.nextNode()) + n = tn; + + // Place caret at the end of last text node + r = ed.getDoc().createRange(); + r.setStart(n, n.nodeValue ? n.nodeValue.length : 0); + r.setEnd(n, n.nodeValue ? n.nodeValue.length : 0); + se.setRng(r); + + // Remove the target container + ed.dom.remove(sc); + } + + return Event.cancel(e); + } + } + } + + // Gecko generates BR elements here and there, we don't like those so lets remove them + function handler(e) { + var pr; + + e = e.target; + + // A new BR was created in a block element, remove it + if (e && e.parentNode && e.nodeName == 'BR' && (n = t.getParentBlock(e))) { + pr = e.previousSibling; + + Event.remove(b, 'DOMNodeInserted', handler); + + // Is there whitespace at the end of the node before then we might need the pesky BR + // to place the caret at a correct location see bug: #2013943 + if (pr && pr.nodeType == 3 && /\s+$/.test(pr.nodeValue)) + return; + + // Only remove BR elements that got inserted in the middle of the text + if (e.previousSibling || e.nextSibling) + ed.dom.remove(e); + } + }; + + // Listen for new nodes + Event._add(b, 'DOMNodeInserted', handler); + + // Remove listener + window.setTimeout(function() { + Event._remove(b, 'DOMNodeInserted', handler); + }, 1); + } + }); +})(tinymce); + +(function(tinymce) { + // Shorten names + var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend; + + tinymce.create('tinymce.ControlManager', { + ControlManager : function(ed, s) { + var t = this, i; + + s = s || {}; + t.editor = ed; + t.controls = {}; + t.onAdd = new tinymce.util.Dispatcher(t); + t.onPostRender = new tinymce.util.Dispatcher(t); + t.prefix = s.prefix || ed.id + '_'; + t._cls = {}; + + t.onPostRender.add(function() { + each(t.controls, function(c) { + c.postRender(); + }); + }); + }, + + get : function(id) { + return this.controls[this.prefix + id] || this.controls[id]; + }, + + setActive : function(id, s) { + var c = null; + + if (c = this.get(id)) + c.setActive(s); + + return c; + }, + + setDisabled : function(id, s) { + var c = null; + + if (c = this.get(id)) + c.setDisabled(s); + + return c; + }, + + add : function(c) { + var t = this; + + if (c) { + t.controls[c.id] = c; + t.onAdd.dispatch(c, t); + } + + return c; + }, + + createControl : function(n) { + var c, t = this, ed = t.editor; + + each(ed.plugins, function(p) { + if (p.createControl) { + c = p.createControl(n, t); + + if (c) + return false; + } + }); + + switch (n) { + case "|": + case "separator": + return t.createSeparator(); + } + + if (!c && ed.buttons && (c = ed.buttons[n])) + return t.createButton(n, c); + + return t.add(c); + }, + + createDropMenu : function(id, s, cc) { + var t = this, ed = t.editor, c, bm, v, cls; + + s = extend({ + 'class' : 'mceDropDown', + constrain : ed.settings.constrain_menus + }, s); + + s['class'] = s['class'] + ' ' + ed.getParam('skin') + 'Skin'; + if (v = ed.getParam('skin_variant')) + s['class'] += ' ' + ed.getParam('skin') + 'Skin' + v.substring(0, 1).toUpperCase() + v.substring(1); + + id = t.prefix + id; + cls = cc || t._cls.dropmenu || tinymce.ui.DropMenu; + c = t.controls[id] = new cls(id, s); + c.onAddItem.add(function(c, o) { + var s = o.settings; + + s.title = ed.getLang(s.title, s.title); + + if (!s.onclick) { + s.onclick = function(v) { + if (s.cmd) + ed.execCommand(s.cmd, s.ui || false, s.value); + }; + } + }); + + ed.onRemove.add(function() { + c.destroy(); + }); + + // Fix for bug #1897785, #1898007 + if (tinymce.isIE) { + c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + + bm = ed.selection.getBookmark(1); + }); + + c.onHideMenu.add(function() { + if (bm) { + ed.selection.moveToBookmark(bm); + bm = 0; + } + }); + } + + return t.add(c); + }, + + createListBox : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + + if (ed.settings.use_native_selects) + c = new tinymce.ui.NativeListBox(id, s); + else { + cls = cc || t._cls.listbox || tinymce.ui.ListBox; + c = new cls(id, s); + } + + t.controls[id] = c; + + // Fix focus problem in Safari + if (tinymce.isWebKit) { + c.onPostRender.add(function(c, n) { + // Store bookmark on mousedown + Event.add(n, 'mousedown', function() { + ed.bookmark = ed.selection.getBookmark(1); + }); + + // Restore on focus, since it might be lost + Event.add(n, 'focus', function() { + ed.selection.moveToBookmark(ed.bookmark); + ed.bookmark = null; + }); + }); + } + + if (c.hideMenu) + ed.onMouseDown.add(c.hideMenu, c); + + return t.add(c); + }, + + createButton : function(id, s, cc) { + var t = this, ed = t.editor, o, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.label = ed.translate(s.label); + s.scope = s.scope || ed; + + if (!s.onclick && !s.menu_button) { + s.onclick = function() { + ed.execCommand(s.cmd, s.ui || false, s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + unavailable_prefix : ed.getLang('unavailable', ''), + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + + if (s.menu_button) { + cls = cc || t._cls.menubutton || tinymce.ui.MenuButton; + c = new cls(id, s); + ed.onMouseDown.add(c.hideMenu, c); + } else { + cls = t._cls.button || tinymce.ui.Button; + c = new cls(id, s); + } + + return t.add(c); + }, + + createMenuButton : function(id, s, cc) { + s = s || {}; + s.menu_button = 1; + + return this.createButton(id, s, cc); + }, + + createSplitButton : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onclick) { + s.onclick = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + cls = cc || t._cls.splitbutton || tinymce.ui.SplitButton; + c = t.add(new cls(id, s)); + ed.onMouseDown.add(c.hideMenu, c); + + return c; + }, + + createColorSplitButton : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls, bm; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onclick) { + s.onclick = function(v) { + if (tinymce.isIE) + bm = ed.selection.getBookmark(1); + + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + 'menu_class' : ed.getParam('skin') + 'Skin', + scope : s.scope, + more_colors_title : ed.getLang('more_colors') + }, s); + + id = t.prefix + id; + cls = cc || t._cls.colorsplitbutton || tinymce.ui.ColorSplitButton; + c = new cls(id, s); + ed.onMouseDown.add(c.hideMenu, c); + + // Remove the menu element when the editor is removed + ed.onRemove.add(function() { + c.destroy(); + }); + + // Fix for bug #1897785, #1898007 + if (tinymce.isIE) { + c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + bm = ed.selection.getBookmark(1); + }); + + c.onHideMenu.add(function() { + if (bm) { + ed.selection.moveToBookmark(bm); + bm = 0; + } + }); + } + + return t.add(c); + }, + + createToolbar : function(id, s, cc) { + var c, t = this, cls; + + id = t.prefix + id; + cls = cc || t._cls.toolbar || tinymce.ui.Toolbar; + c = new cls(id, s); + + if (t.get(id)) + return null; + + return t.add(c); + }, + + createSeparator : function(cc) { + var cls = cc || this._cls.separator || tinymce.ui.Separator; + + return new cls(); + }, + + setControlType : function(n, c) { + return this._cls[n.toLowerCase()] = c; + }, + + destroy : function() { + each(this.controls, function(c) { + c.destroy(); + }); + + this.controls = null; + } + }); +})(tinymce); + +(function(tinymce) { + var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isIE = tinymce.isIE, isOpera = tinymce.isOpera; + + tinymce.create('tinymce.WindowManager', { + WindowManager : function(ed) { + var t = this; + + t.editor = ed; + t.onOpen = new Dispatcher(t); + t.onClose = new Dispatcher(t); + t.params = {}; + t.features = {}; + }, + + open : function(s, p) { + var t = this, f = '', x, y, mo = t.editor.settings.dialog_type == 'modal', w, sw, sh, vp = tinymce.DOM.getViewPort(), u; + + // Default some options + s = s || {}; + p = p || {}; + sw = isOpera ? vp.w : screen.width; // Opera uses windows inside the Opera window + sh = isOpera ? vp.h : screen.height; + s.name = s.name || 'mc_' + new Date().getTime(); + s.width = parseInt(s.width || 320); + s.height = parseInt(s.height || 240); + s.resizable = true; + s.left = s.left || parseInt(sw / 2.0) - (s.width / 2.0); + s.top = s.top || parseInt(sh / 2.0) - (s.height / 2.0); + p.inline = false; + p.mce_width = s.width; + p.mce_height = s.height; + p.mce_auto_focus = s.auto_focus; + + if (mo) { + if (isIE) { + s.center = true; + s.help = false; + s.dialogWidth = s.width + 'px'; + s.dialogHeight = s.height + 'px'; + s.scroll = s.scrollbars || false; + } + } + + // Build features string + each(s, function(v, k) { + if (tinymce.is(v, 'boolean')) + v = v ? 'yes' : 'no'; + + if (!/^(name|url)$/.test(k)) { + if (isIE && mo) + f += (f ? ';' : '') + k + ':' + v; + else + f += (f ? ',' : '') + k + '=' + v; + } + }); + + t.features = s; + t.params = p; + t.onOpen.dispatch(t, s, p); + + u = s.url || s.file; + u = tinymce._addVer(u); + + try { + if (isIE && mo) { + w = 1; + window.showModalDialog(u, window, f); + } else + w = window.open(u, s.name, f); + } catch (ex) { + // Ignore + } + + if (!w) + alert(t.editor.getLang('popup_blocked')); + }, + + close : function(w) { + w.close(); + this.onClose.dispatch(this); + }, + + createInstance : function(cl, a, b, c, d, e) { + var f = tinymce.resolve(cl); + + return new f(a, b, c, d, e); + }, + + confirm : function(t, cb, s, w) { + w = w || window; + + cb.call(s || this, w.confirm(this._decode(this.editor.getLang(t, t)))); + }, + + alert : function(tx, cb, s, w) { + var t = this; + + w = w || window; + w.alert(t._decode(t.editor.getLang(tx, tx))); + + if (cb) + cb.call(s || t); + }, + + resizeBy : function(dw, dh, win) { + win.resizeBy(dw, dh); + }, + + // Internal functions + + _decode : function(s) { + return tinymce.DOM.decode(s).replace(/\\n/g, '\n'); + } + }); +}(tinymce)); +(function(tinymce) { + function CommandManager() { + var execCommands = {}, queryStateCommands = {}, queryValueCommands = {}; + + function add(collection, cmd, func, scope) { + if (typeof(cmd) == 'string') + cmd = [cmd]; + + tinymce.each(cmd, function(cmd) { + collection[cmd.toLowerCase()] = {func : func, scope : scope}; + }); + }; + + tinymce.extend(this, { + add : function(cmd, func, scope) { + add(execCommands, cmd, func, scope); + }, + + addQueryStateHandler : function(cmd, func, scope) { + add(queryStateCommands, cmd, func, scope); + }, + + addQueryValueHandler : function(cmd, func, scope) { + add(queryValueCommands, cmd, func, scope); + }, + + execCommand : function(scope, cmd, ui, value, args) { + if (cmd = execCommands[cmd.toLowerCase()]) { + if (cmd.func.call(scope || cmd.scope, ui, value, args) !== false) + return true; + } + }, + + queryCommandValue : function() { + if (cmd = queryValueCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + }, + + queryCommandState : function() { + if (cmd = queryStateCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + } + }); + }; + + tinymce.GlobalCommands = new CommandManager(); +})(tinymce); +(function(tinymce) { + tinymce.Formatter = function(ed) { + var formats = {}, + each = tinymce.each, + dom = ed.dom, + selection = ed.selection, + TreeWalker = tinymce.dom.TreeWalker, + rangeUtils = new tinymce.dom.RangeUtils(dom), + isValid = ed.schema.isValid, + isBlock = dom.isBlock, + forcedRootBlock = ed.settings.forced_root_block, + nodeIndex = dom.nodeIndex, + INVISIBLE_CHAR = '\uFEFF', + MCE_ATTR_RE = /^(src|href|style)$/, + FALSE = false, + TRUE = true, + undefined, + pendingFormats = {apply : [], remove : []}; + + function isArray(obj) { + return obj instanceof Array; + }; + + function getParents(node, selector) { + return dom.getParents(node, selector, dom.getRoot()); + }; + + function isCaretNode(node) { + return node.nodeType === 1 && (node.face === 'mceinline' || node.style.fontFamily === 'mceinline'); + }; + + // Public functions + + function get(name) { + return name ? formats[name] : formats; + }; + + function register(name, format) { + if (name) { + if (typeof(name) !== 'string') { + each(name, function(format, name) { + register(name, format); + }); + } else { + // Force format into array and add it to internal collection + format = format.length ? format : [format]; + + each(format, function(format) { + // Set deep to false by default on selector formats this to avoid removing + // alignment on images inside paragraphs when alignment is changed on paragraphs + if (format.deep === undefined) + format.deep = !format.selector; + + // Default to true + if (format.split === undefined) + format.split = !format.selector || format.inline; + + // Default to true + if (format.remove === undefined && format.selector && !format.inline) + format.remove = 'none'; + + // Mark format as a mixed format inline + block level + if (format.selector && format.inline) { + format.mixed = true; + format.block_expand = true; + } + + // Split classes if needed + if (typeof(format.classes) === 'string') + format.classes = format.classes.split(/\s+/); + }); + + formats[name] = format; + } + } + }; + + function apply(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, rng, i; + + function moveStart(rng) { + var container = rng.startContainer, + offset = rng.startOffset, + walker, node; + + // Move startContainer/startOffset in to a suitable node + if (container.nodeType == 1 || container.nodeValue === "") { + container = container.nodeType == 1 ? container.childNodes[offset] : container; + walker = new TreeWalker(container, container.parentNode); + for (node = walker.current(); node; node = walker.next()) { + if (node.nodeType == 3 && !isBlock(node.parentNode) && !isWhiteSpaceNode(node)) { + rng.setStart(node, 0); + break; + } + } + } + + return rng; + }; + + function setElementFormat(elm, fmt) { + fmt = fmt || format; + + if (elm) { + each(fmt.styles, function(value, name) { + dom.setStyle(elm, name, replaceVars(value, vars)); + }); + + each(fmt.attributes, function(value, name) { + dom.setAttrib(elm, name, replaceVars(value, vars)); + }); + + each(fmt.classes, function(value) { + value = replaceVars(value, vars); + + if (!dom.hasClass(elm, value)) + dom.addClass(elm, value); + }); + } + }; + + function applyRngStyle(rng) { + var newWrappers = [], wrapName, wrapElm; + + // Setup wrapper element + wrapName = format.inline || format.block; + wrapElm = dom.create(wrapName); + setElementFormat(wrapElm); + + rangeUtils.walk(rng, function(nodes) { + var currentWrapElm; + + function process(node) { + var nodeName = node.nodeName.toLowerCase(), parentName = node.parentNode.nodeName.toLowerCase(), found; + + // Stop wrapping on br elements + if (isEq(nodeName, 'br')) { + currentWrapElm = 0; + + // Remove any br elements when we wrap things + if (format.block) + dom.remove(node); + + return; + } + + // If node is wrapper type + if (format.wrapper && matchNode(node, name, vars)) { + currentWrapElm = 0; + return; + } + + // Can we rename the block + if (format.block && !format.wrapper && isTextBlock(nodeName)) { + node = dom.rename(node, wrapName); + setElementFormat(node); + newWrappers.push(node); + currentWrapElm = 0; + return; + } + + // Handle selector patterns + if (format.selector) { + // Look for matching formats + each(formatList, function(format) { + if (dom.is(node, format.selector) && !isCaretNode(node)) { + setElementFormat(node, format); + found = true; + } + }); + + // Continue processing if a selector match wasn't found and a inline element is defined + if (!format.inline || found) { + currentWrapElm = 0; + return; + } + } + + // Is it valid to wrap this item + if (isValid(wrapName, nodeName) && isValid(parentName, wrapName)) { + // Start wrapping + if (!currentWrapElm) { + // Wrap the node + currentWrapElm = wrapElm.cloneNode(FALSE); + node.parentNode.insertBefore(currentWrapElm, node); + newWrappers.push(currentWrapElm); + } + + currentWrapElm.appendChild(node); + } else { + // Start a new wrapper for possible children + currentWrapElm = 0; + + each(tinymce.grep(node.childNodes), process); + + // End the last wrapper + currentWrapElm = 0; + } + }; + + // Process siblings from range + each(nodes, process); + }); + + // Cleanup + each(newWrappers, function(node) { + var childCount; + + function getChildCount(node) { + var count = 0; + + each(node.childNodes, function(node) { + if (!isWhiteSpaceNode(node) && !isBookmarkNode(node)) + count++; + }); + + return count; + }; + + function mergeStyles(node) { + var child, clone; + + each(node.childNodes, function(node) { + if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) { + child = node; + return FALSE; // break loop + } + }); + + // If child was found and of the same type as the current node + if (child && matchName(child, format)) { + clone = child.cloneNode(FALSE); + setElementFormat(clone); + + dom.replace(clone, node, TRUE); + dom.remove(child, 1); + } + + return clone || node; + }; + + childCount = getChildCount(node); + + // Remove empty nodes + if (childCount === 0) { + dom.remove(node, 1); + return; + } + + if (format.inline || format.wrapper) { + // Merges the current node with it's children of similar type to reduce the number of elements + if (!format.exact && childCount === 1) + node = mergeStyles(node); + + // Remove/merge children + each(formatList, function(format) { + // Merge all children of similar type will move styles from child to parent + // this: text + // will become: text + each(dom.select(format.inline, node), function(child) { + removeFormat(format, vars, child, format.exact ? child : null); + }); + }); + + // Remove child if direct parent is of same type + if (matchNode(node.parentNode, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + + // Look for parent with similar style format + if (format.merge_with_parents) { + dom.getParent(node.parentNode, function(parent) { + if (matchNode(parent, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + }); + } + + // Merge next and previous siblings if they are similar texttext becomes texttext + if (node) { + node = mergeSiblings(getNonWhiteSpaceSibling(node), node); + node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE)); + } + } + }); + }; + + if (format) { + if (node) { + rng = dom.createRng(); + + rng.setStartBefore(node); + rng.setEndAfter(node); + + applyRngStyle(rng); + } else { + if (!selection.isCollapsed() || !format.inline) { + // Apply formatting to selection + bookmark = selection.getBookmark(); + applyRngStyle(expandRng(selection.getRng(TRUE), formatList)); + + selection.moveToBookmark(bookmark); + selection.setRng(moveStart(selection.getRng(TRUE))); + ed.nodeChanged(); + } else + performCaretAction('apply', name, vars); + } + } + }; + + function remove(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, i, rng; + + // Merges the styles for each node + function process(node) { + var children, i, l; + + // Grab the children first since the nodelist might be changed + children = tinymce.grep(node.childNodes); + + // Process current node + for (i = 0, l = formatList.length; i < l; i++) { + if (removeFormat(formatList[i], vars, node, node)) + break; + } + + // Process the children + if (format.deep) { + for (i = 0, l = children.length; i < l; i++) + process(children[i]); + } + }; + + function findFormatRoot(container) { + var formatRoot; + + // Find format root + each(getParents(container.parentNode).reverse(), function(parent) { + var format; + + // Find format root element + if (!formatRoot && parent.id != '_start' && parent.id != '_end') { + // Is the node matching the format we are looking for + format = matchNode(parent, name, vars); + if (format && format.split !== false) + formatRoot = parent; + } + }); + + return formatRoot; + }; + + function wrapAndSplit(format_root, container, target, split) { + var parent, clone, lastClone, firstClone, i, formatRootParent; + + // Format root found then clone formats and split it + if (format_root) { + formatRootParent = format_root.parentNode; + + for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) { + clone = parent.cloneNode(FALSE); + + for (i = 0; i < formatList.length; i++) { + if (removeFormat(formatList[i], vars, clone, clone)) { + clone = 0; + break; + } + } + + // Build wrapper node + if (clone) { + if (lastClone) + clone.appendChild(lastClone); + + if (!firstClone) + firstClone = clone; + + lastClone = clone; + } + } + + // Never split block elements if the format is mixed + if (split && (!format.mixed || !isBlock(format_root))) + container = dom.split(format_root, container); + + // Wrap container in cloned formats + if (lastClone) { + target.parentNode.insertBefore(lastClone, target); + firstClone.appendChild(target); + } + } + + return container; + }; + + function splitToFormatRoot(container) { + return wrapAndSplit(findFormatRoot(container), container, container, true); + }; + + function unwrap(start) { + var node = dom.get(start ? '_start' : '_end'), + out = node[start ? 'firstChild' : 'lastChild']; + + // If the end is placed within the start the result will be removed + // So this checks if the out node is a bookmark node if it is it + // checks for another more suitable node + if (isBookmarkNode(out)) + out = out[start ? 'firstChild' : 'lastChild']; + + dom.remove(node, true); + + return out; + }; + + function removeRngStyle(rng) { + var startContainer, endContainer; + + rng = expandRng(rng, formatList, TRUE); + + if (format.split) { + startContainer = getContainer(rng, TRUE); + endContainer = getContainer(rng); + + if (startContainer != endContainer) { + // Wrap start/end nodes in span element since these might be cloned/moved + startContainer = wrap(startContainer, 'span', {id : '_start', _mce_type : 'bookmark'}); + endContainer = wrap(endContainer, 'span', {id : '_end', _mce_type : 'bookmark'}); + + // Split start/end + splitToFormatRoot(startContainer); + splitToFormatRoot(endContainer); + + // Unwrap start/end to get real elements again + startContainer = unwrap(TRUE); + endContainer = unwrap(); + } else + startContainer = endContainer = splitToFormatRoot(startContainer); + + // Update range positions since they might have changed after the split operations + rng.startContainer = startContainer.parentNode; + rng.startOffset = nodeIndex(startContainer); + rng.endContainer = endContainer.parentNode; + rng.endOffset = nodeIndex(endContainer) + 1; + } + + // Remove items between start/end + rangeUtils.walk(rng, function(nodes) { + each(nodes, function(node) { + process(node); + }); + }); + }; + + // Handle node + if (node) { + rng = dom.createRng(); + rng.setStartBefore(node); + rng.setEndAfter(node); + removeRngStyle(rng); + return; + } + + if (!selection.isCollapsed() || !format.inline) { + bookmark = selection.getBookmark(); + removeRngStyle(selection.getRng(TRUE)); + selection.moveToBookmark(bookmark); + ed.nodeChanged(); + } else + performCaretAction('remove', name, vars); + }; + + function toggle(name, vars, node) { + if (match(name, vars, node)) + remove(name, vars, node); + else + apply(name, vars, node); + }; + + function matchNode(node, name, vars, similar) { + var formatList = get(name), format, i, classes; + + function matchItems(node, format, item_name) { + var key, value, items = format[item_name], i; + + // Check all items + if (items) { + // Non indexed object + if (items.length === undefined) { + for (key in items) { + if (items.hasOwnProperty(key)) { + if (item_name === 'attributes') + value = dom.getAttrib(node, key); + else + value = getStyle(node, key); + + if (similar && !value && !format.exact) + return; + + if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars))) + return; + } + } + } else { + // Only one match needed for indexed arrays + for (i = 0; i < items.length; i++) { + if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i])) + return format; + } + } + } + + return format; + }; + + if (formatList && node) { + // Check each format in list + for (i = 0; i < formatList.length; i++) { + format = formatList[i]; + + // Name name, attributes, styles and classes + if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) { + // Match classes + if (classes = format.classes) { + for (i = 0; i < classes.length; i++) { + if (!dom.hasClass(node, classes[i])) + return; + } + } + + return format; + } + } + } + }; + + function match(name, vars, node) { + var startNode, i; + + function matchParents(node) { + // Find first node with similar format settings + node = dom.getParent(node, function(node) { + return !!matchNode(node, name, vars, true); + }); + + // Do an exact check on the similar format element + return matchNode(node, name, vars); + }; + + // Check specified node + if (node) + return matchParents(node); + + // Check pending formats + if (selection.isCollapsed()) { + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + if (pendingFormats.apply[i].name == name) + return true; + } + + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + if (pendingFormats.remove[i].name == name) + return false; + } + + return matchParents(selection.getNode()); + } + + // Check selected node + node = selection.getNode(); + if (matchParents(node)) + return TRUE; + + // Check start node if it's different + startNode = selection.getStart(); + if (startNode != node) { + if (matchParents(startNode)) + return TRUE; + } + + return FALSE; + }; + + function matchAll(names, vars) { + var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name; + + // If the selection is collapsed then check pending formats + if (selection.isCollapsed()) { + for (ni = 0; ni < names.length; ni++) { + // If the name is to be removed, then stop it from being added + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + name = names[ni]; + + if (pendingFormats.remove[i].name == name) { + checkedMap[name] = true; + break; + } + } + } + + // If the format is to be applied + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + for (ni = 0; ni < names.length; ni++) { + name = names[ni]; + + if (!checkedMap[name] && pendingFormats.apply[i].name == name) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + } + } + + // Check start of selection for formats + startElement = selection.getStart(); + dom.getParent(startElement, function(node) { + var i, name; + + for (i = 0; i < names.length; i++) { + name = names[i]; + + if (!checkedMap[name] && matchNode(node, name, vars)) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + }); + + return matchedFormatNames; + }; + + function canApply(name) { + var formatList = get(name), startNode, parents, i, x, selector; + + if (formatList) { + startNode = selection.getStart(); + parents = getParents(startNode); + + for (x = formatList.length - 1; x >= 0; x--) { + selector = formatList[x].selector; + + // Format is not selector based, then always return TRUE + if (!selector) + return TRUE; + + for (i = parents.length - 1; i >= 0; i--) { + if (dom.is(parents[i], selector)) + return TRUE; + } + } + } + + return FALSE; + }; + + // Expose to public + tinymce.extend(this, { + get : get, + register : register, + apply : apply, + remove : remove, + toggle : toggle, + match : match, + matchAll : matchAll, + matchNode : matchNode, + canApply : canApply + }); + + // Private functions + + function matchName(node, format) { + // Check for inline match + if (isEq(node, format.inline)) + return TRUE; + + // Check for block match + if (isEq(node, format.block)) + return TRUE; + + // Check for selector match + if (format.selector) + return dom.is(node, format.selector); + }; + + function isEq(str1, str2) { + str1 = str1 || ''; + str2 = str2 || ''; + + str1 = '' + (str1.nodeName || str1); + str2 = '' + (str2.nodeName || str2); + + return str1.toLowerCase() == str2.toLowerCase(); + }; + + function getStyle(node, name) { + var styleVal = dom.getStyle(node, name); + + // Force the format to hex + if (name == 'color' || name == 'backgroundColor') + styleVal = dom.toHex(styleVal); + + // Opera will return bold as 700 + if (name == 'fontWeight' && styleVal == 700) + styleVal = 'bold'; + + return '' + styleVal; + }; + + function replaceVars(value, vars) { + if (typeof(value) != "string") + value = value(vars); + else if (vars) { + value = value.replace(/%(\w+)/g, function(str, name) { + return vars[name] || str; + }); + } + + return value; + }; + + function isWhiteSpaceNode(node) { + return node && node.nodeType === 3 && /^\s*$/.test(node.nodeValue); + }; + + function wrap(node, name, attrs) { + var wrapper = dom.create(name, attrs); + + node.parentNode.insertBefore(wrapper, node); + wrapper.appendChild(node); + + return wrapper; + }; + + function expandRng(rng, format, remove) { + var startContainer = rng.startContainer, + startOffset = rng.startOffset, + endContainer = rng.endContainer, + endOffset = rng.endOffset, sibling, lastIdx; + + // This function walks up the tree if there is no siblings before/after the node + function findParentContainer(container, child_name, sibling_name, root) { + var parent, child; + + root = root || dom.getRoot(); + + for (;;) { + // Check if we can move up are we at root level or body level + parent = container.parentNode; + + // Stop expanding on block elements or root depending on format + if (parent == root || (!format[0].block_expand && isBlock(parent))) + return container; + + for (sibling = parent[child_name]; sibling && sibling != container; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return container; + + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return container; + } + + container = container.parentNode; + } + + return container; + }; + + // If index based start position then resolve it + if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) { + lastIdx = startContainer.childNodes.length - 1; + startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset]; + + if (startContainer.nodeType == 3) + startOffset = 0; + } + + // If index based end position then resolve it + if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) { + lastIdx = endContainer.childNodes.length - 1; + endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1]; + + if (endContainer.nodeType == 3) + endOffset = endContainer.nodeValue.length; + } + + // Exclude bookmark nodes if possible + if (isBookmarkNode(startContainer.parentNode)) + startContainer = startContainer.parentNode; + + if (isBookmarkNode(startContainer)) + startContainer = startContainer.nextSibling || startContainer; + + if (isBookmarkNode(endContainer.parentNode)) + endContainer = endContainer.parentNode; + + if (isBookmarkNode(endContainer)) + endContainer = endContainer.previousSibling || endContainer; + + // Move start/end point up the tree if the leaves are sharp and if we are in different containers + // Example * becomes !: !

    *texttext*

    ! + // This will reduce the number of wrapper elements that needs to be created + // Move start point up the tree + if (format[0].inline || format[0].block_expand) { + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + + // Expand start/end container to matching selector + if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) { + function findSelectorEndPoint(container, sibling_name) { + var parents, i, y; + + if (container.nodeType == 3 && container.nodeValue.length == 0 && container[sibling_name]) + container = container[sibling_name]; + + parents = getParents(container); + for (i = 0; i < parents.length; i++) { + for (y = 0; y < format.length; y++) { + if (dom.is(parents[i], format[y].selector)) + return parents[i]; + } + } + + return container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findSelectorEndPoint(startContainer, 'previousSibling'); + endContainer = findSelectorEndPoint(endContainer, 'nextSibling'); + } + + // Expand start/end container to matching block element or text node + if (format[0].block || format[0].selector) { + function findBlockEndPoint(container, sibling_name, sibling_name2) { + var node; + + // Expand to block of similar type + if (!format[0].wrapper) + node = dom.getParent(container, format[0].block); + + // Expand to first wrappable block element or any block element + if (!node) + node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isBlock); + + // Exclude inner lists from wrapping + if (node && format[0].wrapper) + node = getParents(node, 'ul,ol').reverse()[0] || node; + + // Didn't find a block element look for first/last wrappable element + if (!node) { + node = container; + + while (node[sibling_name] && !isBlock(node[sibling_name])) { + node = node[sibling_name]; + + // Break on BR but include it will be removed later on + // we can't remove it now since we need to check if it can be wrapped + if (isEq(node, 'br')) + break; + } + } + + return node || container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findBlockEndPoint(startContainer, 'previousSibling'); + endContainer = findBlockEndPoint(endContainer, 'nextSibling'); + + // Non block element then try to expand up the leaf + if (format[0].block) { + if (!isBlock(startContainer)) + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + + if (!isBlock(endContainer)) + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + } + + // Setup index for startContainer + if (startContainer.nodeType == 1) { + startOffset = nodeIndex(startContainer); + startContainer = startContainer.parentNode; + } + + // Setup index for endContainer + if (endContainer.nodeType == 1) { + endOffset = nodeIndex(endContainer) + 1; + endContainer = endContainer.parentNode; + } + + // Return new range like object + return { + startContainer : startContainer, + startOffset : startOffset, + endContainer : endContainer, + endOffset : endOffset + }; + } + + function removeFormat(format, vars, node, compare_node) { + var i, attrs, stylesModified; + + // Check if node matches format + if (!matchName(node, format)) + return FALSE; + + // Should we compare with format attribs and styles + if (format.remove != 'all') { + // Remove styles + each(format.styles, function(value, name) { + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(getStyle(compare_node, name), value)) + dom.setStyle(node, name, ''); + + stylesModified = 1; + }); + + // Remove style attribute if it's empty + if (stylesModified && dom.getAttrib(node, 'style') == '') { + node.removeAttribute('style'); + node.removeAttribute('_mce_style'); + } + + // Remove attributes + each(format.attributes, function(value, name) { + var valueOut; + + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) { + // Keep internal classes + if (name == 'class') { + value = dom.getAttrib(node, name); + if (value) { + // Build new class value where everything is removed except the internal prefixed classes + valueOut = ''; + each(value.split(/\s+/), function(cls) { + if (/mce\w+/.test(cls)) + valueOut += (valueOut ? ' ' : '') + cls; + }); + + // We got some internal classes left + if (valueOut) { + dom.setAttrib(node, name, valueOut); + return; + } + } + } + + // IE6 has a bug where the attribute doesn't get removed correctly + if (name == "class") + node.removeAttribute('className'); + + // Remove mce prefixed attributes + if (MCE_ATTR_RE.test(name)) + node.removeAttribute('_mce_' + name); + + node.removeAttribute(name); + } + }); + + // Remove classes + each(format.classes, function(value) { + value = replaceVars(value, vars); + + if (!compare_node || dom.hasClass(compare_node, value)) + dom.removeClass(node, value); + }); + + // Check for non internal attributes + attrs = dom.getAttribs(node); + for (i = 0; i < attrs.length; i++) { + if (attrs[i].nodeName.indexOf('_') !== 0) + return FALSE; + } + } + + // Remove the inline child if it's empty for example or + if (format.remove != 'none') { + removeNode(node, format); + return TRUE; + } + }; + + function removeNode(node, format) { + var parentNode = node.parentNode, rootBlockElm; + + if (format.block) { + if (!forcedRootBlock) { + function find(node, next, inc) { + node = getNonWhiteSpaceSibling(node, next, inc); + + return !node || (node.nodeName == 'BR' || isBlock(node)); + }; + + // Append BR elements if needed before we remove the block + if (isBlock(node) && !isBlock(parentNode)) { + if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1)) + node.insertBefore(dom.create('br'), node.firstChild); + + if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1)) + node.appendChild(dom.create('br')); + } + } else { + // Wrap the block in a forcedRootBlock if we are at the root of document + if (parentNode == dom.getRoot()) { + if (!format.list_block || !isEq(node, format.list_block)) { + each(tinymce.grep(node.childNodes), function(node) { + if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) { + if (!rootBlockElm) + rootBlockElm = wrap(node, forcedRootBlock); + else + rootBlockElm.appendChild(node); + } else + rootBlockElm = 0; + }); + } + } + } + } + + // Never remove nodes that isn't the specified inline element if a selector is specified too + if (format.selector && format.inline && !isEq(format.inline, node)) + return; + + dom.remove(node, 1); + }; + + function getNonWhiteSpaceSibling(node, next, inc) { + if (node) { + next = next ? 'nextSibling' : 'previousSibling'; + + for (node = inc ? node : node[next]; node; node = node[next]) { + if (node.nodeType == 1 || !isWhiteSpaceNode(node)) + return node; + } + } + }; + + function isBookmarkNode(node) { + return node && node.nodeType == 1 && node.getAttribute('_mce_type') == 'bookmark'; + }; + + function mergeSiblings(prev, next) { + var marker, sibling, tmpSibling; + + function compareElements(node1, node2) { + // Not the same name + if (node1.nodeName != node2.nodeName) + return FALSE; + + function getAttribs(node) { + var attribs = {}; + + each(dom.getAttribs(node), function(attr) { + var name = attr.nodeName.toLowerCase(); + + // Don't compare internal attributes or style + if (name.indexOf('_') !== 0 && name !== 'style') + attribs[name] = dom.getAttrib(node, name); + }); + + return attribs; + }; + + function compareObjects(obj1, obj2) { + var value, name; + + for (name in obj1) { + // Obj1 has item obj2 doesn't have + if (obj1.hasOwnProperty(name)) { + value = obj2[name]; + + // Obj2 doesn't have obj1 item + if (value === undefined) + return FALSE; + + // Obj2 item has a different value + if (obj1[name] != value) + return FALSE; + + // Delete similar value + delete obj2[name]; + } + } + + // Check if obj 2 has something obj 1 doesn't have + for (name in obj2) { + // Obj2 has item obj1 doesn't have + if (obj2.hasOwnProperty(name)) + return FALSE; + } + + return TRUE; + }; + + // Attribs are not the same + if (!compareObjects(getAttribs(node1), getAttribs(node2))) + return FALSE; + + // Styles are not the same + if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style')))) + return FALSE; + + return TRUE; + }; + + // Check if next/prev exists and that they are elements + if (prev && next) { + function findElementSibling(node, sibling_name) { + for (sibling = node; sibling; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return node; + + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return sibling; + } + + return node; + }; + + // If previous sibling is empty then jump over it + prev = findElementSibling(prev, 'previousSibling'); + next = findElementSibling(next, 'nextSibling'); + + // Compare next and previous nodes + if (compareElements(prev, next)) { + // Append nodes between + for (sibling = prev.nextSibling; sibling && sibling != next;) { + tmpSibling = sibling; + sibling = sibling.nextSibling; + prev.appendChild(tmpSibling); + } + + // Remove next node + dom.remove(next); + + // Move children into prev node + each(tinymce.grep(next.childNodes), function(node) { + prev.appendChild(node); + }); + + return prev; + } + } + + return next; + }; + + function isTextBlock(name) { + return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name); + }; + + function getContainer(rng, start) { + var container, offset, lastIdx; + + container = rng[start ? 'startContainer' : 'endContainer']; + offset = rng[start ? 'startOffset' : 'endOffset']; + + if (container.nodeType == 1) { + lastIdx = container.childNodes.length - 1; + + if (!start && offset) + offset--; + + container = container.childNodes[offset > lastIdx ? lastIdx : offset]; + } + + return container; + }; + + function performCaretAction(type, name, vars) { + var i, currentPendingFormats = pendingFormats[type], + otherPendingFormats = pendingFormats[type == 'apply' ? 'remove' : 'apply']; + + function hasPending() { + return pendingFormats.apply.length || pendingFormats.remove.length; + }; + + function resetPending() { + pendingFormats.apply = []; + pendingFormats.remove = []; + }; + + function perform(caret_node) { + // Apply pending formats + each(pendingFormats.apply.reverse(), function(item) { + apply(item.name, item.vars, caret_node); + }); + + // Remove pending formats + each(pendingFormats.remove.reverse(), function(item) { + remove(item.name, item.vars, caret_node); + }); + + dom.remove(caret_node, 1); + resetPending(); + }; + + // Check if it already exists then ignore it + for (i = currentPendingFormats.length - 1; i >= 0; i--) { + if (currentPendingFormats[i].name == name) + return; + } + + currentPendingFormats.push({name : name, vars : vars}); + + // Check if it's in the other type, then remove it + for (i = otherPendingFormats.length - 1; i >= 0; i--) { + if (otherPendingFormats[i].name == name) + otherPendingFormats.splice(i, 1); + } + + // Pending apply or remove formats + if (hasPending()) { + ed.getDoc().execCommand('FontName', false, 'mceinline'); + pendingFormats.lastRng = selection.getRng(); + + // IE will convert the current word + each(dom.select('font,span'), function(node) { + var bookmark; + + if (isCaretNode(node)) { + bookmark = selection.getBookmark(); + perform(node); + selection.moveToBookmark(bookmark); + ed.nodeChanged(); + } + }); + + // Only register listeners once if we need to + if (!pendingFormats.isListening && hasPending()) { + pendingFormats.isListening = true; + + each('onKeyDown,onKeyUp,onKeyPress,onMouseUp'.split(','), function(event) { + ed[event].addToTop(function(ed, e) { + // Do we have pending formats and is the selection moved has moved + if (hasPending() && !tinymce.dom.RangeUtils.compareRanges(pendingFormats.lastRng, selection.getRng())) { + each(dom.select('font,span'), function(node) { + var textNode, rng; + + // Look for marker + if (isCaretNode(node)) { + textNode = node.firstChild; + + perform(node); + + rng = dom.createRng(); + rng.setStart(textNode, textNode.nodeValue.length); + rng.setEnd(textNode, textNode.nodeValue.length); + selection.setRng(rng); + ed.nodeChanged(); + } + }); + + // Always unbind and clear pending styles on keyup + if (e.type == 'keyup' || e.type == 'mouseup') + resetPending(); + } + }); + }); + } + } + }; + }; +})(tinymce); + +tinymce.onAddEditor.add(function(tinymce, ed) { + var filters, fontSizes, dom, settings = ed.settings; + + if (settings.inline_styles) { + fontSizes = tinymce.explode(settings.font_size_style_values); + + function replaceWithSpan(node, styles) { + dom.replace(dom.create('span', { + style : styles + }), node, 1); + }; + + filters = { + font : function(dom, node) { + replaceWithSpan(node, { + backgroundColor : node.style.backgroundColor, + color : node.color, + fontFamily : node.face, + fontSize : fontSizes[parseInt(node.size) - 1] + }); + }, + + u : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'underline' + }); + }, + + strike : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'line-through' + }); + } + }; + + function convert(editor, params) { + dom = editor.dom; + + if (settings.convert_fonts_to_spans) { + tinymce.each(dom.select('font,u,strike', params.node), function(node) { + filters[node.nodeName.toLowerCase()](ed.dom, node); + }); + } + }; + + ed.onPreProcess.add(convert); + + ed.onInit.add(function() { + ed.selection.onSetContent.add(convert); + }); + } +}); + diff --git a/sn_computer/html/tiny_mce/utils/editable_selects.js b/sn_computer/html/tiny_mce/utils/editable_selects.js new file mode 100644 index 0000000..6cf1b16 --- /dev/null +++ b/sn_computer/html/tiny_mce/utils/editable_selects.js @@ -0,0 +1,70 @@ +/** + * editable_selects.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +var TinyMCE_EditableSelects = { + editSelectElm : null, + + init : function() { + var nl = document.getElementsByTagName("select"), i, d = document, o; + + for (i=0; i'; + h += ' '; + + return h; +} + +function updateColor(img_id, form_element_id) { + document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value; +} + +function setBrowserDisabled(id, state) { + var img = document.getElementById(id); + var lnk = document.getElementById(id + "_link"); + + if (lnk) { + if (state) { + lnk.setAttribute("realhref", lnk.getAttribute("href")); + lnk.removeAttribute("href"); + tinyMCEPopup.dom.addClass(img, 'disabled'); + } else { + if (lnk.getAttribute("realhref")) + lnk.setAttribute("href", lnk.getAttribute("realhref")); + + tinyMCEPopup.dom.removeClass(img, 'disabled'); + } + } +} + +function getBrowserHTML(id, target_form_element, type, prefix) { + var option = prefix + "_" + type + "_browser_callback", cb, html; + + cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback")); + + if (!cb) + return ""; + + html = ""; + html += ''; + html += ' '; + + return html; +} + +function openBrowser(img_id, target_form_element, type, option) { + var img = document.getElementById(img_id); + + if (img.className != "mceButtonDisabled") + tinyMCEPopup.openBrowser(target_form_element, type, option); +} + +function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { + if (!form_obj || !form_obj.elements[field_name]) + return; + + var sel = form_obj.elements[field_name]; + + var found = false; + for (var i=0; i parseInt(v)) + st = this.mark(f, n); + } + } + + return st; + }, + + hasClass : function(n, c, d) { + return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className); + }, + + getNum : function(n, c) { + c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0]; + c = c.replace(/[^0-9]/g, ''); + + return c; + }, + + addClass : function(n, c, b) { + var o = this.removeClass(n, c); + n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c; + }, + + removeClass : function(n, c) { + c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' '); + return n.className = c != ' ' ? c : ''; + }, + + tags : function(f, s) { + return f.getElementsByTagName(s); + }, + + mark : function(f, n) { + var s = this.settings; + + this.addClass(n, s.invalid_cls); + this.markLabels(f, n, s.invalid_cls); + + return false; + }, + + markLabels : function(f, n, ic) { + var nl, i; + + nl = this.tags(f, "label"); + for (i=0; i + + + + + +Herzlich Willkommen!

    + + + + + + diff --git a/sn_computer/html/trash/sx_about_help_main.html b/sn_computer/html/trash/sx_about_help_main.html new file mode 100644 index 0000000..0e43405 --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_main.html @@ -0,0 +1,106 @@ + + + + + + + + + + +
    + + + + + + + + + Herzlich Willkommen!

    + Das ist eine kostenlose Hilfeseite für + Computer- und Internetprobleme und unterstützt Sie bei + der Suche nach einer Lösung für Ihr Problem.

    + Sie können entweder mit der komfortablen Suche sehen ob Ihr spezielles Problem schon gelöst + wurde oder selber eine Frage stellen., die dann von anderen Benutzern beantwortet werden + kann.

    + Suche
    In der Suche oben rechts + können Sie im gesamten nach allen Inhalten + suchen, das geht besonders schnell da viele Probleme schon gelöst wurden und man nicht erst auf eine + Antwort warten muss. Über die Suche findet man auch die schon ausführlich beschriebenen Anleitungen und Tipps
    Wie geht's? + +

    Die Menüpunkte auf der linken Seite im Einzelnen:

    + + + Forum +
    In den Foren können Sie Fragen + stellen und über die verschiedensten Probleme nach + Gruppen sortiert diskutieren.
    Wie geht's?

    + + Magazin +
    + Das Magazin bietet Ihnen hunderte von interessanten Tipps und Tricks sowie viele ausführliche Artikel rund um das Thema Computer und Internet. Diese Artikel können kommentiert werden und bleiben dadurch immer aktuell. +
    Wie geht's?

    + + + News +
    In den News können Sie aktuelle Nachrichten über Produkte, Sicherheit und viele andere tagesaktuelle Informationen finden.
    + Wie geht's?

    + + + Treibersuche
    Da viele Probleme mit alten oder + nicht passenden Treibern zu tun haben, bietet das + mit der Treibersuche eine einfache + Möglichkeit nach den von den Herstellern im Internet + angebotenen Treibern zu suchen.
    Wie geht's?

    + + Chat
    Im Chat können Sie mit + anderen Benutzern des live chatten und so + sehr schnell eine Lösung finden.
    Wie geht's?

    + + + Members
    Im + gibt es keinen Anmeldungszwang, man kann auch + ohne Anmeldung Fragen stellen und antworten. Sich als + Member anzumelden hat aber verschiedene + Vorteile.
    Automatisches Einfügen des Benutzernamen in + die Formulare
    Eigene Seite auf der man + seine persönlichen Daten (Rechnerkonfiguration, Hobbys...) + und ein Bild angeben kann.
    Es ist absolut kostenlos sich + als Member anzumelden und man kann sich jederzeit wieder + löschen lassen.
    Wie geht?s?

    + + An- und Verkauf +
    Hier können Sie kostenlos Kleinanzeigen aufgeben.
    Wie geht's?

    + + + + +
    + + + + + + + + + + + + + + + + +
    + + + + + + +
    + + + \ No newline at end of file diff --git a/sn_computer/html/trash/sx_about_help_main_chat.html b/sn_computer/html/trash/sx_about_help_main_chat.html new file mode 100644 index 0000000..74f80f6 --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_main_chat.html @@ -0,0 +1,79 @@ + + + + + + + +
    + + + + + + + +Wie funktioniert der Chat?

    + Chat k�nnen sie live mit anderen Besuchern �ber Computerprobleme reden. Klicken Sie dazu im Linken Men� auf den Link "Chat".

    + Es �ffnet sich nun das Chatfenster:

    + Hilfe f�r G�ste (nicht angemeldete Bentutzer).
    + Hilfe f�r Member.

    + Hilfe f�r G�ste (nicht angemeldete Bentutzer).

    + Chat

    + Der Chat besteht aus drei farblich voneinander getrennten Teilen.

    + Im dunkelblauen Teil werden die von den verschiedenen Besuchern abgeschickten Beitr�ge angezeigt.
    + Im rechten oberen blauen Teil werden die gerade im Chat anwesenden Besucher angezeigt. Hier k�nnen Sie auch sehen welche Chatteilnehmet angemeldet sind und welche nicht. + Die angemeldeten sind unterstrichen und durch einen Link dargestellt. �ber diesen Link k�nnen Sie auch gleich auf die Visitenkarte des entsprechenden Mitglieds kommen.

    + In diesen Teil k�nnen Sie auch sehen in welchen Chatraum die Benutzer sich gerade befinden, ein gro�es "L" vor dem Nicknamen zeigt, dass der entsprechende Benutzer sich im Haupraum der Lobby befindet.
    + Eine "1" oder eine "2" vor dem Benutzernamen sind die Zeichen f�r die Chatr�ume "Raum1" und "Raum2".

    + Sie k�nnen die Chatr�ume wechseln indem Sie im unteren grauen Bereich auf die entsprechenden Links [Lobby], [Raum1] und [Raum2] klicken.

    + Im unteren grauen Teil finden Sie alle Chatfunktionen, wie das Eingabefeld, den Button um Beitr�ge abzusenden, Farbauswahl...

    + Chat

    + Als Gast (nicht angemeldetes Member) werden Sie automatisch als Bentuzer "gast" im Chat angezeigt.
    + Um sich einen individuellen Nicknamen zu geben, k�nnen Sie im rechten Feld einen frei w�hlbaren Nicknamen angeben, in diesem Beispiel "freiw�hlbar". Durch einen Klick auf den Button "�ndern" wird dieser gew�hlte Nickname f�r Sie angezeigt.

    + Um eine Nachricht zu schreiben, tippen Sie diese einfach in das linke Feld ein und klicken dann auf "senden".

    + Nach dem Absenden erscheit die Nachricht dann nach etwas Zeit im oberen blauen Fenster f�r alle anderen Chatteilnehmer lesbar.

    + Mir den Smileys (Emoticons) k�nnen Sie ihrem Text die verschiedenen Smileys durch einfaches anklicken des jeweiligen Smileys hinzuf�gen.

    + Chat

    + Mit der unteren Farbleiste k�nnen Sie die Farbe f�r Ihren Nicknamen und Ihren Text ausw�hlen. Klicken Sie einfach die gew�nschte Farbe an und beim n�chsten Absenden eines Textes wird Ihre Farbe verwendet.

    + Chat

    + Indem Sie auf den Link [Pause] klicken, k�nnen Sie den anderen Chatteilnehmern anzeigen, dass Sie im Moment nicht an Ihrem Computer sitzen oder eine Pause machen. Es erscheint dann in der Benutzerauflistung rechts eine kleine Kaffeetasse vor Ihrem Benutzernamen.

    + Wenn Sie den Chat verlassen wollen, klicken Sie einfach auf den Link [Exit]

    +

    + Hilfe f�r Member.

    + Chat

    + Der Chat besteht aus drei farblich voneinander getrennten Teilen.

    + Im dunkelblauen Teil werden die von den verschiedenen Besuchern abgeschickten Beitr�ge angezeigt.
    + Im rechten oberen blauen Teil werden die gerade im Chat anwesenden Besucher angezeigt. Hier k�nnen Sie auch sehen welche Chatteilnehmet angemeldet sind und welche nicht. + Die angemeldeten sind unterstrichen und durch einen Link dargestellt. �ber diesen Link k�nnen Sie auch gleich auf die Visitenkarte des entsprechenden Mitglieds kommen.

    + In diesen Teil k�nnen Sie auch sehen in welchen Chatraum die Benutzer sich gerade befinden, ein gro�es "L" vor dem Nicknamen zeigt, dass der entsprechende Benutzer sich im Haupraum der Lobby befindet.
    + Eine "1" oder eine "2" vor dem Benutzernamen sind die Zeichen f�r die Chatr�ume "Raum1" und "Raum2".

    + Sie k�nnen die Chatr�ume wechseln indem Sie im unteren grauen Bereich auf die entsprechenden Links [Lobby], [Raum1] und [Raum2] klicken.

    + Im unteren grauen Teil finden Sie alle Chatfunktionen, wie das Eingabefeld, den Button um Beitr�ge abzusenden, Farbauswahl...

    + Chat

    + Als Member werden Sie automatisch mit Ihrem Nicknamen angezeigt. +

    + Um eine Nachricht zu schreiben, tippen Sie diese einfach in das linke Feld ein und klicken dann auf "senden".

    + Nach dem Absenden erscheit die Nachricht dann nach etwas Zeit im oberen blauen Fenster f�r alle anderen Chatteilnehmer lesbar.

    + Mir den Smileys (Emoticons) k�nnen Sie ihrem Text die verschiedenen Smileys durch einfaches anklicken des jeweiligen Smileys hinzuf�gen.

    + Chat

    + Mit der unteren Farbleiste k�nnen Sie die Farbe f�r Ihren Nicknamen und Ihren Text ausw�hlen. Klicken Sie einfach die gew�nschte Farbe an und beim n�chsten Absenden eines Textes wird Ihre Farbe verwendet.

    + Chat

    + Indem Sie auf den Link [Pause] klicken, k�nnen Sie den anderen Chatteilnehmern anzeigen, dass Sie im Moment nicht an Ihrem Computer sitzen oder eine Pause machen. Es erscheint dann in der Benutzerauflistung rechts eine kleine Kaffeetasse vor Ihrem Benutzernamen.

    + Wenn Sie den Chat verlassen wollen, klicken Sie einfach auf den Link [Exit]

    + + + + + +
    + + + + + + + + + + diff --git a/sn_computer/html/trash/sx_about_help_main_faq.html b/sn_computer/html/trash/sx_about_help_main_faq.html new file mode 100644 index 0000000..7b874de --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_main_faq.html @@ -0,0 +1,27 @@ + + + + + +
    + + + + + +Was sind FAQs und wie k�nnen sie mir helfen?

    + Die FAQs sind "oft gestellte Fragen", die von uns ausgew�hlt wurden um sie etwas ausf�hrlicher zu beantworten.

    + Es existiert zu jeder Gruppe in den Foren eine entsprechende Gruppe in den FAQs in der man nach Probleml�sungen suchen kann.
    +
    In der FAQ �bersichtsseite werden die interessantesten FAQs aus allen Gruppen angezeigt. Auf der rechten Seite kann man sich spezielle Gruppen ausw�hlen: +

    + FAQ Uebersicht

    + Man kann in den FAQs �ber die Suche nach einer Probleml�sung suchen oder einfach in der �bersichtsseite oder den einzelnen Gruppen st�bern. + +

    Die FAQs sind im Gegensatz zu den Diskussionsforen keine offenen Gruppen, sie werden redaktionell betreut und gepflegt.

    + + + +
    + + + diff --git a/sn_computer/html/trash/sx_about_help_main_groups.html b/sn_computer/html/trash/sx_about_help_main_groups.html new file mode 100644 index 0000000..446a421 --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_main_groups.html @@ -0,0 +1,161 @@ + + + + + +
    + + + + + + Wie funktioniert das Forum

    + -Forum kann man Fragen an andere Benutzer stellen oder auf Fragen anderer Benutzer antworten. Meistens werden die Fragen innerhalb sehr kurzer Zeit beantwortet, es lohnt sich also immer wieder reinzuschauen.
    +
    Kein Anmeldezwang!

    + Sie k�nnen sofort ohne Anmeldung an den Diskussionen teilnehmen
    + Die Vorteile einer kostenlosen Anmeldung und wie man sich anmeldet k�nnen Sie hier einsehen.
    + Auch wenn man hier scheinbar "anonym" Fragen/Antworten einstellen kann sollte man sich die Nutzungsbedingungen durchlesen und beherzigen. +

    Fragen stellen, wie geht's?
    + Fragen/Antworten lesen +

    Schritt 1

    + Suchen Sie sich im rechten Men� eine f�r Ihre Fragestellung passende Gruppe aus den Forengruppen aus.
    + Klicken Sie auf den entsprechenden Link um auf die zu Ihrem Problem passende Gruppen�bersicht zu kommen.
    +

    Schritt 2

    + Ganz unten auf jeder Gruppen�bersicht gibt es ein Formular mit dem man seine Frage stellen kann.

    + Beschreiben Sie hier Ihr Problem m�glichst ausf�hrlich, am besten beschreiben Sie zus�tzlich zu Ihrem Problem auch Ihre Rechnerkonfiguration wie z.B. Betriebssystem, also Windows XP oder Windows 98 ... und seit welcher �nderung das Problem aufgetreten ist.
    + Um so besser die Beschreibung ist um so besser kann Ihnen geholfen werden.

    + Beitrag erstellen

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FeldWas ist hier einzutragen?
    NicknameNicht angemeldete Benutzer tragen jetzt einfach einen beliebigen Nicknamen in das Feld "Nickname" ein.
    + Angemeldete Benutzer bekommen hier automatisch Ihren Nicknamen eingetragen.
    e-mailHier k�nnen Sie Ihre e-mail Adresse eintragen wenn sie eine e-mail erhalten wollen wenn jemand auf Ihre Frage geantwortet hat. Dazu bitte auch ein H�kchen im Feld "Nachricht" machen.
    + F�r angemeldete Benutzer wird die e-mail Adresse automatisch eingetragen (Die e-mail Adresse wird nicht im Forum angezeigt!)
    NachrichtWenn Sie hier ein H�kchen machen, werden Sie per e-mail benachrichtigt wenn jemand auf Ihre Frage geantwortet hat.
    SubjectHier tragen Sie eine kurze �berschrift f�r Ihr Problem ein (z.B. "Mein HP Drucker geht nicht" oder "Windows XP startet nicht").
    Bitte vermeiden Sie nichtssagende �berschriften wie "!!!!!!!HILFE!!!!!!"!
    FormatierungsbuttonsFormatierungsbuttons

    + Mit den Buttons k�nnen Sie Formatierungen in Ihrer Antwort vornehmen. Eine Ausf�hrliche Erkl�rung wie das geht k�nnen Sie weiter unten unter "Formatierungsm�glichkeiten" finden.
    AnfrageBitte erkl�ren Sie hier so ausf�hrlich wie m�glich Ihr Problem, seit wann es auftritt (haben Sie neue Ger�te/Software installiert?) und auch was f�r einen Computer Sie haben, welches Betriebssystem (Windows XP, Windows 2000 ...).
    Ich erkenne die Nutzungsbedingungen an.Ohne die Nutzungsbedingungen des anzuerkennen k�nnen Sie keine Frage oder Antwort einstellen, bitte lesen Sie sich diese genau durch
    VorschauBeim Klick auf den Button "Vorschau" �ffnet sich ein neues Fenster in dem man, vor dem Absenden, seinen Text noch einmal �berpr�fen kann.
    Wenn Sie mit dem Ergebnis zufrieden sind, schliessen Sie das Fenster und klicken im Ursprungsfenster auf "Absenden"
    + Falls Sie noch etwas �ndern m�chten so k�nnen Sie das einfach im Ursprungsfenster tun.
    AbsendenWenn Sie sich sicher sind, dass Sie Ihr Problem ausf�hrlich geschildert haben klicken Sie auf Absenden.
    Ihre Frage wird nun in der entsprechenden Gruppe angezeigt.
    Schauen Sie nun + ab und an vorbei um zu sehen ob eine Antwort eingegangen ist.
    Um die eigene Frage wiederzufinden k�nnen Sie die Suche benutzen oder wenn Sie die e-mail Benachrichtigung angeklickt haben bekommen Sie bei einer Antwort eine Benachrichtigungsmail.


    + Formatierungsm�glichkeiten

    + Wenn Sie zum Beispiel wollen, dass etwas fett erscheint, klicken Sie auf den Button "B" f�r "bold". Es wird dann automatisch "[b] [/b]" in den Text eingef�gt. Alles was Sie nun zwischen "[b]" und "[/b]" schreiben wird "fett" dargestellt.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    fettFette Schrift
    schr�gSchr�ge Schrift
    unterstrichenUnterstrichen
    CodeDiese Formatierung dient dazu Quellcode anzeigen zu k�nnen.

    + +
    + + +
    + + + <li><a href="/news/0/0">update [0.9.97]</a></li> +
    <li><a href="/news/0/1">update [0.9.95]</a></li> +
    <li><a href="/news/0/2">Wieder neue Version</a></li> +
    <li><a href="/news/0/3">update</a></li> +
    <li><a href="/news/0/4">newstest3</a></li>
    +

    + +
    +
    +
    +
    Liste
  • Punkt eins. +
  • Punkt zwei. +
  • Punkt drei.
  • numerische Liste
    1. Punkt eins. +
    2. Punkt zwei. +
    3. Punkt drei
    alphabetische Listegeht nicht
    Zitat
    Zitat
    Linkwww..de
    +

    + Weitere Formatierungsm�glichkeiten finden Sie [hier]
    +

    + Fragen/Antworten lesen

    + Wenn man einen Artikel/Anfrage anklickt kommt man auf die �bersichtseite mit der Anfrage und den Antworten.

    + Hier kann man nun entweder ganz unten selber eine neue Antwort schreiben oder einfach nur den Artikel lesen.

    + Ganz oben steht hinter "Forum:" die Gruppe in der man sich aufh�lt.
    + Rechts davon gibt es einen Link mit dem man ganz einfach "Missbrauch und Fehler" an das Administratoren Team melden kann.
    + In der n�chsten hinterlegten Zeile steht zerst der Autor des Artikels, mit dem Datum und der Uhrzeit der Erstellung, gefolgt von einer Zahl in Klammern.
    + Diese Zahl in Klammern zeigt an wie oft der Artikel schon aufgerufen/angezeigt wurde.

    + Mit den zwei verschiedenen Links [--] und [++] kann man jede Frage und auch jede Antwort bewerten, das Ergebnis der Bewertung wird �ber die, je nach Bewertung, wei�en, roten und gr�nen Balken rechts daneben angezeigt.
    + Gleichzeitig werden Artikel, die schlecht bewertet werden immer "unsichtbarer", d.h. die Schriftfarbe wird dem Hintergrund immer mehr angepasst. +

    + Link + + + + + +
    + + + + diff --git a/sn_computer/html/trash/sx_about_help_main_register.html b/sn_computer/html/trash/sx_about_help_main_register.html new file mode 100644 index 0000000..18e120a --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_main_register.html @@ -0,0 +1,74 @@ + + + + + +
    + + + + + + +Wie funktioniert die Anmeldung und welche Vorteile hat eine Anmeldung?

    + Es gibt keinen Anmeldezwang! Man kann hier fast alle Dienste auch ohne Anmeldung nutzen.
    + Trotzdem gibt es einige Vorteile wenn man sich als Member anmeldet.
    + Die Anmeldung ist kostenlos und es entstehen daraus keine Verpflichtungen.

    + Auf der rechten Seite k�nnen Sie sich anmelden indem Sie auf den Link "Zur Anmeldung" klicken.

    + Anmeldung

    + Sie kommen nun auf die Anmeldeseite:

    + Anmeldung

    + "Nickname" und "e-mail" sind Pflichteingaben, alle anderen Felder k�nnen Sie auch leer lassen.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    FeldWas ist hier einzutragen?
    NicknameHier k�nnen Sie sich einen beliebigen Nicknamen (Spitznamen) ausw�hlen unter dem Sie in Zuktnet bekannt sein wollen.
    e-mailHier m�ssen Sie eine g�litige e-mail Adresse angeben, da Ihnen Ihr Passwort an diese e-mail Adresse geschickt wird (Ihre e-mail Adresse wird nicht im Forum angezeigt oder ver�ffentlicht!)
    VornameTragen Sie hier Ihren Vornamen ein, oder lassen Sie das Feld leer.
    NachnameTragen Sie hier Ihren Nachnamen ein, oder lassen Sie das Feld leer.
    Stra�eTragen Sie hier Ihre Stra�e ein, oder lassen Sie das Feld leer.
    PLZTragen Sie hier Ihre Postleitzahl ein, oder lassen Sie das Feld leer.
    OrtTragen Sie hier Ihren Wohnort ein, oder lassen Sie das Feld leer.


    + Nachdem Sie sich nun durch das Ausf�llen der Anmeldung und dem Klicken auf den Button "Absenden" angemeldet haben, kommen Sie auf die "Member Login" Seite:

    + Anmeldung

    + Hier k�nnen Sie sich mit Ihrem gew�hlten Nicknamen (Spitznamen) und dem per e-mail an Sie versendeten Passwort anmelden.

    + Bei der ersten Anmeldung wird Ihnen ein Cookie (kleine Textdatei) auf Ihrem Computer gespeichert. Durch dieses Cookie werden Sie in Zukunft vom -Server erkannt. + Sie m�ssen sich also nicht jedesmal neu anmelden, dies passiert durch das Cookie automatisch.

    + Wichtig!

    + F�r die Anmelduet m�ssen Cookies aktiviert sein, sollten Sie in Ihrem Browser Cookies abgeschaltet haben so k�nnen Sie kurzzeitig f�r die Apportnet Cookies freischalten. + Dadurch kann das Cookie gesetzt werden. Danach k�nnen Sie Cookies wieder ausschalten.
    + Sie k�nnen auch das zu Ihren vertrauensw�rdigen Seiten hinzuf�gen.

    + Hinweis:

    + Cookies sind kleine Textfiles in denen auf Ihrem Computer Ihre Zugangsdaten verschl�sselt gespeichert werden. Eine Anmelduet ohne Cookies ist nicht m�glich.

    + Cookies l�schen/neu setzen

    + Falls Sie an verschiedenen Computern arbeiten, oder an Computern, die verschiedenen Benutzern zug�nglich sind, so k�nnen Sie durch die Links "MemberCookie neu setzen" oder "MemberCookie l�schen" jederzeit das Cookie neu setzen oder l�schen.

    + Anmeldung

    + +
    + + + diff --git a/sn_computer/html/trash/sx_about_help_main_search.html b/sn_computer/html/trash/sx_about_help_main_search.html new file mode 100644 index 0000000..37792b1 --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_main_search.html @@ -0,0 +1,116 @@ + + + + + +
    + + + + + + +Wie funktioniert die Suche

    + Mit der Suche kann man alle Artikel, Fragen, Antworten, FAQ's ... nach Stichw�rtern durchsuchen. +

    + Die Suche ist somit die wichtigste und schnellste M�glichkeit Probleml�sungen zu finden.

    + Die Standardsuche steht auf jeder Seite rechts oben zu Verf�gung.

    + + + + + + + + + +
    Standardsuche f�r G�steStandardsuche f�r Member
    Suchbox f�r G�steSuchbox f�r Member
    +

    Die Standardsuche f�r Member ist um zwei Buttons erweitert um die Suche nach den eigenen Fragen oder Antworten zu erleichtern. + + +

    Funktonsweise der Standardsuche:
    +
    Einfach die zu suchenden W�rter in das Feld eingeben und dann auf den Button "Go" klicken.
    + Das Ergebnis liefert in der Standardsuche alle Suchergebnisse die alle eingegebenen W�rter enthalten. +

    Funktonsweise der Profisuche:
    + Wenn man auf den Link unter dem Eingabefeld "Profisuche..." klickt kommt man auf die Suchseite mit den erweiterten Suchfunktionen:

    + Profisuche +
    +

    +�ber die beiden Listboxen kann man die Suche nach Gruppen oder Artikeltypen einschr�nken. +

    +�ber die Gruppenlistbox kann man in bestimmten Gruppen suchen, z.B. nur in der Gruppe "Windows XP".
    +�ber die Artikeltyplistbox kann man nach bestimmten Artikeltypen suchen, z.B. nur in den "FAQ's" oder nur in den "Fragen" des Forums. +

    +Messagebody auch durchsuchen

    +Wenn man diese Option anklickt werden auch die ausf�hrlichen Problembeschreibungen durchsucht. Standardm��ig werden nur die �berschriften durchsucht. + +

    + + +Die Profisuche unterstützt folgende Operatoren: + +

    +
    + +
    + +
    Der Suchbegriff muss in der Antwort enthalten sein +

    +
    - +
    Der Suchbegriff darf nicht in der Antwort enthalten sein +

    +
    +
    Ohne + oder - wird der Suchbegriff als optional betrachtet, allerdings werden Antworten, die diesen Begriff enthalten, im Ergebnis höher bewertet. +

    +
    < > +
    Diese beiden Operatoren bestimmen die Relevanz eines Suchbegriffes. Der < Operator +vermindert die Relevanz, der > Operator erhöht sie. +

    +
    ( ) +
    +Durch Klammerung können Unterausdrücke gebildet werden. +
    ~ +
    Die Tilde hilft beim Ausfiltern von "Rausch"-Worten. Die Antwort kann diese Begriffe zwar enthalten, wird aber niedriger +eingestuft. (Und nicht grundsätzlich ausgeschlossen wie beim - Operator). +

    +
    * +
    Der Stern dient als Abkürzungsoperator. Im Gegensatz zu den übrigen Operatoren wird an den Suchbegriff angehängt, nicht vorangestellt. +

    +
    " " +
    In Anführungszeichen gestellte Suchbegriffe werden wörtlich gesucht. +
    +
    +

    +Beispiele: + +

    +
    + +
    Apfel Birne +
    Findet Artikel, die mindestens einen der Suchbegiffe enthalten. +

    +
    +Apfel +Saft +
    Findet Artikel, die beide Suchbegiffe enthalten. +

    +
    +Apfel Strudel +
    Findet Artikel, die Apfel enthalten. Artikel, die zusätzlich Strudel enthalten, werden höher bewertet. +

    +
    +Apfel -Strudel +
    Findet Artikel, die Apfel aber nicht Strudel enthalten. +

    +
    +Apfel +(>Kuchen <Strudel) +
    Findet Artikel, die Apfel enthalten wobei Artikel mit Kuchen höher bewertet werden als Strudel +

    +
    Apfel* +
    Findet Apfel, Apfelbaum, Apfelsaft ... +

    +
    "ein paar Worte" +
    Findet "ein paar Worte zur Nationalmannschaft" aber nicht "ein paar andere Worte". +

    +
    + + + +
    + + + diff --git a/sn_computer/html/trash/sx_about_help_posting.html b/sn_computer/html/trash/sx_about_help_posting.html new file mode 100644 index 0000000..8032de9 --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_posting.html @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + +
    +
    +

    Willkommen beim Hilfeforum!

    +
    + + Um eine neue Frage zu stellen w�hlen Sie bitte rechts im Men� das entsprechende Thema aus indem Sie auf das Thema klicken. +
    Auf der folgenden Seite k�nnen Sie ganz unten eine neue Anfrage stellen. Schauen Sie dann in den nächsten Stunden oder Tagen + wieder in dieser Gruppe vorbei, um zu sehen, ob Ihnen jemand auf die gestellte Frage geantwortet hat. +
    Bitte helfen Sie auch anderen, indem Sie die Fragen anderer versuchen zu beantworten. Nur so bekommt jeder schnell + und unkompliziert Hilfe.
    Beachte: Einige Worte unterliegen der Zensur und werden durch ein "Z" ersetzt. Weiter werden die Forumbeiträge durch ein Moderatorenteam ständig betreut und unsittliche Beiträge werden sofort gelöscht. + Hinweise bei Verstößen gegen die Regeln und Etikette bitte p.email an: service@.de
    Hinweis:Bitte unterlasst solche Artikel wie Suche -Warez -CRACK, -CD Key usw.

    + Ich m�chte darum bitten in der Vorschau auch darauf zu achten das man mit dem Eintrag nicht die Tabellen des Forums zu verformt. + +
    + +
    +
    + + + +
    +
    +

    Hilfe zur Formatierung von Beiträgen

    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    [b]Fette Schrift[/b]Fette Schrift
    [i]Kursive Schrift[/i]Kursive Schrift
    [u]Unterstichene Schrift[/u]Unterstichene Schrift
    28[sub]2 tiefgestellte Schrift[/sub]282 tiefgestellte Schrift
    28[sup]2 hochgestellte Schrift[/sup]282 hochgestellte Schrift

    [*]Einzelne
    [*]Listenpunkte/Auflistung
    [*]wobei [/*]
    [*]nicht
    [*]erzwungen
    [*]notwenig
    [*]ist
  • Einzelne
  • Listenpunkte/Auflistung
  • wobei [/*]
  • nicht
  • erzwungen
  • notwenig
  • ist
  • [list]
    [*]Aufz�hlung
    [*]mit
    [*]Zeichen
    [*]...[/list]
    • Aufz�hlung
    • mit
    • Zeichen
    • ...
    [list=1]
    [*]Aufz�hlung
    [*]mit
    [*]Zahlen
    [*]...[/list]
    1. Aufz�hlung
    2. mit
    3. Zahlen
    4. ...
    [list=i]
    [*]Aufz�hlung
    [*]mit
    [*]R�mischen
    [*]zahlen
    [*](klein)
    [*]...[/list]
    1. Aufz�hlung
    2. mit
    3. R�mischen
    4. zahlen
    5. (klein)
    6. ...
    [list=I]
    [*]Aufz�hlung
    [*]mit
    [*]R�mischen
    [*]zahlen
    [*](groß)
    [*]...[/list]
    1. Aufz�hlung
    2. mit
    3. R�mischen
    4. zahlen
    5. (groß)
    6. ...
    [list=a]
    [*]Aufz�hlung
    [*]mit
    [*]Kleinbuchstaben
    [*]...[/list]
    1. Aufz�hlung
    2. mit
    3. Kleinbuchstaben
    4. ...
    [list=A]
    [*]Aufz�hlung
    [*]mit
    [*]Großbuchstaben
    [*]...[/list]
    1. Aufz�hlung
    2. mit
    3. Großbuchstaben
    4. ...
    [quote]So zitierst du etwas am besten[/quote]
    Zitat :
    So zitierst du etwas am besten
    [code]
    quellcode + am besten + so ! +Breite beachten ![/code]
    quellcode
    + am besten
    + so !
    +Breite beachten !
    [url]http://www..de
    [/url]
    http://www..de
    [url=http://www..de]
    Link-Text soll anderslauten als die URL[/url] +
    Link-Text soll anderslauten als die URL
    +
    Für Fortgeschrittene
    Tipp - nahezu alle Tags lassen sich miteinander verschachteln, wenn du einzelne [/] oder [] tags findest dann solltest du nochmal Prüfen ob du mehr einleitende oder beendende tags dieses Typs hast. Hier folgt nun ein Beispiel wie man listen ineinander Schachteln kann.
    [list=1]
    [*][b]Überschrift[/b][list=a]
    [*]Eintrag 1
    [*]Eintrag 2
    [*]Eintrag 3[/list]
    [*][b]Überschrift[/b][list=a]
    [*]Eintrag 4
    [*]Ein[i]trag 5[/i]
    [*]Eintrag 6[/list][/list]
    1. Überschrift
      1. Eintrag 1
      2. Eintrag 2
      3. Eintrag 3
    2. Überschrift
      1. Eintrag 4
      2. Eintrag 5
      3. Eintrag 6
    +
    + +
    +
    + + + + + + + + + + + diff --git a/sn_computer/html/trash/sx_about_help_search.html b/sn_computer/html/trash/sx_about_help_search.html new file mode 100644 index 0000000..59fecb2 --- /dev/null +++ b/sn_computer/html/trash/sx_about_help_search.html @@ -0,0 +1,76 @@ + + + + + +
    + + + + + + + +

    +Die Suche unterstützt folgende Operatoren: + +

    +
    + +
    + +
    Der Suchbegriff muss in der Antwort enthalten sein +

    +
    - +
    Der Suchbegriff darf nicht in der Antwort enthalten sein +

    +
    +
    Ohne + oder - wird der Suchbegriff als optional betrachtet, allerdings werden Antworten, die diesen Begriff enthalten, im Ergebnis höher bewertet. +

    +
    ( ) +
    +Durch Klammerung können Unterausdrücke gebildet werden. +
    ~ +
    Die Tilde hilft beim Ausfiltern von "Rausch"-Worten. Die Antwort kann diese Begriffe zwar enthalten, wird aber niedriger +eingestuft. (Und nicht grundsätzlich ausgeschlossen wie beim - operator. +

    +
    * +
    Der Stern dient als Abkürzungsoperator. Im Gegensatz zu den übrigen Operatoren wird an den Suchbegriff angehängt, nicht vorangestellt. +

    +
    " " +
    In Anführungszeichen gestellte Suchbegriffe werden wörtlich gesucht. +
    +
    +

    +Beispiele: + +

    +
    + +
    Apfel Birne +
    Findet Artikel, die mindestens einen der Suchbegiffe enthalten. +

    +
    +Apfel +Saft +
    Findet Artikel, die beide Suchbegiffe enthalten. +

    +
    +Apfel Strudel +
    Findet Artikel, die Apfel enthalten. Artikel, die zusätzlich Strudel enthalten, werden höher bewertet. +

    +
    +Apfel -Strudel +
    Findet Artikel, die Apfel aber nicht Strudel enthalten. +

    +
    +Apfel +(>Kuchen <Strudel) +
    Findet Artikel, die Apfel enthalten wobei Artikel mit Kuchen höher bewertet werden als Strudel +

    +
    Apfel* +
    Findet Apfel, Apfelbaum, Apfelsaft ... +

    +
    "ein paar Worte" +
    Findet "ein paar Worte zur Nationalmannschaft" aber nicht "ein paar Anmerkungen". +

    +
    + + +
    + + + diff --git a/sn_computer/html/trash/sx_about_mediadata.html b/sn_computer/html/trash/sx_about_mediadata.html new file mode 100644 index 0000000..221bf2d --- /dev/null +++ b/sn_computer/html/trash/sx_about_mediadata.html @@ -0,0 +1,56 @@ + + + + + +
    + + + + + + +Mediadaten von www..de +

    +Insgesamt verfügt das über 10 Mio. Seitenabrufe pro Monat bei ca. 2,2 Mio. Unique Users. +
    Gerne beraten wir Sie auch zu unseren diversen Sponsoring-Angeboten, bei denen Sie sich exklusiv und längerfristig in einem oder allen Themenbereichen darstellen können. +
    Kontakt: graenzer@.de oder Tel: 0049 30 44730500 +

    + + + + +Presseorgane, die �ber uns berichtet haben (Auswahl): +
      +
    • COMPUTERWOCHE +
    • PC DIREKT + +
    • COM! +
    • PC ONLINE +
    • TOMORROW +
    • KONR@D +
    • PC SHOPPING +
    • GUTER RAT +
    +Online-Medien, die �ber uns berichtet haben (Auswahl): +
      +
    • CT +
    • FOCUS +
    • PC PRAXIS +
    • PC INTERN +
    • TOMORROW +
    • BRIGITTE +
    • PC SHOPPING +
    • SNAFU + +
    • AOL +
    • FIREBALL ... +
    +Außerdem sendete der Nachrichtensender n-tv, in seiner Sendung "Netnews", einen Bericht �ber das +. + + + +
    + + diff --git a/sn_computer/html/trash/sx_about_pager.html b/sn_computer/html/trash/sx_about_pager.html new file mode 100644 index 0000000..47ca92f --- /dev/null +++ b/sn_computer/html/trash/sx_about_pager.html @@ -0,0 +1,176 @@ + + + + + +
    + + + + + +

    Inhalt

    + + +weitere Infos + +

    Aufrufen des SN-Pagers

    +

    Den Forums-eigenen "Nachrichtendienst" kannst du �ber das rechte Men� erreichen (Siehe Abb). +Er �ffnet sich allerdings auch automatisch wenn du eine neue Nachricht bekommst und bei SN rumsurfst.
    +Du kannst +

    • mit "ungelesene Nachrichten" den Posteingang �ffnen, +
    • mit "Adressbuch �ffnen" das Adressbuch im Pagerfenster �ffnen, + +
    • mit "Optionen" die Pager-eigenen Optionen im Pagerfenster �ffnen, +
    • mit "hilfe" diese Hilfe �ffnen, +
    • mit "Ohne Javascript" den pager in einem normalen Browserfenster �ffnen (nicht so sch�n), +
    • mit "Cookie entfernen" dich ausloggen (um den Pager benutzen zu k�nnen must du angemeldet sein). +
    +

    + +hoch + +

    Der Posteingang

    +

    Aus Platzgr�nden immer und �berall nur "Eingang" genannt. +�ber die 3 Links oben kannst du +

    • mit "Ausgang" zum Postausgang wechseln, + +
    • mit "Aktual." die aktuelle Seite manuell neu Laden,
      + (sie wird automatisch alle 5 minuten neu geladen) +
    • mit "Schreiben" zum "Schreiben"-Fenster gelangen um eine neue Nachricht zu verfassen. +
    • mit "Adressbuch" zum Adressbuch gelangen. +
    +So sieht er vermutlich beim ersten Aufruf bei dir aus :
    +

    + +

    Wenn du ein paar Nachrichten erhalten hast, siehst du, dass alle ungelesenen Nachrichten +Fett sind und die gelesenen in normaler Schrift.
    +�ber die neuen Links kannst du +

    • mit "Alle l�schen" nach einer Sicherheitsabfrage alle Nachrichten l�schen, +
    • mit "L" zum die Nachricht sofort l�schen, +
    • mit einem klick auf den Namen die Visitenkarte des Senders aufrufen, +
    • mit einem klick auf den Betreff die empfangene Nachricht anzeigen. +
    +

    + +hoch + +

    empfangene Nachrichten anzeigen

    + +

    Zeigt Sendezeit, Absender, Betreff und Nachricht.
    +Hier kannst du +

    • mit einem klick auf den Namen die Visitenkarte des Senders aufrufen, +
    • mit "Eingang" zum Posteingang wechseln, +
    • mit "L�sche" die Nachricht l�schen, +
    • mit "Bannen" den absender verbieten dir weitere Nachrichten zu schicken Einstellungen bez Bannen und erlauben..., +
    • mit "Antw." Eine Antwort schreiben, wo Betreff und Name �bernommen werden, +
    • mit "+Addr." Den Absender zu deinem Adressbuch hinzuf�gen. + +
    +

    + +hoch + +

    Nachricht verfassen

    +

    Beim Schreiben achte bitte auf h�flichen Umgang und versuche keine �berlangen W�rter zu benutzen damit der Empf�nger nicht seitw�rts scrollen mu�. +Du kannst bis zu 6 Namen mit "," getrennt bei "An:" eintragen, Die Bemerkung soll mindestens 3 Zeichen haben, ebenso der Text der Nachricht.
    +hier kannst du +

    • mit einem klick auf den Namen die Visitenkarte des Senders aufrufen, +
    • mit "An:" zum Adressbuch wechseln um (mehrere) Personen auszuw�hlen, +
    • mit "Abschicken" die Nachricht versenden, + +
    • mit "Eingang" zum Posteingang wechseln. +
    +

    + +hoch + +

    Der Postausgang

    +

    Aus Platzgr�nden immer und �berall nur "Ausgang" genannt. +�ber die 3 Links oben kannst du +

    • mit "Eingang" zum Posteingang wechseln, + +
    • mit "Aktual." die aktuelle Seite manuell neu Laden,
      +
    • mit "Schreiben" zum "Schreiben"-Fenster gelangen um eine neue Nachricht zu verfassen. +
    • mit "Adressbuch" zum Adressbuch gelangen. +
    +Wenn er leer ist sieht er so aus :
    +

    +

    Wenn du ein paar Nachrichten verschickt hast, siehst du, dass alle ungelesenen Nachrichten +Fett sind und die gelesenen in normaler Schrift. +Im Gegensatz zum Posteingang k�nnen fette Nachrichten auch ein "*" hinter dem Datum haben, +dann hat der Empf�nger noch gar nicht gemerkt, dass er eine Nachricht erhalten hat.
    + +Du kannst gesendete Nachrichten nicht selber l�schen sondern der Empf�nger mu� sie +l�schen damit sie aus deinem Postausgang verschwinden. +Gelesene Nachrichten verschwinden nach 1 Tag von selber, nicht gelesene nach 1 Monat +(Aus deinem Postausgang ebenso wie aus dem Posteingang des Empf�ngers).
    +�ber die neuen Links kannst du +

    • mit einem klick auf den Namen die Visitenkarte des Empf�ngers aufrufen, +
    • mit einem klick auf den Betreff die gesendete Nachricht nochmal anzeigen. +
    +

    + +hoch + +

    gesendete Nachrichten anzeigen

    +

    Zeigt Sendezeit, deinen Namen oben, den Empf�nger unten, Betreff und Nachricht.
    + +Hier kannst du +

    • mit einem klick auf den Namen oben deine eigene Visitenkarte �ffnen, +
    • mit "Eingang" zum Posteingang wechseln, +
    • mit "Ausgang" zum Postausgang wechseln. +
    +

    + +hoch + +

    Das Adressbuch

    + +

    Erreichst du �ber das rechte Men� und dem "An:" beim verfassen von Nachrichten. +Au�erdem kannst du +

    • mehrere Namen anhaken und auf "Mehrere Empf�nger" klicken um zum verfassen einer Nachricht an die gew�hlten Namen kommen, +
    • auf einen Namen klicken um sofort zum verfassen einer Nachricht an den Namen kommen, +
    • mit "L�schen" den Namen in der Zeile l�schen, +
    • mit "Einf�gen" einen Namen hinzuf�gen wenn du einen eingegeben hast, +
    • mit "Eingang" zum Posteingang wechseln, +
    • mit "Ausgang" zum Postausgang wechseln. + +
    +

    + +hoch + +

    Erweiterte Einstellungen

    +

    wenn du dich bei einloggst um deine Visitenkarte zu �ndern kannst du da auch +4 Einstellungen zum Pager machen : +In der 1. Eingabezeile werden Namen gezeigt bei denen du mal auf Bannen geklickt hast (beim lesen einer Nachricht). +Wenn die nicht auf der Liste der Freunde stehen k�nnen die dir keine Nachrichten mehr schicken.
    +Au�erdem kannst du Einstellen, dass nur die Member dir eine Nachricht schicken d�rfen die mindestens die angegebene Anzahl Memberpunkte haben.
    +Da vielleicht nicht alle deine Freunde hier langj�hrige Mitglieder sind und hunderte von MP haben kannst du au�erdem noch Namen eintragen die dir immer Nachrichten schicken d�rfen.
    +in der letzten Zeile zu dem Pager kannst du noch das Adressbuch manuell bearbeiten um zum Beispiel die Reihenfolge zu �ndern.
    + +Die gleichen Zeilen hast du auch wenn du im Pager oder im rechten Menu auf Optionen klickst.
    +Im Pager die die Funktion nicht immer verf�gbar. Aus Platzgr�nden verschwindet sie im Postein/ausgang wenn du mehr als 5 Nachrichten hast. +
    +Beachte, dass in den 3 Zeilen wo Namen eingegeben werden k�nnen immer die Namen mit Komma "," getrennt werden und nie 2 Kommas hintereinander stehen sollten.

    + +hoch + + + + +
    + + + diff --git a/sn_computer/html/trash/sx_about_usage.html b/sn_computer/html/trash/sx_about_usage.html new file mode 100644 index 0000000..1cc823a --- /dev/null +++ b/sn_computer/html/trash/sx_about_usage.html @@ -0,0 +1,104 @@ + +< + + + + + + +
    + + + + + +
    Die Nutzung des s unterliegt folgenden Bedingungen: +

    +Liebe User,

    + +das ist eine der grö�ten Plattformen für den Austausch von Hilfestellungen.

    + +Wenn viele Menschen miteinander kommunizieren, müssen einige Verhaltensregeln eingehalten werden.

    +Wenn sich alle an diese Regeln halten, steht einer lebhaften und interessanten Community nichts im Wege.

    +Ein freundlicher und wohlgesonnener Umgang miteinander fördert die Bereitschaft zu helfen und damit auch die Community.

    + +Beleidigungen, Beschimpfungen oder sich über jemanden lustig zu machen sind für die Problembehebung bei Computerproblemen nicht nötig +und daher nicht erlaubt.

    + +Selbstverständlich sind Inhalte zu unterlassen, die vorsätzlich unwahr, ehrverletzend, unsachlich, herabwürdigend, +sittlich anstö�ig, obszön, rassistisch, verleumderisch, hetzerisch, diffamierend oder pornographisch sind, +einen Straf- oder Ordnungswidrigkeitstatbestand erfüllen oder sonstige Rechtsnormen verletzen. +Die Rechte Dritter, insbesondere Urheber-, Patent-, Marken-, Kennzeichen-, Leistungsschutz- und Geschmacksmusterrechte, +sind zu achten. +

    +Als Beiträge getarnte Werbung sind ebenso wie eine Namensgebung, eine Statusbeschreibung und/oder eine Signatur, die dazu geeignet ist eine offizielle Funktion auf +.de oder einen schon vergebenen Spitznamen vorzutäuschen, für die Problembehebung nicht nötig und daher auch nicht erlaubt. +

    +.de und/oder die von .de beauftragten Administratoren/Moderatoren können Beiträge und Mitgliedschaften +jederzeit auf Grund der hier und/oder in den jeweiligen Bereichen bereitgestellten Regularien, ohne Angabe von Gründen, löschen oder sperren. +Des Weiteren können Beiträge, die inhaltlich nichts mit der Beantwortung der gestellten Frage zu tun haben oder aus sonstigen sachlich gerechtfertigten Gründen, +kommentarlos gelöscht werden. +

    +Den Anweisungen der Administratoren ist Folge zu leisten. +

    +Da die Betreiber und das -Team nicht ständig alle Artikel lesen können bitte ich bei Verstö�en gegen die Nutzungsordnung oder die Verhaltensregeln dies per Link "Admin holen" in jedem Beitrag oben rechts an die Administratoren zu melden. +

    +Verstö�e gegen diese Nutzungsbedingungen führen zum sofortigen Ausschluss aus deet und ggf. zu Anzeigen gegen die +betreffenden User.

    + +Vervielfältigung: +
  • +Jegliche Vervielfältigung der auf diesen Seiten zur Verfügung gestellten Texten bedarf der ausdrücklichen Erlaubnis des Autors in Schriftform. +Alle Texte ohne Autorenangabe unterliegen dem Urheberrecht des Herausgebers. Ebenfalls untersagt ist jegliche Vervielfältigung auf andere nicht-elektronische Medien. +

    +Verlinkung: +

  • +Generell untersagt ist die Verlinkung in einem Frame bei dem .de nicht mehr als Urheber erkennbar ist. +

    +Haftungsausschluss: +

  • + +Die Benutzung dieser Seite erfolgt auf eigene Gefahr. Wir übernehmen keine Haftung für Schäden die aufgrund der Anwendung der +in diesem Angebot genannten Informationen entstehen, wenn keine grobe Fahrlässigkeit auf unserer Seite vorliegt. +

    +Copyright: +

  • +Markennamen werden frei ohne gesonderte Kennzeichnung verwendet. Diese Namen sind Eigentum der jeweiligen Besitzer. +Alle verwendeten Logos und Firmennamen sind eingetragene Warenzeichen der jeweiligen Firmen. +

    +Datenschutz: +

  • +Es werden beim Besuch unserer Webseiten persönliche Daten im Einklang mit den jeweils einschlägigen gesetzlichen Bestimmungen erhoben. +Unsere Webseiten können Links zu Webseiten anderer Anbieter enthalten, auf die sich diese Datenschutzerklärung nicht erstreckt.

    +
  • Beim Besuch unserer Webseiten werden von unseren Webservern standardmässig die Webseite, von der aus Sie uns besuchen, die Webseiten, +die Sie bei uns besuchen sowie das Datum und die Dauer des Besuches gespeichert. Darüber hinaus werden persönliche Daten nur dann gespeichert, +wenn Sie uns diese von sich aus z.B. im Rahmen einer Gewinnspielaktion oder bei der Anmeldung als Member angeben. In dem Fall einer Anmeldung +als Member wird ein Cookie (eine kleine Textdatei) auf Ihrem Computer gespeichert. Diese Datei enthält Ihren Membernamen und in verschlüsselter Forum Ihr Passwort.

    +
  • Ihre persönlichen Daten werden von uns zu Zwecken der technischen Verwaltung der nur im dafür erforderlichen Umfang genutzt.

    +
  • Erhebungen bzw. Übermittlungen persönlicher Daten an staatliche Einrichtungen und Behörden erfolgen nur im Rahmen zwingender nationaler Rechtsvorschriften. + Unsere Mitarbeiter und Agenturen sind von uns zur Verschwiegenheit verpflichtet.

    +
  • Wir teilen Ihnen auf Anforderung umgehend mit, ob und welche persönlichen Daten über Sie bei uns gespeichert sind. +Sollten trotz unserer Bemühungen falsche Informationen gespeichert sein, werden wir diese auf Ihre Aufforderung hin umgehend berichtigen.

    +
  • Es werden von uns technische und organisatorische Sicherheitsmaßnahmen eingesetzt, um Ihre Daten gegen zufällige oder vorsätzliche Manipulationen, +Verlust, Zerstörung oder gegen den Zugriff unberechtigter Personen zu schützen. Unsere Sicherheitsmaßnahmen werden entsprechend der +technologischen Entwicklung fortlaufend verbessert.

    +
  • Diese Website benutzt Google Analytics, einen Webanalysedienst der Googe Inc. ("Google") Google Analytics verwendet sog. "Cookies", +Textdateien, die auf Ihrem Computer gespeichert werden und die eine Analyse der Benutzung der Website durch Sie ermöglicht. +Die durch den Cookie erzeugten Informationen über Ihre Benutzung diese Website (einschließlich Ihrer IP-Adresse) +wird an einen Server der Google in den USA übertragen und dort gespeichert. Google wird diese Informationen benutzen, +um Ihre Nutzung der Website auszuwerten, um Reports über die Websiteaktivitäten für die Websitebetreiber zusammenzustellen +und um weitere mit der Websitenutzung und der Internetnutzung verbundene Dienstleistungen zu erbringen. +Auch wird Google diese Informationen gegebenenfalls an Dritte übertragen, sofern dies gesetzlich vorgeschrieben oder soweit +Dritte diese Daten im Auftrag von Google verarbeiten. Google wird in keinem Fall Ihre IP-Adresse mit anderen Daten der Google +in Verbindung bringen. Sie können die Installation der Cookies durch eine entsprechende Einstellung Ihrer Browser Software verhindern; +wir weisen Sie jedoch darauf hin, dass Sie in diesem Fall gegebenenfalls nicht sämtliche Funktionen dieser +Website voll umfänglich nutzen können. Durch die Nutzung dieser Website erklären Sie sich mit der Bearbeitung +der über Sie erhobenen Daten durch Google in der zuvor beschriebenen Art und Weise und zu dem zuvor benannten Zweck einverstanden.

    + + + + +
  • + + + diff --git a/sn_computer/html/video b/sn_computer/html/video new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/wortdichte.js b/sn_computer/html/wortdichte.js new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/html/xx_ie.css b/sn_computer/html/xx_ie.css new file mode 100644 index 0000000..552ac08 --- /dev/null +++ b/sn_computer/html/xx_ie.css @@ -0,0 +1,10 @@ +.clearfix { zoom: 1; *display: inline-block; } + +.col-3-left {padding-right:13px; } +.col-3-center { padding-right:13px; } + +.box { _height:30px; } +.group span.ok-ic { _right:15px; } +.flyout { line-height:12px; } + + \ No newline at end of file diff --git a/sn_computer/html/xx_main.css b/sn_computer/html/xx_main.css new file mode 100644 index 0000000..ad346ec --- /dev/null +++ b/sn_computer/html/xx_main.css @@ -0,0 +1,1631 @@ +@charset "utf-8"; + +/* GENERAL */ +* { margin: 0px; padding: 0px; outline: 0; font-size: 100%; } +img { border:0; } +ol, ul { list-style:none } +input, select, textarea { vertical-align:middle; } + +.clear { clear: both; height: 0; font-size: 0; margin:0; padding:0; overflow:hidden; } +.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +* html .clearfix {height: 1%;} +body { + background:#d5e7f3 url(pix/bg.gif) top left repeat-x; + font-family:Helvetica, Georgia; + line-height:16px; + } +.container { + width:1130px; + margin:0 auto; + padding:0 12px; + } +.advertising { + width:160px; + float:right; + padding:155px 0 0 0; + } +.wrapper { + width:955px; + float:left; + position:relative; + margin-top:20px; + } +/*Headings*/ +h3 { + font:18px Helvetica, Georgia; + color:#0000ff; + font-weight:normal; + padding:10px 0 15px 0; + } +h6 { + font:bold 13px Helvetica, Georgia; + color:#46b907; + } + +/*Extra classes */ +.fl-left { float:left; } +.fl-right { float:right; } + +.f-14 { font-size:14px; } +.f-15 { font-size:15px; } + +.vFont { font-family:Georgia, sans-serif; } + +.LH18 { line-height:18px; } +.LH22 { line-height:22px; } + +.center-al { text-align:center; } +.right-al { text-align:right; } + +.paddBtm5 { padding-bottom:5px; } +.paddTB5 { padding:5px 0; } +.paddTB10 { padding:10px 0; } +.paddTB15 { padding:15px 0; } + +.gray-txt { color:#8a8a8a; } +.light-gray-txt { color:#9f9f9f; } +.blue-txt { color:#3366cc; } +.blue-txt2 { color:#3579a7; } +.lightBlue-txt { color:#6f99ad; } +.dark-blue-txt { color:#0052a1; } +.red-txt { color:#ff0000; } +.green-txt { color:#3aa441; } + +a:link, a:visited { color:#0000ff; text-decoration:underline; } +a:hover { text-decoration:none; } + +a.lightBlue:link, a.lightBlue:visited { color:#6f99ad; text-decoration:none; } +a.lightBlue:hover { text-decoration:underline; } + +a.darkBlue:link, a.darkBlue:visited { color:#0052a1; text-decoration:none; } +a.darkBlue:hover { text-decoration:underline; } + +a.blue:link, a.blue:visited { color:#3579a7; text-decoration:none; } +a.blue:hover { text-decoration:underline; } + +a.grayU:link, a.grayU:visited { color:#8a9dae; text-decoration:underline; } +a.grayU:hover { text-decoration:none; } + +a.black:link, a.black:visited { color:#000; text-decoration:none; } +a.black:hover { text-decoration:underline; } + +a.blackU:link { color:#000; text-decoration:underline; } +a.blackU:visited { color:#717171; text-decoration:underline; } +a.blackU:hover { text-decoration:none; } + +a.green:link, a.green:visited { color:#2f9200; text-decoration:none; } +a.green:hover { color:#2f9200; text-decoration:underline; } + + + +/*PAGE TOP*/ +.header { + height:94px; + background:url(pix/header-bg.gif) top center no-repeat; + } +.message-top { + width:955px; + height:94px; + background:url(pix/message-top.png) top center no-repeat; + position:absolute; + top:0; + left:0; + z-index:3; + } +.mt-box { + width:371px; + padding:5px 10px; + background:#fff; + margin:18px auto 0 auto; + text-align:center; + font:12px Helvetica, Georgia; + border-radius:7px; + -moz-border-radius:7px; + -webkit-border-radius:7px; + } +.mt-box span { + font-weight:bold; + font-size:18px; + position:relative; + z-index:100000; + } +.mt-box a:link, .mt-box a:visited { + color:#000; + text-decoration:none; + } +.mt-box a:hover { text-decoration:underline; } +img.logo { + position:relative; + float:left; + padding:12px 10px 0 15px; + } +.header .top-right { + width:270px; + height:79px; + padding:15px 0 0 0; + float:right; + } +.header .top-bg-1 { + background:url(pix/top-gb-1.jpg) 70px 4px no-repeat; + padding-left:275px; + height:79px; + } +.top-right dl { + float:right; + font-size:12px; + line-height:14px; + padding:0 10px 3px 10px; + position:relative; + height:20px; + } +.dl-w-110 { width:110px; } +.top-right dl a:link, .top-right dl a:visited { + color:#0052a1; + text-decoration:underline; + } +.top-right dl a:hover { text-decoration:none; } +.header .top-right input.field-top { + width:179px; + height:21px; + padding:1px 2px 0 7px; + border:none; + background:url(pix/field-top.gif) top right no-repeat; + font:12px Helvetica, Georgia; + } + +/*Navigation*/ + +.nav { + background:url(pix/nav-bg.gif) top left no-repeat; + height:26px; + overflow:hidden; + position:relative; + } +.center { + float:left; + position:relative; + left:50%; + text-align:left; + } +.center ul { + position:relative; + left:-50%; + } +.center ul li { + float:left; + position:relative; + } +.center ul li.first { background:url(pix/nav-line.gif) top left no-repeat; } +.center ul li a:link, .center ul li a:visited { + display:block; + line-height:25px; + font-size:14px; + color:#fff; + text-decoration:none; + background:url(pix/nav-line.gif) top right no-repeat; + padding:0 25px; + font-weight: bold; + } +.center ul li a:hover, +.center ul li.active a:link, .center ul li.active a:visited + { color:#ff0000;} + +/*CONTENT*/ +.content { padding:20px 0; } + +.col3-left { float:left; width:157px; padding-right:12px; } +.col3-center { float:left; width:474px; padding-right:12px; } +.col3-right { float:left; width:300px; } + +.col2-left { float:left; width:300px; padding-right:12px; } +.col2-right { float:left; width:643px; } + +.col2-2-left { float:left; width:213px; padding-right:12px; } +.col2-2-right { float:right; width:730px; z-index:5; } + +.col1 { width:955px;} + +/*Boxes general*/ +.box { + position:relative; + margin-bottom:25px; + min-height:30px; + padding:30px 0 15px 0; + } +.box h1 { + position:absolute; + top:-5px; + left:0; + height:26px; + font-size:15px; + padding:6px 0 0 0; + z-index:2; + } +.box span.btm { + position:absolute; + height:10px; + left:0; + bottom:-5px; + } +/*3 columns layout - box left*/ +.col3-left .box { width:157px; background:url(pix/box3-left-mdl.gif) top left repeat-y; } +.col3-left .box h1 { width:157px; background:url(pix/box3-left-top.gif) top left no-repeat; } +.col3-left .box span.btm { width:157px; background:url(pix/box3-left-btm.gif) bottom left no-repeat; } +/*3 columns layout - box center*/ +.col3-center .box { width:474px; background:url(pix/box3-center-mdl.gif) top left repeat-y; } +.col3-center .box h1 { width:474px; background:url(pix/box3-center-top.gif) top left no-repeat; } +.col3-center .box span.btm { width:474px; background:url(pix/box3-center-btm.gif) bottom left no-repeat; } +/*3 columns layout - box right*/ +.col3-right .box { width:300px; background:url(pix/box3-right-mdl.gif) top left repeat-y; } +.col3-right .box h1 { width:300px; background:url(pix/box3-right-top.gif) top left no-repeat; } +.col3-right .box span.btm { width:300px; background:url(pix/box3-right-btm.gif) bottom left no-repeat; } + +/*2 columns layout - box left*/ +.col2-left .box { width:300px; background:url(pix/box2-left-mdl.gif) top left repeat-y; } +.col2-left .box h1 { width:300px; background:url(pix/box2-left-top.gif) top left no-repeat; } +.col2-left .box span.btm { width:300px; background:url(pix/box2-left-btm.gif) bottom left no-repeat; } +/*2 columns layout - box right*/ +.col2-right .box { width:643px; background:url(pix/box2-right-mdl.gif) top left repeat-y; } +.col2-right .box h1 { width:643px; background:url(pix/box2-right-top.gif) top left no-repeat; } +.col2-right .box span.btm { width:643px; background:url(pix/box2-right-btm.gif) bottom left no-repeat; } + +/*1 column layout*/ +.col1 .box { width:955px; background:url(pix/box1-mdl.gif) top left repeat-y; } +.col1 .box h1 { width:955px; background:url(pix/box1-top.gif) top left no-repeat; } +.col1 .box span.btm { width:955px; background:url(pix/box1-btm.gif) bottom left no-repeat; } + +/*2 columns layout - box left v2*/ +.col2-2-left .box { width:213px; background:url(pix/box2-2-left-mdl.gif) top left repeat-y; } +.col2-2-left .box h1 { width:213px; background:url(pix/box2-2-left-top.gif) top left no-repeat; } +.col2-2-left .box span.btm { width:213px; background:url(pix/box2-2-left-btm.gif) bottom left no-repeat; z-index:-1; } +/*2 columns layout - box right v2*/ +.col2-2-right .box { width:730px; background:url(pix/box2-2-right-mdl.gif) top left repeat-y; } +.col2-2-right .box h1 { width:730px; background:url(pix/box2-2-right-top.gif) top left no-repeat; } +.col2-2-right .box span.btm { width:730px; background:url(pix/box2-2-right-btm.gif) bottom left no-repeat; } + + +/*Boxes icons*/ +h1 span { height:30px; width:35px; display:block; float:left; } + +h1 span.ic-1 { background:url(pix/ic-1.gif) 8px 2px no-repeat; } +h1 span.ic-2 { background:url(pix/ic-2.gif) 12px 2px no-repeat; } +h1 span.ic-3 { background:url(pix/ic-3.gif) 12px 0 no-repeat; } +h1 span.ic-4 { background:url(pix/ic-4.gif) 12px 2px no-repeat; } +h1 span.ic-5 { background:url(pix/ic-5.gif) 8px 2px no-repeat; } + +a.options { + position:absolute; + width:16px; + height:0; + font-size:0; + overflow:hidden; + padding-top:15px; + top:8px; + right:5px; + background:url(pix/option-ic.gif) no-repeat; + } +a.optionsForum { + position:absolute; + width:16px; + height:0; + font-size:0; + overflow:hidden; + padding-top:15px; + top:8px; + right:21px; + background:url(pix/option-ic.gif) no-repeat; + } +a.optionsR { + float:right; + position:relative; + width:16px; + height:0; + font-size:0; + overflow:hidden; + padding-top:15px; + margin:0 0 8px 5px; + background:url(pix/option-ic.gif) top left no-repeat; + } +.h3Right { + position:absolute; + line-height:15px; + top:8px; + right:25px; + color:#2f9200; + } +a.options2 { + position:absolute; + line-height:15px; + top:8px; + right:25px; +} + +/*h1 for the forum*/ +.box h1.f-12 { + font-size:12px; + font-weight:normal; + padding:5px 0 0 15px; + height:25px; + } +.box h1 a:link, .box h1 a:visited { color:#000; } +.box h1 a:hover { text-decoration:none; } + +.box-content { + padding:0 15px; + font-size:12px; + position:relative; + } +.box-contentNoPadd { + padding:0 1px 0 1px; + font-size:12px; + position:relative; + } + +/*Side Navigation 1*/ +dl.sideNav { + padding:0 6px 0 6px; + font-size:12px; + line-height:20px; + } +dl.sideNav dt { + padding:0 0 0 8px; + font-weight:bold + } + /*Side Navigation Icons*/ +dl.sideNav dd.nav-ic1, dl.sideNav dd.nav-ic2, dl.sideNav dd.nav-ic3, dl.sideNav dd.nav-ic4, dl.sideNav dd.nav-ic5 { + margin:0; + padding:0 0 0 18px; + background-repeat:no-repeat; + background-position:0 3px; + } +dl.sideNav dd.nav-ic1 { background-image:url(pix/nav-ic1.gif); } +dl.sideNav dd.nav-ic2 { background-image:url(pix/nav-ic2.gif); } +dl.sideNav dd.nav-ic3 { background-image:url(pix/nav-ic3.gif); } +dl.sideNav dd.nav-ic4 { background-image:url(pix/nav-ic4.gif); } +dl.sideNav dd.nav-ic5 { background-image:url(pix/nav-ic5.gif); } + /*Side Navigation default*/ +dl.sideNav dd { + margin:0 0 0 8px; + padding:0 0 0 10px; + background:url(pix/sideNav-ic.gif) 0 8px no-repeat; + } +dl.sideNav dd a:link, dl.sideNav dd a:visited { + text-decoration:none; + color:#0052a1; + } +dl.sideNav dd a:hover, +dl.sideNav dd.active a:link, dl.sideNav dd.active a:visited { + color:#ff0000; + } + +/*FORM ELEMENTS*/ +input.field-343 { + width:334px; + height:23px; + padding:1px 2px 0 7px; + border:none; + background:url(pix/field-343.gif) top right no-repeat; + font:12px Helvetica, Georgia; + } +input.field-home { + width:330px; + height:20px; + padding:1px 2px 0 7px; + border:none; + background:url(pix/field-home.gif) top right no-repeat; + font:12px Helvetica, Georgia; + color:#bebebe; + } + /*Round fields*/ +input.fieldR-270 { + border:none; + width:265px; + height:23px; + padding:2px 2px 0 3px; + background:url(pix/fieldR-270.gif) top right no-repeat; + margin:2px 0; + font:12px Helvetica, Georgia; + } +textarea.commentR-270 { + border:none; + width:265px; + height:95px; + padding:5px 0 0 5px; + background:url(pix/commentR-270.gif) bottom right no-repeat; + margin:2px 0; + overflow:auto; + font:12px Helvetica, Georgia; + } + /*border fields*/ +textarea.comment-470 { + border:none; + width:465px; + height:95px; + padding:5px 0 0 5px; + border:1px solid #cbcbcb; + margin:5px 0; + overflow:auto; + font:11px Helvetica, sans-serif; + } + /*---*/ +.form-row { padding-bottom:7px; } +img.help { + width:16px; height:16px; + cursor:pointer; + padding:0 0 0 5px; + } +.buttons-3 { padding:10px 0; } +.buttons-3 p { + width:148px; + float:left; + } +.buttons-3 p.b2 { text-align:center; } +.buttons-3 p.b3 { text-align:right; } +.buttons { text-align:center; } +label { + font-size:14px; + font-weight:bold; + padding-bottom:3px; + } +label.normal-txt { + font-size:12px; + font-weight:normal; + padding-bottom:0; + } +input.fw-240, input.fw-340 + { + vertical-align: baseline; + padding:2px 2px 2px 3px; + font:12px Helvetica, Georgia; + margin-top:3px; + } +input.fw-240 { width:235px; } +input.fw-340 { width:335px; } +textarea.cw-440 + { + font:12px Helvetica, Georgia; + margin-top:3px; + } +textarea.cw-440 { + width:440px; + height:180px; + overflow:auto; + } + +select.sw-160 { width:160px; } + +input.fBtn-140 { + width:140px; + height:22px; + background:url(pix/fBtn-140.gif) no-repeat; + border:none; + font:13px Helvetica, Georgia; + cursor:pointer; + } +/*end form elements*/ +.col-130-L, .col-130-R { + width:130px; + padding-bottom:15px; + } +.col-130-L { float:left; } +.col-130-R { float:right; } +.col-130-L h4, .col-130-R h4 { + color:#1f83c3; + font:normal 12px Helvetica, Georgia; + padding-bottom:3px; + } + +/*Home page*/ + /*Tipps*/ +.tipps-main { + background:url(pix/line.gif) bottom left no-repeat; + padding-bottom:25px; + padding-top:15px; + } +p.w-215-left { width:215px; float:left; padding:15px 0; } +p.w-215-right { width:215px; float:right; padding:15px 0; } +img.img-130-110 { + width:130px; + height:110px; + float:left; + padding:0 10px 10px 0; + } +.group { + background:url(pix/line.gif) top left no-repeat; + padding:5px 0 7px 0; + position:relative; + line-height:17px; + z-index:1; + } +.no-bg { background:none; } +.group span.ok-ic { + width:26px; + height:24px; + position:absolute; + top:10px; + right:0; + background:url(pix/ok-ic.gif) no-repeat; + z-index:-1; + } +img.forum-ic { + float:left; + width:25px; + height:25px; + padding-top:7px; + } +img.forum-ic2 { + float:left; + width:25px; + height:25px; + padding:7px 10px 0 0; + } +.forum-cnt { + width:409px; + float:left; + padding:0 0 0 10px; + } +.forum-cnt2 { + padding:0 20px 0 0; + } +.line2 { background:url(pix/line2.gif) bottom left no-repeat; } +.group span.ok-ic2 { + width:26px; + height:24px; + position:relative; + float:right; + margin:7px 0 0 5px; + /*position:absolute; + top:0px; + right:0;*/ + background:url(pix/ok-ic.gif) no-repeat; + z-index:-1; + } + + + + + + + + + + + +.forum-an-und-verkauf, +.forum-kuehlung-modding, +.forum-security-viren, +.forum-audio-mp3-video, +.forum-laptop-notebook, +.forum-sn-intern, +.forum-betriebssystem-sonstige, +.forum-software-sonstige, +.forum-linux, +.forum-telekommunikation, +.forum-bildbearbeitung, +.forum-mainboard-cpu-ram, +.forum-vista, +.forum-datenbanken, +.forum-netzwerk, +.forum-windows-2000, +.forum-digitalkameras, +.forum-netzwerk-sonstiges, +.forum-windows-7, +.forum-dsl, +.forum-pc-sonstiges, +.forum-windows-98, +.forum-windows-me, +.forum-windows-95, +.forum-e-mail-outlook, +.forum-peripherie, +.forum-windows-nt, +.forum-excel, +.forum-plauderecke, +.forum-windows-xp, +.forum-grafikkarten, +.forum-praesentation, +.forum-w-lan , +.forum-hardware, +.forum-programmierung-anwendungen-java-c, +.forum-textverarbeitung, +.forum-hardware-sonstiges, +.forum-programmierung-scripte-php-perl, +.forum-internet-browser, +.forum-programmierung-webseiten-html +{ + background-repeat:no-repeat; + background-position:0 7px; + padding:0 0 0 35px; +} + + + + + + + + + +/*Slide 1*/ +#controller { display:none; } +#content-slider { + position:relative; + width:240px; + padding:0 0 0 30px; + } +#prev { + position:absolute; + bottom:0; + left:0; + width:35px; + } +#next { + position:absolute; + bottom:0; + right:0; + width:35px; + } +.jFlowPrev, .jFlowNext { cursor: pointer; } +#slides { + width:200px; + padding:0; + position:relative; + font-size:11px; + overflow:hidden; + } +#slide1, #slide2, #slide3 { white-space:nowrap; } +#slides h2 { + width:200px; + font-size:11px; + text-align:center; + padding-bottom:3px; + } +ol.statisticsL { + float:left; + padding:0 5px 5px 10px; + margin:0; + list-style-position:inside; + list-style-type:decimal; + white-space:nowrap; + overflow:hidden; + } +ol.statisticsL li { margin:-3px 0 0 0; padding:0; } +ol.statisticsR { + float:right; + padding:0 10px 5px 0; + margin:0; + list-style-position:inside; + list-style-type:decimal; + white-space:nowrap; + overflow:hidden; + } +ol.statisticsR li { margin:-3px 0 0 0; padding:0; } + + +#slides a:link, #slides a:visited { + color:#000; + text-decoration:none; + cursor:pointer; + position:relative; + } +#slides a:hover { text-decoration:underline; } + +/*Slide 2*/ +#content-slider2 { + position:relative; + width:230px; + padding:0 0 0 40px; + } +#prev2 { + position:absolute; + bottom:0; + left:0; + width:19px; + } +#next2 { + position:absolute; + bottom:0; + right:0; + width:19px; + } +.statistics2 { + font:11px Helvetica, sans-serif; + width:200px; + white-space:normal; + } +.statistics2 p.title { + font-size:12px; + padding:5px 0 15px 0; + } +.statistics2 p.body { padding:0 10px 0 0; } + +/*Pagination*/ +.pagination { + float:left; + position:relative; + left:50%; + } +.pagination ul { + font-size:12px; + padding:15px 0 0 0; + line-height:12px; + position:relative; + left:-50%; + } +.pagination ul li { + float:left; + position:relative; + margin-right:5px; + } +.pagination ul li a:link, .pagination ul li a:visited { + display:block; + border:1px solid #9aafe5; + padding:3px 5px; + text-decoration:none; + color:#3366cc; + } +.pagination ul li a:hover { + background:#9aafe5; + color:#fff; + } +.pagination ul li.active a:link, .pagination ul li.active a:visited { + background:#3366cc; + color:#fff; + border:1px solid #3366cc; + } + +.pagination ul li.graydisabled , .pagination ul li.graydisabled { + display:block; + border:1px solid #b0b0b0; + padding:3px 5px; + text-decoration:none; + color: #b0b0b0; + } + +/*Thread Page*/ +.thread { + padding:0 15px 20px 15px; + font:13px Helvetica, sans-serif; + } + +.thread div .vote { + width:442px; + position:relative; + margin:15px 0; + } +.threadAnswer { + font:13px Helvetica, sans-serif; + position:relative; + } +.threadAnswer pre { + width:97%; + padding:15px 5px; + color:#5a5a5a; + overflow-x:auto; + background:#f6f6f6; + border:1px solid #e3e3e3; + } +.threadAnswer h3 { + font-weight:normal; + color:#000000; + background:#e6e6e6; + padding:5px 15px; + font:12px Helvetica, Georgia; + position:relative; + } +.threadAnswer h3 span a:link, .threadAnswer h3 span a:visited { + color:#0000ff; + text-decoration:underline; + } +.threadAnswer h3 span a:hover { text-decoration:none; } +.threadAnswer div { + padding:20px 15px 20px 15px; + width:442px; + position:relative; + } +.threadAnswer div .vote { + width:442px; + position:relative; + margin:15px 0; + } +a.image-not-ok:link, a.image-not-ok:visited { + width:50%; + background:#ff0000; + height:25px; + padding:20px 0; + font:20px Helvetica, Georgia; + color:#fff; + text-decoration:none; + text-align:center; + display:block; + position:absolute; + left:0; bottom:0; + filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; + border-radius:7px 0 0 0; -moz-border-radius:7px 0 0 0; -webkit-border-radius:7px 0 0 0; + } +a.image-ok:link, a.image-ok:visited { + width:50%; + background:#2f9400; + height:25px; + padding:20px 0; + font:20px Helvetica, Georgia; + color:#fff; + text-decoration:none; + text-align:center; + display:block; + position:absolute; + right:0; bottom:0; + filter:alpha(opacity=50); -moz-opacity:0.5; -khtml-opacity: 0.5; opacity: 0.5; + border-radius:0 7px 0 0; -moz-border-radius:0 7px 0 0; -webkit-border-radius:0 7px 0 0; + } +a.image-not-ok:hover, a.image-ok:hover { background:#000; } + + + +/*Options box*/ +/*Options box*/ +.optionsBox { + position:relative; + width:148px; + background:url(pix/optionsBox-mdl.gif) top left repeat-y; + padding:18px 0 10px 0; + font-size:11px; + } +.optionsBox p.top { + height:16px; + width:134px; + padding:2px 0 0 14px; + background:url(pix/optionsBox-top.gif) top left no-repeat; + position:absolute; + top:-5px; + } +.optionsBox span.btm { + width:148px; + height:10px; + position:absolute; + bottom:-5px; + background:url(pix/optionsBox-btm.gif) bottom left no-repeat; + } +.optionsBox ul { + padding:0 14px; + } +.optionsBox ul li { + } +.optionsBox ul li a:link, .optionsBox ul li a:visited { color:#000; text-decoration:none; } +.optionsBox ul li a:hover { text-decoration:underline;} +/*Options box green*/ +.optionsBoxGreen { + position:relative; + width:148px; + background:url(pix/optionsBoxGreen-mdl.gif) top left repeat-y; + padding:18px 0 10px 0; + font-size:11px; + color:#2f9200; + } +.optionsBoxGreen p.top { + height:16px; + width:134px; + padding:2px 0 0 14px; + background:url(pix/optionsBoxGreen-top.gif) top left no-repeat; + position:absolute; + top:-5px; + } +.optionsBoxGreen span.btm { + width:148px; + height:10px; + position:absolute; + bottom:-5px; + background:url(pix/optionsBoxGreen-btm.gif) bottom left no-repeat; + } +.optionsBoxGreen ul { + padding:0 14px; + } +.optionsBoxGreen ul li a:link, .optionsBoxGreen ul li a:visited { color:#2f9200; text-decoration:none; } +.optionsBoxGreen ul li a:hover { text-decoration:underline;} +a.close { + position:absolute; + width:7px; + height:0; + font-size:0; + overflow:hidden; + padding-top:9px; + top:5px; + right:10px; + background:url(pix/close-ic.gif) no-repeat; + } +/*Categories*/ +dl.categories { + width:255px; + float:left; + padding:0 17px 0 17px; + line-height:20px; + position:relative; + font-family:Helvetica, sans-serif; + position:relative; + z-index:5; + } +dl.categories dt { + font-size:16px; + font-weight:bold; + padding:12px 0 8px 35px; + margin-top:15px; + } +dl.categories dt.c-ic-1 { background:url(pix/c-ic-1.gif) 0 10px no-repeat; } +dl.categories dt.c-ic-2 { background:url(pix/c-ic-2.gif) 0 10px no-repeat; } +dl.categories dt.c-ic-3 { background:url(pix/c-ic-3.gif) 0 10px no-repeat; } +dl.categories dt.c-ic-4 { background:url(pix/c-ic-4.gif) 0 10px no-repeat; } +dl.categories dt.c-ic-5 { background:url(pix/c-ic-5.gif) 0 10px no-repeat; } +dl.categories dt.c-ic-6 { background:url(pix/c-ic-6.gif) 0 10px no-repeat; } +dl.categories dt.c-ic-7 { background:url(pix/c-ic-7.gif) 0 10px no-repeat; } +dl.categories dt a:link, dl.categories dt a:visited { + color:#3579a7; + text-decoration:none; + } +dl.categories dt a:hover { text-decoration:underline; } +dl.categories dd { font-size:13px; } +dl.categories dd a:link, dl.categories dd a:visited { color:#000000; text-decoration:none; } +dl.categories dd a:hover { text-decoration:underline; } + +/*Nested Navigation*/ +.nestedNav { width:218px; margin:0; padding:5px 2px 0 0; } +ul.level0 { padding:0; margin:0; background:url(pix/right_nav_line.gif) repeat-y left; overflow:hidden; } +ul.level0 li { padding:0; margin:0; line-height:23px; background:url(pix/right_nav_li.png) no-repeat 0 8px; } +ul.level0 li.plus { background:none; padding-bottom:5px; } + +ul.level0 li span { display:block;width:203px;padding-left:15px; } +ul.level0 li.first { background-position:-265px 0; } +ul.level0 li.last{ background-position:-530px 9px; } +ul.level0 li.last_open { background-position:0 8px; } +ul.level1 li,#col3_content ul.level1 li.last { background-position:-795px 9px; } +ul.level1 li span { width:167px; padding-left:30px; } +ul.level1 li.open {background-position:-1067px 9px; } +ul.level2 { margin-left:16px; } +ul.level2 li { background-position:-1611px 9px; } +ul.level2 li.last { background-position:-1880px 9px; } +ul.level0 li.last_open ul.level1 li.last { background-position:-1339px 9px; } +ul.level0 li.last_open ul.level1 li.last_open { background-color:#F9FBFC; background-position:-2149px -9px; } +ul.level0 li.last_open ul.level1 li.last_open ul.level2 li { background-position:-1611px 9px; } +ul.level0 li.last_open ul.level1 li.last_open ul.level2 li.last { background-position:-1880px 9px; } +ul.level0 a { color:#246; font-size:13px; text-decoration:none; } +ul.level0 a:hover, ul.level0 .active a { text-decoration:underline; } + +/*Messages Nachrichten*/ + +/*Messages Nachrichten*/ +.group-470 { + width:470px; + padding-bottom:10px; + } +.group-470 .time { + height:22px; + padding-top:2px; + background:url(pix/time-470.gif) no-repeat; + color:#0000ff; + font-size:10px; + } +.group-470 .timeL { width:220px; padding-left:250px; } +.group-470 .timeR { width:363px; padding-left:107px; } + + + +/*Member Overview*/ +.grey-box { + background:#f4f4f4; + margin-bottom:15px; + padding:10px; + margin:15px 0; + } +.grey-box select { + font:11px Helvetica, Helvetica, sans-serif; + } +.m-group { + border-bottom:1px solid #e9ecf0; + padding:12px 0; + } +.b-top { border-top:1px solid #e9ecf0; } +.m-icon { + width:48px; + height:48px; + padding:2px; + border:1px solid #eee; + float:left; + } +.m-icon img { width:48px; height:48px; } +.m-group ul { + padding-left:15px; + width:171px; + float:left; + } +/*end Member Overview*/ + +/*Member Page*/ +.mp-area { + padding:12px 0 12px 0; + } +.mp-area ul { + padding-left:15px; + width:171px; + float:left; + } +.mp-area h5 { + color:#46b907; + font:bold 15px Helvetica, Georgia; + border-bottom:2px solid #e9ecf0; + margin-bottom:20px; + height:22px; + padding:2px 0 5px 33px; + } +.mp-area h5.mp-ic1 { background:url(pix/mp_ic1.gif) 0 0 no-repeat; } +.mp-area h5.mp-ic2 { background:url(pix/mp_ic2.gif) 0 0 no-repeat; } +.mp-area h5.mp-ic3 { background:url(pix/mp_ic3.gif) 0 0 no-repeat; } +.guestbook { + border-bottom:1px solid #e9ecf0; + padding-bottom:12px; + margin-bottom:12px; + position:relative; + } +.guestbook .date { + padding-bottom:7px; + line-height:18px; + } +.friend { + padding:5px 0; + } +.m-details { + float:left; + padding-left:15px; + line-height:14px; + } +.m-details a:link, .m-details a:visited { color:#8a9dae; text-decoration:underline; margin-bottom:10px; } +.m-details a:hover { text-decoration:none; } + +.f-row { padding-bottom:3px; } +.lbl { + width:90px; + float:left; + font-weight:bold; + } +.cnt { + width:523px; + float:left; + } +.f-txt-330 { + height:20px; + padding:0 2px 0 3px; + font:12px Helvetica, Georgia; + border:1px solid #abc6dd; + } +.f-txt-330 { width:325px; } +.sel-200 { + border:1px solid #abc6dd; + height:20px; + padding:0 0 0 3px; + } +.sel-200 { width:200px; } +.default-btn { + font:12px Helvetica, Georgia; + padding:0 5px; + height:22px; + } +.marBtm5 { margin-bottom:5px; } + +ul.tabs { + background:url(pix/tabs-bg.gif) bottom left repeat-x; + z-index:1; + position:relative; + margin:15px 0; + padding-bottom:7px; + } +ul.tabs li { + float:left; + margin-left:5px; + margin-bottom:0; + position:relative; + z-index:2; + } +ul.tabs li a:link, ul.tabs li a:visited { + display:block; + font:14px Helvetica, Georgia; + text-decoration:none; + font-weight:bold; + color:#000; + border:1px solid #e9ecf0; + border-bottom:none; + background:#f6f7f9; + padding:3px 15px; + } +ul.tabs li a:hover { color:#ffa85c; } +ul.tabs li.active a:link, ul.tabs li.active a:visited { + color:#ffa85c; + background:#fff; + cursor:default; + border-bottom:7px solid #fff; + margin-bottom:-7px; + z-index:4; + position:relative; + } +ul.tabs li.tab-help { float:right; } +ul.tabs li.tab-help img { width:16px; height:21px; } +ul.tabs li.tab-help a:link, ul.tabs li.tab-help a:visited { + display:inline; + font:14px Helvetica, Georgia; + text-decoration:none; + font-weight:bold; + color:#000; + border: none; background: none; padding:0; + } + +.member-options { + border-bottom:1px solid #e9ecf0; + padding:12px 0; + } +.member-options .question { + width:390px; + padding-right:20px; + float:left; + line-height:14px; + } +.member-options .answer { + width:203px; + float:left; + } +.m-question { + padding:5px 0; + background:url(pix/question-ic.gif) top left no-repeat; + } +img.aq-ic { width:12px; height:16px; } + + +/*end Member Page*/ + +.error { + color:#d8301b; + background:#faf4f2; + } +.error-message { + color:#d8301b; + font-weight:bold; + padding-top:10px; + } + +/*Private Message*/ +.pm-title { + font-size:16px; + height:28px; + padding:6px 0 0 55px; + background:url(pix/ic-pm.gif) 0 0 no-repeat; + margin:15px 0; + } +.pm-title a:link, a:visited { color:#8a9dae; text-decoration:underline; } +.pm-title a:hover { text-decoration:none; } +.pm-formBox { + border-radius:7px; + -moz-border-radius:7px; + -webkit-border-radius:7px; + background:#aac2ce; + padding:10px 20px; + margin-bottom:15px; + } +textarea.pm-commBox { + border:1px solid #719aae; + width:570px; + margin-bottom:5px; + overflow:auto; + height:50px; + font:12px Helvetica, Georgia; + } +input.s2Btn-315 { + width:315px; + height:22px; + background:url(pix/s2Btn-315.gif); + border:none; + font:12px Helvetica, sans-serif; + color:#1f83c3; + cursor:pointer; + } +.pm-box1 { + position:relative; + float:right; + width:437px; + padding:10px 15px 20px 15px; + background:url(pix/pm-box1-mdl.gif) top left repeat-y; + margin-bottom:30px; + font:12px Helvetica, Georgia; + line-height:15px; + } +.pm-box1-top { + position:absolute; + width:467px; + height:10px; + top:0; + left:0; + background:url(pix/pm-box1-top.gif) no-repeat; + } +.pm-box1-btm { + position:absolute; + width:467px; + height:22px; + bottom:0; + left:0; + background:url(pix/pm-box1-btm.gif) no-repeat; + margin-bottom:-22px; + } +.pm-box1-date { + width:161px; + height:17px; + line-height:17px; + background:url(pix/pm-box1-date.gif) no-repeat; + text-align:center; + color:#fff; + position:absolute; + bottom:-6px; + left:85px; + z-index:5; + } +.pm-box2 { + position:relative; + float:left; + width:417px; + padding:10px 15px 20px 15px; + background:url(pix/pm-box2-mdl.gif) top left repeat-y; + margin-bottom:30px; + font:12px Helvetica, Georgia; + line-height:15px; + color:#bbbbbb; + } +.pm-box2-top { + position:absolute; + width:447px; + height:10px; + top:0; + left:0; + background:url(pix/pm-box2-top.gif) no-repeat; + } +.pm-box2-btm { + position:absolute; + width:447px; + height:22px; + bottom:0; + left:0; + background:url(pix/pm-box2-btm.gif) no-repeat; + margin-bottom:-22px; + } +.pm-box2-date { + width:161px; + height:17px; + line-height:17px; + background:url(pix/pm-box2-date.gif) no-repeat; + text-align:center; + color:#fff; + position:absolute; + bottom:-6px; + left:231px; + z-index:5; + } +.pm-icon { + width:48px; + height:48px; + padding:2px; + border:1px solid #eee; + } +.mp-icon img { width:48px; height:48px; } +/*end Private Message*/ + + + +/*Login pages*/ +.top-btm-links { + font:12px Helvetica, Georgia; + padding-top:5px; + } +.top-btm-links a:link, .top-btm-links a:visited { color:#0052a1; } +.box-650 { + width:650px; + margin:0 auto; + padding:20px 0; + } +.box-650-top { + font:bold 24px Helvetica, Georgia; + color:#464d5c; + padding-bottom:7px; + } +.box-650-top p { float:left; } +.box-650-top a { + float:right; + padding-top:5px; + } +.box-650-content { + background:#eeeeee; + border-top:2px solid #464d5c; + padding:40px 20px 20px 20px; + } +.box-650-content .form-row { + padding-bottom:10px; + } +.box-650-content label { + font:bold 24px Helvetica, Georgia; + padding:0 0 0 0; + width:230px; + display:inline-block; + float:left; + } +.box-650-content p { + width:380px; + float:left; + color:#464d5c; + } +input.field-360 { + border:2px solid #d6d6d6; + width:350px; + height:26px; + padding:3px 0 0 6px; + font:18px Helvetica, sans-serif; + color:#b6b6b6; + } +img.online { + width:24px; + height:26px; + padding:0 6px 0 0; + float:left; + } +.m-online { width:170px; } +select.s-simple { + border-top:1px solid #abadb3; + border-right:1px solid #dbdfe6; + border-bottom:1px solid #e3e9ef; + border-left:1px solid #e2e3ea; + } +input.f-simple { + border-top:1px solid #abadb3; + border-right:1px solid #dbdfe6; + border-bottom:1px solid #e3e9ef; + border-left:1px solid #e2e3ea; + padding:1px 2px 1px 3px; + margin-bottom:10px; + } +input.fw-200 { width:195px; } +img.ok-ic2 { + width:26px; + height:24px; + padding:7px 10px; + float:right; + } +.good { + background-color:#D1FFD1; +} + + +/* FABI */ +/*links rechts Ausrichtung*/ +.linksausgerichtet {BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN-TOP: 0px; FLOAT: left; MARGIN-BOTTOM: 5px; BORDER-LEFT: 0px; MARGIN-RIGHT: 10px; BORDER-BOTTOM: 0px} +.rechtsausgerichtet {BORDER-RIGHT: 0px; BORDER-TOP: 0px; FLOAT: right; MARGIN: 0px 0px 5px 0px; BORDER-LEFT: 0px; MARGIN-LEFT: 10px; BORDER-BOTTOM: 0px} + +/*Infobox*/ +.ro {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_ro.gif) no-repeat right top; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.ru {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_ru.gif) no-repeat right bottom; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.lo {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_lo.gif) no-repeat left top; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.lu {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: url(/image/roundedbox_lu.gif) no-repeat left bottom; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px} +.inhalt {PADDING-RIGHT: 2.5em; PADDING-LEFT: 2.5em; PADDING-BOTTOM: 3.5em; MARGIN: 0px; PADDING-TOP: 2.5em} +.infoboxueber {PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Helvetica, Helvetica, Sans Serif; LETTER-SPACING: 0.1em} + + +.feist { font:30px Helvetica, Georgia;} + +/*LEFT NAV MULTI LEVEL*/ +.menu { + height:120px; + position:relative; + } +.menu ul { + position:relative; + z-index:100000; + padding:0; + margin:0; + list-style-type:none; + width:170px; + } +.menu li { + background:#fff url(pix/sub2.gif) 5px 10px no-repeat; + height:26px; + float:left; + width:170px; + } +.menu li.mm { background-image:none; } +.menu li.sub { + position:relative; + width:170px; + } +.menu li span { + width:13px; + height:10px; + background:url(pix/sub.gif) no-repeat; + position:absolute; + right:0; + top:7px; + font-size:0; + overflow:hidden; + } +.menu table { + position:absolute; + border-collapse:collapse; + top:0; + left:0; + z-index:100000; + } +.menu a, .menu a:visited { + font:12px Helvetica, Helvetica, sans-serif; + display:block; + text-decoration:none; + height:25px; + line-height:25px; + width:160px; + padding-left:10px; + color:#0092e8; + text-indent:5px; + border:1px solid #e4e4e4; + border-width:0 0 1px 0; + } +* html .menu a, * html .menu a:visited { width:170px; w\idth:169px;} +* html .menu li a:hover { + color:#5e5e5e; + background:#fff; + position:relative; + background:#fff url(pix/sub2.gif) 5px 10px no-repeat; + } +* html .menu li.mm a:hover { background:none; } +.menu li:hover { position:relative; } +.menu a:active, .menu a:focus { color:#5e5e5e; } +.menu li:hover > a { color:#5e5e5e; } +.menu li ul { + visibility:hidden; + position:absolute; + top:-30px; + left:100px; + margin:30px; + background:transparent url(pix/transparent.gif); + border:1px solid #d1d1d1; + border-width:1px 2px 2px 1px; + border-radius:0 7px 7px 7px; -moz-border-radius:0 7px 7px 7px; -webkit-border-radius:0 7px 7px 7px; + } +.menu li:hover > ul { visibility:visible; } +.menu ul a:hover ul ul{ visibility:hidden; } +.menu ul a:hover ul a:hover ul ul{ visibility:hidden; } +.menu ul a:hover ul a:hover ul a:hover ul ul { visibility:hidden; } +.menu ul a:hover ul { visibility:visible; } +.menu ul a:hover ul a:hover ul { visibility:visible; } +.menu ul a:hover ul a:hover ul a:hover ul { visibility:visible; } +.menu ul a:hover ul a:hover ul a:hover ul a:hover ul { visibility:visible; } + +/* +span.btm-img { + width:301px; + height:230px; + position:absolute; + bottom:41px; + right:1px; + background:url(pix/btm-img1.gif); + z-index:2; +} +*/ +span.btm-img { + width:301px; + height:230px; + position:absolute; + bottom:-19px; + right:1px; + background:url(pix/btm-img1.gif); + z-index:3; + } + + +/*CHRIS*/ +/*Dicke schrift fuer den Group-Header*/ +.fat-text { font:40px Helvetica, Georgia; vertical-align:middle;} + /*Top News*/ +dl.top-news { + font-size:10px; + line-height:12px; + color:#7c7c7c; + position:relative; + padding-top:10px; + } +dl.top-news dt { + width:80px; + height:70px; + position:relative; + float:left; + } +dl.top-news dd { + position:relative; + float:right; + clear:right; + width:180px; + height:70px; + } +dl.top-news dt img { + width:75px; + height:56px; + padding:1px; + border:1px solid #9e9e9e; + } +dl.top-news dd a:link, dl.top-news dd a:visited { + color:#7c7c7c; + text-decoration:none; + } +dl.top-news dd a:hover { text-decoration:underline; } +dl.top-news dd a:link span, dl.top-news dd a:visited span { + color:#3579a7; + text-decoration:none; + } + +/*News*/ +dl.news { + font-size:11px; + line-height:14px; + color:#7c7c7c; + } +dl.news dt { + width:40px; + float:left; + } +dl.news dd { + float:left; + clear:right; + width:230px; + } +dl.news dd a:link, dl.news dd a:visited { + color:#3579a7; + text-decoration:none; + } +dl.news dd a:hover { text-decoration:underline; } +.ic-55x55 { + text-align:center; + font:28px Helvetica, sans-serif; + color:#121212; + padding-top:10px; + } +.ic-55x55 img { + width:55px; + height:55px; + vertical-align:middle; + } + + + +/*Categories-v2*/ +dl.categories-v2 { + position:relative; + font-family:Helvetica, sans-serif; + position:relative; + z-index:5; + } +dl.categories-v2 dt { + font-size:16px; + font-weight:bold; + padding:5px 0 10px 30px; + margin-top:15px; + } +dl.categories-v2 dd { + font-size:12px; + float:left; + width:122px; + white-space:nowrap; + } +dl.categories-v2 dt.c-ic-8 { background:url(pix/c-ic-8.gif) 0 0 no-repeat; } +dl.categories-v2 dt a:link, dl.categories-v2 dt a:visited { + color:#3579a7; + text-decoration:none; + } +dl.categories-v2 dt a:hover { text-decoration:underline; } + +dl.categories-v2 dd a:link, dl.categories-v2 dd a:visited { + color:#000000; + text-decoration:none; + float:left; + clear:left; + } +dl.categories-v2 dd a:hover { text-decoration:underline; } + + + + + diff --git a/sn_computer/html/· b/sn_computer/html/· new file mode 100644 index 0000000..8782ad8 --- /dev/null +++ b/sn_computer/html/· @@ -0,0 +1,250 @@ +var WortDichte = { + color: [{min:0.01,max:0.015,color:"yellow"},{min:0.025,max:0.03,color:"yellow"},{min:0.015,max:0.025,color:"green"},{min:0.00,max:0.01,color:"red"},{min:0.03,max:1,color:"red"}], + + wdFrame: null, + wdFrameBody: null, + wdElmLst : new Array(), + + wordCount:0, + textBlock:"", + textBlockList: null, + + idKey:null, + idTxt:null, + + tagRemove: false, + wdWordElement:null, + + init: function(idTxt, idKey, tagRemove){ + this.idKey = idKey; + this.idTxt = idTxt; + this.tagRemove = tagRemove; + }, + + parseKeyField: function(id){ + var e = document.getElementById(id); + var noadd = true; + if(e){ + var v = e.value;//.replace(/\r\n/g,'\n'); + var l = v.split(','); + this.wdElmLst = new Array(); + for(var i = 0; i < l.length; i++){ + if(l[i].match(/\w/)){ + var n = this.add(l[i].replace(/(^\s+|\s+$)/g,"")); + noadd = false; + } + } + this.recalc(); + } + if(noadd){this.add();} + }, + + recalc: function(){ + for(var i = 0; i < this.wdElmLst.length; i++){ + this.count(this.wdElmLst[i]); + } + }, + + buildFrame: function(){ + if(this.wdFrame){this.show();return;} + var pt = (((window.innerHeight) ? window.innerHeight: document.body.clientHeight)/2)-200; + var pl = (((window.innerWidth) ? window.innerWidth: document.body.clientWidth)/2)-225; + var pos = "fixed"; + var srl = "auto"; + if(document.all){ + pt += document.body.scrollTop; + pos = "absolute"; + srl = "scroll"; + } + var h = this._buildHTML("DIV","wdFrameHead","background-color:#C0C0C0;font-weight:bold;font-size:larger;padding:3px;border-bottom:1px solid black;"); + var b = this._buildHTML("DIV","wdFrameBody","overflow:"+srl+";min-height:100px;max-height:350px;",""); + var f = this._buildHTML("DIV","wdFrame","display:none;background-color:#EFEFEF;border: solid 3px black;position:"+pos+"; top:"+pt+"px; left:"+pl+"px;width:450px;",h); + var c = this._buildHTML("DIV","wdControl","margin:2px;border-top:1px solid black;"); + c.innerHTML = '' + +'' + +''; + + h.innerHTML = '' + +'Wortdichte'; + + this.wdFrame = f; + this.wdFrameBody = b; + this.wdFrame.appendChild(b); + this.wdFrame.appendChild(c); + + h.onmousedown = function(){ + var p = this.parentNode;var ox,oy; + this.onmouseup = function(){p.onmousemove = function(){}; p.onmouseout = function(){}} + p.onmouseup=this.onmouseup; + var m = function(ev){ + var px = (!ev) ? window.event.clientX : ev.pageX;var py = (!ev) ? window.event.clientY : ev.pageY; + if(!ox){oy = py - parseInt(this.style.top); ox = px - parseInt(this.style.left); } + this.style.left = (px-ox)+"px"; this.style.top = (py-oy)+"px"; + return false; + } + p.onmousemove = m;p.onmouseout = m; + return false; + } + document.getElementsByTagName("body")[0].appendChild(f); + }, + + show: function(b){ + if(!this.wdFrame){this.buildFrame();} + if(b == null || b){ + this._loadTextBlock(this.idTxt); + if(this.idKey){this.parseKeyField(this.idKey);}else{this.add();} + this.wdFrame.style.display = "block"; + + + }else{ + this.wdFrame.style.display = "none"; + } + }, + + reset: function(){ + if(this.idTxt){this._loadTextBlock(this.idTxt);} + if(this.idKey){this.parseKeyField(this.idKey);}else{this.wdElmLst = new Array();this.recalc();} + }, + + _writeElmLst: function(){ + var b = this.wdFrameBody; + + while(b.hasChildNodes()){ + b.removeChild(b.firstChild); + } + + for(var i = 0; i < this.wdElmLst.length; i++){ + b.appendChild(this.wdElmLst[i]); + } + b.scrollTop = b.offsetHeight; + }, + + add: function(txt){ + + if(this.wdElmLst.length > 0){ + var e = this.wdElmLst[this.wdElmLst.length-1]; + var ie = this._getElement(e.firstChild,"wdAdd"); + ie.onclick = function(){WortDichte.remove(this)}; + ie.value = "-"; + } + + var d = this._buildHTML("DIV","wdWordElement","padding:2px;border-bottom:solid 1px black;"); + + if(!txt){txt = "";} + d.innerHTML = ''; + this.wdElmLst.push(d); + var func = this.add; + this._getElement(d.firstChild,"wdAdd").onclick = function(){WortDichte.add()}; + var tfi = this._getElement(d.firstChild,"wdWordInput") + tfi.onkeyup = function(){WortDichte.count(this.parentNode)}; + tfi.focus(); + this._writeElmLst(); + return d; + }, + + remove: function(n){ + var node = n.parentNode; + for(var i = 0; i < this.wdElmLst.length; i++){ + if(this.wdElmLst[i] === node){this.wdElmLst.splice(i,1)} + } + this._writeElmLst(); + }, + + _getElement: function(node,name,r){ + var n = node; + while(n != null){ + var a = n.getAttribute("name", "false"); + + if(a && a == name){ + return n; + } + if(r && n.hasChildNodes()){ + var res = this._getElement(n.firstChild,name,r); + if(res){ return res;} + + } + n = n.nextSibling; + } + + return null; + }, + + _buildHTML: function(t, id, s, c){ + var n = document.createElement(t); + var ai = document.createAttribute("name"); + ai.nodeValue = id; + +// var as = document.createAttribute("style"); +// as.nodeValue = s; + n.setAttributeNode(ai); +// n.setAttributeNode(as); + n.style.cssText = s; + if(c){ + if(typeof c == 'object'){ + n.appendChild(c); + }else{ + n.appendChild(document.createTextNode(c)); + } + } + return n; + }, + + count: function(node){ + +if(!node.hasChildNodes()){return;}; + var n = node.firstChild; + + var txtField = this._getElement(n,"wdWordInput"); + var res = this._getElement(n,"wdCountResult"); + + var text = txtField.value.replace(/(^\s+|\s+$)/g,""); + + var color = ""; + var out = ""; + + if(text != ""){ + var re = new RegExp('\\b'+text+'\\b','gi'); + var found = this.textBlock.match(re); + var count = found ? found.length: 0; + var pctf = count / this.wordCount; + var pct = ""+(pctf*100); + pct = pct.substr(0,pct.indexOf(".")+3); + out = count+"x ("+pct+"%)"; + for(var e in this.color){ + var o = this.color[e]; + if(pctf >= o.min && pctf <= o.max){color = o.color;} + } + } + res.parentNode.style.backgroundColor = color; + res.innerHTML = out; + }, + + apply: function(){ + var out = ""; + for(var i = 0; i < this.wdElmLst.length; i++){ + var v = this._getElement(this.wdElmLst[i].firstChild,"wdWordInput").value.replace(/(^\s+|\s+$)/g,""); + if(v.match(/\w/)){ + out += ((i>0)?", ":"")+v; + } + } + document.getElementById(this.idKey).value = out; + this.show(0); + }, + + _loadTextBlock: function(id){ + if((typeof tinyMCE != "undefined") && tinyMCE.get(id) && !tinyMCE.get(id).isHidden()){ + this.textBlock = tinyMCE.get(id).getContent().replace(/
    /g,"\n"); + if(this.tagRemove){this.textBlock = this.textBlock.replace(/<.+?>/g," ");} + }else{ + this.textBlock = document.getElementById(id).value; + if(this.tagRemove){this.textBlock = this.textBlock.replace(/\[.+?\]/g,"");} + } + this.textBlock = this.textBlock.replace(/(^\s+|\s+$)/g,'').replace(/[.;-?=!, \r\n\t]+/gi,' '); + this.textBlockList = this.textBlock.split(' '); + this.wordCount = this.textBlockList.length; + if(this.wdFrame){ + this._getElement(this.wdFrame.firstChild,"wdFrameHeadText", true).innerHTML = "Wortdichte ("+this.wordCount+" wörter)"; + } + } + +} \ No newline at end of file diff --git a/sn_computer/livelogs b/sn_computer/livelogs new file mode 100644 index 0000000..e69de29 diff --git a/sn_computer/mail/sn_mailbase.html b/sn_computer/mail/sn_mailbase.html new file mode 100644 index 0000000..a27ed45 --- /dev/null +++ b/sn_computer/mail/sn_mailbase.html @@ -0,0 +1,6 @@ +Mime-Version: 1.0 +Content-Type: text/html; charset=utf-8 +Subject: +From: +To: + diff --git a/sn_computer/mail/sn_newuser.html b/sn_computer/mail/sn_newuser.html new file mode 100644 index 0000000..ab17e19 --- /dev/null +++ b/sn_computer/mail/sn_newuser.html @@ -0,0 +1,25 @@ +Hallo , + + +Herzlich Willkommen! + +Sie haben sich erfolgreich angemeldet. +Klicken Sie zur Aktivierung Ihres Accounts auf folgenden Link: + + + +Falls sich kein Browserfenster öffnet, kopieren Sie die URL in die Adresszeile Ihres Browsers. + +Ihre Zugangdaten lauten: + +Nickname: +Passwort: + + +Mit diesen Zugangsdaten können Sie sich alternativ unter: + + + +anmelden. + +Viel Spass und Erfolg! diff --git a/sn_computer/mail/sn_nickchange.html b/sn_computer/mail/sn_nickchange.html new file mode 100644 index 0000000..22e1980 --- /dev/null +++ b/sn_computer/mail/sn_nickchange.html @@ -0,0 +1,20 @@ +Hallo , + +Aus technischen Gr�nden haben wir Ihren 'Nickname' +von + + in + +ge�ndert. Die Konvertierung l�uft bei ihrem n�chsten Besuch im + automatisch ab. + +Falls es trozdem Probleme beim Login geben sollte oder sie ihren +neuen 'Nickname' ge�ndert haben m�chten, schicken Sie einfach eine eMail an: + +service@.de + +Mit freundlichen Gr��en + +ihr Team + + diff --git a/sn_computer/mail/sn_passwd.html b/sn_computer/mail/sn_passwd.html new file mode 100644 index 0000000..8cda387 --- /dev/null +++ b/sn_computer/mail/sn_passwd.html @@ -0,0 +1,8 @@ +Hallo , + +Ihr Passwort lautet: + + + +Sie können sich mit diesem Passwort unte/e/member_login einloggen. + diff --git a/sn_computer/mail/sn_replymail.html b/sn_computer/mail/sn_replymail.html new file mode 100644 index 0000000..0d02260 --- /dev/null +++ b/sn_computer/mail/sn_replymail.html @@ -0,0 +1,16 @@ +Neue Antworten für '' + +Hallo , + +Auf die Anfrage '' sind unter + + + +neue Antworten verfügbar. + +_____________________________________________________ + +zum abbestellen der Benachrichtigungen bitte folgenden +Link klicken: + + diff --git a/sn_templates/.webprj b/sn_templates/.webprj new file mode 100644 index 0000000..29a14af --- /dev/null +++ b/sn_templates/.webprj @@ -0,0 +1,10 @@ + + + + + + + -//W3C//DTD HTML 4.01 Transitional//EN + + + diff --git a/sn_templates/ajax/jquery-1.3.2.min.js b/sn_templates/ajax/jquery-1.3.2.min.js new file mode 100644 index 0000000..d7db7bf --- /dev/null +++ b/sn_templates/ajax/jquery-1.3.2.min.js @@ -0,0 +1,53 @@ +/* + * jQuery JavaScript Library v1.3.2 + * + * Copyright (c) 2009 John Resig, http://jquery.com/ + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) + * Revision: 6246 + */ +(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
    "]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
    ","
    "]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); +/* + * Sizzle CSS Selector Engine - v0.9.3 + * Copyright 2009, The Dojo Foundation + * More information: http://sizzlejs.com/ + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + */ +(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

    ";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
    ";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
    ").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
    ';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/sn_templates/ajax/jquery-ui-1.7.1.custom.css b/sn_templates/ajax/jquery-ui-1.7.1.custom.css new file mode 100644 index 0000000..995f028 --- /dev/null +++ b/sn_templates/ajax/jquery-ui-1.7.1.custom.css @@ -0,0 +1,429 @@ +/* +* jQuery UI CSS Framework +* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +*/ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute; left: -99999999px; } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.ui-helper-clearfix { display: inline-block; } +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { height:1%; } +.ui-helper-clearfix { display:block; } +/* end clearfix */ +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } + +/* +* jQuery UI CSS Framework +* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px +*/ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; } +.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(/images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; } +.ui-widget-content a { color: #222222; } +.ui-widget-header { border: 1px solid #ffe45c; background: #ffe45c url(/images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; } +.ui-widget-header a { color: #222222; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(/images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; outline: none; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; outline: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #ffe45c; background: #fffdeb url(/images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; } +.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; outline: none; } +.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(/images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; outline: none; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; outline: none; text-decoration: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(/images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #363636; } +.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(/images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; } +.ui-state-error a, .ui-widget-content .ui-state-error a { color: #cd0a0a; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(/images/ui-icons_222222_256x240.png); } +.ui-widget-content .ui-icon {background-image: url(/images/ui-icons_222222_256x240.png); } +.ui-widget-header .ui-icon {background-image: url(/images/ui-icons_222222_256x240.png); } +.ui-state-default .ui-icon { background-image: url(/images/ui-icons_888888_256x240.png); } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(/images/ui-icons_454545_256x240.png); } +.ui-state-active .ui-icon {background-image: url(/images/ui-icons_454545_256x240.png); } +.ui-state-highlight .ui-icon {background-image: url(/images/ui-icons_2e83ff_256x240.png); } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(/images/ui-icons_cd0a0a_256x240.png); } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius +.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; } +.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; } +.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; } +.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; } +.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; } +.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; } +.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; } +.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; } +.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; } +*/ +/* Overlays */ +.ui-widget-overlay { background: #aaaaaa url(/images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); } +.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(/images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }/* Accordion +----------------------------------*/ +.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } +.ui-accordion .ui-accordion-li-fix { display: inline; } +.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } +.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 2.2em; } +.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } +.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; } +.ui-accordion .ui-accordion-content-active { display: block; }/* Datepicker +----------------------------------*/ +.ui-datepicker { width: 17em; padding: .2em .2em 0; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; } +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +}/* Dialog +----------------------------------*/ +.ui-dialog { position: relative; padding: .4em; width: 300px; border: none; background: none; } +.ui-dialog .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 0 .2em; } +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } +.ui-dialog .ui-dialog-content { border: 0; /*padding: .5em 1em;*/ background: none; overflow: auto; zoom: 1; } +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } +.ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; } +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } +.ui-draggable .ui-dialog-titlebar { cursor: move; } +/* Progressbar +----------------------------------*/ +.ui-progressbar { height:2em; text-align: left; } +.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* Resizable +----------------------------------*/ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* Slider +----------------------------------*/ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; }/* Tabs +----------------------------------*/ +.ui-tabs { padding: .2em; zoom: 1; } +.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; } +.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; } +.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; } +.ui-tabs .ui-tabs-hide { display: none !important; } +/* Popup +----------------------------------*/ +.pop-lt { position: relative; left: -7px; padding:10px 3px 0 10px; background: url(/images/ui-bg-pop.png) 0 0 no-repeat; } +.pop-rt { position: relative; top: -7px; left: 7px; background: url(/images/ui-bg-pop.png) 100% 0 no-repeat; } +.pop-lb { position: relative; left: -7px; background: url(/images/ui-bg-pop.png) 0 100% no-repeat; } +.pop-rb { position: relative; left: 4px; top: 4px; background: url(/images/ui-bg-pop.png) 100% 100% no-repeat; } +* html .pop-lt, * html .pop-rt, * html .pop-rb, * html .pop-lb { height: 100% !important; } + +/* Results +----------------------------------*/ +.ac_results { padding: 0px; border: 1px solid #FFE45C; background-color: white; overflow: hidden; z-index: 99999; } +.ac_results ul { width: 100%; list-style-position: outside; list-style: none; padding: 0; margin: 0; } +.ac_results li { margin: 0px; padding: 2px 5px; cursor: default; display: block; + /* + if width will be 100% horizontal scrollbar will apear + when scroll mode will be used + */ + /*width: 100%;*/ + font: menu; font-size: 12px; + /* + it is very important, if line-height not setted or setted + in relative units scroll will be broken in firefox + */ + line-height: 16px; overflow: hidden; } +.ac_odd { background-color: #fffff8; } \ No newline at end of file diff --git a/sn_templates/ajax/jquery-ui-1.7.1.custom.min.js b/sn_templates/ajax/jquery-ui-1.7.1.custom.min.js new file mode 100644 index 0000000..ffb8d1b --- /dev/null +++ b/sn_templates/ajax/jquery-ui-1.7.1.custom.min.js @@ -0,0 +1,34 @@ +/* + * jQuery UI 1.7.1 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI + */ jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.1",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/* + * jQuery UI Draggable 1.7.1 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Draggables + * + * Depends: + * ui.core.js + */ (function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.leftthis.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.topthis.containment[3])?g:(!(g-this.offset.click.topthis.containment[2])?f:(!(f-this.offset.click.left
    ').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y")).appendTo(document.body).hide().addClass(a + m.dialogClass).css({ position: "absolute", overflow: "hidden", zIndex: m.zIndex }).attr("tabIndex", -1).css("outline", 0).keydown(function(n) { (m.closeOnEscape && n.keyCode && n.keyCode == c.ui.keyCode.ESCAPE && l.close(n)) }).attr({ role: "dialog", "aria-labelledby": e }).mousedown(function(n) { l.moveToTop(false, n) }),rb = (this.rb = $('
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(lt), i = c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role", "button").hover(function() { i.addClass("ui-state-hover") }, function() { i.removeClass("ui-state-hover") }).focus(function() { i.addClass("ui-state-focus") }).blur(function() { i.removeClass("ui-state-focus") }).mousedown(function(n) { n.stopPropagation() }).click(function(n) { l.close(n); return false }).appendTo(f), h = (this.uiDialogTitlebarCloseText = c("")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i), d = c("").addClass("ui-dialog-title").attr("id", e).html(j).prependTo(f); f.find("*").add(f).disableSelection(); (m.draggable && c.fn.draggable && this._makeDraggable()); (m.resizable && c.fn.resizable && this._makeResizable()); this._createButtons(m.buttons); this._isOpen = false; (m.bgiframe && c.fn.bgiframe && k.bgiframe()); (m.autoOpen && this.open())}, destroy: function() { (this.overlay && this.overlay.destroy()); this.uiDialog.hide(); this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); this.uiDialog.remove(); (this.originalTitle && this.element.attr("title", this.originalTitle)) }, close: function(e) { var d = this; if (false === d._trigger("beforeclose", e)) { return } (d.overlay && d.overlay.destroy()); d.uiDialog.unbind("keypress.ui-dialog"); (d.options.hide ? d.uiDialog.hide(d.options.hide, function() { d._trigger("close", e) }) : d.uiDialog.hide() && d._trigger("close", e)); c.ui.dialog.overlay.resize(); d._isOpen = false }, isOpen: function() { return this._isOpen }, moveToTop: function(f, e) { if ((this.options.modal && !f) || (!this.options.stack && !this.options.modal)) { return this._trigger("focus", e) } if (this.options.zIndex > c.ui.dialog.maxZ) { c.ui.dialog.maxZ = this.options.zIndex } (this.overlay && this.overlay.$el.css("z-index", c.ui.dialog.overlay.maxZ = ++c.ui.dialog.maxZ)); var d = { scrollTop: this.element.attr("scrollTop"), scrollLeft: this.element.attr("scrollLeft") }; this.uiDialog.css("z-index", ++c.ui.dialog.maxZ); this.element.attr(d); this._trigger("focus", e) }, open: function() { if (this._isOpen) { return } var e = this.options, d = this.uiDialog; this.overlay = e.modal ? new c.ui.dialog.overlay(this) : null; (d.next().length && d.appendTo("body")); this._size(); this._position(e.position); d.show(e.show); this.moveToTop(true); (e.modal && d.bind("keypress.ui-dialog", function(h) { if (h.keyCode != c.ui.keyCode.TAB) { return } var g = c(":tabbable", this), i = g.filter(":first")[0], f = g.filter(":last")[0]; if (h.target == f && !h.shiftKey) { setTimeout(function() { i.focus() }, 1) } else { if (h.target == i && h.shiftKey) { setTimeout(function() { f.focus() }, 1) } } })); c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus(); this._trigger("open"); this._isOpen = true }, _createButtons: function(g) { var f = this, d = false, e = c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"); this.uiDialog.find(".ui-dialog-buttonpane").remove(); (typeof g == "object" && g !== null && c.each(g, function() { return !(d = true) })); if (d) { c.each(g, function(h, i) { c('').addClass("ui-state-default ui-corner-all").text(h).click(function() { i.apply(f.element[0], arguments) }).hover(function() { c(this).addClass("ui-state-hover") }, function() { c(this).removeClass("ui-state-hover") }).focus(function() { c(this).addClass("ui-state-focus") }).blur(function() { c(this).removeClass("ui-state-focus") }).appendTo(e) }); e.appendTo(this.uiDialog) } }, _makeDraggable: function() { var d = this, f = this.options, e; this.uiDialog.draggable({ cancel: ".ui-dialog-content", handle: ".ui-dialog-titlebar", containment: "document", start: function() { e = f.height; c(this).height(c(this).height()).addClass("ui-dialog-dragging"); (f.dragStart && f.dragStart.apply(d.element[0], arguments)) }, drag: function() { (f.drag && f.drag.apply(d.element[0], arguments)) }, stop: function() { c(this).removeClass("ui-dialog-dragging").height(e); (f.dragStop && f.dragStop.apply(d.element[0], arguments)); c.ui.dialog.overlay.resize() } }) }, _makeResizable: function(g) { g = (g === undefined ? this.options.resizable : g); var d = this, f = this.options, e = typeof g == "string" ? g : "n,e,s,w,se,sw,ne,nw"; this.uiDialog.resizable({ cancel: ".ui-dialog-content", alsoResize: this.element, maxWidth: f.maxWidth, maxHeight: f.maxHeight, minWidth: f.minWidth, minHeight: f.minHeight, start: function() { c(this).addClass("ui-dialog-resizing"); (f.resizeStart && f.resizeStart.apply(d.element[0], arguments)) }, resize: function() { (f.resize && f.resize.apply(d.element[0], arguments)) }, handles: e, stop: function() { c(this).removeClass("ui-dialog-resizing"); f.height = c(this).height(); f.width = c(this).width(); (f.resizeStop && f.resizeStop.apply(d.element[0], arguments)); c.ui.dialog.overlay.resize() } }).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se") }, _position: function(i) { var e = c(window), f = c(document), g = f.scrollTop(), d = f.scrollLeft(), h = g; if (c.inArray(i, ["center", "top", "right", "bottom", "left"]) >= 0) { i = [i == "right" || i == "left" ? i : "center", i == "top" || i == "bottom" ? i : "middle"] } if (i.constructor != Array) { i = ["center", "middle"] } if (i[0].constructor == Number) { d += i[0] } else { switch (i[0]) { case "left": d += 0; break; case "right": d += e.width() - this.uiDialog.outerWidth(); break; default: case "center": d += (e.width() - this.uiDialog.outerWidth()) / 2 } } if (i[1].constructor == Number) { g += i[1] } else { switch (i[1]) { case "top": g += 0; break; case "bottom": g += e.height() - this.uiDialog.outerHeight(); break; default: case "middle": g += (e.height() - this.uiDialog.outerHeight()) / 2 } } g = Math.max(g, h); this.uiDialog.css({ top: g, left: d }) }, _setData: function(e, f) { (b[e] && this.uiDialog.data(b[e], f)); switch (e) { case "buttons": this._createButtons(f); break; case "closeText": this.uiDialogTitlebarCloseText.text(f); break; case "dialogClass": this.uiDialog.removeClass(this.options.dialogClass).addClass(a + f); break; case "draggable": (f ? this._makeDraggable() : this.uiDialog.draggable("destroy")); break; case "height": this.uiDialog.height(f); break; case "position": this._position(f); break; case "resizable": var d = this.uiDialog, g = this.uiDialog.is(":data(resizable)"); (g && !f && d.resizable("destroy")); (g && typeof f == "string" && d.resizable("option", "handles", f)); (g || this._makeResizable(f)); break; case "title": c(".ui-dialog-title", this.uiDialogTitlebar).html(f || " "); break; case "width": this.uiDialog.width(f); break } c.widget.prototype._setData.apply(this, arguments) }, _size: function() { var e = this.options; this.element.css({ height: 0, minHeight: 0, width: "auto" }); var d = this.uiDialog.css({ height: "auto", width: e.width }).height(); this.element.css({ minHeight: Math.max(e.minHeight - d, 0), height: e.height == "auto" ? "auto" : Math.max(e.height - d, 0) }) } }); c.extend(c.ui.dialog, { version: "1.7.1", defaults: { autoOpen: true, bgiframe: false, buttons: {}, closeOnEscape: true, closeText: "close", dialogClass: "", draggable: true, hide: null, height: "auto", maxHeight: false, maxWidth: false, minHeight: 150, minWidth: 150, modal: false, position: "center", resizable: true, show: null, stack: true, title: "", width: 300, zIndex: 1000 }, getter: "isOpen", uuid: 0, maxZ: 0, getTitleId: function(d) { return "ui-dialog-title-" + (d.attr("id") || ++this.uuid) }, overlay: function(d) { this.$el = c.ui.dialog.overlay.create(d) } }); c.extend(c.ui.dialog.overlay, { instances: [], maxZ: 0, events: c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","), function(d) { return d + ".dialog-overlay" }).join(" "), create: function(e) { if (this.instances.length === 0) { setTimeout(function() { c(document).bind(c.ui.dialog.overlay.events, function(f) { var g = c(f.target).parents(".ui-dialog").css("zIndex") || 0; return (g > c.ui.dialog.overlay.maxZ) }) }, 1); c(document).bind("keydown.dialog-overlay", function(f) { (e.options.closeOnEscape && f.keyCode && f.keyCode == c.ui.keyCode.ESCAPE && e.close(f)) }); c(window).bind("resize.dialog-overlay", c.ui.dialog.overlay.resize) } var d = c("
    ").appendTo(document.body).addClass("ui-widget-overlay").css({ width: this.width(), height: this.height() }); (e.options.bgiframe && c.fn.bgiframe && d.bgiframe()); this.instances.push(d); return d }, destroy: function(d) { this.instances.splice(c.inArray(this.instances, d), 1); if (this.instances.length === 0) { c([document, window]).unbind(".dialog-overlay") } d.remove() }, height: function() { if (c.browser.msie && c.browser.version < 7) { var e = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight); var d = Math.max(document.documentElement.offsetHeight, document.body.offsetHeight); if (e < d) { return c(window).height() + "px" } else { return e + "px" } } else { return c(document).height() + "px" } }, width: function() { if (c.browser.msie && c.browser.version < 7) { var d = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth); var e = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); if (d < e) { return c(window).width() + "px" } else { return d + "px" } } else { return c(document).width() + "px" } }, resize: function() { var d = c([]); c.each(c.ui.dialog.overlay.instances, function() { d = d.add(this) }); d.css({ width: 0, height: 0 }).css({ width: c.ui.dialog.overlay.width(), height: c.ui.dialog.overlay.height() }) } }); c.extend(c.ui.dialog.overlay.prototype, { destroy: function() { c.ui.dialog.overlay.destroy(this.$el) } })})(jQuery); ; \ No newline at end of file diff --git a/sn_templates/ajax/jquery.proposals.js b/sn_templates/ajax/jquery.proposals.js new file mode 100644 index 0000000..dc65260 --- /dev/null +++ b/sn_templates/ajax/jquery.proposals.js @@ -0,0 +1,162 @@ +/* +* jQuery Proposals 1.0.1 +* +* Copyright (c) 2009 Igor Shakhov +* Dual licensed under the MIT (MIT-LICENSE.txt) +* and GPL (GPL-LICENSE.txt) licenses. +* +*/ + +(function($) { + $.fn.proposals = function(options) { + var defaults = { + title: 'Results', + position: 'center', + oneWordUrl: '/ajax_link', + oneWordMethod: 'GET', + fullTextUrl: '/ajax_block', + fullTextMethod: 'POST', + relative: 'none' + } + + var options = $.extend(defaults, options); + + return this.each(function() { + var o = options; + + var $this = this.$this = $(this); + popup = ($this.popup = $('
    ')).hide(); + $this.after(popup); + + if ($.inArray(o.relative, ['top', 'right', 'bottom', 'left']) < 0) { + o.relative = 'none'; + } + + if (o.relative != 'none') { + if (o.position.constructor != Array || o.position[0].constructor != Number) { + o.position = [0, 0]; + } + } + + $this.popup.dialog({ + autoOpen: false, + relative: o.relative + }); + + $this.lastValue = ''; + + $this.keypress(function(e) { + $this.popup.dialog('close'); + + if (e.which == 32) { + var word = $.trim($this.val()); + if (word.length > 0) { + getProposals($this, o.oneWordUrl, false, o.oneWordMethod, o.position, o.relative); + this.focus(); + } + } + }); + + var btn = $("#" + this.$this.attr('btn')); + btn[0].txt = this; + btn.click(function() { + $this.popup.dialog('close'); + this.txt.$this.lastValue = ''; + getProposals(this.txt.$this, o.fullTextUrl, true, o.fullTextMethod, o.position, o.relative); + }); + }); + + $.ui.dialog.defaults.bgiframe = true; + }; + + function getProposals(txt, url, fullSearch, method, position, relative) { + if (fullSearch) { + var value = $.trim(txt.val()); + } else { + var values = $.trim(txt.val()).split(" "); + var value = values[values.length - 1]; + } + if (value.length > 0/* && txt.lastValue != value*/) { + txt.lastValue = value; + + $.ajax({ + type: method, + url: url, + data: fullSearch ? { sn_msgbody: value} : { sn_key: value }, + dataType: "json", + success: function(data) { + var newText = "
    "; + txt.popup.html("

    " + newText + "

    "); + + if (!txt.popup.dialog('isOpen')) { + if (relative != 'none') { + var offset = txt.offset(); + var top = offset.top - $(document).scrollTop() + position[1]; + var left = offset.left - $(document).scrollLeft() + position[0]; + if (relative == 'right') { + position = [left + txt.outerWidth(), top]; + } else if (relative == 'bottom') { + position = [left, top + txt.outerHeight()]; + } else if (relative == 'left' || relative == 'top') { + position = [left, top]; + } + } + txt.popup.dialog('option', 'position', position); + } + txt.popup.dialog('open'); + txt.focus(); + } + } + }); + } else { + txt.focus(); + } + } + + $.fn.proposals.openLink = function(link) { + link += ""; + if ((link.indexOf("http://") < 0) && (link.indexOf("https://") < 0)) { + link = "http://" + link; + } + window.open(link, "_blank"); + } + + $.fn.proposals.insertLink = function(txtId, key, link, onlyFirst) { + var txt = $("#" + txtId); + var linkMatch = "link"; + var textMatch = "text"; + var formatString = "[url=" + linkMatch + "]" + textMatch + "[/url]"; + var currentValue = txt.val(); + var newValue = formatString.replace(linkMatch, link).replace(textMatch, key); + + var re; + if (onlyFirst) { + re = new RegExp("(^|[^\\S])" + key + "((?=[^\\S])|$)", "i"); + } else { + re = new RegExp("(^|[^\\S])" + key + "((?=[^\\S])|$)(?!.*(^|[^\\S])" + key + "((?=[^\\S])|$).*)", "i"); + } + + newValue = currentValue.replace(re, "$1" + newValue); + txt.val(newValue); + txt.focus(); + } +})(jQuery); \ No newline at end of file diff --git a/sn_templates/alternative_sky.html b/sn_templates/alternative_sky.html new file mode 100644 index 0000000..ef4fc5b --- /dev/null +++ b/sn_templates/alternative_sky.html @@ -0,0 +1,15 @@ + + diff --git a/sn_templates/archiv.html b/sn_templates/archiv.html new file mode 100644 index 0000000..cf618c6 --- /dev/null +++ b/sn_templates/archiv.html @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + +
    ARCHIV

    + +07121 +07122 +07123 +07124 +07125 +07126 +07127 +07128 + +07111 +07112 +07113 +07114 +07115 +07116 +07117 +07118 + +07101 +07102 +07103 +07104 +07105 +07106 +07107 +07091 +07092 +07093 +07094 +07095 +07096 +07097 + +07081 +07082 +07083 +07084 +07085 +07086 +07087 + +07071 +07072 +07073 +07074 +07075 +07076 +07077 + +07061 +07062 +07063 +07064 +07065 +07066 +07067 + +07051 +07052 +07053 +07054 +07055 +07056 +07057 +07041 +07042 +07043 +07044 +07045 +07046 +07047 +07031 +07032 +07033 +07034 +07035 +07036 +07037 +07038 +07021 +07022 +07023 +07024 +07025 +07026 +07027 +07028 +07011 +07012 +07013 +07014 +07015 +07016 +07017 +07018 +07019 +0701a + + + + + diff --git a/sn_templates/editor_stuff/de.js b/sn_templates/editor_stuff/de.js new file mode 100644 index 0000000..ed7e708 --- /dev/null +++ b/sn_templates/editor_stuff/de.js @@ -0,0 +1,180 @@ +tinyMCE.addI18n({de:{ +common:{ +edit_confirm:"Wollen Sie diesen Textbereich mit WYSIWYG bearbeiten?", +apply:"\u00DCbernehmen", +insert:"Einf\u00FCgen", +update:"Aktualisieren", +cancel:"Abbrechen", +close:"Schlie\u00DFen", +browse:"Durchsuchen", +class_name:"CSS-Klasse", +not_set:"- unbestimmt -", +clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\nM\u00F6chten Sie mehr \u00FCber dieses Problem erfahren?", +clipboard_no_support:"Wird derzeit in Ihrem Browser nicht unterst\u00FCtzt. Bitte benutzen Sie stattdessen die Tastenk\u00FCrzel.", +popup_blocked:"Leider hat Ihr Popup-Blocker ein Fenster unterbunden, das f\u00FCr den Betrieb dieses Programms n\u00F6tig ist. Bitte deaktivieren Sie den Popup-Blocker f\u00FCr diese Seite.", +invalid_data:"Fehler: Sie haben ung\u00FCltige Werte eingegeben (rot markiert).", +more_colors:"Weitere Farben" +}, +contextmenu:{ +align:"Ausrichtung", +left:"Linksb\u00FCndig", +center:"Zentriert", +right:"Rechtsb\u00FCndig", +full:"Blocksatz" +}, +insertdatetime:{ +date_fmt:"%d.%m.%Y", +time_fmt:"%H:%M:%S", +insertdate_desc:"Datum einf\u00FCgen", +inserttime_desc:"Zeit einf\u00FCgen", +months_long:"Januar,Februar,M\u00E4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember", +months_short:"Jan,Feb,M\u00E4r,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez", +day_long:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag", +day_short:"So,Mo,Di,Mi,Do,Fr,Sa,So" +}, +print:{ +print_desc:"Drucken" +}, +preview:{ +preview_desc:"Vorschau" +}, +directionality:{ +ltr_desc:"Schrift von links nach rechts", +rtl_desc:"Schrift von rechts nach links" +}, +layer:{ +insertlayer_desc:"Neue Ebene einf\u00FCgen", +forward_desc:"Nach vorne holen", +backward_desc:"Nach hinten legen", +absolute_desc:"Absolute Positionierung", +content:"Neue Ebene..." +}, +save:{ +save_desc:"Speichern", +cancel_desc:"Alle \u00C4nderungen verwerfen" +}, +nonbreaking:{ +nonbreaking_desc:"Gesch\u00FCtztes Leerzeichen einf\u00FCgen" +}, +iespell:{ +iespell_desc:"Rechtschreibpr\u00FCfung", +download:"ieSpell konnte nicht gefunden werden. Wollen Sie es installieren?" +}, +advhr:{ +advhr_desc:"Trennlinie" +}, +emotions:{ +emotions_desc:"Smilies" +}, +searchreplace:{ +search_desc:"Suchen", +replace_desc:"Suchen/Ersetzen" +}, +advimage:{ +image_desc:"Bild einf\u00FCgen/ersetzen" +}, +advlink:{ +link_desc:"Link einf\u00FCgen/bearbeiten" +}, +xhtmlxtras:{ +cite_desc:"Quellenangabe", +abbr_desc:"Abk\u00FCrzung", +acronym_desc:"Akronym", +del_desc:"Entfernter Text", +ins_desc:"Eingef\u00FCgter Text", +attribs_desc:"Attribute einf\u00FCgen/bearbeiten" +}, +style:{ +desc:"CSS-Styles bearbeiten" +}, +paste:{ +paste_text_desc:"Als normalen Text einf\u00FCgen", +paste_word_desc:"Mit Formatierungen (aus Word) einf\u00FCgen", +selectall_desc:"Alles ausw\u00E4hlen", +plaintext_mode_sticky:"Einf\u00FCgemodus ist nun \"Nur Text\". Erneut klicken (oder das Einf\u00FCgen aus der Zwischenablage) stellt den Normalmodus wieder her.", +plaintext_mode:"Einf\u00FCgemodus ist nun \"Nur Text\". Erneut klicken stellt den Normalmodus wieder her." +}, +paste_dlg:{ +text_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen.", +text_linebreaks:"Zeilenumbr\u00FCche beibehalten", +word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen." +}, +table:{ +desc:"Tabelle erstellen/bearbeiten", +row_before_desc:"Zeile oberhalb einf\u00FCgen", +row_after_desc:"Zeile unterhalb einf\u00FCgen", +delete_row_desc:"Zeile l\u00F6schen", +col_before_desc:"Spalte links einf\u00FCgen", +col_after_desc:"Spalte rechts einf\u00FCgen", +delete_col_desc:"Spalte l\u00F6schen", +split_cells_desc:"Verbundene Zellen trennen", +merge_cells_desc:"Zellen verbinden", +row_desc:"Eigenschaften der Zeile", +cell_desc:"Eigenschaften der Zelle", +props_desc:"Eigenschaften der Tabelle", +paste_row_before_desc:"Zeile oberhalb aus der Zwischenablage einf\u00FCgen", +paste_row_after_desc:"Zeile unterhalb aus der Zwischenablage einf\u00FCgen", +cut_row_desc:"Zeile ausschneiden", +copy_row_desc:"Zeile kopieren", +del:"Tabelle l\u00F6schen", +row:"Zeile", +col:"Spalte", +cell:"Zelle", +cellprops_delta_width:"150" +}, +autosave:{ +unload_msg:"Ihre \u00C4nderungen werden verloren gehen, wenn Sie die Seite verlassen.", +restore_content:"Automatisch gespeicherten Inhalt wiederherstellen.", +warning_message:"Wenn Sie den Inhalt wiederherstellen, gehen die aktuellen Daten im Editor verloren.\n\nSind sie sicher, dass Sie den Inhalt wiederherstellen m\u00F6chten?" +}, +fullscreen:{ +desc:"Vollbildschirm" +}, +media:{ +desc:"Multimedia einbetten/bearbeiten", +edit:"Multimediaeinbettung bearbeiten" +}, +fullpage:{ +desc:"Dokument-Eigenschaften" +}, +template:{ +desc:"Inhalt aus Vorlage einf\u00FCgen" +}, +visualchars:{ +desc:"Sichtbarkeit der Steuerzeichen an/aus" +}, +spellchecker:{ +desc:"Rechtschreibpr\u00FCfung an/aus", +menu:"Einstellungen der Rechtschreibpr\u00FCfung", +ignore_word:"Wort ignorieren", +ignore_words:"Alle ignorieren", +langs:"Sprachen", +wait:"Bitte warten...", +sug:"Vorschl\u00E4ge", +no_sug:"Keine Vorschl\u00E4ge", +no_mpell:"Keine Rechtschreibfehler gefunden." +}, +pagebreak:{ +desc:"Seitenumbruch einf\u00FCgen" +}, +snstuff:{ +img_desc:"Bild einf\u00FCgen/ersetzen", +lnk_desc:"Link einf\u00FCgen/ersetzen", +code_desc:"Quelltext einf\u00FCgen", +quote_desc:"Zitat einf\u00FCgen", +proposals_desc:"Linkvorschl\u00E4ge einf\u00FCgen", +infobox_desc:"Infobox einf\u00FCgen/bearbeiten", +infoboxhead_desc:"Infobox \u00FCberschrift" +}, +advlist:{ +types:"Typen", +def:"Standard", +lower_alpha:"a. b. c.", +lower_greek:"1. 2. 3.", +lower_roman:"i. ii. iii.", +upper_alpha:"A. B. C.", +upper_roman:"I. II. III.", +circle:"Kreis", +disc:"Punkt", +square:"Quadrat" +}}}); \ No newline at end of file diff --git a/sn_templates/editor_stuff/plugin/advimagescale/editor_plugin.js b/sn_templates/editor_stuff/plugin/advimagescale/editor_plugin.js new file mode 100644 index 0000000..6354ce0 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/advimagescale/editor_plugin.js @@ -0,0 +1,455 @@ +/** + * TinyMCE Advanced Image Resize Helper Plugin + * + * Forces images to maintain aspect ratio while scaling - also optionally enforces + * min/max image dimensions, and appends width/height to the image URL for server-side + * resizing + * + * @author Marc Hodgins + * @link http://www.hodginsmedia.com Hodgins Media Ventures Inc. + * @copyright Copyright (C) 2008 Hodgins Media Ventures Inc., All right reserved. + * @license http://www.opensource.org/licenses/lgpl-3.0.html LGPLv3 + */ +(function() { + + /** + * Stores pre-resize image dimensions + * @var {array} (w,h) + */ + var originalDimensions = new Array(); + + /** + * Stores last dimensions before a resize + * @var {array} (w,h) + */ + var lastDimensions = new Array(); + + /** + * Track mousedown status in editor + * @var {boolean} + */ + var edMouseDown = false; + + tinymce.create('tinymce.plugins.AdvImageScale', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + + + // Watch for mousedown (as a fall through to ensure that prepareImage() definitely + // got called on an image tag before mouseup). + // + // Normally this should have happened via the onPreProcess/onSetContent listeners, but + // for completeness we check once more here in case there are edge cases we've missed. + ed.onMouseDown.add(function(ed, e) { + var el = tinyMCE.activeEditor.selection.getNode(); + if (el.nodeName == 'IMG') { + // prepare image for resizing + prepareImage(ed, e.target); + } + return true; + }); + + // Watch for mouseup (catch image resizes) + ed.onMouseUp.add(function(ed, e) { + var el = tinyMCE.activeEditor.selection.getNode(); + if (el.nodeName == 'IMG') { + // setTimeout is necessary to allow the browser to complete the resize so we have new dimensions + setTimeout(function() { + constrainSize(ed, el); + }, 100); + } + return true; + }); + + /***************************************************** + * ENFORCE CONSTRAINTS ON CONTENT INSERTED INTO EDITOR + *****************************************************/ + + // Catch editor.setContent() events via onPreProcess (because onPreProcess allows us to + // modify the DOM before it is inserted, unlike onSetContent) + ed.onPreProcess.add(function(ed, o) { + if (!o.set) return; // only 'set' operations let us modify the nodes + + // loop in each img node and run constrainSize + tinymce.each(ed.dom.select('img', o.node), function(currentNode) { + constrainSize(ed, currentNode); + }); + }); + + // To be complete, we also need to watch for setContent() calls on the selection object so that + // constraints are enforced (i.e. in case an tag is inserted via mceInsertContent). + // So, catch all insertions using the editor's selection object + ed.onInit.add(function(ed) { + // http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.dom.Selection/onSetContent + ed.selection.onSetContent.add(function(se, o) { + // @todo This seems to grab the entire editor contents - it works but could + // perform poorly on large documents + var currentNode = se.getNode(); + tinymce.each(ed.dom.select('img', currentNode), function (currentNode) { + // IF condition required as tinyMCE inserts 24x24 placeholders uner some conditions + if (currentNode.id != "__mce_tmp") + constrainSize(ed, currentNode); + }); + }); + }); + + /***************************** + * DISALLOW EXTERNAL IMAGE DRAG/DROPS + *****************************/ + // This is a hack. Listening for drag events wasn't working. + // + // Watches for mousedown and mouseup/dragdrop events within the editor. If a mouseup or + // dragdrop occurs in the editor without a preceeding mousedown, we assume it is an external + // dragdrop that should be rejected. + if (ed.getParam('advimagescale_reject_external_dragdrop', true)) { + + // catch mousedowns mouseups and dragdrops (which are basically mouseups too..) + ed.onMouseDown.add(function(e) { edMouseDown = true; }); + ed.onMouseUp.add(function(e) { edMouseDown = false; }); + ed.onInit.add(function(ed, o) { + tinymce.dom.Event.add(ed.getBody().parentNode, 'dragdrop', function(e) { edMouseDown = false; }); + }); + + // watch for drag attempts + var evt = (tinymce.isIE) ? 'dragenter' : 'dragover'; // IE allows dragdrop reject on dragenter (more efficient) + ed.onInit.add(function(ed, o) { + // use parentNode to go above editor content, to cover entire editor area + tinymce.dom.Event.add(ed.getBody().parentNode, evt, function (e) { + if (!edMouseDown) { + // disallow drop + return tinymce.dom.Event.cancel(e); + } + }); + }); + + } + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Advanced Image Resize Helper', + author : 'Marc Hodgins', + authorurl : 'http://www.hodginsmedia.com', + infourl : 'http://code.google.com/p/tinymce-plugin-advimagescale', + version : '1.1.2' + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advimagescale', tinymce.plugins.AdvImageScale); + + /** + * Store image dimensions, pre-resize + * + * @param {object} el HTMLDomNode + */ + function storeDimensions(ed, el) { + var dom = ed.dom; + var elId = dom.getAttrib(el, 'mce_advimageresize_id'); + + // store original dimensions if this is the first resize of this element + if (!originalDimensions[elId]) { + originalDimensions[elId] = lastDimensions[elId] = {width: dom.getAttrib(el, 'width', el.width), height: dom.getAttrib(el, 'height', el.height)}; + } + return true; + } + + /** + * Prepare image for resizing + * Check to see if we've seen this IMG tag before; does tasks such as adding + * unique IDs to image tags, saving "original" image dimensions, etc. + * @param {object} e is optional + */ + function prepareImage(ed, el) { + var dom = ed.dom; + var elId= dom.getAttrib(el, 'mce_advimageresize_id'); + + // is this the first time this image tag has been seen? + if (!elId) { + var elId = ed.dom.uniqueId(); + dom.setAttrib(el, 'mce_advimageresize_id', elId); + storeDimensions(ed, el); + } + + return elId; + } + + /** + * Adjusts width and height to keep within min/max bounds and also maintain aspect ratio + * If mce_noresize attribute is set to image tag, then image resize is disallowed + */ + function constrainSize(ed, el, e) { + var dom = ed.dom; + var elId = prepareImage(ed, el); // also calls storeDimensions + var resized = (dom.getAttrib(el, 'width') != lastDimensions[elId].width || dom.getAttrib(el, 'height') != lastDimensions[elId].height); + + if (!resized) + return; // nothing to do + + // disallow image resize if mce_noresize or the noresize class is set on the image tag + if (dom.getAttrib(el, 'mce_noresize') || dom.hasClass(el, ed.getParam('advimagescale_noresize_class', 'noresize')) || ed.getParam('advimagescale_noresize_all')) { + dom.setAttrib(el, 'width', lastDimensions[elId].width); + dom.setAttrib(el, 'height', lastDimensions[elId].height); + if (tinymce.isGecko) + fixGeckoHandles(ed); + return; + } + + // Both IE7 and Gecko (as of FF3.0.03) has a "expands image by border width" bug before doing anything else + if (ed.getParam('advimagescale_fix_border_glitch', true /* default to true */)) { + fixImageBorderGlitch(ed, el); + storeDimensions(ed, el); // store adjusted dimensions + } + + // filter by regexp so only some images get constrained + var src_filter = ed.getParam('advimagescale_filter_src'); + if (src_filter) { + var r = new RegExp(src_filter); + if (!el.src.match(r)) { + return; // skip this element + } + } + + // allow filtering by classname + var class_filter = ed.getParam('advimagescale_filter_class'); + if (class_filter) { + if (!dom.hasClass(el, class_filter)) { + return; // skip this element, doesn't have the class we want + } + } + + // populate new dimensions object + var newDimensions = { width: dom.getAttrib(el, 'width', el.width), height: dom.getAttrib(el, 'height', el.height) }; + + // adjust w/h to maintain aspect ratio + if (ed.getParam('advimagescale_maintain_aspect_ratio', true /* default to true */)) { + newDimensions = maintainAspect(ed, el, newDimensions.width, newDimensions.height); + } + + // enforce minW/minH/maxW/maxH + newDimensions = checkBoundaries(ed, el, newDimensions.width, newDimensions.height); + + // was an adjustment made? + var adjusted = (dom.getAttrib(el, 'width', el.width) != newDimensions.width || dom.getAttrib(el, 'height', el.height) != newDimensions.height); + + // apply new w/h + if (adjusted) { + dom.setAttrib(el, 'width', newDimensions.width); + dom.setAttrib(el, 'height', newDimensions.height); + if (tinymce.isGecko) fixGeckoHandles(ed); + } + + if (ed.getParam('advimagescale_append_to_url')) { + appendToUri(ed, el, dom.getAttrib(el, 'width', el.width), dom.getAttrib(el, 'height', el.height)); + } + + // was the image resized? + if (lastDimensions[elId].width != dom.getAttrib(el, 'width', el.width) || lastDimensions[elId].height != dom.getAttrib(el, 'height', el.height)) { + // call "image resized" callback (if set) + if (ed.getParam('advimagescale_resize_callback')) { + ed.getParam('advimagescale_resize_callback')(ed, el); + } + } + + // remember "last dimensions" for next time + lastDimensions[elId] = { width: dom.getAttrib(el, 'width', el.width), height: dom.getAttrib(el, 'height', el.height) }; + } + + /** + * Fixes IE7 and Gecko border width glitch + * + * Both "add" the border width to an image after the resize handles have been + * dropped. This reverses it by looking at the "previous" known size and comparing + * to the current size. If they don't match, then a resize has taken place and the browser + * has (probably) messed it up. So, we reverse it. Note, this will probably need to be + * wrapped in a conditional statement if/when each browser fixes this bug. + */ + function fixImageBorderGlitch(ed, el) { + var dom = ed.dom; + var elId = dom.getAttrib(el, 'mce_advimageresize_id'); + var currentWidth = dom.getAttrib(el, 'width', el.width); + var currentHeight= dom.getAttrib(el, 'height', el.height); + var adjusted = false; + + // if current dimensions do not match what we last saw, then a resize has taken place + if (currentWidth != lastDimensions[elId].width) { + var adjustWidth = 0; + + // get computed border left/right widths + adjustWidth += parseInt(dom.getStyle(el, 'borderLeftWidth', 'borderLeftWidth')); + adjustWidth += parseInt(dom.getStyle(el, 'borderRightWidth', 'borderRightWidth')); + + // reset the width height to NOT include these amounts + if (adjustWidth > 0) { + dom.setAttrib(el, 'width', (currentWidth - adjustWidth)); + adjusted = true; + } + } + if (currentHeight != lastDimensions[elId].height) { + var adjustHeight = 0; + + // get computed border top/bottom widths + adjustHeight += parseInt(dom.getStyle(el, 'borderTopWidth', 'borderTopWidth')); + adjustHeight += parseInt(dom.getStyle(el, 'borderBottomWidth', 'borderBottomWidth')); + + if (adjustHeight > 0) { + dom.setAttrib(el, 'height', (currentHeight - adjustHeight)); + adjusted = true; + } + } + if (adjusted && tinymce.isGecko) fixGeckoHandles(ed); + } + + /** + * Fix gecko resize handles glitch + */ + function fixGeckoHandles(ed) { + ed.execCommand('mceRepaint', false); + } + + /** + * Set image dimensions on into a uri as querystring params + */ + function appendToUri(ed, el, w, h) { + var dom = ed.dom; + var uri = dom.getAttrib(el, 'src'); + var wKey = ed.getParam('advimagescale_url_width_key', 'w'); + uri = setQueryParam(uri, wKey, w); + var hKey = ed.getParam('advimagescale_url_height_key', 'h'); + uri = setQueryParam(uri, hKey, h); + + // no need to continue if URL didn't change + if (uri == dom.getAttrib(el, 'src')) { + return; + } + + // trigger image loading callback (if set) + if (ed.getParam('advimagescale_loading_callback')) { + // call loading callback + ed.getParam('advimagescale_loading_callback')(el); + } + // hook image load(ed) callback (if set) + if (ed.getParam('advimagescale_loaded_callback')) { + // hook load event on the image tag to call the loaded callback + tinymce.dom.Event.add(el, 'load', imageLoadedCallback, {el: el, ed: ed}); + } + + // set new src + dom.setAttrib(el, 'src', uri); + } + + /** + * Callback event when an image is (re)loaded + * @param {object} e Event (use e.target or this.el to access element, this.ed to access editor instance) + */ + function imageLoadedCallback(e) { + var el = this.el; // image element + var ed = this.ed; // editor + var callback = ed.getParam('advimagescale_loaded_callback'); // user specified callback + + // call callback, pass img as param + callback(el); + + // remove callback event + tinymce.dom.Event.remove(el, 'load', imageLoadedCallback); + } + + /** + * Sets URL querystring parameters by appending or replacing existing params of same name + */ + function setQueryParam(uri, key, value) { + if (!uri.match(/\?/)) uri += '?'; + if (!uri.match(new RegExp('([\?&])' + key + '='))) { + if (!uri.match(/[&\?]$/)) uri += '&'; + uri += key + '=' + escape(value); + } else { + uri = uri.replace(new RegExp('([\?\&])' + key + '=[^&]*'), '$1' + key + '=' + escape(value)); + } + return uri; + } + + /** + * Returns w/h that maintain aspect ratio + */ + function maintainAspect(ed, el, w, h) { + var elId = ed.dom.getAttrib(el, 'mce_advimageresize_id'); + + // calculate aspect ratio of original so we can maintain it + var ratio = originalDimensions[elId].width / originalDimensions[elId].height; + + // decide which dimension changed more (percentage), because that's the + // one we'll respect (the other we'll adjust to keep aspect ratio) + var lastW = lastDimensions[elId].width; + var lastH = lastDimensions[elId].height; + var deltaW = Math.abs(lastW - w); // absolute + var deltaH = Math.abs(lastH - h); // absolute + var pctW = Math.abs(deltaW / lastW); // percentage + var pctH = Math.abs(deltaH / lastH); // percentage + + if (deltaW || deltaH) { + if (pctW > pctH) { + // width changed more - use that as the locked point and adjust height + return { width: w, height: Math.round(w / ratio) }; + } else { + // height changed more - use that as the locked point and adjust width + return { width: Math.round(h * ratio), height: h }; + } + } + + // nothing changed + return { width: w, height: h }; + } + + /** + * Enforce min/max boundaries + * + * Returns true if an adjustment was made + */ + function checkBoundaries(ed, el, w, h) { + + var elId = ed.dom.getAttrib(el, 'mce_advimageresize_id'); + var maxW = ed.getParam('advimagescale_max_width'); + var maxH = ed.getParam('advimagescale_max_height'); + var minW = ed.getParam('advimagescale_min_width'); + var minH = ed.getParam('advimagescale_min_height'); + var maintainAspect = ed.getParam('advimagescale_maintain_aspect_ratio', true); + var oW = originalDimensions[elId].width; + var oH = originalDimensions[elId].height; + var ratio = oW/oH; + + // max + if (maxW && w > maxW) { + w = maxW; + h = maintainAspect ? Math.round(w / ratio) : h; + } + if (maxH && h > maxH) { + h = maxH; + w = maintainAspect ? Math.round(h * ratio) : w; + } + + // min + if (minW && w < minW) { + w = minW; + h = maintainAspect ? Math.round(w / ratio) : h; + } + if (minH && h < minH) { + h = minH; + w = maintainAspect ? Math.round(h * ratio) : h; + } + + return { width: w, height:h }; + } + +})(); \ No newline at end of file diff --git a/sn_templates/editor_stuff/plugin/advimagescale/editor_plugin_src.js b/sn_templates/editor_stuff/plugin/advimagescale/editor_plugin_src.js new file mode 100644 index 0000000..690a552 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/advimagescale/editor_plugin_src.js @@ -0,0 +1,454 @@ +/** + * TinyMCE Advanced Image Resize Helper Plugin + * + * Forces images to maintain aspect ratio while scaling - also optionally enforces + * min/max image dimensions, and appends width/height to the image URL for server-side + * resizing + * + * @author Marc Hodgins + * @link http://www.hodginsmedia.com Hodgins Media Ventures Inc. + * @copyright Copyright (C) 2008 Hodgins Media Ventures Inc., All right reserved. + * @license http://www.opensource.org/licenses/lgpl-3.0.html LGPLv3 + */ +(function() { + + /** + * Stores pre-resize image dimensions + * @var {array} (w,h) + */ + var originalDimensions = new Array(); + + /** + * Stores last dimensions before a resize + * @var {array} (w,h) + */ + var lastDimensions = new Array(); + + /** + * Track mousedown status in editor + * @var {boolean} + */ + var edMouseDown = false; + + tinymce.create('tinymce.plugins.AdvImageScale', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + + // Watch for mousedown (as a fall through to ensure that prepareImage() definitely + // got called on an image tag before mouseup). + // + // Normally this should have happened via the onPreProcess/onSetContent listeners, but + // for completeness we check once more here in case there are edge cases we've missed. + ed.onMouseDown.add(function(ed, e) { + var el = tinyMCE.activeEditor.selection.getNode(); + if (el.nodeName == 'IMG') { + // prepare image for resizing + prepareImage(ed, e.target); + } + return true; + }); + + // Watch for mouseup (catch image resizes) + ed.onMouseUp.add(function(ed, e) { + var el = tinyMCE.activeEditor.selection.getNode(); + if (el.nodeName == 'IMG') { + // setTimeout is necessary to allow the browser to complete the resize so we have new dimensions + setTimeout(function() { + constrainSize(ed, el); + }, 100); + } + return true; + }); + + /***************************************************** + * ENFORCE CONSTRAINTS ON CONTENT INSERTED INTO EDITOR + *****************************************************/ + + // Catch editor.setContent() events via onPreProcess (because onPreProcess allows us to + // modify the DOM before it is inserted, unlike onSetContent) + ed.onPreProcess.add(function(ed, o) { + if (!o.set) return; // only 'set' operations let us modify the nodes + + // loop in each img node and run constrainSize + tinymce.each(ed.dom.select('img', o.node), function(currentNode) { + constrainSize(ed, currentNode); + }); + }); + + // To be complete, we also need to watch for setContent() calls on the selection object so that + // constraints are enforced (i.e. in case an tag is inserted via mceInsertContent). + // So, catch all insertions using the editor's selection object + ed.onInit.add(function(ed) { + // http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.dom.Selection/onSetContent + ed.selection.onSetContent.add(function(se, o) { + // @todo This seems to grab the entire editor contents - it works but could + // perform poorly on large documents + var currentNode = se.getNode(); + tinymce.each(ed.dom.select('img', currentNode), function (currentNode) { + // IF condition required as tinyMCE inserts 24x24 placeholders uner some conditions + if (currentNode.id != "__mce_tmp") + constrainSize(ed, currentNode); + }); + }); + }); + + /***************************** + * DISALLOW EXTERNAL IMAGE DRAG/DROPS + *****************************/ + // This is a hack. Listening for drag events wasn't working. + // + // Watches for mousedown and mouseup/dragdrop events within the editor. If a mouseup or + // dragdrop occurs in the editor without a preceeding mousedown, we assume it is an external + // dragdrop that should be rejected. + if (ed.getParam('advimagescale_reject_external_dragdrop', true)) { + + // catch mousedowns mouseups and dragdrops (which are basically mouseups too..) + ed.onMouseDown.add(function(e) { edMouseDown = true; }); + ed.onMouseUp.add(function(e) { edMouseDown = false; }); + ed.onInit.add(function(ed, o) { + tinymce.dom.Event.add(ed.getBody().parentNode, 'dragdrop', function(e) { edMouseDown = false; }); + }); + + // watch for drag attempts + var evt = (tinymce.isIE) ? 'dragenter' : 'dragover'; // IE allows dragdrop reject on dragenter (more efficient) + ed.onInit.add(function(ed, o) { + // use parentNode to go above editor content, to cover entire editor area + tinymce.dom.Event.add(ed.getBody().parentNode, evt, function (e) { + if (!edMouseDown) { + // disallow drop + return tinymce.dom.Event.cancel(e); + } + }); + }); + + } + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Advanced Image Resize Helper', + author : 'Marc Hodgins', + authorurl : 'http://www.hodginsmedia.com', + infourl : 'http://code.google.com/p/tinymce-plugin-advimagescale', + version : '1.1.2' + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advimagescale', tinymce.plugins.AdvImageScale); + + /** + * Store image dimensions, pre-resize + * + * @param {object} el HTMLDomNode + */ + function storeDimensions(ed, el) { + var dom = ed.dom; + var elId = dom.getAttrib(el, 'mce_advimageresize_id'); + + // store original dimensions if this is the first resize of this element + if (!originalDimensions[elId]) { + originalDimensions[elId] = lastDimensions[elId] = {width: dom.getAttrib(el, 'width', el.width), height: dom.getAttrib(el, 'height', el.height)}; + } + return true; + } + + /** + * Prepare image for resizing + * Check to see if we've seen this IMG tag before; does tasks such as adding + * unique IDs to image tags, saving "original" image dimensions, etc. + * @param {object} e is optional + */ + function prepareImage(ed, el) { + var dom = ed.dom; + var elId= dom.getAttrib(el, 'mce_advimageresize_id'); + + // is this the first time this image tag has been seen? + if (!elId) { + var elId = ed.dom.uniqueId(); + dom.setAttrib(el, 'mce_advimageresize_id', elId); + storeDimensions(ed, el); + } + + return elId; + } + + /** + * Adjusts width and height to keep within min/max bounds and also maintain aspect ratio + * If mce_noresize attribute is set to image tag, then image resize is disallowed + */ + function constrainSize(ed, el, e) { + var dom = ed.dom; + var elId = prepareImage(ed, el); // also calls storeDimensions + var resized = (dom.getAttrib(el, 'width') != lastDimensions[elId].width || dom.getAttrib(el, 'height') != lastDimensions[elId].height); + + if (!resized) + return; // nothing to do + + // disallow image resize if mce_noresize or the noresize class is set on the image tag + if (dom.getAttrib(el, 'mce_noresize') || dom.hasClass(el, ed.getParam('advimagescale_noresize_class', 'noresize')) || ed.getParam('advimagescale_noresize_all')) { + dom.setAttrib(el, 'width', lastDimensions[elId].width); + dom.setAttrib(el, 'height', lastDimensions[elId].height); + if (tinymce.isGecko) + fixGeckoHandles(ed); + return; + } + + // Both IE7 and Gecko (as of FF3.0.03) has a "expands image by border width" bug before doing anything else + if (ed.getParam('advimagescale_fix_border_glitch', true /* default to true */)) { + fixImageBorderGlitch(ed, el); + storeDimensions(ed, el); // store adjusted dimensions + } + + // filter by regexp so only some images get constrained + var src_filter = ed.getParam('advimagescale_filter_src'); + if (src_filter) { + var r = new RegExp(src_filter); + if (!el.src.match(r)) { + return; // skip this element + } + } + + // allow filtering by classname + var class_filter = ed.getParam('advimagescale_filter_class'); + if (class_filter) { + if (!dom.hasClass(el, class_filter)) { + return; // skip this element, doesn't have the class we want + } + } + + // populate new dimensions object + var newDimensions = { width: dom.getAttrib(el, 'width', el.width), height: dom.getAttrib(el, 'height', el.height) }; + + // adjust w/h to maintain aspect ratio + if (ed.getParam('advimagescale_maintain_aspect_ratio', true /* default to true */)) { + newDimensions = maintainAspect(ed, el, newDimensions.width, newDimensions.height); + } + + // enforce minW/minH/maxW/maxH + newDimensions = checkBoundaries(ed, el, newDimensions.width, newDimensions.height); + + // was an adjustment made? + var adjusted = (dom.getAttrib(el, 'width', el.width) != newDimensions.width || dom.getAttrib(el, 'height', el.height) != newDimensions.height); + + // apply new w/h + if (adjusted) { + dom.setAttrib(el, 'width', newDimensions.width); + dom.setAttrib(el, 'height', newDimensions.height); + if (tinymce.isGecko) fixGeckoHandles(ed); + } + + if (ed.getParam('advimagescale_append_to_url')) { + appendToUri(ed, el, dom.getAttrib(el, 'width', el.width), dom.getAttrib(el, 'height', el.height)); + } + + // was the image resized? + if (lastDimensions[elId].width != dom.getAttrib(el, 'width', el.width) || lastDimensions[elId].height != dom.getAttrib(el, 'height', el.height)) { + // call "image resized" callback (if set) + if (ed.getParam('advimagescale_resize_callback')) { + ed.getParam('advimagescale_resize_callback')(ed, el); + } + } + + // remember "last dimensions" for next time + lastDimensions[elId] = { width: dom.getAttrib(el, 'width', el.width), height: dom.getAttrib(el, 'height', el.height) }; + } + + /** + * Fixes IE7 and Gecko border width glitch + * + * Both "add" the border width to an image after the resize handles have been + * dropped. This reverses it by looking at the "previous" known size and comparing + * to the current size. If they don't match, then a resize has taken place and the browser + * has (probably) messed it up. So, we reverse it. Note, this will probably need to be + * wrapped in a conditional statement if/when each browser fixes this bug. + */ + function fixImageBorderGlitch(ed, el) { + var dom = ed.dom; + var elId = dom.getAttrib(el, 'mce_advimageresize_id'); + var currentWidth = dom.getAttrib(el, 'width', el.width); + var currentHeight= dom.getAttrib(el, 'height', el.height); + var adjusted = false; + + // if current dimensions do not match what we last saw, then a resize has taken place + if (currentWidth != lastDimensions[elId].width) { + var adjustWidth = 0; + + // get computed border left/right widths + adjustWidth += parseInt(dom.getStyle(el, 'borderLeftWidth', 'borderLeftWidth')); + adjustWidth += parseInt(dom.getStyle(el, 'borderRightWidth', 'borderRightWidth')); + + // reset the width height to NOT include these amounts + if (adjustWidth > 0) { + dom.setAttrib(el, 'width', (currentWidth - adjustWidth)); + adjusted = true; + } + } + if (currentHeight != lastDimensions[elId].height) { + var adjustHeight = 0; + + // get computed border top/bottom widths + adjustHeight += parseInt(dom.getStyle(el, 'borderTopWidth', 'borderTopWidth')); + adjustHeight += parseInt(dom.getStyle(el, 'borderBottomWidth', 'borderBottomWidth')); + + if (adjustHeight > 0) { + dom.setAttrib(el, 'height', (currentHeight - adjustHeight)); + adjusted = true; + } + } + if (adjusted && tinymce.isGecko) fixGeckoHandles(ed); + } + + /** + * Fix gecko resize handles glitch + */ + function fixGeckoHandles(ed) { + ed.execCommand('mceRepaint', false); + } + + /** + * Set image dimensions on into a uri as querystring params + */ + function appendToUri(ed, el, w, h) { + var dom = ed.dom; + var uri = dom.getAttrib(el, 'src'); + var wKey = ed.getParam('advimagescale_url_width_key', 'w'); + uri = setQueryParam(uri, wKey, w); + var hKey = ed.getParam('advimagescale_url_height_key', 'h'); + uri = setQueryParam(uri, hKey, h); + + // no need to continue if URL didn't change + if (uri == dom.getAttrib(el, 'src')) { + return; + } + + // trigger image loading callback (if set) + if (ed.getParam('advimagescale_loading_callback')) { + // call loading callback + ed.getParam('advimagescale_loading_callback')(el); + } + // hook image load(ed) callback (if set) + if (ed.getParam('advimagescale_loaded_callback')) { + // hook load event on the image tag to call the loaded callback + tinymce.dom.Event.add(el, 'load', imageLoadedCallback, {el: el, ed: ed}); + } + + // set new src + dom.setAttrib(el, 'src', uri); + } + + /** + * Callback event when an image is (re)loaded + * @param {object} e Event (use e.target or this.el to access element, this.ed to access editor instance) + */ + function imageLoadedCallback(e) { + var el = this.el; // image element + var ed = this.ed; // editor + var callback = ed.getParam('advimagescale_loaded_callback'); // user specified callback + + // call callback, pass img as param + callback(el); + + // remove callback event + tinymce.dom.Event.remove(el, 'load', imageLoadedCallback); + } + + /** + * Sets URL querystring parameters by appending or replacing existing params of same name + */ + function setQueryParam(uri, key, value) { + if (!uri.match(/\?/)) uri += '?'; + if (!uri.match(new RegExp('([\?&])' + key + '='))) { + if (!uri.match(/[&\?]$/)) uri += '&'; + uri += key + '=' + escape(value); + } else { + uri = uri.replace(new RegExp('([\?\&])' + key + '=[^&]*'), '$1' + key + '=' + escape(value)); + } + return uri; + } + + /** + * Returns w/h that maintain aspect ratio + */ + function maintainAspect(ed, el, w, h) { + var elId = ed.dom.getAttrib(el, 'mce_advimageresize_id'); + + // calculate aspect ratio of original so we can maintain it + var ratio = originalDimensions[elId].width / originalDimensions[elId].height; + + // decide which dimension changed more (percentage), because that's the + // one we'll respect (the other we'll adjust to keep aspect ratio) + var lastW = lastDimensions[elId].width; + var lastH = lastDimensions[elId].height; + var deltaW = Math.abs(lastW - w); // absolute + var deltaH = Math.abs(lastH - h); // absolute + var pctW = Math.abs(deltaW / lastW); // percentage + var pctH = Math.abs(deltaH / lastH); // percentage + + if (deltaW || deltaH) { + if (pctW > pctH) { + // width changed more - use that as the locked point and adjust height + return { width: w, height: Math.round(w / ratio) }; + } else { + // height changed more - use that as the locked point and adjust width + return { width: Math.round(h * ratio), height: h }; + } + } + + // nothing changed + return { width: w, height: h }; + } + + /** + * Enforce min/max boundaries + * + * Returns true if an adjustment was made + */ + function checkBoundaries(ed, el, w, h) { + + var elId = ed.dom.getAttrib(el, 'mce_advimageresize_id'); + var maxW = ed.getParam('advimagescale_max_width'); + var maxH = ed.getParam('advimagescale_max_height'); + var minW = ed.getParam('advimagescale_min_width'); + var minH = ed.getParam('advimagescale_min_height'); + var maintainAspect = ed.getParam('advimagescale_maintain_aspect_ratio', true); + var oW = originalDimensions[elId].width; + var oH = originalDimensions[elId].height; + var ratio = oW/oH; + + // max + if (maxW && w > maxW) { + w = maxW; + h = maintainAspect ? Math.round(w / ratio) : h; + } + if (maxH && h > maxH) { + h = maxH; + w = maintainAspect ? Math.round(h * ratio) : w; + } + + // min + if (minW && w < minW) { + w = minW; + h = maintainAspect ? Math.round(w / ratio) : h; + } + if (minH && h < minH) { + h = minH; + w = maintainAspect ? Math.round(h * ratio) : h; + } + + return { width: w, height:h }; + } + +})(); \ No newline at end of file diff --git a/sn_templates/editor_stuff/plugin/bbcode/editor_plugin.js b/sn_templates/editor_stuff/plugin/bbcode/editor_plugin.js new file mode 100644 index 0000000..1d25f43 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/bbcode/editor_plugin.js @@ -0,0 +1,337 @@ +/** + * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ + * + * @author Moxiecode + * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function() { + tinymce.create('tinymce.plugins.BBCodePlugin', { + init : function(ed, url) { + var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = t['_' + dialect + '_bbcode2html'](o.content); + }); + + ed.onSaveContent.add(function(ed, o) { + o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t['_' + dialect + '_bbcode2html'](o.content); + +// if (o.get) +// o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + }, + + getInfo : function() { + return { + longname : 'BBCode Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + // HTML -> BBCode in PunBB dialect + _punbb_html2bbcode : function(s) { +// alert("html2bbcode"); + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + +// rep(/(.*?>)[\n|\r]/g,"$1"); + rep(/[\n\r]{0,1}(<(ol|ul).*?>)[\n\r]{0,1}/g,"$1"); + rep(/(<\/(ul|ol|li)>)[\n\r]/g,"$1"); + + // bbcode of img for sn article + while(/()/.test(s)){ + var _res = RegExp.$1; + var _typ = RegExp.$2; + var _rpl = ""; + + if(_typ == 'snVideo'){ + var _w = /width=\"(.*?)\"/.test(_res) ? RegExp.$1+';':''; + var _h = /height=\"(.*?)\"/.test(_res) ? RegExp.$1+';':''; + var _p = /alt=\"(.*?)\"/.test(_res) ? RegExp.$1:''; + var _v = /title=\"(.*?)\"/.test(_res) ? RegExp.$1+';':''; + _rpl = '[video='+_v+_w+_h+_p+']'; + } else{ + var _p = (/src=\"(.*?)\"/.test(_res) ? RegExp.$1:'').split('/').pop(); + var _f = (/alt=\"(.*?)\"/.test(_res) ? RegExp.$1:'').split('/').pop(); + var _s = (/style=\"float:(.*?);\"/.test(_res) ? RegExp.$1:'').replace(/ /g,''); + var _i = 'img'; + switch(_s){ + case 'left': + _i = 'imgl'; + break; + case 'right': + _i = 'imgr'; + break; + + } + _rpl = '['+_i+'='+_f+']'+_p+'[/'+_i+']'; + } + + s = s.replace(_res,_rpl); + } + + ////// + + // replace list html-codeStyle + var rl = new Array(); + rl[0] = {o:"[list]",c:"[/list]",f:/
      /}; + rl[1] = {o:"[list=d]",c:"[/list]",f:/
        /}; + rl[2] = {o:"[list=c]",c:"[/list]",f:/
          /}; + rl[3] = {o:"[list=s]",c:"[/list]",f:/
            /}; + + rl[4] = {o:"[list=i]",c:"[/list]",f:/
              /}; + rl[5] = {o:"[list=I]",c:"[/list]",f:/
                /}; + rl[6] = {o:"[list=a]",c:"[/list]",f:/
                  /}; + rl[7] = {o:"[list=A]",c:"[/list]",f:/
                    /}; + rl[8] = {o:"[list=1]",c:"[/list]",f:/
                      /}; + rl[9] = {o:"[list=1]",c:"[/list]",f:/
                        /}; + + + var cl = new Array(); + do{ + var p = s.search(/<\/ol>|<\/ul>/); + var re = ""; + + for(var i = 0; i < rl.length; i++){ + var np = s.search(rl[i].f); + + if(np != -1 && p > np){ + p = np; + cl[cl.length] = rl[i]; + re = rl[i].f; + } + } + + if(cl.length > 0){ + if(re == ""){ + s = s.replace(/<\/ol>|<\/ul>/,cl.pop().c); + }else{ + s = s.replace(re, cl[cl.length-1].o); + } + } + }while(cl.length > 0 || s.search(/<(ol|ul).*?>/) != -1 ); + +// s = s.replace(/
                      1. (.*?)<\/li>/g,"[*]$1[/*]"); + + s = s.replace(/
                      2. /g,"[*]"); + s = s.replace(/<\/li>/g,"[/*]"); + + while(s.match(/(.*?)<\/a>/i)){ + var lnkh = RegExp.$1; + var lnkt = RegExp.$2; + lnkh.match(/title=\"(.+?)\"/); + var title = RegExp.$1; + lnkh.match(/href=\"(.+?)\"/); + var href = RegExp.$1; + + if(title!=href){ + url = "[xurl="+href+"|"+title+"]"+lnkt+"[/url]"; + }else{ + url = "[url="+href+"]"+lnkt+"[/url]"; + } + s = s.replace(/(.*?)<\/a>/i, url); + } + + rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); + + + rep(/<(h[1|2|3])>(.*?)<\/(h[1|2|3])>/gi,"[$1]$2[/$3]"); + + rep(/(.*?)<\/sup>/gi,"[sup]$1[/sup]"); + rep(/(.*?)<\/sub>/gi,"[sub]$1[/sub]"); + + + + +// rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); +// rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); +// rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); +// rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); +// rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); +// // rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); +// rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); +// rep(/(.*?)<\/font>/gi,"$1"); + + s = s.replace(/(.+?)<\/span>/g,"[boxhead]$1[/boxhead]"); + + while(s.match(/(.+?)<\/span>/)){ + var l = RegExp.$1; var c = RegExp.$2; + var b = l.indexOf("float: left") != -1 ? "infol":"infor"; + var w = ""; + + if(l.match(/width:(.+?);.+/)){ + var _cwn = parseInt(RegExp.$1); + if(!isNaN(_cwn)){ + w = "="+_cwn; + } + } + + s = s.replace(/(.+?)<\/span>/,"["+b+w+"]"+c+"[/"+b+"]"); + } + + + + + rep(/(.*?)<\/code>/gi,"[code]$1[/code]"); + rep(/
                        (.*?)<\/blockquote>/gi,"[quote]$1[/quote]"); + rep(/<\/(strong|b)>/gi,"[/b]"); + rep(/<(strong|b)>/gi,"[b]"); + rep(/<\/(em|i)>/gi,"[/i]"); + rep(/<(em|i)>/gi,"[i]"); + rep(/<\/u>/gi,"[/u]"); + rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); + rep(//gi,"[u]"); + rep(/]*>/gi,"[quote]"); + rep(/<\/blockquote>/gi,"[/quote]"); + rep(/
                        /gi,"\n"); + rep(//gi,"\n"); + rep(/
                        /gi,"\n"); + rep(//gi,""); + rep(/<\/p>/gi,"\n"); + rep(/ /gi," "); + rep(/"/gi,"\""); + rep(/</gi,"<"); + rep(/>/gi,">"); + rep(/&/gi,"&"); + + rep(/\[\/(tr|td|table)\]\n/gi,"[/$1]"); + rep(/\[(tr|table|td)\]\n/gi,"[$1]"); + + + return s; + }, + + // BBCode -> HTML from PunBB dialect + _punbb_bbcode2html : function(s) { + s = tinymce.trim(s); +// alert("bbcode2html"); + function rep(re, str) { + s = s.replace(re, str); + }; + + var img_path = (tinyMCE.activeEditor.getParam("snstuff_img_url_image") || "/articleimage/{artikelid}/").replace(/\{artikelid\}/g,parent.entryid); + img_path = img_path.replace(/\{imgname\}/g,""); + + rep(/\[imgl=(.*?)\](.*?)\[\/imgl\]/gi,"\"$1\"/"); + rep(/\[imgr=(.*?)\](.*?)\[\/imgr\]/gi,"\"$1\"/"); + rep(/\[img=(.*?)\](.*?)\[\/img\]/gi,"\"$1\"/"); + + + while(/(\[video=(.*?)\])/.test(s)){ + var _res = RegExp.$1; + var _l = RegExp.$2.split(';'); + var _rpl = '':'/>'; + s = s.replace(_res,_rpl); + } + + // replace list bbcode + var rl = new Array(); + rl[0] = {f:/\[list\]/, o:"
                          ",c:"
                        "}; + rl[1] = {f:/\[list=d\]/, o:"
                          ",c:"
                        "}; + rl[2] = {f:/\[list=s\]/, o:"
                          ",c:"
                        "}; + rl[3] = {f:/\[list=c\]/, o:"
                          ",c:"
                        "}; + + rl[4] = {f:/\[list=1\]/, o:"
                          ",c:"
                        "}; + rl[5] = {f:/\[list=i\]/, o:"
                          ",c:"
                        "}; + rl[6] = {f:/\[list=I\]/, o:"
                          ",c:"
                        "}; + rl[7] = {f:/\[list=a\]/, o:"
                          ",c:"
                        "}; + rl[8] = {f:/\[list=A\]/, o:"
                          ",c:"
                        "}; + + var cl = new Array(); + do{ + var p = s.search(/\[\/list\]/); + var re = ""; + + for(var i = 0; i < rl.length; i++){ + var np = s.search(rl[i].f); + + if(np != -1 && p > np){ + p = np; + cl[cl.length] = rl[i]; + re = rl[i].f; + } + } + if(cl.length > 0){ + if(re == ""){ + s = s.replace(/\[\/list\]/,cl.pop().c); + }else{ + s = s.replace(re, cl[cl.length-1].o); + } + } + }while(cl.length > 0 || s.search(/\[list.*?\]/) != -1); + + + s = s.replace(/\[\/\*\]/g,"
                      3. "); + s = s.replace(/\[\*\]/g,"
                      4. "); + + + s = s.replace(/\[infor\]/mg,""); + s = s.replace(/\[infol\]/mg,""); + + s = s.replace(/\[infor=(.+?){0,1}\]/mg,""); + s = s.replace(/\[infol=(.+?){0,1}\]/mg,""); + + s = s.replace(/\[\/(infor|infol)\]/g,""); + + s = s.replace(/\[boxhead\]/g,""); + s = s.replace(/\[\/boxhead\]/g,""); + + + // example: [b] to + + rep(/\[b\]/gi,""); + rep(/\[\/b\]/gi,""); + rep(/\[i\]/gi,""); + rep(/\[\/i\]/gi,""); + rep(/\[u\]/gi,""); + rep(/\[\/u\]/gi,""); + rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); + rep(/\[xurl=([^\]]+)\|(.*?)\](.*?)\[\/url\]/gi,"$3"); + + rep(/\[url\](.*?)\[\/url\]/gi,"$1"); +// rep(/\[img\](.*?)\[\/img\]/gi,""); + rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); + rep(/\[code\](.*?)\[\/code\]/gi,"$1"); + rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"
                        $1
                        "); + + + rep(/\[(h[1|2|3])\](.*?)\[\/(h[1|2|3])\]/gi,"<$1>$2"); + rep(/(<\/h[1|2|3]>)\n/gi,"$1"); + rep(/\n()/gi,"$1"); + + + + rep(/\[sup\](.*?)\[\/sup\]/gi,"$1"); + rep(/\[sub\](.*?)\[\/sub\]/gi,"$1"); + +/* + rep(/\[\/(tr|td|table)\]/gi,"[/$1]"); + rep(/\[(tr|table)\]/gi,"[$1]");*/ + + + rep(/\n/gi,"
                        "); + + + + return s; + } + }); + + // Register plugin + tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/editor_stuff/plugin/bbcode/editor_plugin_src.js b/sn_templates/editor_stuff/plugin/bbcode/editor_plugin_src.js new file mode 100644 index 0000000..1d25f43 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/bbcode/editor_plugin_src.js @@ -0,0 +1,337 @@ +/** + * $Id: editor_plugin_src.js 201 2007-02-12 15:56:56Z spocke $ + * + * @author Moxiecode + * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved. + */ + +(function() { + tinymce.create('tinymce.plugins.BBCodePlugin', { + init : function(ed, url) { + var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = t['_' + dialect + '_bbcode2html'](o.content); + }); + + ed.onSaveContent.add(function(ed, o) { + o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t['_' + dialect + '_bbcode2html'](o.content); + +// if (o.get) +// o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + }, + + getInfo : function() { + return { + longname : 'BBCode Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + // HTML -> BBCode in PunBB dialect + _punbb_html2bbcode : function(s) { +// alert("html2bbcode"); + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + +// rep(/(.*?>)[\n|\r]/g,"$1"); + rep(/[\n\r]{0,1}(<(ol|ul).*?>)[\n\r]{0,1}/g,"$1"); + rep(/(<\/(ul|ol|li)>)[\n\r]/g,"$1"); + + // bbcode of img for sn article + while(/()/.test(s)){ + var _res = RegExp.$1; + var _typ = RegExp.$2; + var _rpl = ""; + + if(_typ == 'snVideo'){ + var _w = /width=\"(.*?)\"/.test(_res) ? RegExp.$1+';':''; + var _h = /height=\"(.*?)\"/.test(_res) ? RegExp.$1+';':''; + var _p = /alt=\"(.*?)\"/.test(_res) ? RegExp.$1:''; + var _v = /title=\"(.*?)\"/.test(_res) ? RegExp.$1+';':''; + _rpl = '[video='+_v+_w+_h+_p+']'; + } else{ + var _p = (/src=\"(.*?)\"/.test(_res) ? RegExp.$1:'').split('/').pop(); + var _f = (/alt=\"(.*?)\"/.test(_res) ? RegExp.$1:'').split('/').pop(); + var _s = (/style=\"float:(.*?);\"/.test(_res) ? RegExp.$1:'').replace(/ /g,''); + var _i = 'img'; + switch(_s){ + case 'left': + _i = 'imgl'; + break; + case 'right': + _i = 'imgr'; + break; + + } + _rpl = '['+_i+'='+_f+']'+_p+'[/'+_i+']'; + } + + s = s.replace(_res,_rpl); + } + + ////// + + // replace list html-codeStyle + var rl = new Array(); + rl[0] = {o:"[list]",c:"[/list]",f:/
                          /}; + rl[1] = {o:"[list=d]",c:"[/list]",f:/
                            /}; + rl[2] = {o:"[list=c]",c:"[/list]",f:/
                              /}; + rl[3] = {o:"[list=s]",c:"[/list]",f:/
                                /}; + + rl[4] = {o:"[list=i]",c:"[/list]",f:/
                                  /}; + rl[5] = {o:"[list=I]",c:"[/list]",f:/
                                    /}; + rl[6] = {o:"[list=a]",c:"[/list]",f:/
                                      /}; + rl[7] = {o:"[list=A]",c:"[/list]",f:/
                                        /}; + rl[8] = {o:"[list=1]",c:"[/list]",f:/
                                          /}; + rl[9] = {o:"[list=1]",c:"[/list]",f:/
                                            /}; + + + var cl = new Array(); + do{ + var p = s.search(/<\/ol>|<\/ul>/); + var re = ""; + + for(var i = 0; i < rl.length; i++){ + var np = s.search(rl[i].f); + + if(np != -1 && p > np){ + p = np; + cl[cl.length] = rl[i]; + re = rl[i].f; + } + } + + if(cl.length > 0){ + if(re == ""){ + s = s.replace(/<\/ol>|<\/ul>/,cl.pop().c); + }else{ + s = s.replace(re, cl[cl.length-1].o); + } + } + }while(cl.length > 0 || s.search(/<(ol|ul).*?>/) != -1 ); + +// s = s.replace(/
                                          1. (.*?)<\/li>/g,"[*]$1[/*]"); + + s = s.replace(/
                                          2. /g,"[*]"); + s = s.replace(/<\/li>/g,"[/*]"); + + while(s.match(/(.*?)<\/a>/i)){ + var lnkh = RegExp.$1; + var lnkt = RegExp.$2; + lnkh.match(/title=\"(.+?)\"/); + var title = RegExp.$1; + lnkh.match(/href=\"(.+?)\"/); + var href = RegExp.$1; + + if(title!=href){ + url = "[xurl="+href+"|"+title+"]"+lnkt+"[/url]"; + }else{ + url = "[url="+href+"]"+lnkt+"[/url]"; + } + s = s.replace(/(.*?)<\/a>/i, url); + } + + rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); + + + rep(/<(h[1|2|3])>(.*?)<\/(h[1|2|3])>/gi,"[$1]$2[/$3]"); + + rep(/(.*?)<\/sup>/gi,"[sup]$1[/sup]"); + rep(/(.*?)<\/sub>/gi,"[sub]$1[/sub]"); + + + + +// rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); +// rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); +// rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); +// rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); +// rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); +// // rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); +// rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); +// rep(/(.*?)<\/font>/gi,"$1"); + + s = s.replace(/(.+?)<\/span>/g,"[boxhead]$1[/boxhead]"); + + while(s.match(/(.+?)<\/span>/)){ + var l = RegExp.$1; var c = RegExp.$2; + var b = l.indexOf("float: left") != -1 ? "infol":"infor"; + var w = ""; + + if(l.match(/width:(.+?);.+/)){ + var _cwn = parseInt(RegExp.$1); + if(!isNaN(_cwn)){ + w = "="+_cwn; + } + } + + s = s.replace(/(.+?)<\/span>/,"["+b+w+"]"+c+"[/"+b+"]"); + } + + + + + rep(/(.*?)<\/code>/gi,"[code]$1[/code]"); + rep(/
                                            (.*?)<\/blockquote>/gi,"[quote]$1[/quote]"); + rep(/<\/(strong|b)>/gi,"[/b]"); + rep(/<(strong|b)>/gi,"[b]"); + rep(/<\/(em|i)>/gi,"[/i]"); + rep(/<(em|i)>/gi,"[i]"); + rep(/<\/u>/gi,"[/u]"); + rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); + rep(//gi,"[u]"); + rep(/]*>/gi,"[quote]"); + rep(/<\/blockquote>/gi,"[/quote]"); + rep(/
                                            /gi,"\n"); + rep(//gi,"\n"); + rep(/
                                            /gi,"\n"); + rep(//gi,""); + rep(/<\/p>/gi,"\n"); + rep(/ /gi," "); + rep(/"/gi,"\""); + rep(/</gi,"<"); + rep(/>/gi,">"); + rep(/&/gi,"&"); + + rep(/\[\/(tr|td|table)\]\n/gi,"[/$1]"); + rep(/\[(tr|table|td)\]\n/gi,"[$1]"); + + + return s; + }, + + // BBCode -> HTML from PunBB dialect + _punbb_bbcode2html : function(s) { + s = tinymce.trim(s); +// alert("bbcode2html"); + function rep(re, str) { + s = s.replace(re, str); + }; + + var img_path = (tinyMCE.activeEditor.getParam("snstuff_img_url_image") || "/articleimage/{artikelid}/").replace(/\{artikelid\}/g,parent.entryid); + img_path = img_path.replace(/\{imgname\}/g,""); + + rep(/\[imgl=(.*?)\](.*?)\[\/imgl\]/gi,"\"$1\"/"); + rep(/\[imgr=(.*?)\](.*?)\[\/imgr\]/gi,"\"$1\"/"); + rep(/\[img=(.*?)\](.*?)\[\/img\]/gi,"\"$1\"/"); + + + while(/(\[video=(.*?)\])/.test(s)){ + var _res = RegExp.$1; + var _l = RegExp.$2.split(';'); + var _rpl = '':'/>'; + s = s.replace(_res,_rpl); + } + + // replace list bbcode + var rl = new Array(); + rl[0] = {f:/\[list\]/, o:"
                                              ",c:"
                                            "}; + rl[1] = {f:/\[list=d\]/, o:"
                                              ",c:"
                                            "}; + rl[2] = {f:/\[list=s\]/, o:"
                                              ",c:"
                                            "}; + rl[3] = {f:/\[list=c\]/, o:"
                                              ",c:"
                                            "}; + + rl[4] = {f:/\[list=1\]/, o:"
                                              ",c:"
                                            "}; + rl[5] = {f:/\[list=i\]/, o:"
                                              ",c:"
                                            "}; + rl[6] = {f:/\[list=I\]/, o:"
                                              ",c:"
                                            "}; + rl[7] = {f:/\[list=a\]/, o:"
                                              ",c:"
                                            "}; + rl[8] = {f:/\[list=A\]/, o:"
                                              ",c:"
                                            "}; + + var cl = new Array(); + do{ + var p = s.search(/\[\/list\]/); + var re = ""; + + for(var i = 0; i < rl.length; i++){ + var np = s.search(rl[i].f); + + if(np != -1 && p > np){ + p = np; + cl[cl.length] = rl[i]; + re = rl[i].f; + } + } + if(cl.length > 0){ + if(re == ""){ + s = s.replace(/\[\/list\]/,cl.pop().c); + }else{ + s = s.replace(re, cl[cl.length-1].o); + } + } + }while(cl.length > 0 || s.search(/\[list.*?\]/) != -1); + + + s = s.replace(/\[\/\*\]/g,"
                                          3. "); + s = s.replace(/\[\*\]/g,"
                                          4. "); + + + s = s.replace(/\[infor\]/mg,""); + s = s.replace(/\[infol\]/mg,""); + + s = s.replace(/\[infor=(.+?){0,1}\]/mg,""); + s = s.replace(/\[infol=(.+?){0,1}\]/mg,""); + + s = s.replace(/\[\/(infor|infol)\]/g,""); + + s = s.replace(/\[boxhead\]/g,""); + s = s.replace(/\[\/boxhead\]/g,""); + + + // example: [b] to + + rep(/\[b\]/gi,""); + rep(/\[\/b\]/gi,""); + rep(/\[i\]/gi,""); + rep(/\[\/i\]/gi,""); + rep(/\[u\]/gi,""); + rep(/\[\/u\]/gi,""); + rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); + rep(/\[xurl=([^\]]+)\|(.*?)\](.*?)\[\/url\]/gi,"$3"); + + rep(/\[url\](.*?)\[\/url\]/gi,"$1"); +// rep(/\[img\](.*?)\[\/img\]/gi,""); + rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); + rep(/\[code\](.*?)\[\/code\]/gi,"$1"); + rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"
                                            $1
                                            "); + + + rep(/\[(h[1|2|3])\](.*?)\[\/(h[1|2|3])\]/gi,"<$1>$2"); + rep(/(<\/h[1|2|3]>)\n/gi,"$1"); + rep(/\n()/gi,"$1"); + + + + rep(/\[sup\](.*?)\[\/sup\]/gi,"$1"); + rep(/\[sub\](.*?)\[\/sub\]/gi,"$1"); + +/* + rep(/\[\/(tr|td|table)\]/gi,"[/$1]"); + rep(/\[(tr|table)\]/gi,"[$1]");*/ + + + rep(/\n/gi,"
                                            "); + + + + return s; + } + }); + + // Register plugin + tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/editor_stuff/plugin/liststyle/css/liststyle.css b/sn_templates/editor_stuff/plugin/liststyle/css/liststyle.css new file mode 100644 index 0000000..a763ab8 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/css/liststyle.css @@ -0,0 +1,3 @@ +td.radio { text-align: right; } +td.label { text-align: right; } +.panel_wrapper div.current {height:auto;} diff --git a/sn_templates/editor_stuff/plugin/liststyle/editor_plugin.js b/sn_templates/editor_stuff/plugin/liststyle/editor_plugin.js new file mode 100644 index 0000000..7f16565 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.PluginManager.requireLangPack('liststyle');tinymce.create('tinymce.plugins.ListStylePlugin',{init:function(ed,url){ed.addCommand('mceListStyle',function(ui,v){var listStyleType='',listStart,isIE=tinyMCE.isIE;var listNode=ed.plugins.liststyle._findList(ed,ed.selection.getNode());if(listNode){listStyleType=listNode.style.listStyleType;if(listNode.nodeName.toLowerCase()=='ol'){listStart=parseInt(listNode.start);if(listStart<1){listStart=1}ed.windowManager.open({file:url+'/liststyle_ol.htm',width:340+parseInt(ed.getLang('liststyle.delta_width',0)),height:300+(isIE?40:0)+parseInt(ed.getLang('liststyle.delta_height',0)),inline:1},{plugin_url:url,listStyleType:listStyleType,listNode:listNode,listStart:listStart,classAttr:listNode.className,isIE:isIE})}else{ed.windowManager.open({file:url+'/liststyle_ul.htm',width:340+parseInt(ed.getLang('liststyle.delta_width',0)),height:300+(isIE?40:0)+parseInt(ed.getLang('liststyle.delta_height',0)),inline:1},{plugin_url:url,listStyleType:listStyleType,listNode:listNode,classAttr:listNode.className,isIE:isIE})}}});ed.onInit.add(function(){if(ed&&ed.plugins.contextmenu){ed.plugins.contextmenu.onContextMenu.add(function(th,m,e){if(ed.plugins.liststyle._findList(ed,ed.selection.getNode())){m.add({title:'liststyle.desc',cmd:'mceListStyle',icon:'liststyle',ui:true})}})}});ed.addButton('liststyle',{title:'liststyle.desc',cmd:'mceListStyle',image:url+'/img/liststyle.gif'});ed.onNodeChange.add(function(ed,cm,node){cm.setDisabled('liststyle',ed.plugins.liststyle._findList(ed,node)==null)})},_isList:function(node){if(node==null)return null;return node.nodeName=='OL'||node.nodeName=='UL'},_findList:function(ed,node){if(ed.plugins.liststyle._isList(node)){return node}return ed.dom.getParent(node,ed.plugins.liststyle._isList)},getInfo:function(){return{longname:'ListStyle',author:'PolicyPoint Technologies Pty. Ltd.',authorurl:'http://policypoint.net/',infourl:'http://policypoint.net/tinymce/docs/plugin_liststyle.html',version:"3.1-alfa"}}});tinymce.PluginManager.add('liststyle',tinymce.plugins.ListStylePlugin)})(); diff --git a/sn_templates/editor_stuff/plugin/liststyle/editor_plugin_src.js b/sn_templates/editor_stuff/plugin/liststyle/editor_plugin_src.js new file mode 100644 index 0000000..6195409 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/editor_plugin_src.js @@ -0,0 +1,132 @@ +/** + * $Id:$ + * vim: expandtab ts=8 sw=8 + * + * @author Scott Eade, PolicyPoint Technologies Pty. Ltd. + * @copyright Copyright 2005-2008, PolicyPoint Technologies Pty. Ltd. + * @author Mariusz Pêkala, iDelfi Polska sp. z o.o. + * @copyright Copyright 2008, iDelfi Polska sp. z o.o. + * @license LGPL + */ + +(function() { + // Load plugin specific language pack + tinymce.PluginManager.requireLangPack('liststyle'); + + tinymce.create('tinymce.plugins.ListStylePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceListStyle', function(ui, v) { + var listStyleType = '', listStart, isIE = tinyMCE.isIE; + // ed.selection.getNode(); => selectedElement - common ancestor + var listNode = ed.plugins.liststyle._findList(ed, ed.selection.getNode() ); + if( listNode ) { + listStyleType = listNode.style.listStyleType; + if( listNode.nodeName.toLowerCase() == 'ol' ) { + listStart = parseInt(listNode.start); + if( listStart < 1) { listStart = 1; } + + ed.windowManager.open({ + file : url + '/liststyle_ol.htm', + width : 340 + parseInt(ed.getLang('liststyle.delta_width', 0)), + height : 300 + (isIE ? 40 : 0) + parseInt(ed.getLang('liststyle.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, // Plugin absolute URL + listStyleType : listStyleType, + listNode : listNode, + listStart : listStart, + classAttr : listNode.className, + isIE : isIE + } + ); + } else { + ed.windowManager.open({ + file : url + '/liststyle_ul.htm', + width : 340 + parseInt(ed.getLang('liststyle.delta_width', 0)), + height : 300 + (isIE ? 40 : 0) + parseInt(ed.getLang('liststyle.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, // Plugin absolute URL + listStyleType : listStyleType, + listNode : listNode, + classAttr : listNode.className, + isIE : isIE + } + ); + } + } + }); + + ed.onInit.add(function() { + if (ed && ed.plugins.contextmenu) { + ed.plugins.contextmenu.onContextMenu.add(function(th, m, e) { + if( ed.plugins.liststyle._findList(ed,ed.selection.getNode() ) ) { + m.add({title : 'liststyle.desc', cmd : 'mceListStyle', icon : 'liststyle', ui : true}); + } + }); + } + }); + + // Register the button + ed.addButton('liststyle', { + title : 'liststyle.desc', + cmd : 'mceListStyle', + image : url + '/img/liststyle.gif' + }); + + // Enable/disable the button depending on the current selection element + // It looks like the node is the same as selection.getNode - it means, a common ancestor of + // all selected nodes. + ed.onNodeChange.add(function(ed, cm, node) { + cm.setDisabled('liststyle', ed.plugins.liststyle._findList(ed,node) == null); + }); + }, + + + /** + * Helper function: find a list element (
                                              or
                                                ) being somewhere + * amongst parents of given element. + */ + _isList : function(node) { + if( node == null ) + return null; + return node.nodeName == 'OL' || node.nodeName == 'UL'; + }, + + _findList : function(ed, node) { + if( ed.plugins.liststyle._isList(node) ) { + return node; + } + return ed.dom.getParent( node, ed.plugins.liststyle._isList ); + }, + + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'ListStyle', + author : 'PolicyPoint Technologies Pty. Ltd.', + authorurl : 'http://policypoint.net/', + infourl : 'http://policypoint.net/tinymce/docs/plugin_liststyle.html', + version : "3.1-alfa" + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('liststyle', tinymce.plugins.ListStylePlugin); +})(); diff --git a/sn_templates/editor_stuff/plugin/liststyle/img/liststyle.gif b/sn_templates/editor_stuff/plugin/liststyle/img/liststyle.gif new file mode 100644 index 0000000..1c6ca97 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/liststyle/img/liststyle.gif differ diff --git a/sn_templates/editor_stuff/plugin/liststyle/js/liststyle.js b/sn_templates/editor_stuff/plugin/liststyle/js/liststyle.js new file mode 100644 index 0000000..f1f20f8 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/js/liststyle.js @@ -0,0 +1,73 @@ +// vim: expandtab ts=8 sw=8 +tinyMCEPopup.requireLangPack(); + + +/** + * Window args passed to the popup: + * (retrieve by tinyMCEPopup.getWindowArg('isIE'); + * + * - plugin_url : url, // Plugin absolute URL + * - listStyleType : listStyleType, // 'decimal', 'disc', etc. + * - listNode : listNode, // the list dom element + * - listStart : listStart, // 1, 2, 3 + * - classAttr : p.className, // html class attribute class + * - isIE : isIE // true / false + */ +function init() { + tinyMCEPopup.resizeToInnerSize(); + + var formObj = document.forms[0]; + var isIE = tinyMCEPopup.getWindowArg('isIE'); + var classAttr = tinyMCEPopup.getWindowArg('classAttr') || ''; + var listStyleType = tinyMCEPopup.getWindowArg('listStyleType'); + + listSpecificInit(); + + setListStyleType( listSpecificSwitch( formObj, listStyleType) ); + + if (isIE) { + document.getElementById("classAttrId").value = classAttr; + } else { + document.getElementById("classNameRow").style.display = "none"; + listSpecificNonIEInit(); + } +} + + +/** + * Just copy a value from radio button to a hidden input. + * This function is set as onclick event on radio controls. + */ +function setListStyleType(listStyleType) { + document.forms[0].listStyleTypeId.value = listStyleType; +} + + +/** + * This function is set as onclick event on the 'OK' button. + */ +function okayAction() { + var formObj = document.forms[0]; + + var listNode = tinyMCEPopup.getWindowArg('listNode'); + var classAttr = formObj.classAttr.value; + var listStyleType = formObj.listStyleType.value; + var isIE = tinyMCEPopup.getWindowArg('isIE'); + + if (listNode) { + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + listNode.style.listStyleType = listStyleType; + listNode.removeAttribute('mce_style'); // MAGIC! FIXME: wyjaśnij, po co jest mce_style + + listSpecificOkayAction( formObj, listNode ); + + if (isIE) { + listNode.className = classAttr; + } + tinyMCEPopup.execCommand('mceEndUndoLevel'); + } + tinyMCEPopup.close(); +} + + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/editor_stuff/plugin/liststyle/js/liststyle_ol.js b/sn_templates/editor_stuff/plugin/liststyle/js/liststyle_ol.js new file mode 100644 index 0000000..97da38f --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/js/liststyle_ol.js @@ -0,0 +1,62 @@ +// vim: expandtab ts=8 sw=8 + + +function listSpecificInit() { + var listStart = parseInt( tinyMCEPopup.getWindowArg('listStart') ); + if( listStart ) { + if( listStart < 1 ) { listStart = 1; } + } else { + listStart = ''; + } +// document.getElementById("listStartId").value = listStart || ''; +} + +function listSpecificNonIEInit() { +} + +function listSpecificSwitch( formObj, listStyleType ) { + switch (listStyleType) { + case "decimal": + formObj.decimalId.checked = true; + break; + case "lower-alpha": + formObj.lowerAlphaId.checked = true; + break; + case "upper-alpha": + formObj.upperAlphaId.checked = true; + break; + case "lower-roman": + formObj.lowerRomanId.checked = true; + break; + case "upper-roman": + formObj.upperRomanId.checked = true; + break; + case "none": + formObj.noneId.checked = true; + break; + default: + formObj.decimalId.checked = true; + listStyleType = 'decimal'; + } + return listStyleType; +} + +/** + * This function is called from the onsubmit form handler "okAction()". + */ +function listSpecificOkayAction( formObj, listNode ) { + + var listStart = 1;//parseInt(formObj.listStart.value); // may be NaN ! + if( listStart < 1) { + listStart = 1; + }; + + if (listNode) { + if( listStart ) { + listNode.start = listStart; + } else { + listNode.removeAttribute('start'); + } + } +} + diff --git a/sn_templates/editor_stuff/plugin/liststyle/js/liststyle_ul.js b/sn_templates/editor_stuff/plugin/liststyle/js/liststyle_ul.js new file mode 100644 index 0000000..4d2abe9 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/js/liststyle_ul.js @@ -0,0 +1,37 @@ +// vim: expandtab ts=8 sw=8 + +function listSpecificInit() { +} + +function listSpecificNonIEInit() { + // no additional properties left. Hide the section title: +// document.getElementById("listAttrsRow").style.display = "none"; +} + + +function listSpecificSwitch( formObj, listStyleType ) { + switch (listStyleType) { + case "disc": + formObj.discId.checked = true; + break; + case "circle": + formObj.circleId.checked = true; + break; + case "square": + formObj.squareId.checked = true; + break; + case "none": + formObj.noneId.checked = true; + break; + default: + formObj.discId.checked = true; + listStyleType = 'disc'; + } + return listStyleType; +} + + + +// do nothing +function listSpecificOkayAction( formObj, listNode ) { +} diff --git a/sn_templates/editor_stuff/plugin/liststyle/langs/de.js b/sn_templates/editor_stuff/plugin/liststyle/langs/de.js new file mode 100644 index 0000000..c805901 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/langs/de.js @@ -0,0 +1,19 @@ +// UK lang variables + +tinyMCE.addI18n("de.liststyle", { + desc : 'List eigenschaften', + listtype : 'List type', + decimal : "1, 2, 3, ...", + lalpha : 'a, b, c, ...', + ualpha : 'A, B, C, ...', + lroman : 'i, ii, iii, ...', + uroman : 'I, II, III...', + disc : 'Punkte', + circle : 'Kreise', + square : 'Quadrate', + none : 'Keine', + listattributes : 'List eigenschaften', + start : 'start', + startdesc : '1, 2, 3, ...', + classname : 'class' +}); diff --git a/sn_templates/editor_stuff/plugin/liststyle/langs/de_dlg.js b/sn_templates/editor_stuff/plugin/liststyle/langs/de_dlg.js new file mode 100644 index 0000000..49bb0b9 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/langs/de_dlg.js @@ -0,0 +1 @@ +// UK lang variables diff --git a/sn_templates/editor_stuff/plugin/liststyle/langs/en.js b/sn_templates/editor_stuff/plugin/liststyle/langs/en.js new file mode 100644 index 0000000..4106498 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/langs/en.js @@ -0,0 +1,19 @@ +// UK lang variables + +tinyMCE.addI18n("en.liststyle", { + desc : 'List properties', + listtype : 'List type', + decimal : "Decimal numbers (1, 2, 3, ...)", + lalpha : 'Lower alphabetic letters (a, b, c, ...)', + ualpha : 'Upper alphabetic letters (A, B, C, ...)', + lroman : 'Lower roman numbers (i, ii, iii, ...)', + uroman : 'Upper roman numbers (I, II, III...)', + disc : 'Disc', + circle : 'Circle', + square : 'Square', + none : 'None', + listattributes : 'List attributes', + start : 'start', + startdesc : '(1, 2, 3, ...)', + classname : 'class' +}); diff --git a/sn_templates/editor_stuff/plugin/liststyle/langs/en_dlg.js b/sn_templates/editor_stuff/plugin/liststyle/langs/en_dlg.js new file mode 100644 index 0000000..49bb0b9 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/langs/en_dlg.js @@ -0,0 +1 @@ +// UK lang variables diff --git a/sn_templates/editor_stuff/plugin/liststyle/liststyle_ol.htm b/sn_templates/editor_stuff/plugin/liststyle/liststyle_ol.htm new file mode 100644 index 0000000..ac7880f --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/liststyle_ol.htm @@ -0,0 +1,80 @@ + + + + {#liststyle.desc} + + + + + + + + + +
                                                + + + +
                                                +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                {#liststyle.listtype}
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/plugin/liststyle/liststyle_ul.htm b/sn_templates/editor_stuff/plugin/liststyle/liststyle_ul.htm new file mode 100644 index 0000000..85c821c --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/liststyle_ul.htm @@ -0,0 +1,67 @@ + + + + {#liststyle.desc} + + + + + + + + + +
                                                + + + +
                                                +
                                                + + + + + + + + + + + + + + +
                                                {#liststyle.listtype}
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/plugin/liststyle/plugin_liststyle.html b/sn_templates/editor_stuff/plugin/liststyle/plugin_liststyle.html new file mode 100644 index 0000000..a768fa9 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/liststyle/plugin_liststyle.html @@ -0,0 +1,177 @@ + + + + + Plugin: liststyle + + + + +
                                                +

                                                + Plugin: liststyle +

                                                +
                                                + +
                                                +

                                                + The List Style plugin allows you to set the list-style-type CSS property on lists within the TinyMCE editor. This plugin caters for both ordered and unordered lists. +

                                                + +

                                                + Installation Instructions +

                                                + +
                                                  +
                                                • + Copy the liststyle directory to the plugins directory of TinyMCE (/jscripts/tiny_mce/plugins). +
                                                • +
                                                • + Add plugin to TinyMCE plugin option list. Example: plugins : "liststyle". +
                                                • +
                                                • + Add the liststyle button to the button list. Example: theme_advanced_button3_add : "liststyle" +
                                                • +
                                                + +

                                                + Initialization Example +

                                                +
                                                +
                                                +
                                                +tinyMCE.init({
                                                +    theme : "advanced",
                                                +    mode : "textareas",
                                                +    plugins : "liststyle",
                                                +    theme_advanced_button3_add : "liststyle"
                                                +});
                                                +
                                                +
                                                +
                                                +

                                                + Usage Instructions +

                                                + +
                                                  +
                                                • + Position the cursor on an item in the list whose style you + wish to alter and click the liststyle button. +
                                                • +
                                                • + Select the list style type and click "Update". +
                                                • +
                                                • + The plugin supports nested lists - the style of the list at the level + of the item at the cursor position is altered, not the others. +
                                                • +
                                                + +

                                                + License +

                                                + +
                                                + LGPL 2.0 +
                                                + +

                                                + History +

                                                + +
                                                  +
                                                • + 2008-05-07: Version 3.0 released. +
                                                    +
                                                  • + Updated for TinyMCE 3.x. +
                                                  • +
                                                  +
                                                • +
                                                • + 2007-11-28: Version 1.1.3 released. +
                                                    +
                                                  • + Tweaked the popup window height to allow for IE7 security address bar. +
                                                  • +
                                                  +
                                                • +
                                                • + 2006-08-25: Version 1.1.2 released. +
                                                    +
                                                  • + Added Usage instructions. +
                                                  • +
                                                  • + Added support for undo and redo. +
                                                  • +
                                                  +
                                                • +
                                                • + 2006-03-25: Version 1.1.1 released. +
                                                    +
                                                  • + Fixed Javascript error under IE. Thanks to Bryan Costin + for highlighting this issue. +
                                                  • +
                                                  +
                                                • +
                                                • + 2006-03-10: Version 1.1.0 released. +
                                                    +
                                                  • + Updated for TinyMCE plugin architecture change introduced in TinyMCE 2.0.3. + Use ListStyle 1.0.1 if you are using a TinyMCE 2.0.0 - 2.0.2. +
                                                  • +
                                                  +
                                                • +
                                                • + 2006-01-30: Version 1.0.2 released. +
                                                    +
                                                  • + Fixed error that occurred when invoked on a non-LI element. +
                                                  • +
                                                  • + Consistently use single quotes in plugin. +
                                                  • +
                                                  • + Added compressed plugin file. +
                                                  • +
                                                  +
                                                • +
                                                • + 2005-10-11: Version 1.0.1 released. Changes made thanks to spocke: +
                                                    +
                                                  • + Fixed so it uses inst.getFocusElement instead of the deprecated tinyMCE.selectedElement. +
                                                  • +
                                                  • + Moved the style information to a separate .css file. +
                                                  • +
                                                  • + Made it possible for translation of all labels. +
                                                  • +
                                                  • + Translated the plugin into Swedish. +
                                                  • +
                                                  +
                                                • +
                                                • + 2005-10-07: Version 1.0 released. +
                                                • +
                                                +
                                                + + + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/css/content.css b/sn_templates/editor_stuff/plugin/snstuff/css/content.css new file mode 100644 index 0000000..3c10586 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/css/content.css @@ -0,0 +1 @@ +.snVideo{border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc;background-image:url(../images/video.png);} diff --git a/sn_templates/editor_stuff/plugin/snstuff/css/default.css b/sn_templates/editor_stuff/plugin/snstuff/css/default.css new file mode 100644 index 0000000..6a9220b --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/css/default.css @@ -0,0 +1,14 @@ +#src_list, #over_list, #out_list {width:280px;} +#video{display:none;} +.mceActionPanel {margin-top:7px;} +.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} +.checkbox {border:0;} +.panel_wrapper div.current {height:470px;} +#prev, #prev2 {margin:0; border:1px solid #000; width:428px; height:260px; overflow:auto;} +#align, #classlist {width:150px;} +#width, #height {vertical-align:middle; width:50px; text-align:center;} +#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} +#class_list {width:180px;} +/* input {width: 100px;} */ +#constrain, #onmousemovecheck {width:auto;} +#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/sn_templates/editor_stuff/plugin/snstuff/editor_plugin.js b/sn_templates/editor_stuff/plugin/snstuff/editor_plugin.js new file mode 100644 index 0000000..3ee07ea --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/editor_plugin.js @@ -0,0 +1,618 @@ +(function() { + + tinymce.create('tinymce.plugins.SNStuff', { + +//// ImageUpload + init : function(ed, url) { + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + "/css/content.css"); + }); + + ed.addCommand('mceSNImages', function() { + ed.windowManager.open({ + file : url + '/html/image.html', + width : 490, + height : 550, + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addButton('snimages', { + title : 'snstuff.img_desc', + cmd : 'mceSNImages', + image : url + '/images/insert-image.png' + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('snimages', n.nodeName == 'IMG'); + }); + + +/// Link + ed.addCommand('mceSNLink', function() { + ed.windowManager.open({ + file : url + '/html/link.html', + width : 500 + parseInt(ed.getLang('snstuff.snlink_delta_width', 0)), + height : 180 + parseInt(ed.getLang('snstuff.snlink_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addButton('snlink', {title : 'snstuff.lnk_desc', cmd : 'mceSNLink', image: url+'/images/insert-link.png'}); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('snlink', false); + var node = n; + while(node != null){ + if(node.nodeName == 'A'){ + cm.setActive('snlink', true); + break; + } + node = node.parentNode; + } + }); + + +/// Code + ed.addCommand('mceSNCode', function() { + + handleSNCode(ed,url); + + }); + ed.addButton('sncode', {title : 'snstuff.code_desc', cmd : 'mceSNCode', image: url+'/images/code-context.png'}); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('sncode', n.nodeName == 'CODE'); + }); + +/// Infobox + ed.addCommand('mceSNInfoBox', function() { handleSNInfoBox(ed, url)}); + ed.addCommand('mceSNInfoBoxHead', function() { handleSNInfoBoxHead(ed, url) }); + + + ed.addButton('sninfobox', {title : 'snstuff.infobox_desc', cmd : 'mceSNInfoBox', image: url+'/images/textinfo.png'}); + ed.addButton('sninfoboxhead', {title : 'snstuff.infoboxhead_desc', cmd : 'mceSNInfoBoxHead', image: url+'/images/textinfo_head.png'}); + + + ed.onNodeChange.add(function(ed, cm, n) { + var scas = ed.dom.getParent(ed.selection.getStart(), function(n) {return ed.dom.hasClass(n, "snInfoBox");}) != null; + var scae = ed.dom.getParent(ed.selection.getEnd(), function(n) {return ed.dom.hasClass(n, "snInfoBox");}) != null; + var sca = scas && scae; + var scbs = ed.dom.getParent(ed.selection.getStart(), function(n) {return ed.dom.hasClass(n, "snInfoBoxHead");}) != null; + var scbe = ed.dom.getParent(ed.selection.getStart(), function(n) {return ed.dom.hasClass(n, "snInfoBoxHead");}) != null; + var scb = scbs && scbe; + + var cs = ed.selection.getContent().length > 0; + cm.setDisabled('sninfobox', scae != scas); + cm.setDisabled('sninfoboxhead', (!((sca && cs) || scb) || scae != scas)); + cm.setActive('sninfobox', sca); + cm.setActive('sninfoboxhead', scb); + }); + +/// Quote + ed.addCommand('mceSNQuote', function() { + + handleSNQuote(ed,url); + + }); + ed.addButton('snquote', {title : 'snstuff.quote_desc', cmd : 'mceSNQuote', image: url+'/images/quote.png'}); + + ed.onNodeChange.add(function(ed, cm, n) { + + cm.setActive('snquote', n.nodeName == 'BLOCKQUOTE'); + }); + +/// LinkVorschlag + Proposals.url = url; + ed.addCommand('mceSNProposals', function(ui,v) { + Proposals.findWordAll(ed); + }); + ed.onKeyUp.add( + function(ed,e){ + var an = ed.dom.getParent(ed.selection.getNode(),function(n){return n.nodeName == 'A'}); + if(an == null && e.keyCode == 32){ + var cm = ed.selection.getBookmark(); + var ps = ed.dom.get(cm.id+'_start').previousSibling; + var pos = ps.nodeValue.length; + ed.selection.moveToBookmark(cm); + Proposals.findWord(ed,ps,pos); + }else{ + Proposals.closeWin(); + } + } + ); + ed.addButton('snproposals', {title : 'snstuff.proposals_desc', cmd : 'mceSNProposals', image: url+'/images/proposals.png'}); + + ed.onLoadContent.add( SNStuffContentCounter.counter ); + ed.onChange.add( SNStuffContentCounter.counter ); + ed.onUndo.add( SNStuffContentCounter.counter ); + ed.onRedo.add( SNStuffContentCounter.counter ); + + ed.onKeyPress.add( SNStuffContentCounter.counter ); + + + }, // init + + +/////////////////////////////////////// + + getInfo : function() { + return { + longname : 'SN-Stuff (ImageUpload, Quote, Code, Link, etc.)', + author : 'Member from .de', + authorurl : 'http://www..de', + infourl : 'http://www..de', + version : "1.0" + }; + } + }); + + tinymce.PluginManager.add('snstuff', tinymce.plugins.SNStuff); +})(); + + + +//////////////////////////////////////////////////// +var Proposals = { + url: '', +// ajaxBlock: tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_block"), +// ajaxLink: tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_link"), + +// ajaxBlock: "/ajax_block", +// ajaxLink: "/ajax_link", + proposalsFrame: undefined, + proposalsFrameBody: undefined, + proposalsFrameId: Math.round(Math.random()*1000), + + running: false, + cancel: function(){ + if(this.running){ + this.running = false; + } + }, + + findWord: function(ed, node,pos){ + running = true; + var ntn = node; + var word; + var txt = node.nodeValue.substr(0,pos); + word = txt.replace(/ $/,'').split(/ /).pop(); + if(word.length > 0){ + this.getProposals(ed,ntn, word, pos, false); + } + },// find word + + findWordAll: function(ed){ + running = true; + var wl = new Array(); + this._getContentWordList(ed.getBody(),wl); + this.getProposals(ed,null,wl.join('+'),-1,true); + }, + + getProposals: function(ed,node, word, pos, block){ + var po = this; + if(!running){return;} + + tinymce.util.XHR.send({ + url : block ? tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_block", "/ajax_block") + : tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_link","/ajax_link"), + content_type : "application/json", + type : "POST", + data : block ? "sn_msgbody="+escape(word) : "sn_key="+escape(word), + async : true, + scope : po, + + success : function( data, req, o ) { + var obj = tinymce.util.JSON.parse(data); + po.showProposals(obj, ed, node, pos, block); + }, + + error : function( type, req, o ){ alert("ERROR:"+type+"\n"+req+" - "+o);} + }); + }, + + closeWin: function(){ + this.cancel(); + if(this.proposalsFrame && this.proposalsFrame.style.display != 'none'){ + this.proposalsFrame.style.display = 'none'; + } + }, + showProposals:function(obj, ed, node, pos, block){ + if(!running){return;} + // remove used Lnk + tinymce.grep(ed.dom.select("a"), function(n) { + var h = n.getAttributeNode('href'); + if(h != null){ + var v = h.nodeValue; + for(var e in obj){ + if(v == obj[e].Link){ + delete obj[e]; + } + } + } + }); + + if(!this.proposalsFrame){this._buildFrame();} + + var pf = this.proposalsFrameBody; + while(pf.hasChildNodes()){ + pf.removeChild(pf.firstChild); + } + if(!obj){return;} + for(var i = 0; i < obj.length; i++){ + if(!obj[i]){continue;} + + var o = obj[i]; + var bgColor = (i%2 == 0) ? "#FFFAB3":"#FFFE9A"; + var root = this._buildHTMLElement("DIV","lnkBody_"+i,"border-bottom:black 1px solid;background-color:"+bgColor); + var lnk = this._buildHTMLElement("IMG","lnkLnk_"+i,"float:right;cursor:pointer"); + var desc = this._buildHTMLElement("DIV", "lnkDesc_"+i, "",o.Comment); + var prevLnk = this._buildHTMLElement("A","lnkPrevLnk_"+i,"", o.Link); + var keyword = this._buildHTMLElement("DIV","lnkKeyWord_"+i, "font-weight:bold", o.Key); + var small = this._buildHTMLElement("SMALL","lnkSmall_"+i); + small.appendChild(prevLnk); + lnk.src = this.url+"/images/add.png"; + lnk.alt = "Link einfügen"; + lnk.title = "Das Wort \""+o.Key+"\" im Text verlinken"; + prevLnk.href = o.Link; + prevLnk.target = "blank"; + + root.appendChild(keyword); keyword.appendChild(lnk); root.appendChild(desc);root.appendChild(small); + this._setOnclickEvent(lnk, {obj:o,block:block,ed:ed,node:node,pos:pos}); + pf.appendChild(root); + } + if(this.proposalsFrameBody.hasChildNodes()){ + this.proposalsFrame.style.display = "block"; + } + }, + _setOnclickEvent:function(lnk, o){ + var p = this; + lnk.onclick = function(){p._insertAction(o,this)}; + }, + _insertAction:function(o,fn){ + if(!o.block){ + this._insertLink(o); + this.closeWin(); + }else{ + var fw = this._findWord(o.ed.getBody(),o.obj.Key); + if(fw){ + this._insertLink(fw.node,fw.pos,o.obj.Link,o.ed); + var pe = fn.parentNode.parentNode; + pe.parentNode.removeChild(pe); + if(!this.proposalsFrameBody.hasChildNodes()){ + this.proposalsFrame.style.display = "none"; + } + } + } + }, + + _insertLink: function(o){ + var node = o.node; var pos = o.pos; var lnk = o.obj.Link; var ed = o.ed; + + var nv = node.nodeValue; + var pre = nv.substring(0,pos).replace(/ $/,'').split(/ /); + var post = " "+nv.substr(pos); + var w = pre.pop(); + var a = ed.getDoc().createElement('A'); + var ha = ed.getDoc().createAttribute("href"); + var tit = ed.getDoc().createAttribute("title"); + + tit.nodeValue=o.obj.Comment; + ha.nodeValue = lnk; + a.setAttributeNode(ha); + a.setAttributeNode(tit); + a.appendChild(ed.getDoc().createTextNode(w)); + + var pnode = node.parentNode; + + tinyMCE.execCommand("mceBeginUndoLevel"); + pnode.insertBefore(ed.getDoc().createTextNode(pre.join(' ')+' '),node); + pnode.insertBefore(a,node); + pnode.insertBefore(ed.getDoc().createTextNode(post),node); + pnode.removeChild(node); + tinyMCE.execCommand("mceEndUndoLevel"); + ed.focus(); + ed.selection.select(a); + ed.selection.collapse(); + }, + + _findWord: function(doc, word){ + var node = doc; + var w; + while(node != null){ + if(node.nodeType == 1 && node.nodeName != "A"){ + w = this._findWord(node.firstChild,word); + if(w){ return w;} + } + + if(node.nodeType == 3){ + var txt = node.nodeValue.toLowerCase(); + var p = txt.indexOf(word.toLowerCase()); + if(p != -1){ + return {pos:p+word.length, node: node}; + } + } + node = node.nextSibling; + } + return w; + }, + + _getContentWordList: function(doc, wlist){ + var node = doc; + + while(node != null){ + if(node.nodeType == 1 && node.nodeName != "A"){ + this._getContentWordList(node.firstChild, wlist); + } + + if(node.nodeType == 3){ + var lst = node.nodeValue.split(/ /); + while(lst.length > 0){ + var s = lst.pop().replace(/\s/g,""); + if(s != ""){ + wlist.push(s); + } + } + } + node = node.nextSibling; + } + }, +/////////////////////// + _buildFrame: function(){ + var container = tinyMCE.activeEditor.getContentAreaContainer(); + var ot = container.offsetTop; + var ol = container.offsetLeft + container.offsetWidth; + + if(document.getElementsByTagName("body")[0].offsetWidth < ol+355){ + ol = document.getElementsByTagName("body")[0].offsetWidth - 360; + } + + var pa = (document.all) ? "absolute":"fixed"; + + var p = this._buildHTMLElement("DIV", "proposalsFrame","position:"+pa+";width:350px;left:"+ol+"px;top:"+ot+"px;padding:5px;background-color:#FFFE9A;border:solid black 1px;"); + var h = this._buildHTMLElement("DIV", "proposalsFrameHead","border-bottom:black 1px solid;font-weight:bold;background-color:#FFF27A;cursor:pointer;padding:2px;","Tipps zum Thema"); + var b = this._buildHTMLElement("DIV", "proposalsFrameBody","min-height:100px;max-height:300px;overflow:auto;padding:5px;"); + var c = this._buildHTMLElement("IMG", "proposalsFrameClose","float:right"); + + + h.onmousedown = function(){ + var p = this.parentNode; + var ox,oy; + this.onmouseup = function(){p.onmousemove = function(){}; p.onmouseout = function(){}} + var m = function(ev){ + var px = (!ev) ? window.event.clientX : ev.pageX;var py = (!ev) ? window.event.clientY : ev.pageY; + if(!ox){oy = py - parseInt(this.style.top); ox = px - parseInt(this.style.left); } + this.style.left = (px-ox)+"px"; this.style.top = (py-oy)+"px"; + return false; + } + p.onmousemove = m;p.onmouseout = m; + return false; + } + + var me = this; + c.onclick = function(){me.closeWin()}; + + c.alt = "X"; + c.src = this.url+'/images/close.png'; + c.alt = "Fenster schlissen"; + c.title = "Fenster schliessen"; + + h.insertBefore(c,h.firstChild); + p.appendChild(h); p.appendChild(b) + + this.proposalsFrame = p; + this.proposalsFrameBody = b; + + document.getElementsByTagName("body")[0].appendChild(p); + }, + + _buildHTMLElement: function(n, id, style, txt){ + var e = document.createElement(n); + var an = document.createAttribute("id"); + an.nodeValue = id+"_"+this.proposalsFrameId; + var clazz = document.createAttribute("class"); + clazz.nodeValue = id; + e.setAttributeNode(clazz); + e.setAttributeNode(an); + + e.style.cssText = style; + if(txt){ e.appendChild( document.createTextNode(txt)); } + return e; + } +} + + +////////////////////////////////////////////////// +function handleSNCode(ed, url){ + var enode = ed.selection.getNode(); + var sel = ed.selection.getContent(); + var isBlock = (enode != null && enode.nodeName == 'CODE'); + + if(isBlock){ + + // Remove element + if(enode.nodeName == 'CODE'){ + tinyMCE.execCommand("mceBeginUndoLevel"); + i = ed.selection.getBookmark(); + ed.dom.remove(enode, 1); + ed.selection.moveToBookmark(i); + tinyMCE.execCommand("mceEndUndoLevel"); + return; + } + } + + tinyMCE.execCommand("mceBeginUndoLevel"); + + if(sel.length == 0 ){ + + ed.windowManager.open({ + file : url + '/html/code.html', + width : 410 + parseInt(ed.getLang('snstuff.snlink_delta_width', 0)), + height : 480 + parseInt(ed.getLang('snstuff.snlink_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }else{ + ed.execCommand('mceInsertContent', false, ''+ed.selection.getContent()+'', {skip_undo : 1}); + } + tinyMCE.execCommand("mceEndUndoLevel"); + +} + +function handleSNQuote(ed, url){ + var enode = ed.selection.getNode(); + var sel = ed.selection.getContent(); + var isBlock = (enode != null && enode.nodeName == 'BLOCKQUOTE'); + + if(isBlock){ + + // Remove element + if(enode.nodeName == 'BLOCKQUOTE'){ + tinyMCE.execCommand("mceBeginUndoLevel"); + i = ed.selection.getBookmark(); + ed.dom.remove(enode, 1); + ed.selection.moveToBookmark(i); + tinyMCE.execCommand("mceEndUndoLevel"); + return; + } + } + + tinyMCE.execCommand("mceBeginUndoLevel"); + + if(sel.length == 0 ){ + + ed.windowManager.open({ + file : url + '/html/quote.html', + width : 410 + parseInt(ed.getLang('snstuff.snquote_delta_width', 0)), + height : 480 + parseInt(ed.getLang('snstuff.snquote_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }else{ + ed.execCommand('mceInsertContent', false, '
                                                '+ed.selection.getContent()+'
                                                ', {skip_undo : 1}); + } + tinyMCE.execCommand("mceEndUndoLevel"); + +} + + +function handleSNInfoBox(ed, url){ + var enode = ed.selection.getNode(); + var sel = ed.selection.getContent(); + + ed.windowManager.open({ + file : url + '/html/infobox.html', + width : 250+ parseInt(ed.getLang('snstuff.snquote_delta_width', 0)), + height : 100 + parseInt(ed.getLang('snstuff.snquote_delta_height', 0)), + inline : 1 + }, { + node: enode, + plugin_url : url + }); +} + +function handleSNInfoBoxHead(ed, url){ + var enode = ed.dom.getParent(ed.selection.getNode(), function(n) {return ed.dom.hasClass(n, "snInfoBoxHead");}) + var sel = ed.selection.getContent(); + + tinyMCE.execCommand("mceBeginUndoLevel"); + if(sel.length > 0){ + ed.execCommand('mceInsertRawHTML', false, ''+ed.selection.getContent()+'',{skip_undo : 1}); + ed.dom.setAttribs('__snInfoBoxHeadTmp', {style:"", class:"snInfoBoxHead"}); + ed.dom.setAttrib('__snInfoBoxHeadTmp', 'id', ''); + }else{ + i = ed.selection.getBookmark(); + ed.dom.remove(enode, 1); + ed.selection.moveToBookmark(i); + } + tinyMCE.execCommand("mceEndUndoLevel"); +} +///////////////////////////////////////////////// + +SNStuffContentCounter = { + elm: Array(), + + isInit:false, + init: function(ed){ + + var elm = ed.getParam("snstuff_contentcounter","").replace(/ /g,"").split(","); + for(var e = 0; e < elm.length; e++){ + var l = new Object(); + + var cv = ed.getParam("snstuff_charcolor_"+elm[e],"none").replace(/ /g,""); + + if(cv != "none"){ + var a = new Array(); + cc = cv.split(","); + for(var cci = 0; cci < cc.length; cci++){ + var v = cc[cci].split(":"); + a.push({v:v[0],c:v[1]}); + } + l.c = a.sort(function(a,b){return a.v-b.v}); + } + + var wv = ed.getParam("snstuff_wordcolor_"+elm[e],"none").replace(/ /g,""); + + if(wv != "none"){ + var a = new Array(); + wc = wv.split(","); + for(var wci = 0; wci < wc.length; wci++){ + var v = wc[wci].split(":"); + a.push({v:v[0],c:v[1]}); + } + l.w = a.sort(function(a,b){return a.v-b.v}); + } + + this.elm[elm[e]] = l; + + } + + this.isInit = true; + }, + + counter : function(ed,e){ + if(!SNStuffContentCounter.isInit){ + SNStuffContentCounter.init(ed); + } + if(SNStuffContentCounter.elm[ed.id]){ + var c = ed.getContent().replace(/
                                                /g," ").replace(/<.+?>/g,"").replace(/ {1,}/g," ").replace(/^ | $/g,""); + var cl = c.length; + var wl = c.split(" ").length; + var p = tinymce.DOM.get(ed.id + '_path_row'); + html = ""; + + var cvl = SNStuffContentCounter.elm[ed.id]; + if(cvl.c){ + var col = ""; + for(var i = 0; i < cvl.c.length; i++){ + if(cl > cvl.c[i].v){ + col = "color:"+cvl.c[i].c; + } + } + html += ' Zeichen:'+cl+' '; + } + + if(cvl.w){ + + var col = ""; + for(var i = 0; i < cvl.w.length; i++){ + if(wl > cvl.w[i].v){ + col = "color:"+cvl.w[i].c; + } + } + html += ' Wörter:'+wl+' '; + } + tinymce.DOM.setHTML(p,html); + } + } +} + + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/editor_plugin_src.js b/sn_templates/editor_stuff/plugin/snstuff/editor_plugin_src.js new file mode 100644 index 0000000..4f961de --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/editor_plugin_src.js @@ -0,0 +1,618 @@ +(function() { + + tinymce.create('tinymce.plugins.SNStuff', { + +//// ImageUpload + init : function(ed, url) { + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + "/css/content.css"); + }); + + ed.addCommand('mceSNImages', function() { + ed.windowManager.open({ + file : url + '/html/image.html', + width : 490, + height : 550, + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addButton('snimages', { + title : 'snstuff.img_desc', + cmd : 'mceSNImages', + image : url + '/images/insert-image.png' + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('snimages', n.nodeName == 'IMG'); + }); + + +/// Link + ed.addCommand('mceSNLink', function() { + ed.windowManager.open({ + file : url + '/html/link.html', + width : 500 + parseInt(ed.getLang('snstuff.snlink_delta_width', 0)), + height : 180 + parseInt(ed.getLang('snstuff.snlink_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addButton('snlink', {title : 'snstuff.lnk_desc', cmd : 'mceSNLink', image: url+'/images/insert-link.png'}); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('snlink', false); + var node = n; + while(node != null){ + if(node.nodeName == 'A'){ + cm.setActive('snlink', true); + break; + } + node = node.parentNode; + } + }); + + +/// Code + ed.addCommand('mceSNCode', function() { + + handleSNCode(ed,url); + + }); + ed.addButton('sncode', {title : 'snstuff.code_desc', cmd : 'mceSNCode', image: url+'/images/code-context.png'}); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('sncode', n.nodeName == 'CODE'); + }); + +/// Infobox + ed.addCommand('mceSNInfoBox', function() { handleSNInfoBox(ed, url)}); + ed.addCommand('mceSNInfoBoxHead', function() { handleSNInfoBoxHead(ed, url) }); + + + ed.addButton('sninfobox', {title : 'snstuff.infobox_desc', cmd : 'mceSNInfoBox', image: url+'/images/textinfo.png'}); + ed.addButton('sninfoboxhead', {title : 'snstuff.infoboxhead_desc', cmd : 'mceSNInfoBoxHead', image: url+'/images/textinfo_head.png'}); + + + ed.onNodeChange.add(function(ed, cm, n) { + var scas = ed.dom.getParent(ed.selection.getStart(), function(n) {return ed.dom.hasClass(n, "snInfoBox");}) != null; + var scae = ed.dom.getParent(ed.selection.getEnd(), function(n) {return ed.dom.hasClass(n, "snInfoBox");}) != null; + var sca = scas && scae; + var scbs = ed.dom.getParent(ed.selection.getStart(), function(n) {return ed.dom.hasClass(n, "snInfoBoxHead");}) != null; + var scbe = ed.dom.getParent(ed.selection.getStart(), function(n) {return ed.dom.hasClass(n, "snInfoBoxHead");}) != null; + var scb = scbs && scbe; + + var cs = ed.selection.getContent().length > 0; + cm.setDisabled('sninfobox', scae != scas); + cm.setDisabled('sninfoboxhead', (!((sca && cs) || scb) || scae != scas)); + cm.setActive('sninfobox', sca); + cm.setActive('sninfoboxhead', scb); + }); + +/// Quote + ed.addCommand('mceSNQuote', function() { + + handleSNQuote(ed,url); + + }); + ed.addButton('snquote', {title : 'snstuff.quote_desc', cmd : 'mceSNQuote', image: url+'/images/quote.png'}); + + ed.onNodeChange.add(function(ed, cm, n) { + + cm.setActive('snquote', n.nodeName == 'BLOCKQUOTE'); + }); + +/// LinkVorschlag + Proposals.url = url; + ed.addCommand('mceSNProposals', function(ui,v) { + Proposals.findWordAll(ed); + }); + ed.onKeyUp.add( + function(ed,e){ + var an = ed.dom.getParent(ed.selection.getNode(),function(n){return n.nodeName == 'A'}); + if(an == null && e.keyCode == 32){ + var cm = ed.selection.getBookmark(); + var ps = ed.dom.get(cm.id+'_start').previousSibling; + var pos = ps.nodeValue.length; + ed.selection.moveToBookmark(cm); + Proposals.findWord(ed,ps,pos); + }else{ + Proposals.closeWin(); + } + } + ); + ed.addButton('snproposals', {title : 'snstuff.proposals_desc', cmd : 'mceSNProposals', image: url+'/images/proposals.png'}); + + ed.onLoadContent.add( SNStuffContentCounter.counter ); + ed.onChange.add( SNStuffContentCounter.counter ); + ed.onUndo.add( SNStuffContentCounter.counter ); + ed.onRedo.add( SNStuffContentCounter.counter ); + + ed.onKeyPress.add( SNStuffContentCounter.counter ); + + + }, // init + + +/////////////////////////////////////// + + getInfo : function() { + return { + longname : 'SN-Stuff (ImageUpload, Quote, Code, Link, etc.)', + author : 'Member from .de', + authorurl : 'http://www..de', + infourl : 'http://www..de', + version : "1.0" + }; + } + }); + + tinymce.PluginManager.add('snstuff', tinymce.plugins.SNStuff); +})(); + + + +//////////////////////////////////////////////////// +var Proposals = { + url: '', +// ajaxBlock: tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_block"), +// ajaxLink: tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_link"), + +// ajaxBlock: "/ajax_block", +// ajaxLink: "/ajax_link", + proposalsFrame: undefined, + proposalsFrameBody: undefined, + proposalsFrameId: Math.round(Math.random()*1000), + + running: false, + cancel: function(){ + if(this.running){ + this.running = false; + } + }, + + findWord: function(ed, node,pos){ + running = true; + var ntn = node; + var word; + var txt = node.nodeValue.substr(0,pos); + word = txt.replace(/ $/,'').split(/ /).pop(); + if(word.length > 0){ + this.getProposals(ed,ntn, word, pos, false); + } + },// find word + + findWordAll: function(ed){ + running = true; + var wl = new Array(); + this._getContentWordList(ed.getBody(),wl); + this.getProposals(ed,null,wl.join('+'),-1,true); + }, + + getProposals: function(ed,node, word, pos, block){ + var po = this; + if(!running){return;} + + tinymce.util.XHR.send({ + url : block ? tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_block", "/ajax_block") + : tinyMCE.activeEditor.getParam("snstuff_proposals_ajax_link","/ajax_link"), + content_type : "application/json", + type : "POST", + data : block ? "sn_msgbody="+escape(word) : "sn_key="+escape(word), + async : true, + scope : po, + + success : function( data, req, o ) { + var obj = tinymce.util.JSON.parse(data); + po.showProposals(obj, ed, node, pos, block); + }, + + error : function( type, req, o ){ alert("ERROR:"+type+"\n"+req+" - "+o);} + }); + }, + + closeWin: function(){ + this.cancel(); + if(this.proposalsFrame && this.proposalsFrame.style.display != 'none'){ + this.proposalsFrame.style.display = 'none'; + } + }, + showProposals:function(obj, ed, node, pos, block){ + if(!running){return;} + // remove used Lnk + tinymce.grep(ed.dom.select("a"), function(n) { + var h = n.getAttributeNode('href'); + if(h != null){ + var v = h.nodeValue; + for(var e in obj){ + if(v == obj[e].Link){ + delete obj[e]; + } + } + } + }); + + if(!this.proposalsFrame){this._buildFrame();} + + var pf = this.proposalsFrameBody; + while(pf.hasChildNodes()){ + pf.removeChild(pf.firstChild); + } + if(!obj){return;} + for(var i = 0; i < obj.length; i++){ + if(!obj[i]){continue;} + + var o = obj[i]; + var bgColor = (i%2 == 0) ? "#FFFAB3":"#FFFE9A"; + var root = this._buildHTMLElement("DIV","lnkBody_"+i,"border-bottom:black 1px solid;background-color:"+bgColor); + var lnk = this._buildHTMLElement("IMG","lnkLnk_"+i,"float:right;cursor:pointer"); + var desc = this._buildHTMLElement("DIV", "lnkDesc_"+i, "",o.Comment); + var prevLnk = this._buildHTMLElement("A","lnkPrevLnk_"+i,"", o.Link); + var keyword = this._buildHTMLElement("DIV","lnkKeyWord_"+i, "font-weight:bold", o.Key); + var small = this._buildHTMLElement("SMALL","lnkSmall_"+i); + small.appendChild(prevLnk); + lnk.src = this.url+"/images/add.png"; + lnk.alt = "Link einfügen"; + lnk.title = "Das Wort \""+o.Key+"\" im Text verlinken"; + prevLnk.href = o.Link; + prevLnk.target = "blank"; + + root.appendChild(keyword); keyword.appendChild(lnk); root.appendChild(desc);root.appendChild(small); + this._setOnclickEvent(lnk, {obj:o,block:block,ed:ed,node:node,pos:pos}); + pf.appendChild(root); + } + if(this.proposalsFrameBody.hasChildNodes()){ + this.proposalsFrame.style.display = "block"; + } + }, + _setOnclickEvent:function(lnk, o){ + var p = this; + lnk.onclick = function(){p._insertAction(o,this)}; + }, + _insertAction:function(o,fn){ + if(!o.block){ + this._insertLink(o); + this.closeWin(); + }else{ + var fw = this._findWord(o.ed.getBody(),o.obj.Key); + if(fw){ + this._insertLink(fw.node,fw.pos,o.obj.Link,o.ed); + var pe = fn.parentNode.parentNode; + pe.parentNode.removeChild(pe); + if(!this.proposalsFrameBody.hasChildNodes()){ + this.proposalsFrame.style.display = "none"; + } + } + } + }, + + _insertLink: function(o){ + var node = o.node; var pos = o.pos; var lnk = o.obj.Link; var ed = o.ed; + + var nv = node.nodeValue; + var pre = nv.substring(0,pos).replace(/ $/,'').split(/ /); + var post = " "+nv.substr(pos); + var w = pre.pop(); + var a = ed.getDoc().createElement('A'); + var ha = ed.getDoc().createAttribute("href"); + var tit = ed.getDoc().createAttribute("title"); + + tit.nodeValue=o.obj.Comment; + ha.nodeValue = lnk; + a.setAttributeNode(ha); + a.setAttributeNode(tit); + a.appendChild(ed.getDoc().createTextNode(w)); + + var pnode = node.parentNode; + + tinyMCE.execCommand("mceBeginUndoLevel"); + pnode.insertBefore(ed.getDoc().createTextNode(pre.join(' ')+' '),node); + pnode.insertBefore(a,node); + pnode.insertBefore(ed.getDoc().createTextNode(post),node); + pnode.removeChild(node); + tinyMCE.execCommand("mceEndUndoLevel"); + ed.focus(); + ed.selection.select(a); + ed.selection.collapse(); + }, + + _findWord: function(doc, word){ + var node = doc; + var w; + while(node != null){ + if(node.nodeType == 1 && node.nodeName != "A"){ + w = this._findWord(node.firstChild,word); + if(w){ return w;} + } + + if(node.nodeType == 3){ + var txt = node.nodeValue.toLowerCase(); + var p = txt.indexOf(word.toLowerCase()); + if(p != -1){ + return {pos:p+word.length, node: node}; + } + } + node = node.nextSibling; + } + return w; + }, + + _getContentWordList: function(doc, wlist){ + var node = doc; + + while(node != null){ + if(node.nodeType == 1 && node.nodeName != "A"){ + this._getContentWordList(node.firstChild, wlist); + } + + if(node.nodeType == 3){ + var lst = node.nodeValue.split(/ /); + while(lst.length > 0){ + var s = lst.pop().replace(/\s/g,""); + if(s != ""){ + wlist.push(s); + } + } + } + node = node.nextSibling; + } + }, +/////////////////////// + _buildFrame: function(){ + var container = tinyMCE.activeEditor.getContentAreaContainer(); + var ot = container.offsetTop; + var ol = container.offsetLeft + container.offsetWidth; + + if(document.getElementsByTagName("body")[0].offsetWidth < ol+355){ + ol = document.getElementsByTagName("body")[0].offsetWidth - 360; + } + + var pa = (document.all) ? "absolute":"fixed"; + + var p = this._buildHTMLElement("DIV", "proposalsFrame","position:"+pa+";width:350px;left:"+ol+"px;top:"+ot+"px;padding:5px;background-color:#FFFE9A;border:solid black 1px;"); + var h = this._buildHTMLElement("DIV", "proposalsFrameHead","border-bottom:black 1px solid;font-weight:bold;background-color:#FFF27A;cursor:pointer;padding:2px;","Tipps zum Thema"); + var b = this._buildHTMLElement("DIV", "proposalsFrameBody","min-height:100px;max-height:300px;overflow:auto;padding:5px;"); + var c = this._buildHTMLElement("IMG", "proposalsFrameClose","float:right"); + + + h.onmousedown = function(){ + var p = this.parentNode; + var ox,oy; + this.onmouseup = function(){p.onmousemove = function(){}; p.onmouseout = function(){}} + var m = function(ev){ + var px = (!ev) ? window.event.clientX : ev.pageX;var py = (!ev) ? window.event.clientY : ev.pageY; + if(!ox){oy = py - parseInt(this.style.top); ox = px - parseInt(this.style.left); } + this.style.left = (px-ox)+"px"; this.style.top = (py-oy)+"px"; + return false; + } + p.onmousemove = m;p.onmouseout = m; + return false; + } + + var me = this; + c.onclick = function(){me.closeWin()}; + + c.alt = "X"; + c.src = this.url+'/images/close.png'; + c.alt = "Fenster schlissen"; + c.title = "Fenster schliessen"; + + h.insertBefore(c,h.firstChild); + p.appendChild(h); p.appendChild(b) + + this.proposalsFrame = p; + this.proposalsFrameBody = b; + + document.getElementsByTagName("body")[0].appendChild(p); + }, + + _buildHTMLElement: function(n, id, style, txt){ + var e = document.createElement(n); + var an = document.createAttribute("id"); + an.nodeValue = id+"_"+this.proposalsFrameId; + var clazz = document.createAttribute("class"); + clazz.nodeValue = id; + e.setAttributeNode(clazz); + e.setAttributeNode(an); + + e.style.cssText = style; + if(txt){ e.appendChild( document.createTextNode(txt)); } + return e; + } +} + + +////////////////////////////////////////////////// +function handleSNCode(ed, url){ + var enode = ed.selection.getNode(); + var sel = ed.selection.getContent(); + var isBlock = (enode != null && enode.nodeName == 'CODE'); + + if(isBlock){ + + // Remove element + if(enode.nodeName == 'CODE'){ + tinyMCE.execCommand("mceBeginUndoLevel"); + i = ed.selection.getBookmark(); + ed.dom.remove(enode, 1); + ed.selection.moveToBookmark(i); + tinyMCE.execCommand("mceEndUndoLevel"); + return; + } + } + + tinyMCE.execCommand("mceBeginUndoLevel"); + + if(sel.length == 0 ){ + + ed.windowManager.open({ + file : url + '/html/code.html', + width : 410 + parseInt(ed.getLang('snstuff.snlink_delta_width', 0)), + height : 480 + parseInt(ed.getLang('snstuff.snlink_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }else{ + ed.execCommand('mceInsertContent', false, ''+ed.selection.getContent()+'', {skip_undo : 1}); + } + tinyMCE.execCommand("mceEndUndoLevel"); + +} + +function handleSNQuote(ed, url){ + var enode = ed.selection.getNode(); + var sel = ed.selection.getContent(); + var isBlock = (enode != null && enode.nodeName == 'BLOCKQUOTE'); + + if(isBlock){ + + // Remove element + if(enode.nodeName == 'BLOCKQUOTE'){ + tinyMCE.execCommand("mceBeginUndoLevel"); + i = ed.selection.getBookmark(); + ed.dom.remove(enode, 1); + ed.selection.moveToBookmark(i); + tinyMCE.execCommand("mceEndUndoLevel"); + return; + } + } + + tinyMCE.execCommand("mceBeginUndoLevel"); + + if(sel.length == 0 ){ + + ed.windowManager.open({ + file : url + '/html/quote.html', + width : 410 + parseInt(ed.getLang('snstuff.snquote_delta_width', 0)), + height : 450 + parseInt(ed.getLang('snstuff.snquote_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }else{ + ed.execCommand('mceInsertContent', false, '
                                                '+ed.selection.getContent()+'
                                                ', {skip_undo : 1}); + } + tinyMCE.execCommand("mceEndUndoLevel"); + +} + + +function handleSNInfoBox(ed, url){ + var enode = ed.selection.getNode(); + var sel = ed.selection.getContent(); + + ed.windowManager.open({ + file : url + '/html/infobox.html', + width : 250+ parseInt(ed.getLang('snstuff.snquote_delta_width', 0)), + height : 100 + parseInt(ed.getLang('snstuff.snquote_delta_height', 0)), + inline : 1 + }, { + node: enode, + plugin_url : url + }); +} + +function handleSNInfoBoxHead(ed, url){ + var enode = ed.dom.getParent(ed.selection.getNode(), function(n) {return ed.dom.hasClass(n, "snInfoBoxHead");}) + var sel = ed.selection.getContent(); + + tinyMCE.execCommand("mceBeginUndoLevel"); + if(sel.length > 0){ + ed.execCommand('mceInsertRawHTML', false, ''+ed.selection.getContent()+'',{skip_undo : 1}); + ed.dom.setAttribs('__snInfoBoxHeadTmp', {style:"", class:"snInfoBoxHead"}); + ed.dom.setAttrib('__snInfoBoxHeadTmp', 'id', ''); + }else{ + i = ed.selection.getBookmark(); + ed.dom.remove(enode, 1); + ed.selection.moveToBookmark(i); + } + tinyMCE.execCommand("mceEndUndoLevel"); +} +///////////////////////////////////////////////// + +SNStuffContentCounter = { + elm: Array(), + + isInit:false, + init: function(ed){ + + var elm = ed.getParam("snstuff_contentcounter","").replace(/ /g,"").split(","); + for(var e = 0; e < elm.length; e++){ + var l = new Object(); + + var cv = ed.getParam("snstuff_charcolor_"+elm[e],"none").replace(/ /g,""); + + if(cv != "none"){ + var a = new Array(); + cc = cv.split(","); + for(var cci = 0; cci < cc.length; cci++){ + var v = cc[cci].split(":"); + a.push({v:v[0],c:v[1]}); + } + l.c = a.sort(function(a,b){return a.v-b.v}); + } + + var wv = ed.getParam("snstuff_wordcolor_"+elm[e],"none").replace(/ /g,""); + + if(wv != "none"){ + var a = new Array(); + wc = wv.split(","); + for(var wci = 0; wci < wc.length; wci++){ + var v = wc[wci].split(":"); + a.push({v:v[0],c:v[1]}); + } + l.w = a.sort(function(a,b){return a.v-b.v}); + } + + this.elm[elm[e]] = l; + + } + + this.isInit = true; + }, + + counter : function(ed,e){ + if(!SNStuffContentCounter.isInit){ + SNStuffContentCounter.init(ed); + } + if(SNStuffContentCounter.elm[ed.id]){ + var c = ed.getContent().replace(/
                                                /g," ").replace(/<.+?>/g,"").replace(/ {1,}/g," ").replace(/^ | $/g,""); + var cl = c.length; + var wl = c.split(" ").length; + var p = tinymce.DOM.get(ed.id + '_path_row'); + html = ""; + + var cvl = SNStuffContentCounter.elm[ed.id]; + if(cvl.c){ + var col = ""; + for(var i = 0; i < cvl.c.length; i++){ + if(cl > cvl.c[i].v){ + col = "color:"+cvl.c[i].c; + } + } + html += ' Zeichen:'+cl+' '; + } + + if(cvl.w){ + + var col = ""; + for(var i = 0; i < cvl.w.length; i++){ + if(wl > cvl.w[i].v){ + col = "color:"+cvl.w[i].c; + } + } + html += ' Wörter:'+wl+' '; + } + tinymce.DOM.setHTML(p,html); + } + } +} + + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/html/code.html b/sn_templates/editor_stuff/plugin/snstuff/html/code.html new file mode 100644 index 0000000..2658a40 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/html/code.html @@ -0,0 +1,32 @@ + + + + {#snstuff_dlg.code_title} + + + + + + + + +
                                                +
                                                +
                                                + {#snstuff_dlg.code_general_props} + + +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/html/image.html b/sn_templates/editor_stuff/plugin/snstuff/html/image.html new file mode 100644 index 0000000..2d2372c --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/html/image.html @@ -0,0 +1,117 @@ + + + + {#snstuff_dlg.img_dialog_title} + + + + + + + + + + + + + +
                                                + + +
                                                + +
                                                +
                                                + {#snstuff_dlg.img_tab_upload} + + + + + + + + + +
                                                {#snstuff_dlg.img_imagefile_select} + + + +
                                                + +
                                                +
                                                +
                                                +
                                                + {#snstuff_dlg.img_general} + + + + + + + + + + + + + + + + + +
                                                + + + + {#snstuff_dlg.img_pic_show} + {#snstuff_dlg.img_pic_show_full} + + {#snstuff_dlg.img_video_pic} + {#snstuff_dlg.img_width} + {#snstuff_dlg.img_height} + + +
                                                + + + +
                                                +
                                                +
                                                +
                                                + {#snstuff_dlg.img_preview} + +
                                                +
                                                + +
                                                + +
                                                +
                                                + +
                                                + +
                                                + +
                                                +
                                                + + + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/html/image_bk.html b/sn_templates/editor_stuff/plugin/snstuff/html/image_bk.html new file mode 100644 index 0000000..678863a --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/html/image_bk.html @@ -0,0 +1,108 @@ + + + + {#snstuff_dlg.img_dialog_title} + + + + + + + + + + + + + +
                                                + + +
                                                + +
                                                +
                                                + {#snstuff_dlg.img_tab_upload} + + + + + + + + + +
                                                {#snstuff_dlg.img_imagefile_select} + + + +
                                                + +
                                                +
                                                +
                                                +
                                                + {#snstuff_dlg.img_general} + + + + + + + + + + + + + + + + + +
                                                + + +
                                                + + + +
                                                +
                                                +
                                                +
                                                + {#snstuff_dlg.img_preview} + +
                                                +
                                                + +
                                                + +
                                                +
                                                + +
                                                + +
                                                + +
                                                +
                                                + + + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/html/infobox.html b/sn_templates/editor_stuff/plugin/snstuff/html/infobox.html new file mode 100644 index 0000000..ce88ff6 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/html/infobox.html @@ -0,0 +1,41 @@ + + + + {#snstuff_dlg.ibox_title} + + + + + + + + +
                                                +
                                                +
                                                + {#snstuff_dlg.ibox_general_props} + + + + + +
                                                {#snstuff_dlg.ibox_input_size}px{#snstuff_dlg.ibox_input_float} + +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/html/link.html b/sn_templates/editor_stuff/plugin/snstuff/html/link.html new file mode 100644 index 0000000..966b420 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/html/link.html @@ -0,0 +1,36 @@ + + + + {#snstuff_dlg.lnk_title} + + + + + + + + +
                                                +
                                                +
                                                + {#snstuff_dlg.lnk_general_props} + + + + + +
                                                {#snstuff_dlg.lnk_field_url}
                                                {#snstuff_dlg.lnk_field_name}
                                                {#snstuff_dlg.lnk_field_desc}
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/html/quote.html b/sn_templates/editor_stuff/plugin/snstuff/html/quote.html new file mode 100644 index 0000000..78b3b18 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/html/quote.html @@ -0,0 +1,32 @@ + + + + {#snstuff_dlg.quote_title} + + + + + + + + +
                                                +
                                                +
                                                + {#snstuff_dlg.qoute_general_props} + + +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/add.png b/sn_templates/editor_stuff/plugin/snstuff/images/add.png new file mode 100644 index 0000000..e029787 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/add.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/close.png b/sn_templates/editor_stuff/plugin/snstuff/images/close.png new file mode 100644 index 0000000..4839c61 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/close.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/code-context.png b/sn_templates/editor_stuff/plugin/snstuff/images/code-context.png new file mode 100644 index 0000000..fd13a9e Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/code-context.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/insert-image.png b/sn_templates/editor_stuff/plugin/snstuff/images/insert-image.png new file mode 100644 index 0000000..e280e91 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/insert-image.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/insert-link.png b/sn_templates/editor_stuff/plugin/snstuff/images/insert-link.png new file mode 100644 index 0000000..9fd175e Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/insert-link.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/player.png b/sn_templates/editor_stuff/plugin/snstuff/images/player.png new file mode 100644 index 0000000..bc36f10 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/player.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/proposals.png b/sn_templates/editor_stuff/plugin/snstuff/images/proposals.png new file mode 100644 index 0000000..2658cca Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/proposals.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/quote.png b/sn_templates/editor_stuff/plugin/snstuff/images/quote.png new file mode 100644 index 0000000..cfedeec Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/quote.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/textinfo.png b/sn_templates/editor_stuff/plugin/snstuff/images/textinfo.png new file mode 100644 index 0000000..83ffab3 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/textinfo.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/textinfo_head.png b/sn_templates/editor_stuff/plugin/snstuff/images/textinfo_head.png new file mode 100644 index 0000000..548c807 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/textinfo_head.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/trans.gif b/sn_templates/editor_stuff/plugin/snstuff/images/trans.gif new file mode 100644 index 0000000..3884865 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/trans.gif differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/video.png b/sn_templates/editor_stuff/plugin/snstuff/images/video.png new file mode 100644 index 0000000..28f9700 Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/video.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/wait.gif b/sn_templates/editor_stuff/plugin/snstuff/images/wait.gif new file mode 100644 index 0000000..183fe6f Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/wait.gif differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/images/window-new.png b/sn_templates/editor_stuff/plugin/snstuff/images/window-new.png new file mode 100644 index 0000000..54ad48c Binary files /dev/null and b/sn_templates/editor_stuff/plugin/snstuff/images/window-new.png differ diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/code.js b/sn_templates/editor_stuff/plugin/snstuff/js/code.js new file mode 100644 index 0000000..d0f7b4a --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/code.js @@ -0,0 +1,69 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +function preinit() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function init() { + + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var node = ed.selection.getNode(); + + node = ed.dom.getParent(node, "A"); + + if(node != null && typeof node != 'undefined' && node.nodeName == 'A'){ + formObj.insert.value = tinyMCEPopup.getLang('update', 'Insert', true); + + var url = ed.dom.getAttrib(node,"href"); + var txt = node.firstChild.nodeValue; + + formObj.urlField.value = url; + formObj.descField.value = txt; + }else{ + var selTxt = ed.selection.getContent(); + + if(isURL(selTxt)){ + formObj.urlField.value = selTxt.replace(/^\s*/,""); + } + if(selTxt.length > 0){ + document.getElementById("urlDescription").style.visibility = "hidden"; + } + formObj.descField.value = selTxt; + + } + + +} +function insertAction() { + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var node = ed.selection.getNode() + + if (node && node.nodeName == 'A') { + ed.dom.setAttrib(node, "href", document.getElementById("urlField").value); + node.firstChild.nodeValue = document.getElementById("descField").value; + }else { + ed.execCommand('mceInsertContent', false, ''+formObj.descField.value+'', {skip_undo : 1}); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); +} + +function isURL(str){ + if(str.match(/^http(s){0,1}:\/\//) || str.match(/^\s*www.*\..+/)){ + return true; + } + + return false; +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/config.js b/sn_templates/editor_stuff/plugin/snstuff/js/config.js new file mode 100644 index 0000000..46b34cc --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/config.js @@ -0,0 +1,52 @@ +var Config = { + + imageListUrl : "" , + uploadUrl : "" , + deleteUrl : "" , + imageUrl : "", + artikelid : null , + pagetype : null, + +////////////////////////////////////////////////////////////////////////////////////// + getImageListUrl : function(){ + + var url = Config._replace( Config.imageListUrl ); + + return tinyMCEPopup.editor.documentBaseURI.toAbsolute(url); + }, + + getUploadUrl : function(){ + + var url = Config._replace( Config.uploadUrl ); + + return tinyMCEPopup.editor.documentBaseURI.toAbsolute(url); + }, + + getDeleteUrl : function(imgname){ + + var url = Config._replace( Config.deleteUrl ); + + url = url.replace(/\{imgname\}/g,imgname); + return tinyMCEPopup.editor.documentBaseURI.toAbsolute(url); + }, + + getImageUrl : function(imgname,nofull){ + + var url = Config._replace( Config.imageUrl ); + + url = url.replace(/\{imgname\}/g,imgname); + return (nofull)?url:tinyMCEPopup.editor.documentBaseURI.toAbsolute(url); + }, + + _replace : function(url){ + + if(Config.artikelid != null && typeof Config.artikelid != 'undefined'){ + url = url.replace(/\{artikelid\}/g,Config.artikelid); + } + if(Config.pagetype != null && typeof Config.pagetype != 'undefined'){ + url = url.replace(/\{pagetype\}/g,Config.pagetype); + } + return url; + } + +} \ No newline at end of file diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/image.js b/sn_templates/editor_stuff/plugin/snstuff/js/image.js new file mode 100644 index 0000000..6309ae3 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/image.js @@ -0,0 +1,445 @@ +var ImageDialog = { + preInit : function() { + var url; + + tinyMCEPopup.requireLangPack(); + + Config.artikelid = parent.entryid; + Config.pagetype = parent.pagetype; + //Config.imageListUrl = tinyMCEPopup.getParam("snstuff_img_url_list") || "/admin_list_pictures_json/{artikelid}"; + Config.imageListUrl = tinyMCEPopup.getParam("snstuff_img_url_list") || "{pagetype}?sx_action=on_image_list&id={artikelid}"; + //Config.uploadUrl = tinyMCEPopup.getParam("snstuff_img_url_upload") || "/{pagetype}/{artikelid}?sx_action=on_user_upload"; + Config.uploadUrl = tinyMCEPopup.getParam("snstuff_img_url_upload") || "{pagetype}?sx_action=on_image_upload&id={artikelid}"; + Config.deleteUrl = tinyMCEPopup.getParam("snstuff_img_url_delete") || "/admin_kill_picture?name=articleimage/sn_computer/{artikelid}/{imgname}&id={artikelid}"; + Config.imageUrl = tinyMCEPopup.getParam("snstuff_img_url_image") || "/on_image_preview/{artikelid}/{imgname}"; + + }, + + srcData:{}, + + selectedData:'', + + srcMedia:'', + media1:'', + media2:'', + + selM1:'', + selM2:'', + + videoW:undefined, + videoH:undefined, + + selBigges: true, + isUploading: false, + isDeleting: false, + + init : function(ed) { + + tinyMCEPopup.dom.get("uploadForm").action = Config.getUploadUrl(); + tinyMCEPopup.dom.get("src_list_vid_pic_elm").style.display = 'none'; + tinyMCEPopup.dom.get("l_src_list_size").style.display = 'none'; + tinyMCEPopup.dom.get("l_src_list_vpic").style.display = 'none'; + + var ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + tinyMCEPopup.resizeToInnerSize(); + + TinyMCE_EditableSelects.init(); + + if ( n != null && typeof n != 'undefined' && n.nodeName == 'IMG') { + this.selBigges = false; + document.getElementById("insert").value = ed.getLang('update'); + var imgURL = dom.getAttrib(n, 'src'); + if(n.className == 'snVideo'){ + this.selM2 = dom.getAttrib(n, 'alt'); + this.videoW = dom.getAttrib(n, 'width'); + this.videoH = dom.getAttrib(n, 'height'); + this.selM1 = dom.getAttrib(n, 'title'); + }else{ + + this.selM2 = dom.getAttrib(n, 'alt') + this.selM1 = imgURL.split('/').pop(); + + var a = 'none'; + if (ed.settings.inline_styles) { + if (!(a = dom.getStyle(n, 'float'))){ + a = dom.getStyle(n, 'vertical-align') + } + } + if(!a){ + a = dom.getAttrib(n, 'align'); + } + var al = tinyMCEPopup.dom.get("align"); + a = a.replace(/ /g,''); + for(var i = 0; i < al.length; i++){ + if(al.options[i].value == a) + al.selectedIndex = i; + } + } + } + + tinyMCEPopup.dom.get("video_width").value = this.videoW; + tinyMCEPopup.dom.get("video_height").value = this.videoH; + this.loadData(); + }, + + srcListAction: function(v){ + this.srcMedia = v; + tinyMCEPopup.dom.get("src_list_size_elm").style.display = 'none'; + tinyMCEPopup.dom.get("src_list_size_full_elm").style.display = 'none'; + tinyMCEPopup.dom.get("src_list_vid_pic_elm").style.display = 'none'; + tinyMCEPopup.dom.get("l_src_list_size").style.display = 'none'; + tinyMCEPopup.dom.get("l_src_list_vpic").style.display = 'none'; + tinyMCEPopup.dom.get("align").disabled = true; + + if(this.srcMedia.indexOf(':') == -1){ + this.previewData(); + return; + } + var on = this.srcMedia.split(':'); + + var lst = tinyMCEPopup.dom.get("src_list_size"); + var lst2 = tinyMCEPopup.dom.get("src_list_size_full"); + var lstv = tinyMCEPopup.dom.get("src_list_vid_pic"); + + lst.options.length = 0;lst2.options.length = 0; lstv.options.length = 0; + + + + if(on[0] == 'pic'){ + tinyMCEPopup.dom.get("src_list_size_elm").style.display = 'inline'; + tinyMCEPopup.dom.get("src_list_size_full_elm").style.display = 'inline'; + tinyMCEPopup.dom.get("l_src_list_size").style.display = 'inline'; + + tinyMCEPopup.dom.get("align").disabled = false; + var obj = this.srcData.pic[on[1]]; + var m = undefined, m2 = undefined; + for(var i = 0; i < obj.subpic.length; i++){ + obj.subpic[i].width = parseInt(obj.subpic[i].width); + obj.subpic[i].height = parseInt(obj.subpic[i].height); + + + var fname = obj.subpic[i].name; + var wh = obj.subpic[i].width + ' X '+ obj.subpic[i].height; + if( obj.subpic[i].isOrig ){ + wh += '*'; + } + + lst.options[lst.options.length] = new Option(wh, v+':'+i); + lst2.options[lst2.options.length] = new Option(wh, v+':'+i); + if(fname == this.selM1){lst.selectedIndex = lst.options.length-1;} + if(fname == this.selM2){lst2.selectedIndex = lst2.options.length-1;} + + if(this.selBigges){ + if(!m || m && (obj.subpic[i].width < m.width && obj.subpic[i].height < m.height)){ + lst.selectedIndex = lst.options.length-1; + m = obj.subpic[i]; + } + if(!m2 || m2 && (obj.subpic[i].width > m2.width && obj.subpic[i].height > m2.height)){ + lst2.selectedIndex = lst2.options.length-1; + m2 = obj.subpic[i]; + } + } + + } + + this.selBigges = true; + + lst.onchange();lst2.onchange(); + } + if(on[0] == 'vid'){ + var obj = this.srcData.video[on[1]]; + tinyMCEPopup.dom.get("src_list_vid_pic_elm").style.display = 'inline'; + tinyMCEPopup.dom.get("video_width").value = this.videoW ? this.videoW:obj.width; + tinyMCEPopup.dom.get("video_height").value = this.videoH ? this.videoH:obj.height; + tinyMCEPopup.dom.get("l_src_list_vpic").style.display = 'inline'; + + for(var e in this.srcData.pic){ + var pl = this.srcData.pic[e].subpic; + lstv.options[lstv.options.length] = new Option('',''); + for(var i = 0; i < pl.length; i++){ + lstv.options[lstv.options.length] = new Option(pl[i].name,'pic:'+e+':'+i); + if(pl[i].name == this.selM2){lstv.selectedIndex = lstv.options.length-1;} + } + } + lstv.onchange(); + } + }, + + media1Action: function(v){ + this.media1 = v; + this.previewData(); + }, + + media2Action: function(v){ + this.media2 = v; + }, + + + previewData : function() { + if (!this.srcMedia) { + tinyMCEPopup.dom.setHTML('prev', ''); + document.getElementById("imgDelBtn").disabled = true; + return; + } + var on; + if(this.srcMedia.indexOf("vid:") != -1){ + on = this.srcMedia.split(':'); + }else{ + on = this.media1.split(':'); + } + + var u; var html = ''; + if(on[0] == 'pic'){ + var p = this.srcData.pic[on[1]].subpic[on[2]]; + u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(Config.getImageUrl(p.name,true)); + html = ''; + + }else{ + var o = this.srcData.video[on[1]]; + var fvars = "file="+Config.getImageUrl(o.name,true); + if(this.media1 && this.media1.indexOf(':') != -1){ + var m2 = this.media1.split(':'); + fvars += "&image="+Config.getImageUrl(this.srcData.pic[m2[1]].subpic[m2[2]].name,true); + } + fvars +="&autoload=false"; + html = "" + +"" + +"" + +"" + +""; + } + document.getElementById("imgDelBtn").disabled = false + tinyMCEPopup.dom.setHTML('prev', html); + }, + + + insert:function(){ + var ed = tinyMCEPopup.editor, t = this + if (!this.srcMedia) { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + ////// insert/update + + tinyMCEPopup.restoreSelection(); + + // Fixes crash in Safari + if (tinymce.isWebKit){ ed.getWin().focus();} + + + + var args; + var clazzName = 'noresize'; + if(this.srcMedia && this.srcMedia.indexOf('pic:') != -1){ + var m1 = this.media1.split(':'); + var m2 = this.media2.split(':'); + + args = {'class':'noresize', + 'align': tinyMCEPopup.dom.get("align").value, + 'src': Config.getImageUrl(this.srcData.pic[m1[1]].subpic[m1[2]].name,true), + 'alt': this.srcData.pic[m2[1]].subpic[m2[2]].name, + 'style': "float:"+tinyMCEPopup.dom.get("align").value+";" + }; + } + + if(this.srcMedia && this.srcMedia.indexOf('vid:') != -1){ + var sm = this.srcMedia.split(':'); + var o = this.srcData.video[sm[1]]; + this.videoW = parseInt(tinyMCEPopup.dom.get("video_width").value); + this.videoH = parseInt(tinyMCEPopup.dom.get("video_height").value); + + if(!this.videoH || this.videoH < 0){ + this.videoH = o.height; + } + if(!this.videoW || this.videoW < 0){ + this.videoW = o.width; + } + + + clazzName = 'snVideo'; + args = {'class':'snVideo', + 'align': tinyMCEPopup.dom.get("align").value, + 'src': tinyMCEPopup.getWindowArg("plugin_url")+'/images/trans.gif', + 'title': o.name, + 'width':this.videoW, + 'height':this.videoH + } + if(this.media1 && this.media1.indexOf(':') != -1){ + var m1 = this.media1.split(':'); + args.alt = this.srcData.pic[m1[1]].subpic[m1[2]].name; + } + } + + el = ed.selection.getNode(); + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + if (el && el.nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + } + if(args){ + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); +// ed.dom.get('__mce_tmp').className = clazzName; + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + } + ed.undoManager.add(); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, +//////////////////////////////// Helper //////////////////////////// + + loadData: function(){ + var lst = tinyMCEPopup.dom.get("src_list"); + lst.options.length = 0; + lst.options[lst.options.length] = new Option('Lade Medienliste...',''); + lst.disabled = true; + var xmlHttp = this.getXMLHttpRequest(); + if(xmlHttp){ + xmlHttp.open('GET', Config.getImageListUrl(), true); + xmlHttp.onreadystatechange = function () { + + if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { + ImageDialog.parseAndSet(xmlHttp.responseText); + } + }; + xmlHttp.send(null); + } + }, + + deleteData: function(url){ + var xmlHttp = this.getXMLHttpRequest(); + if(xmlHttp){ + xmlHttp.open('GET', url, true); + xmlHttp.onreadystatechange = function () { + + if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { + ImageDialog.actionStop(); + } + }; + xmlHttp.send(null); + } + }, + + doDeleteImg : function(){ + var dl = ""; + if(this.srcMedia.indexOf("pic:") != -1){ + var m = this.media1.split(':'); + dl = Config.getDeleteUrl(this.srcData.pic[m[1]].subpic[m[2]].name); + }else{ + var m = this.srcMedia.split(':'); + dl = Config.getDeleteUrl(this.srcData.video[m[1]].name); + } + document.getElementById("imgDelBtn").disabled = true; + document.getElementById("waitImg").style.visibility = "visible"; + ImageDialog.isDeleting = true; + ImageDialog.deleteData(dl); + + }, + + getXMLHttpRequest: function(){ + var xmlHttp = null; + // Mozilla, Opera, Safari sowie Internet Explorer (ab v7) + if (typeof XMLHttpRequest != 'undefined') { + xmlHttp = new XMLHttpRequest(); + } + if (!xmlHttp) { + // Internet Explorer 6 und älter + try { + xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch(e) { + try { + xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); + } catch(e) { + xmlHttp = null; + } + } + } + return xmlHttp; + }, + + parseAndSet: function(xml){ + var obj = eval( '('+xml+')'); + + this.srcData = obj; + + // parse loaded JSON object & create new object + + var lst = tinyMCEPopup.dom.get("src_list"); + lst.options.length = 0; + lst.options[lst.options.length] = new Option('',''); + if(obj.pic){ + + lst.options[lst.options.length] = new Option('------ Bilder -----',''); + for(var e in obj.pic){ + if(obj.pic[e].name && obj.pic[e].name.length > 0){ + var p = obj.pic[e]; + obj.pic[e].subpic.push({name:p.name,width:p.width,height:p.height,isOrig:true}); + } + lst.options[lst.options.length] = new Option(e,'pic:'+e); + if(this.selM1 && this.selM1.toLowerCase().indexOf(e.toLowerCase()) != -1){lst.selectedIndex = lst.options.length-1;} + } + } + + if(obj.video && obj.video.length > 0){ + lst.options[lst.options.length] = new Option('------ Videos -----',''); + for(var i = 0; i < obj.video.length; i++){ + lst.options[lst.options.length] = new Option(obj.video[i].name,'vid:'+i); + if(this.selM1 == obj.video[i].name){lst.selectedIndex = lst.options.length-1;} + } + } + tinyMCEPopup.dom.get("src_list").disabled = false; + lst.onchange(); + }, + + uploadStart : function(){ + ImageDialog.isUploading = true; + document.getElementById("waitImg").style.visibility = "visible"; + document.getElementById("uploadSubmit").disabled = true; + }, + + actionStop : function(){ + + + if(ImageDialog.isUploading){ + + document.getElementById("waitImg").style.visibility = "hidden"; + document.getElementById("uploadSubmit").disabled = false; + document.getElementById("fileField").disabled = false; + document.getElementById("fileField").value = ""; + this.loadData(); + ImageDialog.isUploading = false; + } + + if(ImageDialog.isDeleting){ + document.getElementById("waitImg").style.visibility = "hidden"; + document.getElementById("imgDelBtn").disabled = false; + + this.loadData(); + + ImageDialog.isDeleting = false; + } + +// var http_status=507; +// var http_message='507 Insufficient Storage'; +// var error_message='Upload zu gross, bitte maximal 2 MB hochladen.'; + + var iFrame = document.getElementById('actionTarget').contentWindow; + + if(typeof iFrame.error_message != 'undefined'){ + alert(iFrame.error_message); + } + } + +}; + + +//////////////////////////////////////////////////// + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/image_bk.js b/sn_templates/editor_stuff/plugin/snstuff/js/image_bk.js new file mode 100644 index 0000000..2c1c1b9 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/image_bk.js @@ -0,0 +1,638 @@ +var ImageDialog = { + preInit : function() { + var url; + + tinyMCEPopup.requireLangPack(); + + Config.artikelid = parent.entryid; + Config.pagetype = parent.pagetpye; + Config.imageListUrl = tinyMCEPopup.getParam("snstuff_img_url_list") || "/admin_list_pictures_json/{artikelid}"; + Config.uploadUrl = tinyMCEPopup.getParam("snstuff_img_url_upload") || "/{pagetype}/{artikelid}?sx_action=on_user_upload"; + Config.deleteUrl = tinyMCEPopup.getParam("snstuff_img_url_delete") || "/admin_kill_picture?name=articleimage/sn_computer/{artikelid}/{imgname}&id={artikelid}"; + Config.imageUrl = tinyMCEPopup.getParam("snstuff_img_url_image") || "/articleimage/{artikelid}/{imgname}"; + + }, + + imgURL: "", + imgAlign:"", + + init : function(ed) { + ImageDialog.ImageList = new ImageData(); + + document.forms["uploadForm"].action = Config.getUploadUrl(); + + var ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + tinyMCEPopup.resizeToInnerSize(); + + TinyMCE_EditableSelects.init(); + + if ( n != null && typeof n != 'undefined' && n.nodeName == 'IMG') { + this.imgURL = dom.getAttrib(n, 'src'); + this.selectByValue(document.getElementById('align'), this.getAttrib(n, 'align')); + document.getElementById("insert").value = ed.getLang('update'); + this.imgAlign = dom.getAttrib(n, 'style'); + + if (ed.settings.inline_styles) { + // Move attribs to styles + if (dom.getAttrib(n, 'align')) + this.updateStyle('align'); + + if (dom.getAttrib(n, 'hspace')) + this.updateStyle('hspace'); + + if (dom.getAttrib(n, 'border')) + this.updateStyle('border'); + + if (dom.getAttrib(n, 'vspace')) + this.updateStyle('vspace'); + } + } + + this.changeAppearance(); + this.showPreviewImage(this.imgURL, 1); + this.loadImages(); + }, + + + selectOptions : function(){ + var n = tinyMCEPopup.editor.selection.getNode(), ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + if(n.nodeName != 'IMG') + return; + + var srcLstSize = tinyMCEPopup.dom.get("src_list_size").options; + var imgurl = this.imgURL; + var imgname = imgurl.split("/").pop(); + + // select image in selectbox + var oname = ImageDialog.ImageList.getOrigNameOf(imgname); + var slist = tinyMCEPopup.dom.get("src_list_size"); + slist.options.length = 0; + + ImageDialog.showImageSizeList({value:oname}); + + this.selectInList(tinyMCEPopup.dom.get("src_list"),oname); + this.selectInList(tinyMCEPopup.dom.get("src_list_size"),imgurl); + this.showSelectedImage(tinyMCEPopup.dom.get("src_list_size")); + this.selectInList(tinyMCEPopup.dom.get("src_list_size_full"),dom.getAttrib(n, 'href')); + }, + + showSelectedImage : function(obj){ + + this.imgURL = obj.options[obj.selectedIndex].value; + this.showPreviewImage(this.imgURL); + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor, t = this; + + if (this.imgURL === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + t.insertAndClose(); + + }, + + insertAndClose : function() { + var ed = tinyMCEPopup.editor, v, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + // Fixes crash in Safari + if (tinymce.isWebKit) + ed.getWin().focus(); + + if (!ed.settings.inline_styles) { + args = { + vspace : document.getElementById("vspace").value, + hspace : document.getElementById("hspace").value, + border : document.getElementById("border").value, + align : document.getElementById("align").value + }; + } else { + // Remove deprecated values + args = { + vspace : '', + hspace : '', + border : '', + align : '' + }; + } + var lnk = document.getElementById("src_list_size_full").value; + if(lnk == "auto."){ + lnk = ImageDialog.ImageList.getBiggest(document.getElementById("src_list").value) + } + tinymce.extend(args, { + src : this.imgURL, + alt : lnk, + style : this.imgAlign, + href : lnk + }); + + el = ed.selection.getNode(); + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + // entfernen und neu einfuegen. Weil das das advimagescale plugin sonst unerwuenschten nebeneffekt erzeugt + if (el && el.nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); +// ed.dom.setAttribs(el, args); + } //else { + + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); +// } + +// ed.execCommand('mceRepaint'); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + + fillSelectList : function() { + + var dom = tinyMCEPopup.dom, lst = dom.get("src_list"); + + lst.options.length = 0; + + lst.options[lst.options.length] = new Option('', ''); + ImageDialog.ImageList.fillListWithNames(lst); + + }, + + showImageSizeList : function(obj){ + var dom = tinyMCEPopup.dom; + var lst = dom.get("src_list_size"); + var lst2 = dom.get("src_list_size_full"); + + if(obj.selectedIndex == 0){ + this.imgURL = ""; + lst.options.length = 0; + lst2.options.length = 0; + this.showPreviewImage(); + }else{ + + lst.options.length = 0; + ImageDialog.ImageList.fillListWithSizeOf(lst,obj.value); + + + lst2.options.length = 0; + lst2.options[lst2.options.length] = new Option("auto.","auto."); + ImageDialog.ImageList.fillListWithSizeOf(lst2,obj.value); + + ImageDialog.showSelectedImage(document.getElementById("src_list_size")); + } + }, + + + + resetImageData : function() { +// document.getElementById("width").value = document.getElementById("height").value = ''; + }, + + + updateImageData : function(img, st) { + + this.preloadImg = img; + }, + + changeAppearance : function() { + var ed = tinyMCEPopup.editor, img = document.getElementById('alignSampleImg'); + + if (img) { + if (ed.getParam('inline_styles')) { + ed.dom.setAttrib(img, 'style', ImageDialog.imgAlign); + } else { + img.align = document.getElementById("align").value; + img.border = document.getElementById("border").value; + img.hspace = document.getElementById("hspace").value; + img.vspace = document.getElementById("vspace").value; + } + } + }, + + + updateStyle : function(ty) { + var dom = tinyMCEPopup.dom, st, v, img = dom.create('img', {style : ImageDialog.imgAlign}); + + if (tinyMCEPopup.editor.settings.inline_styles) { + // Handle align + if (ty == 'align') { + dom.setStyle(img, 'float', ''); + dom.setStyle(img, 'vertical-align', ''); + + v = document.getElementById("align").value; + if (v) { + if (v == 'left' || v == 'right') + dom.setStyle(img, 'float', v); + else + img.style.verticalAlign = v; + } + } + + // Handle border + if (ty == 'border') { + dom.setStyle(img, 'border', ''); + + v = document.getElementById("border").value; + if (v || v == '0') { + if (v == '0') + img.style.border = '0'; + else + img.style.border = v + 'px solid black'; + } + } + + // Handle hspace + if (ty == 'hspace') { + dom.setStyle(img, 'marginLeft', ''); + dom.setStyle(img, 'marginRight', ''); + + v = document.getElementById("hspace").value; + if (v) { + img.style.marginLeft = v + 'px'; + img.style.marginRight = v + 'px'; + } + } + + // Handle vspace + if (ty == 'vspace') { + dom.setStyle(img, 'marginTop', ''); + dom.setStyle(img, 'marginBottom', ''); + + v = document.getElementById("vspace").value; + if (v) { + img.style.marginTop = v + 'px'; + img.style.marginBottom = v + 'px'; + } + } + + // Merge + ImageDialog.imgAlign = dom.serializeStyle(dom.parseStyle(img.style.cssText)); + } + }, + + + showPreviewImage : function(u, st) { + + if (!u) { + tinyMCEPopup.dom.setHTML('prev', ''); + document.getElementById("imgDelBtn").disabled = true; + return; + } + + if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) + this.resetImageData(); + + u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); + document.getElementById("imgDelBtn").disabled = false + + if (!st) + tinyMCEPopup.dom.setHTML('prev', ''); + else + tinyMCEPopup.dom.setHTML('prev', ''); + }, + + + selectInList : function(list, val){ + + var lst = list.options; + var vimg = val.split("/").pop(); + + for(var i = 0; i < lst.length; i++){ + var oimg = lst[i].value.split("/").pop(); + + if(oimg == vimg){ + list.selectedIndex = i; + } + } + }, + + +//////////////////////////////// Helper //////////////////////////// + + loadImages: function(){ + var xmlHttp = this.getXMLHttpRequest(); + if(xmlHttp){ + xmlHttp.open('GET', Config.getImageListUrl(), true); + xmlHttp.onreadystatechange = function () { + + if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { + ImageDialog.parseAndSet(xmlHttp.responseText); + } + }; + xmlHttp.send(null); + } + }, + + deleteImage: function(url){ + var xmlHttp = this.getXMLHttpRequest(); + if(xmlHttp){ + xmlHttp.open('GET', url, true); + xmlHttp.onreadystatechange = function () { + + if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { + ImageDialog.actionStop(); + } + }; + xmlHttp.send(null); + } + }, + + getXMLHttpRequest: function(){ + var xmlHttp = null; + // Mozilla, Opera, Safari sowie Internet Explorer (ab v7) + if (typeof XMLHttpRequest != 'undefined') { + xmlHttp = new XMLHttpRequest(); + } + if (!xmlHttp) { + // Internet Explorer 6 und älter + try { + xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch(e) { + try { + xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); + } catch(e) { + xmlHttp = null; + } + } + } + return xmlHttp; + }, + + ImageList: null, + + parseAndSet: function(xml){ + var obj = eval('(' + xml + ')'); + + ImageDialog.ImageList.clear() + + // parse loaded JSON object & create new object + for(var i = 0; i < obj.length; i++){ + var size = obj[i].Size; + var lnk = obj[i].Link; + var imgnameFull = lnk.split("/").pop(); + + imgname = imgnameFull.replace("_"+size,""); + + var lnk_test = lnk.split("/"); + + if(lnk_test.length == 1 &&lnk_test.shift() != "http:"){ + lnk = Config.getImageUrl(lnk); + } + + if(size == 0) + size = "Orig."; + + ImageDialog.ImageList.add(imgname, lnk, size, imgnameFull); + } + + + this.fillSelectList(); + this.selectOptions(); + }, + + selectByValue: function (obj, value, add_custom, ignore_case) { + if (!obj) + return; + + var found = false; + for (var i=0; i parseInt(s) ){ + s = lst[i].size; + b = lst[i].url; + } + } + return b; +} + +ImageData.prototype.getUrlOf = function(img){ + for(n in this.list){ + var lst = this.list[n]; + for(var i = 0; i < lst.length; i++){ + if(lst[i].fn == img){ + return lst[i].url; + } + } + } +} + +ImageData.prototype.getOrigNameOf = function(img){ + + for(n in this.list){ + var lst = this.list[n]; + for(var i = 0; i < lst.length; i++){ + + if(lst[i].fullname == img){ + return n; + } + } + } +} + +ImageData.prototype.fillListWithNames = function(list){ + for(n in this.list){ + list.options[list.options.length] = new Option(n, n); + } +} + +ImageData.prototype.fillListWithSizeOf = function(list, img){ + + var lst = this.list[img]; + for(var i = 0; i < lst.length; i++){ + list.options[list.options.length] = new Option(lst[i].size, lst[i].url); + + } +} + +ImageData.prototype.fillList = function(l){ + + for(n in this.list){ + var lst = this.list[n]; +// if(list.options.length > 0){ + l.options[l.options.length] = new Option("",""); +// } + + for(var i = 0; i < lst.length; i++){ + l.options[l.options.length] = new Option(lst[i].fullname, lst[i].url); + } + } +} +//////////////////////////////////////////////////// + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/image_old.js b/sn_templates/editor_stuff/plugin/snstuff/js/image_old.js new file mode 100644 index 0000000..c084fee --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/image_old.js @@ -0,0 +1,565 @@ +var ImageDialog = { + preInit : function() { + var url; + + tinyMCEPopup.requireLangPack(); + + Config.artikelid = parent.entryid; + Config.pagetype = parent.pagetpye; + Config.imageListUrl = tinyMCEPopup.getParam("snstuff_img_url_list") || "/admin_list_pictures_json/{artikelid}"; + Config.uploadUrl = tinyMCEPopup.getParam("snstuff_img_url_upload") || "/{pagetype}/{artikelid}?sx_action=on_user_upload"; + Config.deleteUrl = tinyMCEPopup.getParam("snstuff_img_url_delete") || "/admin_kill_picture?name=articleimage/sn_computer/{artikelid}/{imgname}&id={artikelid}"; + Config.imageUrl = tinyMCEPopup.getParam("snstuff_img_url_image") || "/articleimage/{artikelid}/{imgname}"; + + }, + + + objData:{a:{},c:{},t:'',l:''}, + + activeDataName:'', + activeDataFullname:'', + activeClickPic:'', + isUploading: false, + isDeleting : false, + + srcData: {}, + isVideo: false, + + srcList:'', + srcListSize:'', + srcListSizeFull:'', + + selData: {}, + imgAlign:"", + + tsrcData:'', + tsrcDataName:'', + tpicShow:'', + tpicShowFull:'', + tvideoPic:'', + + init : function(ed) { + + this.watch('tsrcDataName',this.tsrcDataNameAction); + this.watch('tsrcData',this.tsrcDataAction); + this.watch('tpicShow',this.tpicShowAction); + + document.forms["uploadForm"].action = Config.getUploadUrl(); + + var ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + tinyMCEPopup.resizeToInnerSize(); + + TinyMCE_EditableSelects.init(); + + if ( n != null && typeof n != 'undefined' && n.nodeName == 'IMG') { + this.objData.t = 'pic'; + this.imgURL = dom.getAttrib(n, 'src'); + this.objData.a['click'] = dom.getAttrib(n, 'alt'); + this.selectByValue(document.getElementById('align'), this.getAttrib(n, 'align')); + document.getElementById("insert").value = ed.getLang('update'); + this.imgAlign = dom.getAttrib(n, 'style'); + + if (ed.settings.inline_styles) { + // Move attribs to styles + if (dom.getAttrib(n, 'align')) + this.updateStyle('align'); + } + + + } +// this.changeAppearance(); + this.loadData(); + }, + +//////////////////////////// +tsrcDataNameAction: function(p,o,n){ + this.tsrcData = this.srcData.o[n] +}, + +tpicShowAction: function(p,o,n){ + this.previewData(); +}, + +tpicShowFullAction: function(p,o,n){}, + + +tsrcDataAction: function(p,o,n){ + + var lst = tinyMCEPopup.dom.get("src_list_size"); + var lst2 = tinyMCEPopup.dom.get("src_list_size_full"); + var lstv = tinyMCEPopup.dom.get("src_list_vid_pic"); + lstv.options.length = 0; + lst.options.length = 0; + lst2.options.length = 0; + var sp = 0; var sp2 = 0; + + if(typeof(this.tsrcData) != 'undefined'){ + var dl = this.tsrcData.l; + + tinyMCEPopup.dom.get("src_list_size").style.display = 'inline'; + tinyMCEPopup.dom.get("src_list_size_full").style.display = 'inline'; + tinyMCEPopup.dom.get("src_list_vid_pic").style.display = 'none'; + tinyMCEPopup.dom.get("align").disabled = false; + + for(var i = 0; i < dl.length; i++){ + var o = this.tsrcData.o[dl[i]]; + if(o.fullName == this.activeDataFullname){sp = i;} + if(o.fullName == this.activeClickPic){sp2 = i;} + lst.options[lst.options.length] = new Option(o.size, o.fullName); + lst2.options[lst2.options.length] = new Option(o.size, o.fullName); + } + + if(!this.activeClickPic){ + var sd = -1; + for(var i = 0; i < lst2.options.length;i++){ + var txt = lst2.options[i].text; + var s = (txt == 'Orig.')?9999999:parseInt(txt); + if(s > sd ){ + sd = s; + sp2 = i; + } + } + } + lst2.selectedIndex = sp2; + lst.selectedIndex = sp; + + lst.onchange();lst2.onchange(); + } + +}, + +///////////////////////////// + +// changeAppearance : function() { +// var ed = tinyMCEPopup.editor, img = document.getElementById('alignSampleImg'); +// +// if (img) { +// if (ed.getParam('inline_styles')) { +// ed.dom.setAttrib(img, 'style', ImageDialog.imgAlign); +// } else { +// img.align = document.getElementById("align").value; +// } +// } +// }, + insert : function(file, title) { + var ed = tinyMCEPopup.editor, t = this; + + if (!this.srcList) { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + t.insertPicAndClose(); + + }, + insertPicAndClose : function() { + var ed = tinyMCEPopup.editor, v, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + // Fixes crash in Safari + if (tinymce.isWebKit) + ed.getWin().focus(); + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + +// if (!ed.settings.inline_styles) { + args = { + align : document.getElementById("align").value + }; +// } else { +// // Remove deprecated values +// args = { +// align : '' +// }; +// } + + tinymce.extend(args, { + src : this.selData.lnk, + alt : this.srcListSizeFull, + style : this.imgAlign, + href : this.selData.lnk + }); + + el = ed.selection.getNode(); + + + // entfernen und neu einfuegen. Weil das advimagescale plugin sonst unerwuenschten nebeneffekt erzeugt + if (el && el.nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); +// ed.dom.setAttribs(el, args); + } //else { +// if(this.srcList){ + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); +// } +// } + +// ed.execCommand('mceRepaint'); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, + + insertVideoAndClose: function(){ + var html = ""; + }, + + updateStyle : function(ty) { + var dom = tinyMCEPopup.dom, st, v, img = dom.create('img', {style : ImageDialog.imgAlign}); + + if (tinyMCEPopup.editor.settings.inline_styles) { + // Handle align + if (ty == 'align') { + dom.setStyle(img, 'float', ''); + dom.setStyle(img, 'vertical-align', ''); + + v = document.getElementById("align").value; + if (v) { + if (v == 'left' || v == 'right') + dom.setStyle(img, 'float', v); + else + img.style.verticalAlign = v; + } + } + // Merge + ImageDialog.imgAlign = dom.serializeStyle(dom.parseStyle(img.style.cssText)); + } + }, + + selectByValue: function (obj, value, add_custom, ignore_case) { + if (!obj) + return; + + var found = false; + for (var i=0; i sd ){ + sd = s; + sp2 = i; + } + } + } + lst2.selectedIndex = sp2; + lst.selectedIndex = sp; + + + this.srcListSize = lst.options[lst.selectedIndex].value; + this.srcListSizeFull = lst2.options[lst2.selectedIndex].value; + lst.onchange(); + }else{ + tinyMCEPopup.dom.get("src_list_size").style.display = 'none'; + tinyMCEPopup.dom.get("src_list_size_full").style.display = 'none'; + tinyMCEPopup.dom.get("src_list_vid_pic").style.display = 'inline'; + tinyMCEPopup.dom.get("align").disabled = true; + + this.selData = this.srcData.data[v].lst[0]; + + var d = this.srcData; + for(var i = 0; i < d.imgLst.length; i++){ + if(this.srcData.data[d.imgLst[i]].type != 'pic'){continue;} + var pl = this.srcData.data[d.imgLst[i]].lst; + lstv.options[lstv.options.length] = new Option('',''); + for(var j = 0; j < pl.length; j++){ + if(pl[j].fullName == this.srcListSize){ sp = lst.options.length}; + lstv.options[lstv.options.length] = new Option(pl[j].fullName,pl[j].fullName); + } + } + lstv.selectedIndex = sp; + lstv.onchange(); + } + } + + + }, + + picSizeAction:function(v){ + this.srcListSize = v; + this.selData = {}; + if(this.srcData.data[this.srcList]){ + var lst = this.srcData.data[this.srcList].lst; + for(var i = 0; i < lst.length; i++){ + if(lst[i].fullName == v){ + this.selData = lst[i]; + break; + } + } + } + this.previewData(this.selData); + }, + + videoPicAction: function(v){ + this.srcListSize = v; + }, + + picSizeFullAction:function(v){ + this.srcListSizeFull = v; + }, + + previewData : function() { + + if (!this.tsrcData) { + tinyMCEPopup.dom.setHTML('prev', ''); + document.getElementById("imgDelBtn").disabled = true; + return; + } + +// if (tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) +// this.resetImageData(); + var o = this.tsrcData.o[this.tpicShow]; + var u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(o.lnk); + document.getElementById("imgDelBtn").disabled = false + +// if (!st) +// tinyMCEPopup.dom.setHTML('prev', ''); +// else +// tinyMCEPopup.dom.setHTML('prev', ''); + tinyMCEPopup.dom.setHTML('prev', ''); + }, +//////////////////////////////// Helper //////////////////////////// + + loadData: function(){ + var xmlHttp = this.getXMLHttpRequest(); + if(xmlHttp){ + xmlHttp.open('GET', Config.getImageListUrl(), true); + xmlHttp.onreadystatechange = function () { + + if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { + ImageDialog.parseAndSet(xmlHttp.responseText); + } + }; + xmlHttp.send(null); + } + }, + + deleteData: function(url){ + var xmlHttp = this.getXMLHttpRequest(); + if(xmlHttp){ + xmlHttp.open('GET', url, true); + xmlHttp.onreadystatechange = function () { + + if (xmlHttp.readyState == 4 && xmlHttp.status == 200) { + ImageDialog.actionStop(); + } + }; + xmlHttp.send(null); + } + }, + + doDeleteImg : function(){ + var img = this.srcListSize;; + + document.getElementById("imgDelBtn").disabled = true; + document.getElementById("waitImg").style.visibility = "visible"; + ImageDialog.isDeleting = true; + ImageDialog.deleteData(Config.getDeleteUrl(img)); + + }, + + getXMLHttpRequest: function(){ + var xmlHttp = null; + // Mozilla, Opera, Safari sowie Internet Explorer (ab v7) + if (typeof XMLHttpRequest != 'undefined') { + xmlHttp = new XMLHttpRequest(); + } + if (!xmlHttp) { + // Internet Explorer 6 und älter + try { + xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); + } catch(e) { + try { + xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); + } catch(e) { + xmlHttp = null; + } + } + } + return xmlHttp; + }, + + parseAndSet: function(xml){ + var obj = eval('(' + xml + ')'); + + this.srcData = {'l':[],'o':{},'t':''}; + + var id = 0; + // parse loaded JSON object & create new object + + this.activeDataFullname = (this.imgURL)?this.imgURL.split('/').pop():undefined; + + for(var i = 0; i < obj.length; i++){ + var size = obj[i].Size; + var lnk = obj[i].Link; + var imgnameFull = lnk.split("/").pop(); + + imgname = imgnameFull.replace("_"+size,""); + + var lnk_test = lnk.split("/"); + + if(lnk_test.length == 1 &&lnk_test.shift() != "http:"){ + lnk = Config.getImageUrl(lnk); + } + + if(size == 0) + size = "Orig."; + + if(typeof(this.srcData.o[imgname]) == 'undefined'){ + this.srcData.l.push(imgname); + this.srcData.o[imgname] = {'l':[],'o':{},'t':''}; + this.srcData.o[imgname]['t'] = obj[i].Type; + } + + + this.srcData.o[imgname].o[imgnameFull] = {'name':imgname, 'fullName':imgnameFull, 'size':size,'lnk':lnk}; + this.srcData.o[imgname].l.push(imgnameFull); + + + if(imgnameFull == this.activeDataFullname){ this.activeDataName = imgname;} + } +//////////// + + var lst = tinyMCEPopup.dom.get("src_list"); + + lst.options.length = 0; + + lst.options[lst.options.length] = new Option('', ''); + var d = this.srcData; + var sp = 0; + for(var i = 0; i < d.l.length; i++){ + if(d.l[i] == this.activeDataName){ + sp = i+1; + } + lst.options[lst.options.length] = new Option(d.l[i], d.l[i]); + } + lst.selectedIndex = sp; + lst.onchange(); + }, + + uploadStart : function(){ + ImageDialog.isUploading = true; + document.getElementById("waitImg").style.visibility = "visible"; + document.getElementById("uploadSubmit").disabled = true; + }, + + actionStop : function(){ + + + if(ImageDialog.isUploading){ + + document.getElementById("waitImg").style.visibility = "hidden"; + document.getElementById("uploadSubmit").disabled = false; + document.getElementById("fileField").disabled = false; + document.getElementById("fileField").value = ""; + this.loadData(); + ImageDialog.isUploading = false; + } + + if(ImageDialog.isDeleting){ + document.getElementById("waitImg").style.visibility = "hidden"; + document.getElementById("imgDelBtn").disabled = false; + + this.loadData(); + + ImageDialog.isDeleting = false; + } + +// var http_status=507; +// var http_message='507 Insufficient Storage'; +// var error_message='Upload zu gross, bitte maximal 2 MB hochladen.'; + + var iFrame = document.getElementById('actionTarget').contentWindow; + + if(typeof iFrame.error_message != 'undefined'){ + alert(iFrame.error_message); + } + } + + + + +}; + + +//////////////////////////////////////////////////// + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/infobox.js b/sn_templates/editor_stuff/plugin/snstuff/js/infobox.js new file mode 100644 index 0000000..fdcd607 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/infobox.js @@ -0,0 +1,63 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +function preinit() { + var url; + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function init() { + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var node = ed.selection.getNode() + var sel = ed.selection.getContent(); + var pnode = ed.dom.getParent(node, function(n) {return ed.dom.hasClass(n, "snInfoBox");}); + + if(pnode){ + formObj.insert.value = tinyMCEPopup.getLang('update', 'Insert', true); + var _pwv = parseInt(pnode.style.width); + formObj.size.value = isNaN(_pwv) ? 100: _pwv; + var f = pnode.style.cssText.indexOf("float: left") != -1 ? "left":"right"; // workroung becouse pnode.style.float return undefined + var o = formObj.float.options; + for(var i = 0; i < o.length;i++){ + if(o[i].value == f){ + o.selectedIndex = i; + break; + } + } + } + } + +function insertAction() { + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var node = ed.selection.getNode() + var sel = ed.selection.getContent(); + var pnode = ed.dom.getParent(node, function(n) {return ed.dom.hasClass(n, "snInfoBox");}); + + var s = parseInt(formObj.size.value); + var f = formObj.float.value; + var args = {style: "width:"+s+"px; float:"+f+";", class:"snInfoBox"}; + + if(!pnode && sel.length == 0){ sel = tinyMCEPopup.getLang('snstuff_dlg.ibox_defaulttext', 'Text....', true);} + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + if(sel.length > 0){ + ed.execCommand('mceInsertRawHTML', false, ''+sel+'', {skip_undo : 1}); + ed.dom.setAttribs('__snInfoBoxTmp', args); + ed.dom.setAttrib('__snInfoBoxTmp', 'id', ''); + ed.undoManager.add(); + }else{ + ed.dom.setAttribs(pnode, args); + } + tinyMCEPopup.execCommand("mceEndUndoLevel"); + ed.execCommand('mceRepaint'); + tinyMCEPopup.close(); +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); + diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/sncode.js b/sn_templates/editor_stuff/plugin/snstuff/js/sncode.js new file mode 100644 index 0000000..e6bb069 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/sncode.js @@ -0,0 +1,32 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +function preinit() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function init() { + } +function insertAction() { + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var node = ed.selection.getNode() + +// if (node && node.nodeName == 'CODE') { +// node.firstChild.nodeValue = document.getElementById("text").value; +// }else { + ed.execCommand('mceInsertContent', false, ''+formObj.text.value.replace(/\n/g,"
                                                ")+'
                                                ', {skip_undo : 1}); + ed.undoManager.add(); +// } + + tinyMCEPopup.close(); +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); + diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/snlink.js b/sn_templates/editor_stuff/plugin/snstuff/js/snlink.js new file mode 100644 index 0000000..4a0d013 --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/snlink.js @@ -0,0 +1,112 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +function preinit() { +/* var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write('');*/ +} + + +function init() { + + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var enode = ed.selection.getNode(); + + var node = ed.dom.getParent(enode, "A"); + var selTxt = ed.selection.getContent(); + + if(enode.nodeName == 'IMG'){ + document.getElementById("urlName").style.visibility = "hidden"; + } + + if(node != null && typeof node != 'undefined' && node.nodeName == 'A'){ + formObj.insert.value = tinyMCEPopup.getLang('update', 'Insert', true); + + var url = ed.dom.getAttrib(node,"href"); + var txt = node.firstChild.nodeValue; + var desc = ed.dom.getAttrib(node,"title"); + formObj.urlField.value = url; + formObj.nameField.value = txt; + formObj.descField.value = desc; + + }else{ + + if(isURL(selTxt)){ + formObj.urlField.value = selTxt.replace(/^\s*/,""); + } + if(enode.nodeName != 'IMG'){ + formObj.nameField.value = selTxt; + } + if(selTxt.length > 0){ + document.getElementById("urlName").style.visibility = "hidden"; + } + + } +} + +function insertAction() { + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var enode = ed.selection.getNode(); + + var node = ed.dom.getParent(enode, "A"); + + // Remove element if there is no href + if (!formObj.urlField.value) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + i = ed.selection.getBookmark(); + ed.dom.remove(node, 1); + ed.selection.moveToBookmark(i); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + var lnk = formObj.urlField.value;//ed.baseURI.toAbsolute(formObj.urlField.value); + var title = formObj.descField.value; + if(!title || title.length == 0){ + title = lnk; + } + if (node && node.nodeName == 'A') { + ed.dom.setAttrib(node, "href", lnk); + ed.dom.setAttrib(node, "title", title); + node.firstChild.nodeValue = formObj.nameField.value; + + }else { +// if(ed.selection.getContent().length > 0){ +// ed.getDoc().execCommand("unlink", false, null); +// tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); +// +// elementArray = tinymce.grep(ed.dom.select("a"), function(n) {return ed.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); +// for (i=0; i'+formObj.nameField.value+'', {skip_undo : 1}); +// } + + } + + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + +} + + +function isURL(str){ + if(str.match(/^http(s){0,1}:\/\//) || str.match(/^\s*www.*\..+/)){ + return true; + } + + return false; +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/editor_stuff/plugin/snstuff/js/snquote.js b/sn_templates/editor_stuff/plugin/snstuff/js/snquote.js new file mode 100644 index 0000000..37d564f --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/js/snquote.js @@ -0,0 +1,31 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +function preinit() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function init() { +} +function insertAction() { + var formObj = document.forms[0]; + var ed = tinyMCEPopup.editor; + var node = ed.selection.getNode() + +// if (node && node.nodeName == 'BLOCKQUOTE') { +// node.firstChild.nodeValue = document.getElementById("text").value; +// }else { + ed.execCommand('mceInsertRawHTML', false, '
                                                '+formObj.text.value.replace(/\n/g,"
                                                ")+'
                                                ', {skip_undo : 1}); + ed.undoManager.add(); +// } + + tinyMCEPopup.close(); +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/editor_stuff/plugin/snstuff/langs/de_dlg.js b/sn_templates/editor_stuff/plugin/snstuff/langs/de_dlg.js new file mode 100644 index 0000000..ad9213d --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/langs/de_dlg.js @@ -0,0 +1,70 @@ +tinyMCE.addI18n('de.snstuff_dlg',{ +img_tab_upload: "Bilder Hochladen", +img_general:"Allgemein", +img_title:"Title", +img_preview:"Vorschau", +img_style:"Style", +img_classes:"Classes", +img_ltr:"Links nach Rechts", +img_rtl:"Rechts nach Links", +img_id:"Id", +img_map:"Bilderliste", +img_dialog_title:"Bilder/Videos Einf\u00FCgen/Bearbeiten", +img_list:"Medienliste", +img_align:"Ausrichtung", +img_align_top:"Oben", +img_align_middle:"Mittig", +img_align_bottom:"Unten", +img_align_texttop:"Text oben", +img_align_textbottom:"Text unten", +img_align_left:"Links", +img_align_right:"Reschts", +img_align_none:"Keine", +img_image_list:"Medienliste", +img_image_delete:"Löschen", +img_upload:"Bild/Video hochladen", +img_imagefile_select:"Bild/Video:", +img_imagefile_sndbtn: "Hochladen", +img_imagefile_uploadnotify:"Bildvorschau", +img_imagedelete:"Gewähltes Bild/Video löschen", +img_imgsize_40height : "40 Pixel Höhe", +img_imgsize_80height : "80 Pixel Höhe", +img_imgsize_200width : "200 Pixel Breite", +img_imgsize_470width : "470 Pixel Breite", +img_width:"Breite", +img_height:"Höhe", +img_pic_select : "Bild größe", +img_vpic_select : "Vorschaubild", +img_video_pic : " ", +img_pic_show : " ", +img_pic_show_full : " Vollbild ", + + +lnk_title: "Link Einf\u00FCgen/Bearbeiten", +lnk_general_props: "Link bearbeiten", +lnk_desc:"Link", +lnk_field_url:"URL", +lnk_field_desc:"Title (Opt.)", +lnk_field_name:"Text", + + +quote_desc:"Zitat", +qoute_general_props: "Zitat", +quote_title:"Zitat einf\u00FCgen", + +code_desc:"Quelltext", +code_general_props: "Quelltext", +code_title:"Quelltext einf\u00FCgen", + +ibox_title: "InfoBox Einf\u00FCgen/Bearbeiten", +ibox_general_props:"InfoBox", +ibox_input_titel:"Titel:", +ibox_input_size:"Breite:", +ibox_input_float:"Position:", +ibox_fopt_none:"keine", +ibox_fopt_right:"Rechts", +ibox_fopt_left:"Links", +ibox_defaulttext:"Bitte text eingeben..", +//// +last:"" +}); diff --git a/sn_templates/editor_stuff/plugin/snstuff/langs/en_dlg.js b/sn_templates/editor_stuff/plugin/snstuff/langs/en_dlg.js new file mode 100644 index 0000000..039c3ea --- /dev/null +++ b/sn_templates/editor_stuff/plugin/snstuff/langs/en_dlg.js @@ -0,0 +1,83 @@ +tinyMCE.addI18n('en.snimages_dlg',{ +tab_general:"General", +tab_appearance:"Appearance", +tab_advanced:"Advanced", +tab_upload: "Image Upload", +general:"General", +title:"Title", +preview:"Preview", +constrain_proportions:"Constrain proportions", +langdir:"Language direction", +langcode:"Language code", +long_desc:"Long description link", +style:"Style", +classes:"Classes", +ltr:"Left to right", +rtl:"Right to left", +id:"Id", +map:"Image map", +swap_image:"Swap image", +alt_image:"Alternative image", +mouseover:"for mouse over", +mouseout:"for mouse out", +misc:"Miscellaneous", +example_img:"Appearance preview image", +missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", +dialog_title:"1Insert/edit image", +src:"Image URL", +alt:"Image description", +list:"Image list", +border:"Border", +dimensions:"Dimensions", +vspace:"Vertical space", +hspace:"Horizontal space", +align:"Alignment", +align_baseline:"Baseline", +align_top:"Top", +align_middle:"Middle", +align_bottom:"Bottom", +align_texttop:"Text top", +align_textbottom:"Text bottom", +align_left:"Left", +align_right:"Right", +align_none:"None", +image_list:"Image list", +image_delete:"Delete", +upload:"Image Upload", +imagefile_select:"Select Image", +imagefile_sndbtn: "Upload", +imagefile_uploadnotify:"Image Preview", +imagedelete:"Delete selected Image", +imgsize_40height : "40 Pixel height", +imgsize_80height : "80 Pixel height", +imgsize_200width : "200 Pixel width", +imgsize_470width : "470 Pixel width", + + +lnk_title: "Insert/Edit link", +lnk_general_props: "Edit Link", +lnk_desc:"Link", +lnk_field_url:"URL", +lnk_field_desc:"Description", + +quote_desc:"Quote", +qoute_general_props: "Quote", +quote_title:"Insert Quote", + +code_desc:"Code", +code_general_props: "Code", +code_title:"Insert Code", + +ibox_titel:"Insert/Edit InfoBox", +ibox_general_props:"InfoBox", +ibox_input_titel:"Titel:", +ibox_input_size:"Width:", +ibox_input_float:"Position:", +ibox_fopt_none:"none", +ibox_fopt_right:"Right", +ibox_fopt_left:"Left", +ibox_defaulttext:"Enter text here...", +//// +last:"" + +}); \ No newline at end of file diff --git a/sn_templates/editor_stuff/readme.txt b/sn_templates/editor_stuff/readme.txt new file mode 100644 index 0000000..ad31fdb --- /dev/null +++ b/sn_templates/editor_stuff/readme.txt @@ -0,0 +1,5 @@ + Im Ordner editor_stuff befinden sich alle geänderten dateien/plugins. +Bei ein update des editor sollte drauf geachtet werden das alle links passen. +Das sind im Ordner editor_stuff die links: utils und tinymce_popup.js +Im unterordner langs von tinymce sollte ein link auf die deutsche sprachdatei(de.js) im ordner editor_stuff befinden. +Oder die de.js in den langs ordner von tinymce kopieren. diff --git a/sn_templates/editor_stuff/themes/advanced/about.htm b/sn_templates/editor_stuff/themes/advanced/about.htm new file mode 100644 index 0000000..0e3cb94 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/about.htm @@ -0,0 +1,54 @@ + + + + {#advanced_dlg.about_title} + + + + + + + +
                                                +
                                                +

                                                {#advanced_dlg.about_title}

                                                +

                                                Version: ()

                                                +

                                                TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL + by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

                                                +

                                                Copyright © 2003-2008, Moxiecode Systems AB, All rights reserved.

                                                +

                                                For more information about this software visit the TinyMCE website.

                                                + +
                                                + Got Moxie? + Hosted By Sourceforge + Also on freshmeat +
                                                +
                                                + +
                                                +
                                                +

                                                {#advanced_dlg.about_loaded}

                                                + +
                                                +
                                                + +

                                                 

                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + + diff --git a/sn_templates/editor_stuff/themes/advanced/anchor.htm b/sn_templates/editor_stuff/themes/advanced/anchor.htm new file mode 100644 index 0000000..9c70f9b --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/anchor.htm @@ -0,0 +1,26 @@ + + + + {#advanced_dlg.anchor_title} + + + + +
                                                + + + + + + + + +
                                                {#advanced_dlg.anchor_title}
                                                {#advanced_dlg.anchor_name}:
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/themes/advanced/charmap.htm b/sn_templates/editor_stuff/themes/advanced/charmap.htm new file mode 100644 index 0000000..c36c237 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/charmap.htm @@ -0,0 +1,52 @@ + + + + {#advanced_dlg.charmap_title} + + + + + + + + + + + + + + + +
                                                {#advanced_dlg.charmap_title}
                                                + + + + + + + + + +
                                                 
                                                 
                                                +
                                                + + + + + + + + + + + + + + + + +
                                                HTML-Code
                                                 
                                                 
                                                NUM-Code
                                                 
                                                +
                                                + + + diff --git a/sn_templates/editor_stuff/themes/advanced/color_picker.htm b/sn_templates/editor_stuff/themes/advanced/color_picker.htm new file mode 100644 index 0000000..148550f --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/color_picker.htm @@ -0,0 +1,73 @@ + + + + {#advanced_dlg.colorpicker_title} + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#advanced_dlg.colorpicker_picker_title} +
                                                + + +
                                                + +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#advanced_dlg.colorpicker_palette_title} +
                                                + +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + {#advanced_dlg.colorpicker_named_title} +
                                                + +
                                                + +
                                                + +
                                                + {#advanced_dlg.colorpicker_name} +
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                + +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/themes/advanced/editor_template.js b/sn_templates/editor_stuff/themes/advanced/editor_template.js new file mode 100644 index 0000000..008b995 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/editor_template.js @@ -0,0 +1 @@ +(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l)}if(j.settings.content_css!==false){j.dom.loadCSS(j.baseURI.toAbsolute("themes/advanced/skins/"+j.settings.skin+"/content.css"))}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();p=i.formatter.matchAll(n);if(p[0]==o){i.formatter.remove(o)}else{i.formatter.apply(o)}return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){i.execCommand("FontName",false,l);return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){if(i["class"]){k.focus();k.formatter.toggle("fontsize_class",{value:i["class"]})}else{k.execCommand("FontSize",false,i.fontSize)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",cmd:"FormatBlock"});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;m=j=d.create("span",{id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=d.stdMode?u.getElementsByTagName("tr"):u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},""),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_tbl");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,l){var j=this.editor,k=this.settings,m=d.get(j.id+"_tbl"),n=d.get(j.id+"_ifr");i=Math.max(k.theme_advanced_resizing_min_width||100,i);l=Math.max(k.theme_advanced_resizing_min_height||100,l);i=Math.min(k.theme_advanced_resizing_max_width||65535,i);l=Math.min(k.theme_advanced_resizing_max_height||65535,l);d.setStyle(m,"height","");d.setStyle(n,"height",l);if(k.theme_advanced_resize_horizontal){d.setStyle(m,"width","");d.setStyle(n,"width",i);if(i"))}q.push(d.createHTML("a",{href:"#",accesskey:"q",title:r.getLang("advanced.toolbar_focus")},""));for(p=1;(y=A["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(A["theme_advanced_buttons"+p+"_add"]){y+=","+A["theme_advanced_buttons"+p+"_add"]}if(A["theme_advanced_buttons"+p+"_add_before"]){y=A["theme_advanced_buttons"+p+"_add_before"]+","+y}z._addControls(y,m);q.push(m.renderHTML());k.deltaHeight-=A.theme_advanced_row_height}q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},""));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row"},w.theme_advanced_path?p.translate("advanced.path")+": ":" ");d.add(k,"a",{href:"#",accesskey:"x"});if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);if(w.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+p.id+"_size",{cw:n,ch:E})}}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_nodeChanged:function(r,z,l,x,j){var C=this,i,y=0,B,u,D=C.settings,A,k,w,m,q;e.each(C.stateControls,function(n){z.setActive(n,r.queryCommandState(C.controls[n][1]))});function o(p){var s,n=j.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s= 1 && v <= 7) { + k = v + ' (' + t.sizes[v - 1] + 'pt)'; + cl = s.font_size_classes[v - 1]; + v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt'); + } + + if (/^\s*\./.test(v)) + cl = v.replace(/\./g, ''); + + o[k] = cl ? {'class' : cl} : {fontSize : v}; + }); + + s.theme_advanced_font_sizes = o; + } + + if ((v = s.theme_advanced_path_location) && v != 'none') + s.theme_advanced_statusbar_location = s.theme_advanced_path_location; + + if (s.theme_advanced_statusbar_location == 'none') + s.theme_advanced_statusbar_location = 0; + + // Init editor + ed.onInit.add(function() { + if (!ed.settings.readonly) + ed.onNodeChange.add(t._nodeChanged, t); + + if (ed.settings.content_css !== false) + ed.dom.loadCSS(ed.baseURI.toAbsolute("themes/advanced/skins/" + ed.settings.skin + "/content.css")); + }); + + ed.onSetProgressState.add(function(ed, b, ti) { + var co, id = ed.id, tb; + + if (b) { + t.progressTimer = setTimeout(function() { + co = ed.getContainer(); + co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild); + tb = DOM.get(ed.id + '_tbl'); + + DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}}); + DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}}); + }, ti || 0); + } else { + DOM.remove(id + '_blocker'); + DOM.remove(id + '_progress'); + clearTimeout(t.progressTimer); + } + }); + + DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css"); + + if (s.skin_variant) + DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css"); + }, + + createControl : function(n, cf) { + var cd, c; + + if (c = cf.createControl(n)) + return c; + + switch (n) { + case "styleselect": + return this._createStyleSelect(); + + case "formatselect": + return this._createBlockFormats(); + + case "fontselect": + return this._createFontSelect(); + + case "fontsizeselect": + return this._createFontSizeSelect(); + + case "forecolor": + return this._createForeColorMenu(); + + case "backcolor": + return this._createBackColorMenu(); + } + + if ((cd = this.controls[n])) + return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]}); + }, + + execCommand : function(cmd, ui, val) { + var f = this['_' + cmd]; + + if (f) { + f.call(this, ui, val); + return true; + } + + return false; + }, + + _importClasses : function(e) { + var ed = this.editor, ctrl = ed.controlManager.get('styleselect'); + + if (ctrl.getLength() == 0) { + each(ed.dom.getClasses(), function(o, idx) { + var name = 'style_' + idx; + + ed.formatter.register(name, { + inline : 'span', + attributes : {'class' : o['class']}, + selector : '*' + }); + + ctrl.add(o['class'], name); + }); + } + }, + + _createStyleSelect : function(n) { + var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl; + + // Setup style select box + ctrl = ctrlMan.createListBox('styleselect', { + title : 'advanced.style_select', + onselect : function(name) { + var matches, formatNames = []; + + each(ctrl.items, function(item) { + formatNames.push(item.value); + }); + + ed.focus(); + + // Toggle off the current format + matches = ed.formatter.matchAll(formatNames); + if (matches[0] == name) + ed.formatter.remove(name); + else + ed.formatter.apply(name); + + return false; // No auto select + } + }); + + // Handle specified format + ed.onInit.add(function() { + var counter = 0, formats = ed.getParam('style_formats'); + + if (formats) { + each(formats, function(fmt) { + var name, keys = 0; + + each(fmt, function() {keys++;}); + + if (keys > 1) { + name = fmt.name = fmt.name || 'style_' + (counter++); + ed.formatter.register(name, fmt); + ctrl.add(fmt.title, name); + } else + ctrl.add(fmt.title); + }); + } else { + each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) { + var name; + + if (val) { + name = 'style_' + (counter++); + + ed.formatter.register(name, { + inline : 'span', + classes : val, + selector : '*' + }); + + ctrl.add(t.editor.translate(key), name); + } + }); + } + }); + + // Auto import classes if the ctrl box is empty + if (ctrl.getLength() == 0) { + ctrl.onPostRender.add(function(ed, n) { + if (!ctrl.NativeListBox) { + Event.add(n.id + '_text', 'focus', t._importClasses, t); + Event.add(n.id + '_text', 'mousedown', t._importClasses, t); + Event.add(n.id + '_open', 'focus', t._importClasses, t); + Event.add(n.id + '_open', 'mousedown', t._importClasses, t); + } else + Event.add(n.id, 'focus', t._importClasses, t); + }); + } + + return ctrl; + }, + + _createFontSelect : function() { + var c, t = this, ed = t.editor; + + c = ed.controlManager.createListBox('fontselect', { + title : 'advanced.fontdefault', + onselect : function(v) { + ed.execCommand('FontName', false, v); + return false; // No auto select + } + }); + + if (c) { + each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) { + c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''}); + }); + } + + return c; + }, + + _createFontSizeSelect : function() { + var t = this, ed = t.editor, c, i = 0, cl = []; + + c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) { + if (v['class']) { + ed.focus(); + ed.formatter.toggle('fontsize_class', {value : v['class']}); + } else + ed.execCommand('FontSize', false, v.fontSize); + + return false; // No auto select + }}); + + if (c) { + each(t.settings.theme_advanced_font_sizes, function(v, k) { + var fz = v.fontSize; + + if (fz >= 1 && fz <= 7) + fz = t.sizes[parseInt(fz) - 1] + 'pt'; + + c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))}); + }); + } + + return c; + }, + + _createBlockFormats : function() { + var c, fmts = { + p : 'advanced.paragraph', + address : 'advanced.address', + pre : 'advanced.pre', + h1 : 'advanced.h1', + h2 : 'advanced.h2', + h3 : 'advanced.h3', + h4 : 'advanced.h4', + h5 : 'advanced.h5', + h6 : 'advanced.h6', + div : 'advanced.div', + blockquote : 'advanced.blockquote', + code : 'advanced.code', + dt : 'advanced.dt', + dd : 'advanced.dd', + samp : 'advanced.samp' + }, t = this; + + c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', cmd : 'FormatBlock'}); + if (c) { + each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) { + c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v}); + }); + } + + return c; + }, + + _createForeColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_text_colors) + o.colors = v; + + if (s.theme_advanced_default_foreground_color) + o.default_color = s.theme_advanced_default_foreground_color; + + o.title = 'advanced.forecolor_desc'; + o.cmd = 'ForeColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('forecolor', o); + + return c; + }, + + _createBackColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_background_colors) + o.colors = v; + + if (s.theme_advanced_default_background_color) + o.default_color = s.theme_advanced_default_background_color; + + o.title = 'advanced.backcolor_desc'; + o.cmd = 'HiliteColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('backcolor', o); + + return c; + }, + + renderUI : function(o) { + var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl; + + n = p = DOM.create('span', {id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '')}); + + if (!DOM.boxModel) + n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'}); + + n = sc = DOM.add(n, 'table', {id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0}); + n = tb = DOM.add(n, 'tbody'); + + switch ((s.theme_advanced_layout_manager || '').toLowerCase()) { + case "rowlayout": + ic = t._rowLayout(s, tb, o); + break; + + case "customlayout": + ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p); + break; + + default: + ic = t._simpleLayout(s, tb, o, p); + } + + n = o.targetNode; + + // Add classes to first and last TRs + nl = DOM.stdMode ? sc.getElementsByTagName('tr') : sc.rows; // Quick fix for IE 8 + DOM.addClass(nl[0], 'mceFirst'); + DOM.addClass(nl[nl.length - 1], 'mceLast'); + + // Add classes to first and last TDs + each(DOM.select('tr', tb), function(n) { + DOM.addClass(n.firstChild, 'mceFirst'); + DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast'); + }); + + if (DOM.get(s.theme_advanced_toolbar_container)) + DOM.get(s.theme_advanced_toolbar_container).appendChild(p); + else + DOM.insertAfter(p, n); + + Event.add(ed.id + '_path_row', 'click', function(e) { + e = e.target; + + if (e.nodeName == 'A') { + t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1')); + + return Event.cancel(e); + } + }); +/* + if (DOM.get(ed.id + '_path_row')) { + Event.add(ed.id + '_tbl', 'mouseover', function(e) { + var re; + + e = e.target; + + if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) { + re = DOM.get(ed.id + '_path_row'); + t.lastPath = re.innerHTML; + DOM.setHTML(re, e.parentNode.title); + } + }); + + Event.add(ed.id + '_tbl', 'mouseout', function(e) { + if (t.lastPath) { + DOM.setHTML(ed.id + '_path_row', t.lastPath); + t.lastPath = 0; + } + }); + } +*/ + + if (!ed.getParam('accessibility_focus')) + Event.add(DOM.add(p, 'a', {href : '#'}, ''), 'focus', function() {tinyMCE.get(ed.id).focus();}); + + if (s.theme_advanced_toolbar_location == 'external') + o.deltaHeight = 0; + + t.deltaHeight = o.deltaHeight; + o.targetNode = null; + + return { + iframeContainer : ic, + editorContainer : ed.id + '_parent', + sizeContainer : sc, + deltaHeight : o.deltaHeight + }; + }, + + getInfo : function() { + return { + longname : 'Advanced theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + }, + + resizeBy : function(dw, dh) { + var e = DOM.get(this.editor.id + '_tbl'); + + this.resizeTo(e.clientWidth + dw, e.clientHeight + dh); + }, + + resizeTo : function(w, h) { + var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr'); + + // Boundery fix box + w = Math.max(s.theme_advanced_resizing_min_width || 100, w); + h = Math.max(s.theme_advanced_resizing_min_height || 100, h); + w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w); + h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h); + + // Resize iframe and container + DOM.setStyle(e, 'height', ''); + DOM.setStyle(ifr, 'height', h); + + if (s.theme_advanced_resize_horizontal) { + DOM.setStyle(e, 'width', ''); + DOM.setStyle(ifr, 'width', w); + + // Make sure that the size is never smaller than the over all ui + if (w < e.clientWidth) + DOM.setStyle(ifr, 'width', e.clientWidth); + } + }, + + destroy : function() { + var id = this.editor.id; + + Event.clear(id + '_resize'); + Event.clear(id + '_path_row'); + Event.clear(id + '_external_close'); + }, + + // Internal functions + + _simpleLayout : function(s, tb, o, p) { + var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c; + + if (s.readonly) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + return ic; + } + + // Create toolbar container at top + if (lo == 'top') + t._addToolbars(tb, o); + + // Create external toolbar + if (lo == 'external') { + n = c = DOM.create('div', {style : 'position:relative'}); + n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'}); + DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'}); + n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0}); + etb = DOM.add(n, 'tbody'); + + if (p.firstChild.className == 'mceOldBoxModel') + p.firstChild.appendChild(c); + else + p.insertBefore(c, p.firstChild); + + t._addToolbars(etb, o); + + ed.onMouseUp.add(function() { + var e = DOM.get(ed.id + '_external'); + DOM.show(e); + + DOM.hide(lastExtID); + + var f = Event.add(ed.id + '_external_close', 'click', function() { + DOM.hide(ed.id + '_external'); + Event.remove(ed.id + '_external_close', 'click', f); + }); + + DOM.show(e); + DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1); + + // Fixes IE rendering bug + DOM.hide(e); + DOM.show(e); + e.style.filter = ''; + + lastExtID = ed.id + '_external'; + + e = null; + }); + } + + if (sl == 'top') + t._addStatusBar(tb, o); + + // Create iframe container + if (!s.theme_advanced_toolbar_container) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + } + + // Create toolbar container at bottom + if (lo == 'bottom') + t._addToolbars(tb, o); + + if (sl == 'bottom') + t._addStatusBar(tb, o); + + return ic; + }, + + _rowLayout : function(s, tb, o) { + var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a; + + dc = s.theme_advanced_containers_default_class || ''; + da = s.theme_advanced_containers_default_align || 'center'; + + each(explode(s.theme_advanced_containers || ''), function(c, i) { + var v = s['theme_advanced_container_' + c] || ''; + + switch (v.toLowerCase()) { + case 'mceeditor': + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + break; + + case 'mceelementpath': + t._addStatusBar(tb, o); + break; + + default: + a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(tb, 'tr'), 'td', { + 'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da + }); + + to = cf.createToolbar("toolbar" + i); + t._addControls(v, to); + DOM.setHTML(n, to.renderHTML()); + o.deltaHeight -= s.theme_advanced_row_height; + } + }); + + return ic; + }, + + _addControls : function(v, tb) { + var t = this, s = t.settings, di, cf = t.editor.controlManager; + + if (s.theme_advanced_disable && !t._disabled) { + di = {}; + + each(explode(s.theme_advanced_disable), function(v) { + di[v] = 1; + }); + + t._disabled = di; + } else + di = t._disabled; + + each(explode(v), function(n) { + var c; + + if (di && di[n]) + return; + + // Compatiblity with 2.x + if (n == 'tablecontrols') { + each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) { + n = t.createControl(n, cf); + + if (n) + tb.add(n); + }); + + return; + } + + c = t.createControl(n, cf); + + if (c) + tb.add(c); + }); + }, + + _addToolbars : function(c, o) { + var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a; + + a = s.theme_advanced_toolbar_align.toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar ' + a}); + + if (!ed.getParam('accessibility_focus')) + h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '')); + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '')); + + // Create toolbar and add the controls + for (i=1; (v = s['theme_advanced_buttons' + i]); i++) { + tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i}); + + if (s['theme_advanced_buttons' + i + '_add']) + v += ',' + s['theme_advanced_buttons' + i + '_add']; + + if (s['theme_advanced_buttons' + i + '_add_before']) + v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v; + + t._addControls(v, tb); + + //n.appendChild(n = tb.render()); + h.push(tb.renderHTML()); + + o.deltaHeight -= s.theme_advanced_row_height; + } + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '')); + DOM.setHTML(n, h.join('')); + }, + + _addStatusBar : function(tb, o) { + var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td; + + n = DOM.add(tb, 'tr'); + n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'}); + n = DOM.add(n, 'div', {id : ed.id + '_path_row'}, s.theme_advanced_path ? ed.translate('advanced.path') + ': ' : ' '); + DOM.add(n, 'a', {href : '#', accesskey : 'x'}); + + if (s.theme_advanced_resizing) { + DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize'}); + + if (s.theme_advanced_resizing_use_cookie) { + ed.onPostRender.add(function() { + var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl'); + + if (!o) + return; + + t.resizeTo(o.cw, o.ch); + }); + } + + ed.onPostRender.add(function() { + Event.add(ed.id + '_resize', 'mousedown', function(e) { + var mouseMoveHandler1, mouseMoveHandler2, + mouseUpHandler1, mouseUpHandler2, + startX, startY, startWidth, startHeight, width, height, ifrElm; + + function resizeOnMove(e) { + width = startWidth + (e.screenX - startX); + height = startHeight + (e.screenY - startY); + + t.resizeTo(width, height); + }; + + function endResize(e) { + // Stop listening + Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1); + Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2); + Event.remove(DOM.doc, 'mouseup', mouseUpHandler1); + Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2); + + // Store away the size + if (s.theme_advanced_resizing_use_cookie) { + Cookie.setHash("TinyMCE_" + ed.id + "_size", { + cw : width, + ch : height + }); + } + }; + + e.preventDefault(); + + // Get the current rect size + startX = e.screenX; + startY = e.screenY; + ifrElm = DOM.get(t.editor.id + '_ifr'); + startWidth = width = ifrElm.clientWidth; + startHeight = height = ifrElm.clientHeight; + + // Register envent handlers + mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove); + mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove); + mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize); + mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize); + }); + }); + } + + o.deltaHeight -= 21; + n = tb = null; + }, + + _nodeChanged : function(ed, cm, n, co, ob) { + var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, formatNames, matches; + + tinymce.each(t.stateControls, function(c) { + cm.setActive(c, ed.queryCommandState(t.controls[c][1])); + }); + + function getParent(name) { + var i, parents = ob.parents, func = name; + + if (typeof(name) == 'string') { + func = function(node) { + return node.nodeName == name; + }; + } + + for (i = 0; i < parents.length; i++) { + if (func(parents[i])) + return parents[i]; + } + }; + + cm.setActive('visualaid', ed.hasVisual); + cm.setDisabled('undo', !ed.undoManager.hasUndo() && !ed.typing); + cm.setDisabled('redo', !ed.undoManager.hasRedo()); + cm.setDisabled('outdent', !ed.queryCommandState('Outdent')); + + p = getParent('A'); + if (c = cm.get('link')) { + if (!p || !p.name) { + c.setDisabled(!p && co); + c.setActive(!!p); + } + } + + if (c = cm.get('unlink')) { + c.setDisabled(!p && co); + c.setActive(!!p && !p.name); + } + + if (c = cm.get('anchor')) { + c.setActive(!!p && p.name); + } + + p = getParent('IMG'); + if (c = cm.get('image')) + c.setActive(!!p && n.className.indexOf('mceItem') == -1); + + if (c = cm.get('styleselect')) { + t._importClasses(); + + formatNames = []; + each(c.items, function(item) { + formatNames.push(item.value); + }); + + matches = ed.formatter.matchAll(formatNames); + c.select(matches[0]); + } + + if (c = cm.get('formatselect')) { + p = getParent(DOM.isBlock); + + if (p) + c.select(p.nodeName.toLowerCase()); + } + + // Find out current fontSize, fontFamily and fontClass + getParent(function(n) { + if (n.nodeName === 'SPAN') { + if (!cl && n.className) + cl = n.className; + + if (!fz && n.style.fontSize) + fz = n.style.fontSize; + + if (!fn && n.style.fontFamily) + fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase(); + } + + return false; + }); + + if (c = cm.get('fontselect')) { + c.select(function(v) { + return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn; + }); + } + + // Select font size + if (c = cm.get('fontsizeselect')) { + // Use computed style + if (s.theme_advanced_runtime_fontsize && !fz && !cl) + fz = ed.dom.getStyle(n, 'fontSize', true); + + c.select(function(v) { + if (v.fontSize && v.fontSize === fz) + return true; + + if (v['class'] && v['class'] === cl) + return true; + }); + } + + if (s.theme_advanced_path && s.theme_advanced_statusbar_location) { + p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'}); + DOM.setHTML(p, ''); + + getParent(function(n) { + var na = n.nodeName.toLowerCase(), u, pi, ti = ''; + + /*if (n.getAttribute('_mce_bogus')) + return; +*/ + // Ignore non element and hidden elements + if (n.nodeType != 1 || n.nodeName === 'BR' || (DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))) + return; + + // Fake name + if (v = DOM.getAttrib(n, 'mce_name')) + na = v; + + // Handle prefix + if (tinymce.isIE && n.scopeName !== 'HTML') + na = n.scopeName + ':' + na; + + // Remove internal prefix + na = na.replace(/mce\:/g, ''); + + // Handle node name + switch (na) { + case 'b': + na = 'strong'; + break; + + case 'i': + na = 'em'; + break; + + case 'img': + if (v = DOM.getAttrib(n, 'src')) + ti += 'src: ' + v + ' '; + + break; + + case 'a': + if (v = DOM.getAttrib(n, 'name')) { + ti += 'name: ' + v + ' '; + na += '#' + v; + } + + if (v = DOM.getAttrib(n, 'href')) + ti += 'href: ' + v + ' '; + + break; + + case 'font': + if (v = DOM.getAttrib(n, 'face')) + ti += 'font: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'size')) + ti += 'size: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'color')) + ti += 'color: ' + v + ' '; + + break; + + case 'span': + if (v = DOM.getAttrib(n, 'style')) + ti += 'style: ' + v + ' '; + + break; + } + + if (v = DOM.getAttrib(n, 'id')) + ti += 'id: ' + v + ' '; + + if (v = n.className) { + v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '') + + if (v) { + ti += 'class: ' + v + ' '; + + if (DOM.isBlock(n) || na == 'img' || na == 'span') + na += '.' + v; + } + } + + na = na.replace(/(html:)/g, ''); + na = {name : na, node : n, title : ti}; + t.onResolveName.dispatch(t, na); + ti = na.title; + na = na.name; + + //u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');"; + pi = DOM.create('a', {'href' : "javascript:;", onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na); + + if (p.hasChildNodes()) { + p.insertBefore(DOM.doc.createTextNode(' \u00bb '), p.firstChild); + p.insertBefore(pi, p.firstChild); + } else + p.appendChild(pi); + }, ed.getBody()); + } + }, + + // Commands gets called by execCommand + + _sel : function(v) { + this.editor.execCommand('mceSelectNodeDepth', false, v); + }, + + _mceInsertAnchor : function(ui, v) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/anchor.htm', + width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)), + height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceCharMap : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/charmap.htm', + width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceHelp : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/about.htm', + width : 480, + height : 380, + inline : true + }, { + theme_url : this.url + }); + }, + + _mceColorPicker : function(u, v) { + var ed = this.editor; + + v = v || {}; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/color_picker.htm', + width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)), + close_previous : false, + inline : true + }, { + input_color : v.color, + func : v.func, + theme_url : this.url + }); + }, + + _mceCodeEditor : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/source_editor.htm', + width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)), + height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)), + inline : true, + resizable : true, + maximizable : true + }, { + theme_url : this.url + }); + }, + + _mceImage : function(ui, val) { + var ed = this.editor; + + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/image.htm', + width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)), + height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceLink : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/link.htm', + width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)), + height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceNewDocument : function() { + var ed = this.editor; + + ed.windowManager.confirm('advanced.newdocument', function(s) { + if (s) + ed.execCommand('mceSetContent', false, ''); + }); + }, + + _mceForeColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.fgColor, + func : function(co) { + t.fgColor = co; + t.editor.execCommand('ForeColor', false, co); + } + }); + }, + + _mceBackColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.bgColor, + func : function(co) { + t.bgColor = co; + t.editor.execCommand('HiliteColor', false, co); + } + }); + }, + + _ufirst : function(s) { + return s.substring(0, 1).toUpperCase() + s.substring(1); + } + }); + + tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme); +}(tinymce)); \ No newline at end of file diff --git a/sn_templates/editor_stuff/themes/advanced/image.htm b/sn_templates/editor_stuff/themes/advanced/image.htm new file mode 100644 index 0000000..98fd2cd --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/image.htm @@ -0,0 +1,80 @@ + + + + {#advanced_dlg.image_title} + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                + x +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/themes/advanced/img/colorpicker.jpg b/sn_templates/editor_stuff/themes/advanced/img/colorpicker.jpg new file mode 100644 index 0000000..b4c542d Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/img/colorpicker.jpg differ diff --git a/sn_templates/editor_stuff/themes/advanced/img/icons.gif b/sn_templates/editor_stuff/themes/advanced/img/icons.gif new file mode 100644 index 0000000..e46de53 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/img/icons.gif differ diff --git a/sn_templates/editor_stuff/themes/advanced/js/about.js b/sn_templates/editor_stuff/themes/advanced/js/about.js new file mode 100644 index 0000000..7fc8ba2 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/js/about.js @@ -0,0 +1,72 @@ +tinyMCEPopup.requireLangPack(); + +function init() { + var ed, tcont; + + tinyMCEPopup.resizeToInnerSize(); + ed = tinyMCEPopup.editor; + + // Give FF some time + window.setTimeout(insertHelpIFrame, 10); + + tcont = document.getElementById('plugintablecontainer'); + document.getElementById('plugins_tab').style.display = 'none'; + + var html = ""; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + + tinymce.each(ed.plugins, function(p, n) { + var info; + + if (!p.getInfo) + return; + + html += ''; + + info = p.getInfo(); + + if (info.infourl != null && info.infourl != '') + html += ''; + else + html += ''; + + if (info.authorurl != null && info.authorurl != '') + html += ''; + else + html += ''; + + html += ''; + html += ''; + + document.getElementById('plugins_tab').style.display = ''; + + }); + + html += ''; + html += '
                                                ' + ed.getLang('advanced_dlg.about_plugin') + '' + ed.getLang('advanced_dlg.about_author') + '' + ed.getLang('advanced_dlg.about_version') + '
                                                ' + info.longname + '' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
                                                '; + + tcont.innerHTML = html; + + tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion; + tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate; +} + +function insertHelpIFrame() { + var html; + + if (tinyMCEPopup.getParam('docs_url')) { + html = ''; + document.getElementById('iframecontainer').innerHTML = html; + document.getElementById('help_tab').style.display = 'block'; + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/editor_stuff/themes/advanced/js/anchor.js b/sn_templates/editor_stuff/themes/advanced/js/anchor.js new file mode 100644 index 0000000..d7a854e --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/js/anchor.js @@ -0,0 +1,37 @@ +tinyMCEPopup.requireLangPack(); + +var AnchorDialog = { + init : function(ed) { + var action, elm, f = document.forms[0]; + + this.editor = ed; + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + v = ed.dom.getAttrib(elm, 'name'); + + if (v) { + this.action = 'update'; + f.anchorName.value = v; + } + + f.insert.value = ed.getLang(elm ? 'update' : 'insert'); + }, + + update : function() { + var ed = this.editor, elm, name = document.forms[0].anchorName.value; + + tinyMCEPopup.restoreSelection(); + + if (this.action != 'update') + ed.selection.collapse(1); + + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + if (elm) + elm.name = name; + else + ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, '')); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog); diff --git a/sn_templates/editor_stuff/themes/advanced/js/charmap.js b/sn_templates/editor_stuff/themes/advanced/js/charmap.js new file mode 100644 index 0000000..53a2683 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/js/charmap.js @@ -0,0 +1,335 @@ +/** + * charmap.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var charmap = [ + [' ', ' ', true, 'no-break space'], + ['&', '&', true, 'ampersand'], + ['"', '"', true, 'quotation mark'], +// finance + ['¢', '¢', true, 'cent sign'], + ['€', '€', true, 'euro sign'], + ['£', '£', true, 'pound sign'], + ['¥', '¥', true, 'yen sign'], +// signs + ['©', '©', true, 'copyright sign'], + ['®', '®', true, 'registered sign'], + ['™', '™', true, 'trade mark sign'], + ['‰', '‰', true, 'per mille sign'], + ['µ', 'µ', true, 'micro sign'], + ['·', '·', true, 'middle dot'], + ['•', '•', true, 'bullet'], + ['…', '…', true, 'three dot leader'], + ['′', '′', true, 'minutes / feet'], + ['″', '″', true, 'seconds / inches'], + ['§', '§', true, 'section sign'], + ['¶', '¶', true, 'paragraph sign'], + ['ß', 'ß', true, 'sharp s / ess-zed'], +// quotations + ['‹', '‹', true, 'single left-pointing angle quotation mark'], + ['›', '›', true, 'single right-pointing angle quotation mark'], + ['«', '«', true, 'left pointing guillemet'], + ['»', '»', true, 'right pointing guillemet'], + ['‘', '‘', true, 'left single quotation mark'], + ['’', '’', true, 'right single quotation mark'], + ['“', '“', true, 'left double quotation mark'], + ['”', '”', true, 'right double quotation mark'], + ['‚', '‚', true, 'single low-9 quotation mark'], + ['„', '„', true, 'double low-9 quotation mark'], + ['<', '<', true, 'less-than sign'], + ['>', '>', true, 'greater-than sign'], + ['≤', '≤', true, 'less-than or equal to'], + ['≥', '≥', true, 'greater-than or equal to'], + ['–', '–', true, 'en dash'], + ['—', '—', true, 'em dash'], + ['¯', '¯', true, 'macron'], + ['‾', '‾', true, 'overline'], + ['¤', '¤', true, 'currency sign'], + ['¦', '¦', true, 'broken bar'], + ['¨', '¨', true, 'diaeresis'], + ['¡', '¡', true, 'inverted exclamation mark'], + ['¿', '¿', true, 'turned question mark'], + ['ˆ', 'ˆ', true, 'circumflex accent'], + ['˜', '˜', true, 'small tilde'], + ['°', '°', true, 'degree sign'], + ['−', '−', true, 'minus sign'], + ['±', '±', true, 'plus-minus sign'], + ['÷', '÷', true, 'division sign'], + ['⁄', '⁄', true, 'fraction slash'], + ['×', '×', true, 'multiplication sign'], + ['¹', '¹', true, 'superscript one'], + ['²', '²', true, 'superscript two'], + ['³', '³', true, 'superscript three'], + ['¼', '¼', true, 'fraction one quarter'], + ['½', '½', true, 'fraction one half'], + ['¾', '¾', true, 'fraction three quarters'], +// math / logical + ['ƒ', 'ƒ', true, 'function / florin'], + ['∫', '∫', true, 'integral'], + ['∑', '∑', true, 'n-ary sumation'], + ['∞', '∞', true, 'infinity'], + ['√', '√', true, 'square root'], + ['∼', '∼', false,'similar to'], + ['≅', '≅', false,'approximately equal to'], + ['≈', '≈', true, 'almost equal to'], + ['≠', '≠', true, 'not equal to'], + ['≡', '≡', true, 'identical to'], + ['∈', '∈', false,'element of'], + ['∉', '∉', false,'not an element of'], + ['∋', '∋', false,'contains as member'], + ['∏', '∏', true, 'n-ary product'], + ['∧', '∧', false,'logical and'], + ['∨', '∨', false,'logical or'], + ['¬', '¬', true, 'not sign'], + ['∩', '∩', true, 'intersection'], + ['∪', '∪', false,'union'], + ['∂', '∂', true, 'partial differential'], + ['∀', '∀', false,'for all'], + ['∃', '∃', false,'there exists'], + ['∅', '∅', false,'diameter'], + ['∇', '∇', false,'backward difference'], + ['∗', '∗', false,'asterisk operator'], + ['∝', '∝', false,'proportional to'], + ['∠', '∠', false,'angle'], +// undefined + ['´', '´', true, 'acute accent'], + ['¸', '¸', true, 'cedilla'], + ['ª', 'ª', true, 'feminine ordinal indicator'], + ['º', 'º', true, 'masculine ordinal indicator'], + ['†', '†', true, 'dagger'], + ['‡', '‡', true, 'double dagger'], +// alphabetical special chars + ['À', 'À', true, 'A - grave'], + ['Á', 'Á', true, 'A - acute'], + ['Â', 'Â', true, 'A - circumflex'], + ['Ã', 'Ã', true, 'A - tilde'], + ['Ä', 'Ä', true, 'A - diaeresis'], + ['Å', 'Å', true, 'A - ring above'], + ['Æ', 'Æ', true, 'ligature AE'], + ['Ç', 'Ç', true, 'C - cedilla'], + ['È', 'È', true, 'E - grave'], + ['É', 'É', true, 'E - acute'], + ['Ê', 'Ê', true, 'E - circumflex'], + ['Ë', 'Ë', true, 'E - diaeresis'], + ['Ì', 'Ì', true, 'I - grave'], + ['Í', 'Í', true, 'I - acute'], + ['Î', 'Î', true, 'I - circumflex'], + ['Ï', 'Ï', true, 'I - diaeresis'], + ['Ð', 'Ð', true, 'ETH'], + ['Ñ', 'Ñ', true, 'N - tilde'], + ['Ò', 'Ò', true, 'O - grave'], + ['Ó', 'Ó', true, 'O - acute'], + ['Ô', 'Ô', true, 'O - circumflex'], + ['Õ', 'Õ', true, 'O - tilde'], + ['Ö', 'Ö', true, 'O - diaeresis'], + ['Ø', 'Ø', true, 'O - slash'], + ['Œ', 'Œ', true, 'ligature OE'], + ['Š', 'Š', true, 'S - caron'], + ['Ù', 'Ù', true, 'U - grave'], + ['Ú', 'Ú', true, 'U - acute'], + ['Û', 'Û', true, 'U - circumflex'], + ['Ü', 'Ü', true, 'U - diaeresis'], + ['Ý', 'Ý', true, 'Y - acute'], + ['Ÿ', 'Ÿ', true, 'Y - diaeresis'], + ['Þ', 'Þ', true, 'THORN'], + ['à', 'à', true, 'a - grave'], + ['á', 'á', true, 'a - acute'], + ['â', 'â', true, 'a - circumflex'], + ['ã', 'ã', true, 'a - tilde'], + ['ä', 'ä', true, 'a - diaeresis'], + ['å', 'å', true, 'a - ring above'], + ['æ', 'æ', true, 'ligature ae'], + ['ç', 'ç', true, 'c - cedilla'], + ['è', 'è', true, 'e - grave'], + ['é', 'é', true, 'e - acute'], + ['ê', 'ê', true, 'e - circumflex'], + ['ë', 'ë', true, 'e - diaeresis'], + ['ì', 'ì', true, 'i - grave'], + ['í', 'í', true, 'i - acute'], + ['î', 'î', true, 'i - circumflex'], + ['ï', 'ï', true, 'i - diaeresis'], + ['ð', 'ð', true, 'eth'], + ['ñ', 'ñ', true, 'n - tilde'], + ['ò', 'ò', true, 'o - grave'], + ['ó', 'ó', true, 'o - acute'], + ['ô', 'ô', true, 'o - circumflex'], + ['õ', 'õ', true, 'o - tilde'], + ['ö', 'ö', true, 'o - diaeresis'], + ['ø', 'ø', true, 'o slash'], + ['œ', 'œ', true, 'ligature oe'], + ['š', 'š', true, 's - caron'], + ['ù', 'ù', true, 'u - grave'], + ['ú', 'ú', true, 'u - acute'], + ['û', 'û', true, 'u - circumflex'], + ['ü', 'ü', true, 'u - diaeresis'], + ['ý', 'ý', true, 'y - acute'], + ['þ', 'þ', true, 'thorn'], + ['ÿ', 'ÿ', true, 'y - diaeresis'], + ['Α', 'Α', true, 'Alpha'], + ['Β', 'Β', true, 'Beta'], + ['Γ', 'Γ', true, 'Gamma'], + ['Δ', 'Δ', true, 'Delta'], + ['Ε', 'Ε', true, 'Epsilon'], + ['Ζ', 'Ζ', true, 'Zeta'], + ['Η', 'Η', true, 'Eta'], + ['Θ', 'Θ', true, 'Theta'], + ['Ι', 'Ι', true, 'Iota'], + ['Κ', 'Κ', true, 'Kappa'], + ['Λ', 'Λ', true, 'Lambda'], + ['Μ', 'Μ', true, 'Mu'], + ['Ν', 'Ν', true, 'Nu'], + ['Ξ', 'Ξ', true, 'Xi'], + ['Ο', 'Ο', true, 'Omicron'], + ['Π', 'Π', true, 'Pi'], + ['Ρ', 'Ρ', true, 'Rho'], + ['Σ', 'Σ', true, 'Sigma'], + ['Τ', 'Τ', true, 'Tau'], + ['Υ', 'Υ', true, 'Upsilon'], + ['Φ', 'Φ', true, 'Phi'], + ['Χ', 'Χ', true, 'Chi'], + ['Ψ', 'Ψ', true, 'Psi'], + ['Ω', 'Ω', true, 'Omega'], + ['α', 'α', true, 'alpha'], + ['β', 'β', true, 'beta'], + ['γ', 'γ', true, 'gamma'], + ['δ', 'δ', true, 'delta'], + ['ε', 'ε', true, 'epsilon'], + ['ζ', 'ζ', true, 'zeta'], + ['η', 'η', true, 'eta'], + ['θ', 'θ', true, 'theta'], + ['ι', 'ι', true, 'iota'], + ['κ', 'κ', true, 'kappa'], + ['λ', 'λ', true, 'lambda'], + ['μ', 'μ', true, 'mu'], + ['ν', 'ν', true, 'nu'], + ['ξ', 'ξ', true, 'xi'], + ['ο', 'ο', true, 'omicron'], + ['π', 'π', true, 'pi'], + ['ρ', 'ρ', true, 'rho'], + ['ς', 'ς', true, 'final sigma'], + ['σ', 'σ', true, 'sigma'], + ['τ', 'τ', true, 'tau'], + ['υ', 'υ', true, 'upsilon'], + ['φ', 'φ', true, 'phi'], + ['χ', 'χ', true, 'chi'], + ['ψ', 'ψ', true, 'psi'], + ['ω', 'ω', true, 'omega'], +// symbols + ['ℵ', 'ℵ', false,'alef symbol'], + ['ϖ', 'ϖ', false,'pi symbol'], + ['ℜ', 'ℜ', false,'real part symbol'], + ['ϑ','ϑ', false,'theta symbol'], + ['ϒ', 'ϒ', false,'upsilon - hook symbol'], + ['℘', '℘', false,'Weierstrass p'], + ['ℑ', 'ℑ', false,'imaginary part'], +// arrows + ['←', '←', true, 'leftwards arrow'], + ['↑', '↑', true, 'upwards arrow'], + ['→', '→', true, 'rightwards arrow'], + ['↓', '↓', true, 'downwards arrow'], + ['↔', '↔', true, 'left right arrow'], + ['↵', '↵', false,'carriage return'], + ['⇐', '⇐', false,'leftwards double arrow'], + ['⇑', '⇑', false,'upwards double arrow'], + ['⇒', '⇒', false,'rightwards double arrow'], + ['⇓', '⇓', false,'downwards double arrow'], + ['⇔', '⇔', false,'left right double arrow'], + ['∴', '∴', false,'therefore'], + ['⊂', '⊂', false,'subset of'], + ['⊃', '⊃', false,'superset of'], + ['⊄', '⊄', false,'not a subset of'], + ['⊆', '⊆', false,'subset of or equal to'], + ['⊇', '⊇', false,'superset of or equal to'], + ['⊕', '⊕', false,'circled plus'], + ['⊗', '⊗', false,'circled times'], + ['⊥', '⊥', false,'perpendicular'], + ['⋅', '⋅', false,'dot operator'], + ['⌈', '⌈', false,'left ceiling'], + ['⌉', '⌉', false,'right ceiling'], + ['⌊', '⌊', false,'left floor'], + ['⌋', '⌋', false,'right floor'], + ['⟨', '〈', false,'left-pointing angle bracket'], + ['⟩', '〉', false,'right-pointing angle bracket'], + ['◊', '◊', true,'lozenge'], + ['♠', '♠', false,'black spade suit'], + ['♣', '♣', true, 'black club suit'], + ['♥', '♥', true, 'black heart suit'], + ['♦', '♦', true, 'black diamond suit'], + [' ', ' ', false,'en space'], + [' ', ' ', false,'em space'], + [' ', ' ', false,'thin space'], + ['‌', '‌', false,'zero width non-joiner'], + ['‍', '‍', false,'zero width joiner'], + ['‎', '‎', false,'left-to-right mark'], + ['‏', '‏', false,'right-to-left mark'], + ['­', '­', false,'soft hyphen'] +]; + +tinyMCEPopup.onInit.add(function() { + tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML()); +}); + +function renderCharMapHTML() { + var charsPerRow = 20, tdWidth=20, tdHeight=20, i; + var html = ''; + var cols=-1; + + for (i=0; i' + + '' + + charmap[i][1] + + ''; + if ((cols+1) % charsPerRow == 0) + html += ''; + } + } + + if (cols % charsPerRow > 0) { + var padd = charsPerRow - (cols % charsPerRow); + for (var i=0; i '; + } + + html += '
                                                '; + + return html; +} + +function insertChar(chr) { + tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';'); + + // Refocus in window + if (tinyMCEPopup.isWindow) + window.focus(); + + tinyMCEPopup.editor.focus(); + tinyMCEPopup.close(); +} + +function previewChar(codeA, codeB, codeN) { + var elmA = document.getElementById('codeA'); + var elmB = document.getElementById('codeB'); + var elmV = document.getElementById('codeV'); + var elmN = document.getElementById('codeN'); + + if (codeA=='#160;') { + elmV.innerHTML = '__'; + } else { + elmV.innerHTML = '&' + codeA; + } + + elmB.innerHTML = '&' + codeA; + elmA.innerHTML = '&' + codeB; + elmN.innerHTML = codeN; +} diff --git a/sn_templates/editor_stuff/themes/advanced/js/color_picker.js b/sn_templates/editor_stuff/themes/advanced/js/color_picker.js new file mode 100644 index 0000000..c1a65db --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/js/color_picker.js @@ -0,0 +1,253 @@ +tinyMCEPopup.requireLangPack(); + +var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false; + +var colors = [ + "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", + "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", + "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff", + "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033", + "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399", + "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff", + "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333", + "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399", + "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff", + "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633", + "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699", + "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff", + "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633", + "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999", + "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff", + "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933", + "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999", + "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff", + "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33", + "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99", + "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff", + "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33", + "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99", + "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff", + "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33", + "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99", + "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff" +]; + +var named = { + '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige', + '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown', + '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue', + '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod', + '#A9A9A9':'DarkGray','#A9A9A9':'DarkGrey','#006400':'DarkGreen','#BDB76B':'DarkKhaki','#8B008B':'DarkMagenta','#556B2F':'DarkOliveGreen', + '#FF8C00':'Darkorange','#9932CC':'DarkOrchid','#8B0000':'DarkRed','#E9967A':'DarkSalmon','#8FBC8F':'DarkSeaGreen','#483D8B':'DarkSlateBlue', + '#2F4F4F':'DarkSlateGray','#2F4F4F':'DarkSlateGrey','#00CED1':'DarkTurquoise','#9400D3':'DarkViolet','#FF1493':'DeepPink','#00BFFF':'DeepSkyBlue', + '#696969':'DimGray','#696969':'DimGrey','#1E90FF':'DodgerBlue','#B22222':'FireBrick','#FFFAF0':'FloralWhite','#228B22':'ForestGreen', + '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'GhostWhite','#FFD700':'Gold','#DAA520':'GoldenRod','#808080':'Gray','#808080':'Grey', + '#008000':'Green','#ADFF2F':'GreenYellow','#F0FFF0':'HoneyDew','#FF69B4':'HotPink','#CD5C5C':'IndianRed','#4B0082':'Indigo','#FFFFF0':'Ivory', + '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'LavenderBlush','#7CFC00':'LawnGreen','#FFFACD':'LemonChiffon','#ADD8E6':'LightBlue', + '#F08080':'LightCoral','#E0FFFF':'LightCyan','#FAFAD2':'LightGoldenRodYellow','#D3D3D3':'LightGray','#D3D3D3':'LightGrey','#90EE90':'LightGreen', + '#FFB6C1':'LightPink','#FFA07A':'LightSalmon','#20B2AA':'LightSeaGreen','#87CEFA':'LightSkyBlue','#778899':'LightSlateGray','#778899':'LightSlateGrey', + '#B0C4DE':'LightSteelBlue','#FFFFE0':'LightYellow','#00FF00':'Lime','#32CD32':'LimeGreen','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon', + '#66CDAA':'MediumAquaMarine','#0000CD':'MediumBlue','#BA55D3':'MediumOrchid','#9370D8':'MediumPurple','#3CB371':'MediumSeaGreen','#7B68EE':'MediumSlateBlue', + '#00FA9A':'MediumSpringGreen','#48D1CC':'MediumTurquoise','#C71585':'MediumVioletRed','#191970':'MidnightBlue','#F5FFFA':'MintCream','#FFE4E1':'MistyRose','#FFE4B5':'Moccasin', + '#FFDEAD':'NavajoWhite','#000080':'Navy','#FDF5E6':'OldLace','#808000':'Olive','#6B8E23':'OliveDrab','#FFA500':'Orange','#FF4500':'OrangeRed','#DA70D6':'Orchid', + '#EEE8AA':'PaleGoldenRod','#98FB98':'PaleGreen','#AFEEEE':'PaleTurquoise','#D87093':'PaleVioletRed','#FFEFD5':'PapayaWhip','#FFDAB9':'PeachPuff', + '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'PowderBlue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'RosyBrown','#4169E1':'RoyalBlue', + '#8B4513':'SaddleBrown','#FA8072':'Salmon','#F4A460':'SandyBrown','#2E8B57':'SeaGreen','#FFF5EE':'SeaShell','#A0522D':'Sienna','#C0C0C0':'Silver', + '#87CEEB':'SkyBlue','#6A5ACD':'SlateBlue','#708090':'SlateGray','#708090':'SlateGrey','#FFFAFA':'Snow','#00FF7F':'SpringGreen', + '#4682B4':'SteelBlue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet', + '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'WhiteSmoke','#FFFF00':'Yellow','#9ACD32':'YellowGreen' +}; + +function init() { + var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')); + + tinyMCEPopup.resizeToInnerSize(); + + generatePicker(); + + if (inputColor) { + changeFinalColor(inputColor); + + col = convertHexToRGB(inputColor); + + if (col) + updateLight(col.r, col.g, col.b); + } +} + +function insertAction() { + var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func'); + + tinyMCEPopup.restoreSelection(); + + if (f) + f(color); + + tinyMCEPopup.close(); +} + +function showColor(color, name) { + if (name) + document.getElementById("colorname").innerHTML = name; + + document.getElementById("preview").style.backgroundColor = color; + document.getElementById("color").value = color.toLowerCase(); +} + +function convertRGBToHex(col) { + var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi"); + + if (!col) + return col; + + var rgb = col.replace(re, "$1,$2,$3").split(','); + if (rgb.length == 3) { + r = parseInt(rgb[0]).toString(16); + g = parseInt(rgb[1]).toString(16); + b = parseInt(rgb[2]).toString(16); + + r = r.length == 1 ? '0' + r : r; + g = g.length == 1 ? '0' + g : g; + b = b.length == 1 ? '0' + b : b; + + return "#" + r + g + b; + } + + return col; +} + +function convertHexToRGB(col) { + if (col.indexOf('#') != -1) { + col = col.replace(new RegExp('[^0-9A-F]', 'gi'), ''); + + r = parseInt(col.substring(0, 2), 16); + g = parseInt(col.substring(2, 4), 16); + b = parseInt(col.substring(4, 6), 16); + + return {r : r, g : g, b : b}; + } + + return null; +} + +function generatePicker() { + var el = document.getElementById('light'), h = '', i; + + for (i = 0; i < detail; i++){ + h += '
                                                '; + } + + el.innerHTML = h; +} + +function generateWebColors() { + var el = document.getElementById('webcolors'), h = '', i; + + if (el.className == 'generated') + return; + + h += '' + + ''; + + for (i=0; i' + + '' + + ''; + if ((i+1) % 18 == 0) + h += ''; + } + + h += '
                                                '; + + el.innerHTML = h; + el.className = 'generated'; +} + +function generateNamedColors() { + var el = document.getElementById('namedcolors'), h = '', n, v, i = 0; + + if (el.className == 'generated') + return; + + for (n in named) { + v = named[n]; + h += '' + } + + el.innerHTML = h; + el.className = 'generated'; +} + +function dechex(n) { + return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16); +} + +function computeColor(e) { + var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB; + + x = e.offsetX ? e.offsetX : (e.target ? e.clientX - e.target.x : 0); + y = e.offsetY ? e.offsetY : (e.target ? e.clientY - e.target.y : 0); + + partWidth = document.getElementById('colors').width / 6; + partDetail = detail / 2; + imHeight = document.getElementById('colors').height; + + r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255; + g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth); + b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth); + + coef = (imHeight - y) / imHeight; + r = 128 + (r - 128) * coef; + g = 128 + (g - 128) * coef; + b = 128 + (b - 128) * coef; + + changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b)); + updateLight(r, g, b); +} + +function updateLight(r, g, b) { + var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color; + + for (i=0; i=0) && (i'); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '180px'; + + e = ed.selection.getNode(); + + this.fillFileList('image_list', 'tinyMCEImageList'); + + if (e.nodeName == 'IMG') { + f.src.value = ed.dom.getAttrib(e, 'src'); + f.alt.value = ed.dom.getAttrib(e, 'alt'); + f.border.value = this.getAttrib(e, 'border'); + f.vspace.value = this.getAttrib(e, 'vspace'); + f.hspace.value = this.getAttrib(e, 'hspace'); + f.width.value = ed.dom.getAttrib(e, 'width'); + f.height.value = ed.dom.getAttrib(e, 'height'); + f.insert.value = ed.getLang('update'); + this.styleVal = ed.dom.getAttrib(e, 'style'); + selectByValue(f, 'image_list', f.src.value); + selectByValue(f, 'align', this.getAttrib(e, 'align')); + this.updateStyle(); + } + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + update : function() { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (!ed.settings.inline_styles) { + args = tinymce.extend(args, { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }); + } else + args.style = this.styleVal; + + tinymce.extend(args, { + src : f.src.value, + alt : f.alt.value, + width : f.width.value, + height : f.height.value + }); + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + updateStyle : function() { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0]; + + if (tinyMCEPopup.editor.settings.inline_styles) { + st = tinyMCEPopup.dom.parseStyle(this.styleVal); + + // Handle align + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') { + st['float'] = v; + delete st['vertical-align']; + } else { + st['vertical-align'] = v; + delete st['float']; + } + } else { + delete st['float']; + delete st['vertical-align']; + } + + // Handle border + v = f.border.value; + if (v || v == '0') { + if (v == '0') + st['border'] = '0'; + else + st['border'] = v + 'px solid black'; + } else + delete st['border']; + + // Handle hspace + v = f.hspace.value; + if (v) { + delete st['margin']; + st['margin-left'] = v + 'px'; + st['margin-right'] = v + 'px'; + } else { + delete st['margin-left']; + delete st['margin-right']; + } + + // Handle vspace + v = f.vspace.value; + if (v) { + delete st['margin']; + st['margin-top'] = v + 'px'; + st['margin-bottom'] = v + 'px'; + } else { + delete st['margin-top']; + delete st['margin-bottom']; + } + + // Merge + st = tinyMCEPopup.dom.parseStyle(dom.serializeStyle(st), 'img'); + this.styleVal = dom.serializeStyle(st, 'img'); + } + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.width.value = f.height.value = ""; + }, + + updateImageData : function() { + var f = document.forms[0], t = ImageDialog; + + if (f.width.value == "") + f.width.value = t.preloadImg.width; + + if (f.height.value == "") + f.height.value = t.preloadImg.height; + }, + + getImageData : function() { + var f = document.forms[0]; + + this.preloadImg = new Image(); + this.preloadImg.onload = this.updateImageData; + this.preloadImg.onerror = this.resetImageData; + this.preloadImg.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(f.src.value); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_templates/editor_stuff/themes/advanced/js/link.js b/sn_templates/editor_stuff/themes/advanced/js/link.js new file mode 100644 index 0000000..73b9f59 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/js/link.js @@ -0,0 +1,156 @@ +tinyMCEPopup.requireLangPack(); + +var LinkDialog = { + preInit : function() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser', 'href', 'file', 'theme_advanced_link'); + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '180px'; + + this.fillClassList('class_list'); + this.fillFileList('link_list', 'tinyMCELinkList'); + this.fillTargetList('target_list'); + + if (e = ed.dom.getParent(ed.selection.getNode(), 'A')) { + f.href.value = ed.dom.getAttrib(e, 'href'); + f.linktitle.value = ed.dom.getAttrib(e, 'title'); + f.insert.value = ed.getLang('update'); + selectByValue(f, 'link_list', f.href.value); + selectByValue(f, 'target_list', ed.dom.getAttrib(e, 'target')); + selectByValue(f, 'class_list', ed.dom.getAttrib(e, 'class')); + } + }, + + update : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor, e, b; + + tinyMCEPopup.restoreSelection(); + e = ed.dom.getParent(ed.selection.getNode(), 'A'); + + // Remove element if there is no href + if (!f.href.value) { + if (e) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + b = ed.selection.getBookmark(); + ed.dom.remove(e, 1); + ed.selection.moveToBookmark(b); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (e == null) { + ed.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + tinymce.each(ed.dom.select("a"), function(n) { + if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') { + e = n; + + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + }); + } else { + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + + // Don't move caret if selection was image + if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') { + ed.focus(); + ed.selection.select(e); + ed.selection.collapse(0); + tinyMCEPopup.storeSelection(); + } + + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, + + checkPrefix : function(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external'))) + n.value = 'http://' + n.value; + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillTargetList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v; + + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self'); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank'); + + if (v = tinyMCEPopup.getParam('theme_advanced_link_targets')) { + tinymce.each(v.split(','), function(v) { + v = v.split('='); + lst.options[lst.options.length] = new Option(v[0], v[1]); + }); + } + } +}; + +LinkDialog.preInit(); +tinyMCEPopup.onInit.add(LinkDialog.init, LinkDialog); diff --git a/sn_templates/editor_stuff/themes/advanced/js/source_editor.js b/sn_templates/editor_stuff/themes/advanced/js/source_editor.js new file mode 100644 index 0000000..81063ec --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/js/source_editor.js @@ -0,0 +1,62 @@ +tinyMCEPopup.requireLangPack(); +tinyMCEPopup.onInit.add(onLoadInit); + +function saveContent() { + tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true}); + tinyMCEPopup.close(); +} + +function onLoadInit() { + tinyMCEPopup.resizeToInnerSize(); + + // Remove Gecko spellchecking + if (tinymce.isGecko) + document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck"); + + document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); + + if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) { + setWrap('soft'); + document.getElementById('wraped').checked = true; + } + + resizeInputs(); +} + +function setWrap(val) { + var v, n, s = document.getElementById('htmlSource'); + + s.wrap = val; + + if (!tinymce.isIE) { + v = s.value; + n = s.cloneNode(false); + n.setAttribute("wrap", val); + s.parentNode.replaceChild(n, s); + n.value = v; + } +} + +function toggleWordWrap(elm) { + if (elm.checked) + setWrap('soft'); + else + setWrap('off'); +} + +var wHeight=0, wWidth=0, owHeight=0, owWidth=0; + +function resizeInputs() { + var el = document.getElementById('htmlSource'); + + if (!tinymce.isIE) { + wHeight = self.innerHeight - 65; + wWidth = self.innerWidth - 16; + } else { + wHeight = document.body.clientHeight - 70; + wWidth = document.body.clientWidth - 16; + } + + el.style.height = Math.abs(wHeight) + 'px'; + el.style.width = Math.abs(wWidth) + 'px'; +} diff --git a/sn_templates/editor_stuff/themes/advanced/langs/de.js b/sn_templates/editor_stuff/themes/advanced/langs/de.js new file mode 100644 index 0000000..479a63a --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/langs/de.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('de.advanced',{ +style_select:"Format", +font_size:"Schriftgr\u00F6\u00DFe", +fontdefault:"Schriftart", +block:"Vorlage", +paragraph:"Absatz", +div:"Zusammenh\u00E4ngender Bereich", +address:"Adresse", +pre:"Rohdaten", +h1:"\u00DCberschrift 1", +h2:"\u00DCberschrift 2", +h3:"\u00DCberschrift 3", +h4:"\u00DCberschrift 4", +h5:"\u00DCberschrift 5", +h6:"\u00DCberschrift 6", +blockquote:"Zitatblock", +code:"Code", +samp:"Beispiel", +dt:"Definitionsbegriff", +dd:"Definitionsbeschreibung", +bold_desc:"Fett (Strg+B)", +italic_desc:"Kursiv (Strg+I)", +underline_desc:"Unterstrichen (Strg+U)", +striketrough_desc:"Durchgestrichen", +justifyleft_desc:"Links ausgerichtet", +justifycenter_desc:"Mittig ausgerichtet", +justifyright_desc:"Rechts ausgerichtet", +justifyfull_desc:"Blocksatz", +bullist_desc:"Unsortierte Liste", +numlist_desc:"Sortierte Liste", +outdent_desc:"Ausr\u00FCcken", +indent_desc:"Einr\u00FCcken", +undo_desc:"R\u00FCckg\u00E4ngig (Strg+Z)", +redo_desc:"Wiederholen (Strg+Y)", +link_desc:"Link einf\u00FCgen/ver\u00E4ndern", +unlink_desc:"Link entfernen", +image_desc:"Bild einf\u00FCgen/ver\u00E4ndern", +cleanup_desc:"Quellcode aufr\u00E4umen", +code_desc:"HTML-Quellcode bearbeiten", +sub_desc:"Tiefgestellt", +sup_desc:"Hochgestellt", +hr_desc:"Trennlinie einf\u00FCgen", +removeformat_desc:"Formatierungen zur\u00FCcksetzen", +custom1_desc:"Benutzerdefinierte Beschreibung", +forecolor_desc:"Textfarbe", +backcolor_desc:"Hintergrundfarbe", +charmap_desc:"Sonderzeichen einf\u00FCgen", +visualaid_desc:"Hilfslinien und unsichtbare Elemente ein-/ausblenden", +anchor_desc:"Anker einf\u00FCgen/ver\u00E4ndern", +cut_desc:"Ausschneiden", +copy_desc:"Kopieren", +paste_desc:"Einf\u00FCgen", +image_props_desc:"Bildeigenschaften", +newdocument_desc:"Neues Dokument", +help_desc:"Hilfe", +blockquote_desc:"Zitatblock", +clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\r\nWollen Sie mehr \u00FCber dieses Problem erfahren?", +path:"Pfad", +newdocument:"Wollen Sie wirklich den ganzen Inhalt l\u00F6schen?", +toolbar_focus:"Zur Werkzeugleiste springen: Alt+Q; Zum Editor springen: Alt-Z; Zum Elementpfad springen: Alt-X", +more_colors:"Weitere Farben", +anchor_delta_width:"13" +}); \ No newline at end of file diff --git a/sn_templates/editor_stuff/themes/advanced/langs/de_dlg.js b/sn_templates/editor_stuff/themes/advanced/langs/de_dlg.js new file mode 100644 index 0000000..fcd0512 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/langs/de_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('de.advanced_dlg',{ +about_title:"\u00DCber TinyMCE", +about_general:"\u00DCber\u2026", +about_help:"Hilfe", +about_license:"Lizenzbedingungen", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Urheber", +about_version:"Version", +about_loaded:"Geladene Plugins", +anchor_title:"Anker einf\u00FCgen/ver\u00E4ndern", +anchor_name:"Name des Ankers", +code_title:"HTML-Quellcode bearbeiten", +code_wordwrap:"Automatischer Zeilenumbruch", +colorpicker_title:"Farbe", +colorpicker_picker_tab:"Farbwahl", +colorpicker_picker_title:"Farbwahl", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Farbpalette", +colorpicker_named_tab:"Benannte Farben", +colorpicker_named_title:"Benannte Farben", +colorpicker_color:"Farbe:", +colorpicker_name:"Name:", +charmap_title:"Sonderzeichen", +image_title:"Bild einf\u00FCgen/bearbeiten", +image_src:"Adresse", +image_alt:"Alternativtext", +image_list:"Bilderliste", +image_border:"Rahmen", +image_dimensions:"Ausma\u00DFe", +image_vspace:"Vertikaler Abstand", +image_hspace:"Horizontaler Abstand", +image_align:"Ausrichtung", +image_align_baseline:"Zeile", +image_align_top:"Oben", +image_align_middle:"Mittig", +image_align_bottom:"Unten", +image_align_texttop:"Oben im Text", +image_align_textbottom:"Unten im Text", +image_align_left:"Links", +image_align_right:"Rechts", +link_title:"Link einf\u00FCgen/bearbeiten", +link_url:"Adresse", +link_target:"Fenster", +link_target_same:"Im selben Fenster \u00F6ffnen", +link_target_blank:"Neues Fenster \u00F6ffnen", +link_titlefield:"Titel", +link_is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte mailto: voranstellen?", +link_is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte http:// voranstellen?", +link_list:"Linkliste" +}); \ No newline at end of file diff --git a/sn_templates/editor_stuff/themes/advanced/langs/en.js b/sn_templates/editor_stuff/themes/advanced/langs/en.js new file mode 100644 index 0000000..52989e3 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/langs/en.js @@ -0,0 +1,62 @@ +tinyMCE.addI18n('en.advanced',{ +style_select:"Styles", +font_size:"Font size", +fontdefault:"Font family", +block:"Format", +paragraph:"Paragraph", +div:"Div", +address:"Address", +pre:"Preformatted", +h1:"Heading 1", +h2:"Heading 2", +h3:"Heading 3", +h4:"Heading 4", +h5:"Heading 5", +h6:"Heading 6", +blockquote:"Blockquote", +code:"Code", +samp:"Code sample", +dt:"Definition term ", +dd:"Definition description", +bold_desc:"Bold (Ctrl+B)", +italic_desc:"Italic (Ctrl+I)", +underline_desc:"Underline (Ctrl+U)", +striketrough_desc:"Strikethrough", +justifyleft_desc:"Align left", +justifycenter_desc:"Align center", +justifyright_desc:"Align right", +justifyfull_desc:"Align full", +bullist_desc:"Unordered list", +numlist_desc:"Ordered list", +outdent_desc:"Outdent", +indent_desc:"Indent", +undo_desc:"Undo (Ctrl+Z)", +redo_desc:"Redo (Ctrl+Y)", +link_desc:"Insert/edit link", +unlink_desc:"Unlink", +image_desc:"Insert/edit image", +cleanup_desc:"Cleanup messy code", +code_desc:"Edit HTML Source", +sub_desc:"Subscript", +sup_desc:"Superscript", +hr_desc:"Insert horizontal ruler", +removeformat_desc:"Remove formatting", +custom1_desc:"Your custom description here", +forecolor_desc:"Select text color", +backcolor_desc:"Select background color", +charmap_desc:"Insert custom character", +visualaid_desc:"Toggle guidelines/invisible elements", +anchor_desc:"Insert/edit anchor", +cut_desc:"Cut", +copy_desc:"Copy", +paste_desc:"Paste", +image_props_desc:"Image properties", +newdocument_desc:"New document", +help_desc:"Help", +blockquote_desc:"Blockquote", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\r\nDo you want more information about this issue?", +path:"Path", +newdocument:"Are you sure you want clear all contents?", +toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X", +more_colors:"More colors" +}); \ No newline at end of file diff --git a/sn_templates/editor_stuff/themes/advanced/langs/en_dlg.js b/sn_templates/editor_stuff/themes/advanced/langs/en_dlg.js new file mode 100644 index 0000000..80e4941 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/langs/en_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('en.advanced_dlg',{ +about_title:"About TinyMCE", +about_general:"About", +about_help:"Help", +about_license:"License", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Author", +about_version:"Version", +about_loaded:"Loaded plugins", +anchor_title:"Insert/edit anchor", +anchor_name:"Anchor name", +code_title:"HTML Source Editor", +code_wordwrap:"Word wrap", +colorpicker_title:"Select a color", +colorpicker_picker_tab:"Picker", +colorpicker_picker_title:"Color picker", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Palette colors", +colorpicker_named_tab:"Named", +colorpicker_named_title:"Named colors", +colorpicker_color:"Color:", +colorpicker_name:"Name:", +charmap_title:"Select custom character", +image_title:"Insert/edit image", +image_src:"Image URL", +image_alt:"Image description", +image_list:"Image list", +image_border:"Border", +image_dimensions:"Dimensions", +image_vspace:"Vertical space", +image_hspace:"Horizontal space", +image_align:"Alignment", +image_align_baseline:"Baseline", +image_align_top:"Top", +image_align_middle:"Middle", +image_align_bottom:"Bottom", +image_align_texttop:"Text top", +image_align_textbottom:"Text bottom", +image_align_left:"Left", +image_align_right:"Right", +link_title:"Insert/edit link", +link_url:"Link URL", +link_target:"Target", +link_target_same:"Open link in the same window", +link_target_blank:"Open link in a new window", +link_titlefield:"Title", +link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +link_list:"Link list" +}); \ No newline at end of file diff --git a/sn_templates/editor_stuff/themes/advanced/link.htm b/sn_templates/editor_stuff/themes/advanced/link.htm new file mode 100644 index 0000000..22627cc --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/link.htm @@ -0,0 +1,58 @@ + + + + {#advanced_dlg.link_title} + + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/content.css b/sn_templates/editor_stuff/themes/advanced/skins/default/content.css new file mode 100644 index 0000000..987c596 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/default/content.css @@ -0,0 +1,35 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat 0 0;} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/dialog.css b/sn_templates/editor_stuff/themes/advanced/skins/default/dialog.css new file mode 100644 index 0000000..1f5598c --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/default/dialog.css @@ -0,0 +1,117 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(img/buttons.png) 0 -52px} +#cancel {background:url(img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} +#colorpicker #picker_panel fieldset {margin:auto;width:325px;} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/img/buttons.png b/sn_templates/editor_stuff/themes/advanced/skins/default/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/default/img/buttons.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/img/items.gif b/sn_templates/editor_stuff/themes/advanced/skins/default/img/items.gif new file mode 100644 index 0000000..2eafd79 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/default/img/items.gif differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/img/menu_arrow.gif b/sn_templates/editor_stuff/themes/advanced/skins/default/img/menu_arrow.gif new file mode 100644 index 0000000..85e31df Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/default/img/menu_arrow.gif differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/img/menu_check.gif b/sn_templates/editor_stuff/themes/advanced/skins/default/img/menu_check.gif new file mode 100644 index 0000000..adfdddc Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/default/img/menu_check.gif differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/img/progress.gif b/sn_templates/editor_stuff/themes/advanced/skins/default/img/progress.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/default/img/progress.gif differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/img/tabs.gif b/sn_templates/editor_stuff/themes/advanced/skins/default/img/tabs.gif new file mode 100644 index 0000000..ce4be63 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/default/img/tabs.gif differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/default/ui.css b/sn_templates/editor_stuff/themes/advanced/skins/default/ui.css new file mode 100644 index 0000000..7f6cf5f --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/default/ui.css @@ -0,0 +1,213 @@ +/* Reset */ +.defaultSkin table, .defaultSkin tbody, .defaultSkin a, .defaultSkin img, .defaultSkin tr, .defaultSkin div, .defaultSkin td, .defaultSkin iframe, .defaultSkin span, .defaultSkin *, .defaultSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.defaultSkin a:hover, .defaultSkin a:link, .defaultSkin a:visited, .defaultSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.defaultSkin table td {vertical-align:middle} + +/* Containers */ +.defaultSkin table {direction:ltr; background:#F0F0EE} +.defaultSkin iframe {display:block; background:#FFF} +.defaultSkin .mceToolbar {height:26px} +.defaultSkin .mceLeft {text-align:left} +.defaultSkin .mceRight {text-align:right} + +/* External */ +.defaultSkin .mceExternalToolbar {position:absolute; border:1px solid #CCC; border-bottom:0; display:none;} +.defaultSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.defaultSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.defaultSkin table.mceLayout {border:0; border-left:1px solid #CCC; border-right:1px solid #CCC} +.defaultSkin table.mceLayout tr.mceFirst td {border-top:1px solid #CCC} +.defaultSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #CCC} +.defaultSkin table.mceToolbar, .defaultSkin tr.mceFirst .mceToolbar tr td, .defaultSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;} +.defaultSkin td.mceToolbar {padding-top:1px; vertical-align:top} +.defaultSkin .mceIframeContainer {border-top:1px solid #CCC; border-bottom:1px solid #CCC} +.defaultSkin .mceStatusbar {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px} +.defaultSkin .mceStatusbar div {float:left; margin:2px} +.defaultSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.defaultSkin .mceStatusbar a:hover {text-decoration:underline} +.defaultSkin table.mceToolbar {margin-left:3px} +.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px} +.defaultSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.defaultSkin td.mceCenter {text-align:center;} +.defaultSkin td.mceCenter table {margin:0 auto; text-align:left;} +.defaultSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.defaultSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px; margin-right:1px} +.defaultSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0} +.defaultSkin a.mceButtonActive, .defaultSkin a.mceButtonSelected {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.defaultSkin .mceButtonLabeled {width:auto} +.defaultSkin .mceButtonLabeled span.mceIcon {float:left} +.defaultSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.defaultSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.defaultSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:2px 2px 0 4px} + +/* ListBox */ +.defaultSkin .mceListBox, .defaultSkin .mceListBox a {display:block} +.defaultSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.defaultSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:2px; border:1px solid #CCC;} +.defaultSkin table.mceListBoxEnabled:hover .mceText, .defaultSkin .mceListBoxHover .mceText, .defaultSkin .mceListBoxSelected .mceText {border:1px solid #A2ABC0; border-right:0; background:#FFF} +.defaultSkin table.mceListBoxEnabled:hover .mceOpen, .defaultSkin .mceListBoxHover .mceOpen, .defaultSkin .mceListBoxSelected .mceOpen {background-color:#FFF; border:1px solid #A2ABC0} +.defaultSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;} +.defaultSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.defaultSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +.defaultSkin .mceOldBoxModel .mceListBox .mceOpen {width:11px; height:22px;} +.defaultSkin select.mceNativeListBox {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:7pt; background:#F0F0EE; border:1px solid gray; margin-right:2px;} + +/* SplitButton */ +.defaultSkin .mceSplitButton {width:32px; height:20px; direction:ltr} +.defaultSkin .mceSplitButton a, .defaultSkin .mceSplitButton span {height:20px; display:block} +.defaultSkin .mceSplitButton a.mceAction {width:20px; border:1px solid #F0F0EE; border-right:0;} +.defaultSkin .mceSplitButton span.mceAction {width:20px; background-image:url(../../img/icons.gif);} +.defaultSkin .mceSplitButton a.mceOpen {width:9px; background:url(../../img/icons.gif) -741px 0; border:1px solid #F0F0EE;} +.defaultSkin .mceSplitButton span.mceOpen {display:none} +.defaultSkin table.mceSplitButtonEnabled:hover a.mceAction, .defaultSkin .mceSplitButtonHover a.mceAction, .defaultSkin .mceSplitButtonSelected a.mceAction {border:1px solid #0A246A; border-right:0; background-color:#B2BBD0} +.defaultSkin table.mceSplitButtonEnabled:hover a.mceOpen, .defaultSkin .mceSplitButtonHover a.mceOpen, .defaultSkin .mceSplitButtonSelected a.mceOpen {background-color:#B2BBD0; border:1px solid #0A246A;} +.defaultSkin .mceSplitButtonDisabled .mceAction, .defaultSkin .mceSplitButtonDisabled a.mceOpen {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.defaultSkin .mceSplitButtonActive a.mceAction {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSkin .mceSplitButtonActive a.mceOpen {border-left:0;} + +/* ColorSplitButton */ +.defaultSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.defaultSkin .mceColorSplitMenu td {padding:2px} +.defaultSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.defaultSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.defaultSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.defaultSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.defaultSkin a.mceMoreColors:hover {border:1px solid #0A246A} +.defaultSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a} +.defaultSkin .mce_forecolor span.mceAction, .defaultSkin .mce_backcolor span.mceAction {overflow:hidden; height:16px} + +/* Menu */ +.defaultSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8} +.defaultSkin .mceNoIcons span.mceIcon {width:0;} +.defaultSkin .mceNoIcons a .mceText {padding-left:10px} +.defaultSkin .mceMenu table {background:#FFF} +.defaultSkin .mceMenu a, .defaultSkin .mceMenu span, .defaultSkin .mceMenu {display:block} +.defaultSkin .mceMenu td {height:20px} +.defaultSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +.defaultSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.defaultSkin .mceMenu span.mceText, .defaultSkin .mceMenu .mcePreview {font-size:11px} +.defaultSkin .mceMenu pre.mceText {font-family:Monospace} +.defaultSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.defaultSkin .mceMenu .mceMenuItemEnabled a:hover, .defaultSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.defaultSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +.defaultSkin .mceMenuItemTitle a {border:0; background:#EEE; border-bottom:1px solid #DDD} +.defaultSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.defaultSkin .mceMenuItemDisabled .mceText {color:#888} +.defaultSkin .mceMenuItemSelected .mceIcon {background:url(img/menu_check.gif)} +.defaultSkin .mceNoIcons .mceMenuItemSelected a {background:url(img/menu_arrow.gif) no-repeat -6px center} +.defaultSkin .mceMenu span.mceMenuLine {display:none} +.defaultSkin .mceMenuItemSub a {background:url(img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.defaultSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); background:#FFF} +.defaultSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.defaultSkin .mce_formatPreview a {font-size:10px} +.defaultSkin .mce_p span.mceText {} +.defaultSkin .mce_address span.mceText {font-style:italic} +.defaultSkin .mce_pre span.mceText {font-family:monospace} +.defaultSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.defaultSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.defaultSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.defaultSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.defaultSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.defaultSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.defaultSkin span.mce_bold {background-position:0 0} +.defaultSkin span.mce_italic {background-position:-60px 0} +.defaultSkin span.mce_underline {background-position:-140px 0} +.defaultSkin span.mce_strikethrough {background-position:-120px 0} +.defaultSkin span.mce_undo {background-position:-160px 0} +.defaultSkin span.mce_redo {background-position:-100px 0} +.defaultSkin span.mce_cleanup {background-position:-40px 0} +.defaultSkin span.mce_bullist {background-position:-20px 0} +.defaultSkin span.mce_numlist {background-position:-80px 0} +.defaultSkin span.mce_justifyleft {background-position:-460px 0} +.defaultSkin span.mce_justifyright {background-position:-480px 0} +.defaultSkin span.mce_justifycenter {background-position:-420px 0} +.defaultSkin span.mce_justifyfull {background-position:-440px 0} +.defaultSkin span.mce_anchor {background-position:-200px 0} +.defaultSkin span.mce_indent {background-position:-400px 0} +.defaultSkin span.mce_outdent {background-position:-540px 0} +.defaultSkin span.mce_link {background-position:-500px 0} +.defaultSkin span.mce_unlink {background-position:-640px 0} +.defaultSkin span.mce_sub {background-position:-600px 0} +.defaultSkin span.mce_sup {background-position:-620px 0} +.defaultSkin span.mce_removeformat {background-position:-580px 0} +.defaultSkin span.mce_newdocument {background-position:-520px 0} +.defaultSkin span.mce_image {background-position:-380px 0} +.defaultSkin span.mce_help {background-position:-340px 0} +.defaultSkin span.mce_code {background-position:-260px 0} +.defaultSkin span.mce_hr {background-position:-360px 0} +.defaultSkin span.mce_visualaid {background-position:-660px 0} +.defaultSkin span.mce_charmap {background-position:-240px 0} +.defaultSkin span.mce_paste {background-position:-560px 0} +.defaultSkin span.mce_copy {background-position:-700px 0} +.defaultSkin span.mce_cut {background-position:-680px 0} +.defaultSkin span.mce_blockquote {background-position:-220px 0} +.defaultSkin .mce_forecolor span.mceAction {background-position:-720px 0} +.defaultSkin .mce_backcolor span.mceAction {background-position:-760px 0} +.defaultSkin span.mce_forecolorpicker {background-position:-720px 0} +.defaultSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.defaultSkin span.mce_advhr {background-position:-0px -20px} +.defaultSkin span.mce_ltr {background-position:-20px -20px} +.defaultSkin span.mce_rtl {background-position:-40px -20px} +.defaultSkin span.mce_emotions {background-position:-60px -20px} +.defaultSkin span.mce_fullpage {background-position:-80px -20px} +.defaultSkin span.mce_fullscreen {background-position:-100px -20px} +.defaultSkin span.mce_iespell {background-position:-120px -20px} +.defaultSkin span.mce_insertdate {background-position:-140px -20px} +.defaultSkin span.mce_inserttime {background-position:-160px -20px} +.defaultSkin span.mce_absolute {background-position:-180px -20px} +.defaultSkin span.mce_backward {background-position:-200px -20px} +.defaultSkin span.mce_forward {background-position:-220px -20px} +.defaultSkin span.mce_insert_layer {background-position:-240px -20px} +.defaultSkin span.mce_insertlayer {background-position:-260px -20px} +.defaultSkin span.mce_movebackward {background-position:-280px -20px} +.defaultSkin span.mce_moveforward {background-position:-300px -20px} +.defaultSkin span.mce_media {background-position:-320px -20px} +.defaultSkin span.mce_nonbreaking {background-position:-340px -20px} +.defaultSkin span.mce_pastetext {background-position:-360px -20px} +.defaultSkin span.mce_pasteword {background-position:-380px -20px} +.defaultSkin span.mce_selectall {background-position:-400px -20px} +.defaultSkin span.mce_preview {background-position:-420px -20px} +.defaultSkin span.mce_print {background-position:-440px -20px} +.defaultSkin span.mce_cancel {background-position:-460px -20px} +.defaultSkin span.mce_save {background-position:-480px -20px} +.defaultSkin span.mce_replace {background-position:-500px -20px} +.defaultSkin span.mce_search {background-position:-520px -20px} +.defaultSkin span.mce_styleprops {background-position:-560px -20px} +.defaultSkin span.mce_table {background-position:-580px -20px} +.defaultSkin span.mce_cell_props {background-position:-600px -20px} +.defaultSkin span.mce_delete_table {background-position:-620px -20px} +.defaultSkin span.mce_delete_col {background-position:-640px -20px} +.defaultSkin span.mce_delete_row {background-position:-660px -20px} +.defaultSkin span.mce_col_after {background-position:-680px -20px} +.defaultSkin span.mce_col_before {background-position:-700px -20px} +.defaultSkin span.mce_row_after {background-position:-720px -20px} +.defaultSkin span.mce_row_before {background-position:-740px -20px} +.defaultSkin span.mce_merge_cells {background-position:-760px -20px} +.defaultSkin span.mce_table_props {background-position:-980px -20px} +.defaultSkin span.mce_row_props {background-position:-780px -20px} +.defaultSkin span.mce_split_cells {background-position:-800px -20px} +.defaultSkin span.mce_template {background-position:-820px -20px} +.defaultSkin span.mce_visualchars {background-position:-840px -20px} +.defaultSkin span.mce_abbr {background-position:-860px -20px} +.defaultSkin span.mce_acronym {background-position:-880px -20px} +.defaultSkin span.mce_attribs {background-position:-900px -20px} +.defaultSkin span.mce_cite {background-position:-920px -20px} +.defaultSkin span.mce_del {background-position:-940px -20px} +.defaultSkin span.mce_ins {background-position:-960px -20px} +.defaultSkin span.mce_pagebreak {background-position:0 -40px} +.defaultSkin span.mce_restoredraft {background-position:-20px -40px} +.defaultSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/o2k7/content.css b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/content.css new file mode 100644 index 0000000..3cf289e --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/content.css @@ -0,0 +1,35 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(../default/img/items.gif) no-repeat 0 0;} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/o2k7/dialog.css b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/dialog.css new file mode 100644 index 0000000..3b0760a --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/dialog.css @@ -0,0 +1,116 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(../default/img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(../default/img/buttons.png) 0 -52px} +#cancel {background:url(../default/img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui.css b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui.css new file mode 100644 index 0000000..52f5760 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.o2k7Skin table, .o2k7Skin tbody, .o2k7Skin a, .o2k7Skin img, .o2k7Skin tr, .o2k7Skin div, .o2k7Skin td, .o2k7Skin iframe, .o2k7Skin span, .o2k7Skin *, .o2k7Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.o2k7Skin a:hover, .o2k7Skin a:link, .o2k7Skin a:visited, .o2k7Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.o2k7Skin table td {vertical-align:middle} + +/* Containers */ +.o2k7Skin table {background:#E5EFFD} +.o2k7Skin iframe {display:block; background:#FFF} +.o2k7Skin .mceToolbar {height:26px} + +/* External */ +.o2k7Skin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +.o2k7Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.o2k7Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.o2k7Skin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +.o2k7Skin table.mceToolbar, .o2k7Skin tr.mceFirst .mceToolbar tr td, .o2k7Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.o2k7Skin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.o2k7Skin .mceStatusbar div {float:left; padding:2px} +.o2k7Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.o2k7Skin .mceStatusbar a:hover {text-decoration:underline} +.o2k7Skin table.mceToolbar {margin-left:3px} +.o2k7Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.o2k7Skin .mceToolbar td.mceFirst span {margin:0} +.o2k7Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7Skin .mceToolbar .mceToolbarEndListBox span, .o2k7Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.o2k7Skin span.mceIcon, .o2k7Skin img.mceIcon {display:block; width:20px; height:20px} +.o2k7Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.o2k7Skin td.mceCenter {text-align:center;} +.o2k7Skin td.mceCenter table {margin:0 auto; text-align:left;} +.o2k7Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.o2k7Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7Skin a.mceButton span, .o2k7Skin a.mceButton img {margin-left:1px} +.o2k7Skin .mceOldBoxModel a.mceButton span, .o2k7Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.o2k7Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7Skin a.mceButtonActive, .o2k7Skin a.mceButtonSelected {background-position:0 -44px} +.o2k7Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceButtonLabeled {width:auto} +.o2k7Skin .mceButtonLabeled span.mceIcon {float:left} +.o2k7Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.o2k7Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.o2k7Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.o2k7Skin .mceListBox {margin-left:3px} +.o2k7Skin .mceListBox, .o2k7Skin .mceListBox a {display:block} +.o2k7Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.o2k7Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.o2k7Skin table.mceListBoxEnabled:hover .mceText, .o2k7Skin .mceListBoxHover .mceText, .o2k7Skin .mceListBoxSelected .mceText {background:#FFF} +.o2k7Skin table.mceListBoxEnabled:hover .mceOpen, .o2k7Skin .mceListBoxHover .mceOpen, .o2k7Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.o2k7Skin .mceListBoxDisabled .mceText {color:gray} +.o2k7Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.o2k7Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.o2k7Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.o2k7Skin .mceSplitButton, .o2k7Skin .mceSplitButton a, .o2k7Skin .mceSplitButton span {display:block; height:22px} +.o2k7Skin .mceSplitButton {background:url(img/button_bg.png)} +.o2k7Skin .mceSplitButton a.mceAction {width:22px} +.o2k7Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.o2k7Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.o2k7Skin .mceSplitButton span.mceOpen {display:none} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceAction, .o2k7Skin .mceSplitButtonHover a.mceAction, .o2k7Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceOpen, .o2k7Skin .mceSplitButtonHover a.mceOpen, .o2k7Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.o2k7Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.o2k7Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.o2k7Skin .mceColorSplitMenu td {padding:2px} +.o2k7Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.o2k7Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.o2k7Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.o2k7Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.o2k7Skin .mce_forecolor span.mceAction, .o2k7Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.o2k7Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +.o2k7Skin .mceNoIcons span.mceIcon {width:0;} +.o2k7Skin .mceNoIcons a .mceText {padding-left:10px} +.o2k7Skin .mceMenu table {background:#FFF} +.o2k7Skin .mceMenu a, .o2k7Skin .mceMenu span, .o2k7Skin .mceMenu {display:block} +.o2k7Skin .mceMenu td {height:20px} +.o2k7Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.o2k7Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.o2k7Skin .mceMenu span.mceText, .o2k7Skin .mceMenu .mcePreview {font-size:11px} +.o2k7Skin .mceMenu pre.mceText {font-family:Monospace} +.o2k7Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.o2k7Skin .mceMenu .mceMenuItemEnabled a:hover, .o2k7Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.o2k7Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.o2k7Skin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.o2k7Skin .mceMenuItemDisabled .mceText {color:#888} +.o2k7Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.o2k7Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.o2k7Skin .mceMenu span.mceMenuLine {display:none} +.o2k7Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.o2k7Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.o2k7Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.o2k7Skin .mce_formatPreview a {font-size:10px} +.o2k7Skin .mce_p span.mceText {} +.o2k7Skin .mce_address span.mceText {font-style:italic} +.o2k7Skin .mce_pre span.mceText {font-family:monospace} +.o2k7Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.o2k7Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.o2k7Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.o2k7Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.o2k7Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.o2k7Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.o2k7Skin span.mce_bold {background-position:0 0} +.o2k7Skin span.mce_italic {background-position:-60px 0} +.o2k7Skin span.mce_underline {background-position:-140px 0} +.o2k7Skin span.mce_strikethrough {background-position:-120px 0} +.o2k7Skin span.mce_undo {background-position:-160px 0} +.o2k7Skin span.mce_redo {background-position:-100px 0} +.o2k7Skin span.mce_cleanup {background-position:-40px 0} +.o2k7Skin span.mce_bullist {background-position:-20px 0} +.o2k7Skin span.mce_numlist {background-position:-80px 0} +.o2k7Skin span.mce_justifyleft {background-position:-460px 0} +.o2k7Skin span.mce_justifyright {background-position:-480px 0} +.o2k7Skin span.mce_justifycenter {background-position:-420px 0} +.o2k7Skin span.mce_justifyfull {background-position:-440px 0} +.o2k7Skin span.mce_anchor {background-position:-200px 0} +.o2k7Skin span.mce_indent {background-position:-400px 0} +.o2k7Skin span.mce_outdent {background-position:-540px 0} +.o2k7Skin span.mce_link {background-position:-500px 0} +.o2k7Skin span.mce_unlink {background-position:-640px 0} +.o2k7Skin span.mce_sub {background-position:-600px 0} +.o2k7Skin span.mce_sup {background-position:-620px 0} +.o2k7Skin span.mce_removeformat {background-position:-580px 0} +.o2k7Skin span.mce_newdocument {background-position:-520px 0} +.o2k7Skin span.mce_image {background-position:-380px 0} +.o2k7Skin span.mce_help {background-position:-340px 0} +.o2k7Skin span.mce_code {background-position:-260px 0} +.o2k7Skin span.mce_hr {background-position:-360px 0} +.o2k7Skin span.mce_visualaid {background-position:-660px 0} +.o2k7Skin span.mce_charmap {background-position:-240px 0} +.o2k7Skin span.mce_paste {background-position:-560px 0} +.o2k7Skin span.mce_copy {background-position:-700px 0} +.o2k7Skin span.mce_cut {background-position:-680px 0} +.o2k7Skin span.mce_blockquote {background-position:-220px 0} +.o2k7Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.o2k7Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.o2k7Skin span.mce_forecolorpicker {background-position:-720px 0} +.o2k7Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.o2k7Skin span.mce_advhr {background-position:-0px -20px} +.o2k7Skin span.mce_ltr {background-position:-20px -20px} +.o2k7Skin span.mce_rtl {background-position:-40px -20px} +.o2k7Skin span.mce_emotions {background-position:-60px -20px} +.o2k7Skin span.mce_fullpage {background-position:-80px -20px} +.o2k7Skin span.mce_fullscreen {background-position:-100px -20px} +.o2k7Skin span.mce_iespell {background-position:-120px -20px} +.o2k7Skin span.mce_insertdate {background-position:-140px -20px} +.o2k7Skin span.mce_inserttime {background-position:-160px -20px} +.o2k7Skin span.mce_absolute {background-position:-180px -20px} +.o2k7Skin span.mce_backward {background-position:-200px -20px} +.o2k7Skin span.mce_forward {background-position:-220px -20px} +.o2k7Skin span.mce_insert_layer {background-position:-240px -20px} +.o2k7Skin span.mce_insertlayer {background-position:-260px -20px} +.o2k7Skin span.mce_movebackward {background-position:-280px -20px} +.o2k7Skin span.mce_moveforward {background-position:-300px -20px} +.o2k7Skin span.mce_media {background-position:-320px -20px} +.o2k7Skin span.mce_nonbreaking {background-position:-340px -20px} +.o2k7Skin span.mce_pastetext {background-position:-360px -20px} +.o2k7Skin span.mce_pasteword {background-position:-380px -20px} +.o2k7Skin span.mce_selectall {background-position:-400px -20px} +.o2k7Skin span.mce_preview {background-position:-420px -20px} +.o2k7Skin span.mce_print {background-position:-440px -20px} +.o2k7Skin span.mce_cancel {background-position:-460px -20px} +.o2k7Skin span.mce_save {background-position:-480px -20px} +.o2k7Skin span.mce_replace {background-position:-500px -20px} +.o2k7Skin span.mce_search {background-position:-520px -20px} +.o2k7Skin span.mce_styleprops {background-position:-560px -20px} +.o2k7Skin span.mce_table {background-position:-580px -20px} +.o2k7Skin span.mce_cell_props {background-position:-600px -20px} +.o2k7Skin span.mce_delete_table {background-position:-620px -20px} +.o2k7Skin span.mce_delete_col {background-position:-640px -20px} +.o2k7Skin span.mce_delete_row {background-position:-660px -20px} +.o2k7Skin span.mce_col_after {background-position:-680px -20px} +.o2k7Skin span.mce_col_before {background-position:-700px -20px} +.o2k7Skin span.mce_row_after {background-position:-720px -20px} +.o2k7Skin span.mce_row_before {background-position:-740px -20px} +.o2k7Skin span.mce_merge_cells {background-position:-760px -20px} +.o2k7Skin span.mce_table_props {background-position:-980px -20px} +.o2k7Skin span.mce_row_props {background-position:-780px -20px} +.o2k7Skin span.mce_split_cells {background-position:-800px -20px} +.o2k7Skin span.mce_template {background-position:-820px -20px} +.o2k7Skin span.mce_visualchars {background-position:-840px -20px} +.o2k7Skin span.mce_abbr {background-position:-860px -20px} +.o2k7Skin span.mce_acronym {background-position:-880px -20px} +.o2k7Skin span.mce_attribs {background-position:-900px -20px} +.o2k7Skin span.mce_cite {background-position:-920px -20px} +.o2k7Skin span.mce_del {background-position:-940px -20px} +.o2k7Skin span.mce_ins {background-position:-960px -20px} +.o2k7Skin span.mce_pagebreak {background-position:0 -40px} +.o2k7Skin span.mce_restoredraft {background-position:-20px -40px} +.o2k7Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui_black.css b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui_black.css new file mode 100644 index 0000000..81dbfe4 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui_black.css @@ -0,0 +1,8 @@ +/* Black */ +.o2k7SkinBlack .mceToolbar .mceToolbarStart span, .o2k7SkinBlack .mceToolbar .mceToolbarEnd span, .o2k7SkinBlack .mceButton, .o2k7SkinBlack .mceSplitButton, .o2k7SkinBlack .mceSeparator, .o2k7SkinBlack .mceSplitButton a.mceOpen, .o2k7SkinBlack .mceListBox a.mceOpen {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack table, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack .mceMenuItemTitle span.mceText, .o2k7SkinBlack .mceStatusbar div, .o2k7SkinBlack .mceStatusbar span, .o2k7SkinBlack .mceStatusbar a {background:#535353; color:#FFF} +.o2k7SkinBlack table.mceListBoxEnabled .mceText, o2k7SkinBlack .mceListBox .mceText {background:#FFF; border:1px solid #CBCFD4; border-bottom-color:#989FA9; border-right:0} +.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText, .o2k7SkinBlack .mceListBoxHover .mceText, .o2k7SkinBlack .mceListBoxSelected .mceText {background:#FFF; border:1px solid #FFBD69; border-right:0} +.o2k7SkinBlack .mceExternalToolbar, .o2k7SkinBlack .mceListBox .mceText, .o2k7SkinBlack div.mceMenu, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceFirst td, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceLast td, .o2k7SkinBlack .mceIframeContainer {border-color: #535353;} +.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction, .o2k7SkinBlack .mceSplitButtonHover a.mceAction, .o2k7SkinBlack .mceSplitButtonSelected {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover, .o2k7SkinBlack .mceMenu .mceMenuItemActive {background-color:#FFE7A1} \ No newline at end of file diff --git a/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui_silver.css b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui_silver.css new file mode 100644 index 0000000..e8ae844 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/o2k7/ui_silver.css @@ -0,0 +1,5 @@ +/* Silver */ +.o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)} +.o2k7SkinSilver table, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee} +.o2k7SkinSilver .mceListBox .mceText {background:#FFF} +.o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/content.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/content.css new file mode 100644 index 0000000..155790b --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/content.css @@ -0,0 +1,42 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block; font-weight:bold;font-size:large} +blockquote{ background-color:#444444; padding:2px;} + +code{background-color:lightgray;} + +.snInfoBoxHead{font-weight:bold;color:black;display:block;} +.snInfoBox{border: solid black 2px; padding:4px;background-color:#444;color:#A0A0A0;} + + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/dialog.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg_games.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg_games.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg_kochen.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/button_bg_kochen.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/buttons.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/img/buttons.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet/ui.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/ui.css new file mode 100644 index 0000000..aef8ee4 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.Skin table, .Skin tbody, .Skin a, .Skin img, .Skin tr, .Skin div, .Skin td, .Skin iframe, .Skin span, .Skin *, .Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.Skin a:hover, .Skin a:link, .Skin a:visited, .Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.Skin table td {vertical-align:middle} + +/* Containers */ +.Skin table {background:#E5EFFD} +.Skin iframe {display:block; background:#FFF} +.Skin .mceToolbar {height:26px} + +/* External */ +.Skin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +.Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.Skin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +.Skin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +.Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +.Skin table.mceToolbar, .Skin tr.mceFirst .mceToolbar tr td, .Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.Skin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +.Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.Skin .mceStatusbar div {float:left; padding:2px} +.Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.Skin .mceStatusbar a:hover {text-decoration:underline} +.Skin table.mceToolbar {margin-left:3px} +.Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.Skin .mceToolbar td.mceFirst span {margin:0} +.Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.Skin .mceToolbar .mceToolbarEndListBox span, .Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.Skin span.mceIcon, .Skin img.mceIcon {display:block; width:20px; height:20px} +.Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.Skin td.mceCenter {text-align:center;} +.Skin td.mceCenter table {margin:0 auto; text-align:left;} +.Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.Skin a.mceButton span, .Skin a.mceButton img {margin-left:1px} +.Skin .mceOldBoxModel a.mceButton span, .Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.Skin a.mceButtonActive, .Skin a.mceButtonSelected {background-position:0 -44px} +.Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.Skin .mceButtonLabeled {width:auto} +.Skin .mceButtonLabeled span.mceIcon {float:left} +.Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.Skin .mceListBox {margin-left:3px} +.Skin .mceListBox, .Skin .mceListBox a {display:block} +.Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.Skin table.mceListBoxEnabled:hover .mceText, .Skin .mceListBoxHover .mceText, .Skin .mceListBoxSelected .mceText {background:#FFF} +.Skin table.mceListBoxEnabled:hover .mceOpen, .Skin .mceListBoxHover .mceOpen, .Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.Skin .mceListBoxDisabled .mceText {color:gray} +.Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.Skin .mceSplitButton, .Skin .mceSplitButton a, .Skin .mceSplitButton span {display:block; height:22px} +.Skin .mceSplitButton {background:url(img/button_bg.png)} +.Skin .mceSplitButton a.mceAction {width:22px} +.Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.Skin .mceSplitButton span.mceOpen {display:none} +.Skin table.mceSplitButtonEnabled:hover a.mceAction, .Skin .mceSplitButtonHover a.mceAction, .Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.Skin table.mceSplitButtonEnabled:hover a.mceOpen, .Skin .mceSplitButtonHover a.mceOpen, .Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.Skin .mceColorSplitMenu td {padding:2px} +.Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.Skin .mce_forecolor span.mceAction, .Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +.Skin .mceNoIcons span.mceIcon {width:0;} +.Skin .mceNoIcons a .mceText {padding-left:10px} +.Skin .mceMenu table {background:#FFF} +.Skin .mceMenu a, .Skin .mceMenu span, .Skin .mceMenu {display:block} +.Skin .mceMenu td {height:20px} +.Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.Skin .mceMenu span.mceText, .Skin .mceMenu .mcePreview {font-size:11px} +.Skin .mceMenu pre.mceText {font-family:Monospace} +.Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.Skin .mceMenu .mceMenuItemEnabled a:hover, .Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.Skin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +.Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.Skin .mceMenuItemDisabled .mceText {color:#888} +.Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.Skin .mceMenu span.mceMenuLine {display:none} +.Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.Skin .mce_formatPreview a {font-size:10px} +.Skin .mce_p span.mceText {} +.Skin .mce_address span.mceText {font-style:italic} +.Skin .mce_pre span.mceText {font-family:monospace} +.Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.Skin span.mce_bold {background-position:0 0} +.Skin span.mce_italic {background-position:-60px 0} +.Skin span.mce_underline {background-position:-140px 0} +.Skin span.mce_strikethrough {background-position:-120px 0} +.Skin span.mce_undo {background-position:-160px 0} +.Skin span.mce_redo {background-position:-100px 0} +.Skin span.mce_cleanup {background-position:-40px 0} +.Skin span.mce_bullist {background-position:-20px 0} +.Skin span.mce_numlist {background-position:-80px 0} +.Skin span.mce_justifyleft {background-position:-460px 0} +.Skin span.mce_justifyright {background-position:-480px 0} +.Skin span.mce_justifycenter {background-position:-420px 0} +.Skin span.mce_justifyfull {background-position:-440px 0} +.Skin span.mce_anchor {background-position:-200px 0} +.Skin span.mce_indent {background-position:-400px 0} +.Skin span.mce_outdent {background-position:-540px 0} +.Skin span.mce_link {background-position:-500px 0} +.Skin span.mce_unlink {background-position:-640px 0} +.Skin span.mce_sub {background-position:-600px 0} +.Skin span.mce_sup {background-position:-620px 0} +.Skin span.mce_removeformat {background-position:-580px 0} +.Skin span.mce_newdocument {background-position:-520px 0} +.Skin span.mce_image {background-position:-380px 0} +.Skin span.mce_help {background-position:-340px 0} +.Skin span.mce_code {background-position:-260px 0} +.Skin span.mce_hr {background-position:-360px 0} +.Skin span.mce_visualaid {background-position:-660px 0} +.Skin span.mce_charmap {background-position:-240px 0} +.Skin span.mce_paste {background-position:-560px 0} +.Skin span.mce_copy {background-position:-700px 0} +.Skin span.mce_cut {background-position:-680px 0} +.Skin span.mce_blockquote {background-position:-220px 0} +.Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.Skin span.mce_forecolorpicker {background-position:-720px 0} +.Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.Skin span.mce_advhr {background-position:-0px -20px} +.Skin span.mce_ltr {background-position:-20px -20px} +.Skin span.mce_rtl {background-position:-40px -20px} +.Skin span.mce_emotions {background-position:-60px -20px} +.Skin span.mce_fullpage {background-position:-80px -20px} +.Skin span.mce_fullscreen {background-position:-100px -20px} +.Skin span.mce_iespell {background-position:-120px -20px} +.Skin span.mce_insertdate {background-position:-140px -20px} +.Skin span.mce_inserttime {background-position:-160px -20px} +.Skin span.mce_absolute {background-position:-180px -20px} +.Skin span.mce_backward {background-position:-200px -20px} +.Skin span.mce_forward {background-position:-220px -20px} +.Skin span.mce_insert_layer {background-position:-240px -20px} +.Skin span.mce_insertlayer {background-position:-260px -20px} +.Skin span.mce_movebackward {background-position:-280px -20px} +.Skin span.mce_moveforward {background-position:-300px -20px} +.Skin span.mce_media {background-position:-320px -20px} +.Skin span.mce_nonbreaking {background-position:-340px -20px} +.Skin span.mce_pastetext {background-position:-360px -20px} +.Skin span.mce_pasteword {background-position:-380px -20px} +.Skin span.mce_selectall {background-position:-400px -20px} +.Skin span.mce_preview {background-position:-420px -20px} +.Skin span.mce_print {background-position:-440px -20px} +.Skin span.mce_cancel {background-position:-460px -20px} +.Skin span.mce_save {background-position:-480px -20px} +.Skin span.mce_replace {background-position:-500px -20px} +.Skin span.mce_search {background-position:-520px -20px} +.Skin span.mce_styleprops {background-position:-560px -20px} +.Skin span.mce_table {background-position:-580px -20px} +.Skin span.mce_cell_props {background-position:-600px -20px} +.Skin span.mce_delete_table {background-position:-620px -20px} +.Skin span.mce_delete_col {background-position:-640px -20px} +.Skin span.mce_delete_row {background-position:-660px -20px} +.Skin span.mce_col_after {background-position:-680px -20px} +.Skin span.mce_col_before {background-position:-700px -20px} +.Skin span.mce_row_after {background-position:-720px -20px} +.Skin span.mce_row_before {background-position:-740px -20px} +.Skin span.mce_merge_cells {background-position:-760px -20px} +.Skin span.mce_table_props {background-position:-980px -20px} +.Skin span.mce_row_props {background-position:-780px -20px} +.Skin span.mce_split_cells {background-position:-800px -20px} +.Skin span.mce_template {background-position:-820px -20px} +.Skin span.mce_visualchars {background-position:-840px -20px} +.Skin span.mce_abbr {background-position:-860px -20px} +.Skin span.mce_acronym {background-position:-880px -20px} +.Skin span.mce_attribs {background-position:-900px -20px} +.Skin span.mce_cite {background-position:-920px -20px} +.Skin span.mce_del {background-position:-940px -20px} +.Skin span.mce_ins {background-position:-960px -20px} +.Skin span.mce_pagebreak {background-position:0 -40px} +.Skin span.mce_restoredraft {background-position:-20px -40px} +.Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/content.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/content.css new file mode 100644 index 0000000..906e3c4 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/content.css @@ -0,0 +1,42 @@ +body, td, pre {color:#A0A0A0; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#151515;} +body.mceForceColors {background:#151515; color:#A0A0A0;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block; font-weight:bold;font-size:large} +blockquote{ background-color:#444444; padding:2px;} + +code{background-color:lightgray;} + +.snInfoBoxHead{font-weight:bold;color:black;display:block;} +.snInfoBox{border: solid black 2px; padding:4px;background-color:#444;color:#A0A0A0;} + + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/dialog.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg_games.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg_games.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/buttons.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/img/buttons.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/ui.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/ui.css new file mode 100644 index 0000000..2ab66fe --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_games/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +._gamesSkin table, ._gamesSkin tbody, ._gamesSkin a, ._gamesSkin img, ._gamesSkin tr, ._gamesSkin div, ._gamesSkin td, ._gamesSkin iframe, ._gamesSkin span, ._gamesSkin *, ._gamesSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +._gamesSkin a:hover, ._gamesSkin a:link, ._gamesSkin a:visited, ._gamesSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +._gamesSkin table td {vertical-align:middle} + +/* Containers */ +._gamesSkin table {background:#E5EFFD} +._gamesSkin iframe {display:block; background:#FFF} +._gamesSkin .mceToolbar {height:26px} + +/* External */ +._gamesSkin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +._gamesSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +._gamesSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +._gamesSkin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +._gamesSkin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +._gamesSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +._gamesSkin table.mceToolbar, ._gamesSkin tr.mceFirst .mceToolbar tr td, ._gamesSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +._gamesSkin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +._gamesSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +._gamesSkin .mceStatusbar div {float:left; padding:2px} +._gamesSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +._gamesSkin .mceStatusbar a:hover {text-decoration:underline} +._gamesSkin table.mceToolbar {margin-left:3px} +._gamesSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +._gamesSkin .mceToolbar td.mceFirst span {margin:0} +._gamesSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +._gamesSkin .mceToolbar .mceToolbarEndListBox span, ._gamesSkin .mceToolbar .mceToolbarStartListBox span {display:none} +._gamesSkin span.mceIcon, ._gamesSkin img.mceIcon {display:block; width:20px; height:20px} +._gamesSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +._gamesSkin td.mceCenter {text-align:center;} +._gamesSkin td.mceCenter table {margin:0 auto; text-align:left;} +._gamesSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +._gamesSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +._gamesSkin a.mceButton span, ._gamesSkin a.mceButton img {margin-left:1px} +._gamesSkin .mceOldBoxModel a.mceButton span, ._gamesSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +._gamesSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +._gamesSkin a.mceButtonActive, ._gamesSkin a.mceButtonSelected {background-position:0 -44px} +._gamesSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._gamesSkin .mceButtonLabeled {width:auto} +._gamesSkin .mceButtonLabeled span.mceIcon {float:left} +._gamesSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +._gamesSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +._gamesSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +._gamesSkin .mceListBox {margin-left:3px} +._gamesSkin .mceListBox, ._gamesSkin .mceListBox a {display:block} +._gamesSkin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +._gamesSkin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +._gamesSkin table.mceListBoxEnabled:hover .mceText, ._gamesSkin .mceListBoxHover .mceText, ._gamesSkin .mceListBoxSelected .mceText {background:#FFF} +._gamesSkin table.mceListBoxEnabled:hover .mceOpen, ._gamesSkin .mceListBoxHover .mceOpen, ._gamesSkin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +._gamesSkin .mceListBoxDisabled .mceText {color:gray} +._gamesSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +._gamesSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +._gamesSkin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +._gamesSkin .mceSplitButton, ._gamesSkin .mceSplitButton a, ._gamesSkin .mceSplitButton span {display:block; height:22px} +._gamesSkin .mceSplitButton {background:url(img/button_bg.png)} +._gamesSkin .mceSplitButton a.mceAction {width:22px} +._gamesSkin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +._gamesSkin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +._gamesSkin .mceSplitButton span.mceOpen {display:none} +._gamesSkin table.mceSplitButtonEnabled:hover a.mceAction, ._gamesSkin .mceSplitButtonHover a.mceAction, ._gamesSkin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +._gamesSkin table.mceSplitButtonEnabled:hover a.mceOpen, ._gamesSkin .mceSplitButtonHover a.mceOpen, ._gamesSkin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +._gamesSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._gamesSkin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +._gamesSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +._gamesSkin .mceColorSplitMenu td {padding:2px} +._gamesSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +._gamesSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +._gamesSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +._gamesSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +._gamesSkin a.mceMoreColors:hover {border:1px solid #0A246A} +._gamesSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +._gamesSkin .mce_forecolor span.mceAction, ._gamesSkin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +._gamesSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +._gamesSkin .mceNoIcons span.mceIcon {width:0;} +._gamesSkin .mceNoIcons a .mceText {padding-left:10px} +._gamesSkin .mceMenu table {background:#FFF} +._gamesSkin .mceMenu a, ._gamesSkin .mceMenu span, ._gamesSkin .mceMenu {display:block} +._gamesSkin .mceMenu td {height:20px} +._gamesSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +._gamesSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +._gamesSkin .mceMenu span.mceText, ._gamesSkin .mceMenu .mcePreview {font-size:11px} +._gamesSkin .mceMenu pre.mceText {font-family:Monospace} +._gamesSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +._gamesSkin .mceMenu .mceMenuItemEnabled a:hover, ._gamesSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +._gamesSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +._gamesSkin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +._gamesSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +._gamesSkin .mceMenuItemDisabled .mceText {color:#888} +._gamesSkin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +._gamesSkin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +._gamesSkin .mceMenu span.mceMenuLine {display:none} +._gamesSkin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +._gamesSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +._gamesSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +._gamesSkin .mce_formatPreview a {font-size:10px} +._gamesSkin .mce_p span.mceText {} +._gamesSkin .mce_address span.mceText {font-style:italic} +._gamesSkin .mce_pre span.mceText {font-family:monospace} +._gamesSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +._gamesSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +._gamesSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +._gamesSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +._gamesSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +._gamesSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +._gamesSkin span.mce_bold {background-position:0 0} +._gamesSkin span.mce_italic {background-position:-60px 0} +._gamesSkin span.mce_underline {background-position:-140px 0} +._gamesSkin span.mce_strikethrough {background-position:-120px 0} +._gamesSkin span.mce_undo {background-position:-160px 0} +._gamesSkin span.mce_redo {background-position:-100px 0} +._gamesSkin span.mce_cleanup {background-position:-40px 0} +._gamesSkin span.mce_bullist {background-position:-20px 0} +._gamesSkin span.mce_numlist {background-position:-80px 0} +._gamesSkin span.mce_justifyleft {background-position:-460px 0} +._gamesSkin span.mce_justifyright {background-position:-480px 0} +._gamesSkin span.mce_justifycenter {background-position:-420px 0} +._gamesSkin span.mce_justifyfull {background-position:-440px 0} +._gamesSkin span.mce_anchor {background-position:-200px 0} +._gamesSkin span.mce_indent {background-position:-400px 0} +._gamesSkin span.mce_outdent {background-position:-540px 0} +._gamesSkin span.mce_link {background-position:-500px 0} +._gamesSkin span.mce_unlink {background-position:-640px 0} +._gamesSkin span.mce_sub {background-position:-600px 0} +._gamesSkin span.mce_sup {background-position:-620px 0} +._gamesSkin span.mce_removeformat {background-position:-580px 0} +._gamesSkin span.mce_newdocument {background-position:-520px 0} +._gamesSkin span.mce_image {background-position:-380px 0} +._gamesSkin span.mce_help {background-position:-340px 0} +._gamesSkin span.mce_code {background-position:-260px 0} +._gamesSkin span.mce_hr {background-position:-360px 0} +._gamesSkin span.mce_visualaid {background-position:-660px 0} +._gamesSkin span.mce_charmap {background-position:-240px 0} +._gamesSkin span.mce_paste {background-position:-560px 0} +._gamesSkin span.mce_copy {background-position:-700px 0} +._gamesSkin span.mce_cut {background-position:-680px 0} +._gamesSkin span.mce_blockquote {background-position:-220px 0} +._gamesSkin .mce_forecolor span.mceAction {background-position:-720px 0} +._gamesSkin .mce_backcolor span.mceAction {background-position:-760px 0} +._gamesSkin span.mce_forecolorpicker {background-position:-720px 0} +._gamesSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +._gamesSkin span.mce_advhr {background-position:-0px -20px} +._gamesSkin span.mce_ltr {background-position:-20px -20px} +._gamesSkin span.mce_rtl {background-position:-40px -20px} +._gamesSkin span.mce_emotions {background-position:-60px -20px} +._gamesSkin span.mce_fullpage {background-position:-80px -20px} +._gamesSkin span.mce_fullscreen {background-position:-100px -20px} +._gamesSkin span.mce_iespell {background-position:-120px -20px} +._gamesSkin span.mce_insertdate {background-position:-140px -20px} +._gamesSkin span.mce_inserttime {background-position:-160px -20px} +._gamesSkin span.mce_absolute {background-position:-180px -20px} +._gamesSkin span.mce_backward {background-position:-200px -20px} +._gamesSkin span.mce_forward {background-position:-220px -20px} +._gamesSkin span.mce_insert_layer {background-position:-240px -20px} +._gamesSkin span.mce_insertlayer {background-position:-260px -20px} +._gamesSkin span.mce_movebackward {background-position:-280px -20px} +._gamesSkin span.mce_moveforward {background-position:-300px -20px} +._gamesSkin span.mce_media {background-position:-320px -20px} +._gamesSkin span.mce_nonbreaking {background-position:-340px -20px} +._gamesSkin span.mce_pastetext {background-position:-360px -20px} +._gamesSkin span.mce_pasteword {background-position:-380px -20px} +._gamesSkin span.mce_selectall {background-position:-400px -20px} +._gamesSkin span.mce_preview {background-position:-420px -20px} +._gamesSkin span.mce_print {background-position:-440px -20px} +._gamesSkin span.mce_cancel {background-position:-460px -20px} +._gamesSkin span.mce_save {background-position:-480px -20px} +._gamesSkin span.mce_replace {background-position:-500px -20px} +._gamesSkin span.mce_search {background-position:-520px -20px} +._gamesSkin span.mce_styleprops {background-position:-560px -20px} +._gamesSkin span.mce_table {background-position:-580px -20px} +._gamesSkin span.mce_cell_props {background-position:-600px -20px} +._gamesSkin span.mce_delete_table {background-position:-620px -20px} +._gamesSkin span.mce_delete_col {background-position:-640px -20px} +._gamesSkin span.mce_delete_row {background-position:-660px -20px} +._gamesSkin span.mce_col_after {background-position:-680px -20px} +._gamesSkin span.mce_col_before {background-position:-700px -20px} +._gamesSkin span.mce_row_after {background-position:-720px -20px} +._gamesSkin span.mce_row_before {background-position:-740px -20px} +._gamesSkin span.mce_merge_cells {background-position:-760px -20px} +._gamesSkin span.mce_table_props {background-position:-980px -20px} +._gamesSkin span.mce_row_props {background-position:-780px -20px} +._gamesSkin span.mce_split_cells {background-position:-800px -20px} +._gamesSkin span.mce_template {background-position:-820px -20px} +._gamesSkin span.mce_visualchars {background-position:-840px -20px} +._gamesSkin span.mce_abbr {background-position:-860px -20px} +._gamesSkin span.mce_acronym {background-position:-880px -20px} +._gamesSkin span.mce_attribs {background-position:-900px -20px} +._gamesSkin span.mce_cite {background-position:-920px -20px} +._gamesSkin span.mce_del {background-position:-940px -20px} +._gamesSkin span.mce_ins {background-position:-960px -20px} +._gamesSkin span.mce_pagebreak {background-position:0 -40px} +._gamesSkin span.mce_restoredraft {background-position:-20px -40px} +._gamesSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/content.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/content.css new file mode 100644 index 0000000..65e5201 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/content.css @@ -0,0 +1,43 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFD5A1;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block;font-weight:bold;font-size:large} +blockquote{ background-color:#FAB47E; padding:2px;} + +code{} + +.snInfoBoxHead{font-weight:bold;color:blue;display:block;} +.snInfoBox{border: solid black 2px; padding:4px;background-color:#FFE9CD;} + + + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/dialog.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/buttons.png b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/img/buttons.png differ diff --git a/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/ui.css b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/ui.css new file mode 100644 index 0000000..f037c00 --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/skins/supportnet_kochen/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +._kochenSkin table, ._kochenSkin tbody, ._kochenSkin a, ._kochenSkin img, ._kochenSkin tr, ._kochenSkin div, ._kochenSkin td, ._kochenSkin iframe, ._kochenSkin span, ._kochenSkin *, ._kochenSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +._kochenSkin a:hover, ._kochenSkin a:link, ._kochenSkin a:visited, ._kochenSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +._kochenSkin table td {vertical-align:middle} + +/* Containers */ +._kochenSkin table {background:#E5EFFD} +._kochenSkin iframe {display:block; background:#FFF} +._kochenSkin .mceToolbar {height:26px} + +/* External */ +._kochenSkin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +._kochenSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +._kochenSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +._kochenSkin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +._kochenSkin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +._kochenSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +._kochenSkin table.mceToolbar, ._kochenSkin tr.mceFirst .mceToolbar tr td, ._kochenSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +._kochenSkin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +._kochenSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +._kochenSkin .mceStatusbar div {float:left; padding:2px} +._kochenSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +._kochenSkin .mceStatusbar a:hover {text-decoration:underline} +._kochenSkin table.mceToolbar {margin-left:3px} +._kochenSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +._kochenSkin .mceToolbar td.mceFirst span {margin:0} +._kochenSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +._kochenSkin .mceToolbar .mceToolbarEndListBox span, ._kochenSkin .mceToolbar .mceToolbarStartListBox span {display:none} +._kochenSkin span.mceIcon, ._kochenSkin img.mceIcon {display:block; width:20px; height:20px} +._kochenSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +._kochenSkin td.mceCenter {text-align:center;} +._kochenSkin td.mceCenter table {margin:0 auto; text-align:left;} +._kochenSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +._kochenSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +._kochenSkin a.mceButton span, ._kochenSkin a.mceButton img {margin-left:1px} +._kochenSkin .mceOldBoxModel a.mceButton span, ._kochenSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +._kochenSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +._kochenSkin a.mceButtonActive, ._kochenSkin a.mceButtonSelected {background-position:0 -44px} +._kochenSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._kochenSkin .mceButtonLabeled {width:auto} +._kochenSkin .mceButtonLabeled span.mceIcon {float:left} +._kochenSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +._kochenSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +._kochenSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +._kochenSkin .mceListBox {margin-left:3px} +._kochenSkin .mceListBox, ._kochenSkin .mceListBox a {display:block} +._kochenSkin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +._kochenSkin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +._kochenSkin table.mceListBoxEnabled:hover .mceText, ._kochenSkin .mceListBoxHover .mceText, ._kochenSkin .mceListBoxSelected .mceText {background:#FFF} +._kochenSkin table.mceListBoxEnabled:hover .mceOpen, ._kochenSkin .mceListBoxHover .mceOpen, ._kochenSkin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +._kochenSkin .mceListBoxDisabled .mceText {color:gray} +._kochenSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +._kochenSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +._kochenSkin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +._kochenSkin .mceSplitButton, ._kochenSkin .mceSplitButton a, ._kochenSkin .mceSplitButton span {display:block; height:22px} +._kochenSkin .mceSplitButton {background:url(img/button_bg.png)} +._kochenSkin .mceSplitButton a.mceAction {width:22px} +._kochenSkin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +._kochenSkin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +._kochenSkin .mceSplitButton span.mceOpen {display:none} +._kochenSkin table.mceSplitButtonEnabled:hover a.mceAction, ._kochenSkin .mceSplitButtonHover a.mceAction, ._kochenSkin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +._kochenSkin table.mceSplitButtonEnabled:hover a.mceOpen, ._kochenSkin .mceSplitButtonHover a.mceOpen, ._kochenSkin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +._kochenSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._kochenSkin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +._kochenSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +._kochenSkin .mceColorSplitMenu td {padding:2px} +._kochenSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +._kochenSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +._kochenSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +._kochenSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +._kochenSkin a.mceMoreColors:hover {border:1px solid #0A246A} +._kochenSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +._kochenSkin .mce_forecolor span.mceAction, ._kochenSkin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +._kochenSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +._kochenSkin .mceNoIcons span.mceIcon {width:0;} +._kochenSkin .mceNoIcons a .mceText {padding-left:10px} +._kochenSkin .mceMenu table {background:#FFF} +._kochenSkin .mceMenu a, ._kochenSkin .mceMenu span, ._kochenSkin .mceMenu {display:block} +._kochenSkin .mceMenu td {height:20px} +._kochenSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +._kochenSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +._kochenSkin .mceMenu span.mceText, ._kochenSkin .mceMenu .mcePreview {font-size:11px} +._kochenSkin .mceMenu pre.mceText {font-family:Monospace} +._kochenSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +._kochenSkin .mceMenu .mceMenuItemEnabled a:hover, ._kochenSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +._kochenSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +._kochenSkin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +._kochenSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +._kochenSkin .mceMenuItemDisabled .mceText {color:#888} +._kochenSkin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +._kochenSkin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +._kochenSkin .mceMenu span.mceMenuLine {display:none} +._kochenSkin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +._kochenSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +._kochenSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +._kochenSkin .mce_formatPreview a {font-size:10px} +._kochenSkin .mce_p span.mceText {} +._kochenSkin .mce_address span.mceText {font-style:italic} +._kochenSkin .mce_pre span.mceText {font-family:monospace} +._kochenSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +._kochenSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +._kochenSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +._kochenSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +._kochenSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +._kochenSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +._kochenSkin span.mce_bold {background-position:0 0} +._kochenSkin span.mce_italic {background-position:-60px 0} +._kochenSkin span.mce_underline {background-position:-140px 0} +._kochenSkin span.mce_strikethrough {background-position:-120px 0} +._kochenSkin span.mce_undo {background-position:-160px 0} +._kochenSkin span.mce_redo {background-position:-100px 0} +._kochenSkin span.mce_cleanup {background-position:-40px 0} +._kochenSkin span.mce_bullist {background-position:-20px 0} +._kochenSkin span.mce_numlist {background-position:-80px 0} +._kochenSkin span.mce_justifyleft {background-position:-460px 0} +._kochenSkin span.mce_justifyright {background-position:-480px 0} +._kochenSkin span.mce_justifycenter {background-position:-420px 0} +._kochenSkin span.mce_justifyfull {background-position:-440px 0} +._kochenSkin span.mce_anchor {background-position:-200px 0} +._kochenSkin span.mce_indent {background-position:-400px 0} +._kochenSkin span.mce_outdent {background-position:-540px 0} +._kochenSkin span.mce_link {background-position:-500px 0} +._kochenSkin span.mce_unlink {background-position:-640px 0} +._kochenSkin span.mce_sub {background-position:-600px 0} +._kochenSkin span.mce_sup {background-position:-620px 0} +._kochenSkin span.mce_removeformat {background-position:-580px 0} +._kochenSkin span.mce_newdocument {background-position:-520px 0} +._kochenSkin span.mce_image {background-position:-380px 0} +._kochenSkin span.mce_help {background-position:-340px 0} +._kochenSkin span.mce_code {background-position:-260px 0} +._kochenSkin span.mce_hr {background-position:-360px 0} +._kochenSkin span.mce_visualaid {background-position:-660px 0} +._kochenSkin span.mce_charmap {background-position:-240px 0} +._kochenSkin span.mce_paste {background-position:-560px 0} +._kochenSkin span.mce_copy {background-position:-700px 0} +._kochenSkin span.mce_cut {background-position:-680px 0} +._kochenSkin span.mce_blockquote {background-position:-220px 0} +._kochenSkin .mce_forecolor span.mceAction {background-position:-720px 0} +._kochenSkin .mce_backcolor span.mceAction {background-position:-760px 0} +._kochenSkin span.mce_forecolorpicker {background-position:-720px 0} +._kochenSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +._kochenSkin span.mce_advhr {background-position:-0px -20px} +._kochenSkin span.mce_ltr {background-position:-20px -20px} +._kochenSkin span.mce_rtl {background-position:-40px -20px} +._kochenSkin span.mce_emotions {background-position:-60px -20px} +._kochenSkin span.mce_fullpage {background-position:-80px -20px} +._kochenSkin span.mce_fullscreen {background-position:-100px -20px} +._kochenSkin span.mce_iespell {background-position:-120px -20px} +._kochenSkin span.mce_insertdate {background-position:-140px -20px} +._kochenSkin span.mce_inserttime {background-position:-160px -20px} +._kochenSkin span.mce_absolute {background-position:-180px -20px} +._kochenSkin span.mce_backward {background-position:-200px -20px} +._kochenSkin span.mce_forward {background-position:-220px -20px} +._kochenSkin span.mce_insert_layer {background-position:-240px -20px} +._kochenSkin span.mce_insertlayer {background-position:-260px -20px} +._kochenSkin span.mce_movebackward {background-position:-280px -20px} +._kochenSkin span.mce_moveforward {background-position:-300px -20px} +._kochenSkin span.mce_media {background-position:-320px -20px} +._kochenSkin span.mce_nonbreaking {background-position:-340px -20px} +._kochenSkin span.mce_pastetext {background-position:-360px -20px} +._kochenSkin span.mce_pasteword {background-position:-380px -20px} +._kochenSkin span.mce_selectall {background-position:-400px -20px} +._kochenSkin span.mce_preview {background-position:-420px -20px} +._kochenSkin span.mce_print {background-position:-440px -20px} +._kochenSkin span.mce_cancel {background-position:-460px -20px} +._kochenSkin span.mce_save {background-position:-480px -20px} +._kochenSkin span.mce_replace {background-position:-500px -20px} +._kochenSkin span.mce_search {background-position:-520px -20px} +._kochenSkin span.mce_styleprops {background-position:-560px -20px} +._kochenSkin span.mce_table {background-position:-580px -20px} +._kochenSkin span.mce_cell_props {background-position:-600px -20px} +._kochenSkin span.mce_delete_table {background-position:-620px -20px} +._kochenSkin span.mce_delete_col {background-position:-640px -20px} +._kochenSkin span.mce_delete_row {background-position:-660px -20px} +._kochenSkin span.mce_col_after {background-position:-680px -20px} +._kochenSkin span.mce_col_before {background-position:-700px -20px} +._kochenSkin span.mce_row_after {background-position:-720px -20px} +._kochenSkin span.mce_row_before {background-position:-740px -20px} +._kochenSkin span.mce_merge_cells {background-position:-760px -20px} +._kochenSkin span.mce_table_props {background-position:-980px -20px} +._kochenSkin span.mce_row_props {background-position:-780px -20px} +._kochenSkin span.mce_split_cells {background-position:-800px -20px} +._kochenSkin span.mce_template {background-position:-820px -20px} +._kochenSkin span.mce_visualchars {background-position:-840px -20px} +._kochenSkin span.mce_abbr {background-position:-860px -20px} +._kochenSkin span.mce_acronym {background-position:-880px -20px} +._kochenSkin span.mce_attribs {background-position:-900px -20px} +._kochenSkin span.mce_cite {background-position:-920px -20px} +._kochenSkin span.mce_del {background-position:-940px -20px} +._kochenSkin span.mce_ins {background-position:-960px -20px} +._kochenSkin span.mce_pagebreak {background-position:0 -40px} +._kochenSkin span.mce_restoredraft {background-position:-20px -40px} +._kochenSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/editor_stuff/themes/advanced/source_editor.htm b/sn_templates/editor_stuff/themes/advanced/source_editor.htm new file mode 100644 index 0000000..78033fd --- /dev/null +++ b/sn_templates/editor_stuff/themes/advanced/source_editor.htm @@ -0,0 +1,25 @@ + + + {#advanced_dlg.code_title} + + + + +
                                                +
                                                {#advanced_dlg.code_title}
                                                + +
                                                + +
                                                + +
                                                + + + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/editor_stuff/tiny_mce_popup.js b/sn_templates/editor_stuff/tiny_mce_popup.js new file mode 100644 index 0000000..e69de29 diff --git a/sn_templates/editor_stuff/utils b/sn_templates/editor_stuff/utils new file mode 100644 index 0000000..e69de29 diff --git a/sn_templates/jquery.flow.1.2.js b/sn_templates/jquery.flow.1.2.js new file mode 100644 index 0000000..a8dda08 --- /dev/null +++ b/sn_templates/jquery.flow.1.2.js @@ -0,0 +1,137 @@ +/* Copyright (c) 2008 Kean Loong Tan http://www.gimiti.com/kltan + * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) + * jFlow + * Version: 1.2 (July 7, 2008) + * Requires: jQuery 1.2+ + */ + +(function($) { + + $.fn.jFlow = function(options) { + var opts = $.extend({}, $.fn.jFlow.defaults, options); + var randNum = Math.floor(Math.random()*11); + var jFC = opts.controller; + var jFS = opts.slideWrapper; + var jSel = opts.selectedWrapper; + + var cur = 0; + var maxi = $(jFC).length; + // sliding function + var slide = function (dur, i) { + $(opts.slides).children().css({ + overflow:"hidden" + }); + $(opts.slides + " iframe").hide().addClass("temp_hide"); + $(opts.slides).animate({ + marginLeft: "-" + (i * $(opts.slides).find(":first-child").width() + "px")}, + opts.duration*(dur), + opts.easing, + function(){ + $(opts.slides).children().css({ + overflow:"auto" + }); + $(".temp_hide").show(); + } + ); + + } + $(this).find(jFC).each(function(i){ + $(this).click(function(){ + if ($(opts.slides).is(":not(:animated)")) { + $(jFC).removeClass(jSel); + $(this).addClass(jSel); + var dur = Math.abs(cur-i); + slide(dur,i); + cur = i; + } + }); + }); + + $(opts.slides).before('
                                                ').appendTo(jFS); + + $(opts.slides).find("div").each(function(){ + $(this).before('
                                                ').appendTo($(this).prev()); + }); + + //initialize the controller + $(jFC).eq(cur).addClass(jSel); + + var resize = function (x){ + $(jFS).css({ + position:"relative", + width: opts.width, + height: opts.height, + overflow: "hidden" + }); + //opts.slides or #mySlides container + $(opts.slides).css({ + position:"relative", + width: $(jFS).width()*$(jFC).length+"px", + height: $(jFS).height()+"px", + overflow: "hidden" + }); + // jFlowSlideContainer + $(opts.slides).children().css({ + position:"relative", + width: $(jFS).width()+"px", + height: $(jFS).height()+"px", + "float":"left", + overflow:"auto" + }); + + $(opts.slides).css({ + marginLeft: "-" + (cur * $(opts.slides).find(":eq(0)").width() + "px") + }); + } + + // sets initial size + resize(); + + // resets size + $(window).resize(function(){ + resize(); + }); + + $(opts.prev).click(function(){ + if ($(opts.slides).is(":not(:animated)")) { + var dur = 1; + if (cur > 0) + cur--; + else { + cur = maxi -1; + dur = cur; + } + $(jFC).removeClass(jSel); + slide(dur,cur); + $(jFC).eq(cur).addClass(jSel); + } + }); + + $(opts.next).click(function(){ + if ($(opts.slides).is(":not(:animated)")) { + var dur = 1; + if (cur < maxi - 1) + cur++; + else { + cur = 0; + dur = maxi -1; + } + $(jFC).removeClass(jSel); + slide(dur, cur); + $(jFC).eq(cur).addClass(jSel); + } + }); + }; + + $.fn.jFlow.defaults = { + controller: ".jFlowControl", // must be class, use . sign + slideWrapper : "#jFlowSlide", // must be id, use # sign + selectedWrapper: "jFlowSelected", // just pure text, no sign + easing: "swing", + duration: 400, + width: "100%", + prev: ".jFlowPrev", // must be class, use . sign + next: ".jFlowNext" // must be class, use . sign + }; + +})(jQuery); diff --git a/sn_templates/jquery.min.js b/sn_templates/jquery.min.js new file mode 100644 index 0000000..e69de29 diff --git a/sn_templates/jquery.ui.css b/sn_templates/jquery.ui.css new file mode 100644 index 0000000..e69de29 diff --git a/sn_templates/jquery.ui.js b/sn_templates/jquery.ui.js new file mode 100644 index 0000000..e69de29 diff --git a/sn_templates/short_help2.html b/sn_templates/short_help2.html new file mode 100644 index 0000000..ade898e --- /dev/null +++ b/sn_templates/short_help2.html @@ -0,0 +1,36 @@ + + + + + Kurzhilfe Schritt 2 von 3 + + + + +Kurz-Überschrift:

                                                + +W�hlen sie bitte die Kurz-Überschrift so aus, dass sich die anderen User unter dem Betreff etwas vorstellen können. Das Subject, bzw. der Betreff sollte also kurz das Problem anreißen. +

                                                +Richtig: z.B. "Outlook ruft keine e-mail mehr ab" oder "Drucker druckt nicht mehr."
                                                +Falsch: Hilfeee / Problem / Schaut mal.
                                                +Falsch: Exzessive Verwendung von Frage- und/oder Ausrufungszeichen.


                                                + + + +Ausf�hrliche Beschreibung des Problems:

                                                + +Beschreiben Sie hier Ihr Problem möglichst ausführlich, am besten beschreiben Sie zusätzlich zu Ihrem Problem auch Ihre Rechnerkonfiguration wie z.B. Betriebssystem, also Windows XP oder Windows 98 ... und seit welcher Änderung das Problem aufgetreten ist.
                                                +Um so besser die Beschreibung ist um so besser kann Ihnen geholfen werden.


                                                + + + +Themengebiet:

                                                + +Wählen Sie hier bitte ein zu Ihrer Fragestellung passendes Themengebiet/Gruppe aus der Liste aus. Um so besser das Themengebiet/Gruppe zu Ihrer Fragestellung passt um so schneller wird Ihnen jemand eine Antwort geben.

                                                + + +
                                                + + + + diff --git a/sn_templates/short_help3.html b/sn_templates/short_help3.html new file mode 100644 index 0000000..dc37785 --- /dev/null +++ b/sn_templates/short_help3.html @@ -0,0 +1,32 @@ + + + + + Kurzhilfe Schritt 3 von 3 + + + + +Pseudonym:

                                                + +Als nicht angemeldeter Benutzer wählen Sie hier bitte einen Namen/Pseudonym aus, das Sie sich gut merken können. Sie können Ihren Namen/Pseudonym frei wählen, sie dürfen keine Leerzeichen enthalten und alle Namen/Pseudonyme von registrierten Benutzern sind nicht erlaubt. +

                                                +Falls Sie einen nicht erlaubten Namen/Pseudonym wählen wird sie der -Server darauf aufmerksam machen und Sie erneut zur Eingabe eines Namens/Pseudonyms auffordern. +

                                                +Als angemeldeter Benutzer werden Ihre Daten automatisch eingetragen. +


                                                + + + +eMail:

                                                + +Die Angabe der E-Mail Adresse ist freiwillig und wird nur benötigt wenn Sie die folgende E-Mail-Benachrichtigung verwenden wollen.


                                                + +eMail-Benachrichtigung:

                                                + +Wenn Sie per E-Mail benachrichtigt werden wollen wenn eine Antwort auf Ihre Frage eingegangen ist dann machen Sie hier ein Häkchen, geben Sie in diesem Fall Ihre E-Mail Adresse im oberen Feld an.

                                                +
                                                + + + + diff --git a/sn_templates/sn_main0.js b/sn_templates/sn_main0.js new file mode 100644 index 0000000..861a31f --- /dev/null +++ b/sn_templates/sn_main0.js @@ -0,0 +1,359 @@ + \ No newline at end of file diff --git a/sn_templates/sn_templates.session b/sn_templates/sn_templates.session new file mode 100644 index 0000000..a7db3e2 --- /dev/null +++ b/sn_templates/sn_templates.session @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/sn_templates/sn_threadmeta.html b/sn_templates/sn_threadmeta.html new file mode 100644 index 0000000..a2856d7 --- /dev/null +++ b/sn_templates/sn_threadmeta.html @@ -0,0 +1,3 @@ + + + diff --git a/sn_templates/sn_x_ad_include1.html b/sn_templates/sn_x_ad_include1.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sn_templates/sn_x_ad_include1.html @@ -0,0 +1 @@ + diff --git a/sn_templates/sn_x_ad_include2.html b/sn_templates/sn_x_ad_include2.html new file mode 100644 index 0000000..8a3d469 --- /dev/null +++ b/sn_templates/sn_x_ad_include2.html @@ -0,0 +1 @@ +
                                                \ No newline at end of file diff --git a/sn_templates/sn_x_copyright.html b/sn_templates/sn_x_copyright.html new file mode 100644 index 0000000..0519ecb --- /dev/null +++ b/sn_templates/sn_x_copyright.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sn_templates/sn_x_inlay.html b/sn_templates/sn_x_inlay.html new file mode 100644 index 0000000..2098c72 --- /dev/null +++ b/sn_templates/sn_x_inlay.html @@ -0,0 +1,22 @@ +
                                                +
                                                + + +
                                                \ No newline at end of file diff --git a/sn_templates/sn_x_sky.html b/sn_templates/sn_x_sky.html new file mode 100644 index 0000000..dc62239 --- /dev/null +++ b/sn_templates/sn_x_sky.html @@ -0,0 +1,51 @@ + + + + + + + + +

                                                Anzeige
                                                + + diff --git a/sn_templates/sn_x_werbung.html b/sn_templates/sn_x_werbung.html new file mode 100644 index 0000000..6fb9379 --- /dev/null +++ b/sn_templates/sn_x_werbung.html @@ -0,0 +1,38 @@ + + +
                                                + + + + + +
                                                +
                                                + diff --git a/sn_templates/sx_editor_demand_loader.html b/sn_templates/sx_editor_demand_loader.html new file mode 100644 index 0000000..012415e --- /dev/null +++ b/sn_templates/sx_editor_demand_loader.html @@ -0,0 +1,24 @@ + + + + diff --git a/sn_templates/sx_editor_main_loader.html b/sn_templates/sx_editor_main_loader.html new file mode 100644 index 0000000..7fdf481 --- /dev/null +++ b/sn_templates/sx_editor_main_loader.html @@ -0,0 +1,17 @@ + + + + diff --git a/sn_templates/sx_editor_plugin_and_theme.html b/sn_templates/sx_editor_plugin_and_theme.html new file mode 100644 index 0000000..cbc6892 --- /dev/null +++ b/sn_templates/sx_editor_plugin_and_theme.html @@ -0,0 +1,21 @@ + mode : "textareas", + theme : "advanced", + cleanup: true, + editor_selector : "mceEditor", + editor_deselector : "mceNoEditor", + + plugins : "-snstuff,advlist,-advimagescale,-bbcode,safari,save,inlinepopups,searchreplace,contextmenu,paste", + + // Theme options + theme_advanced_buttons1 : "bold,italic,underline,sub,sup,formatselect,|,snlink,unlink,|,bullist,numlist,liststyle,|,undo,redo", + theme_advanced_buttons2 : "snimages,|,sncode,snquote,|,sninfobox,sninfoboxhead,|,cut,copy,paste,pastetext,pasteword,|,snproposals,|,cleanup,code,|,replace,search", + theme_advanced_buttons3 : "", + theme_advanced_buttons4 : "", + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + theme_advanced_statusbar_location : "bottom", + theme_advanced_resizing : true, + theme_advanced_path : false, + + theme_advanced_blockformats : "p,h1,h2,h3", + diff --git a/sn_templates/sx_editor_plugin_and_theme_load.html b/sn_templates/sx_editor_plugin_and_theme_load.html new file mode 100644 index 0000000..4e05cae --- /dev/null +++ b/sn_templates/sx_editor_plugin_and_theme_load.html @@ -0,0 +1,6 @@ + tinymce.PluginManager.load('snstuff', '/editor_stuff/plugin/snstuff/editor_plugin.js'); + tinymce.PluginManager.load('bbcode', '/editor_stuff/plugin/bbcode/editor_plugin.js'); + tinymce.PluginManager.load('liststyle', '/editor_stuff/plugin/liststyle/editor_plugin.js'); + tinymce.PluginManager.load('advimagescale', '/editor_stuff/plugin/advimagescale/editor_plugin.js'); + + //tinymce.ThemeManager.load('advanced', '/editor_stuff/themes/advanced/editor_template.js'); \ No newline at end of file diff --git a/sn_templates/sx_editor_settings.html b/sn_templates/sx_editor_settings.html new file mode 100644 index 0000000..0269304 --- /dev/null +++ b/sn_templates/sx_editor_settings.html @@ -0,0 +1,31 @@ + + language : "de", + + entity_encoding : "raw", + // Example content CSS (should be your site CSS) + content_css : "/css/--content.css", + + // some callback function + paste_preprocess : function(pl, o) { o.content= o.content.replace(/\n/g," ");}, + + urlconverter_callback : function (url, node, on_save) {return url;}, + advimagescale_maintain_aspect_ratio: false, /* this is the default behavior */ + advimagescale_fix_border_glitch: false, /* also the default behavior */ + advimagescale_noresize_all: false, /* set to true to prevent all resizing on images */ + +// advlist_bullet_styles:[{title : 'advlist.def' ,styles : {listStyleType :''}}], + +// remove_linebreaks : false, +// force_p_newlines : false + + forced_root_block : false, + force_br_newlines : true, + force_p_newlines : false, + + snstuff_contentcounter:"sn_msgbody,sn_msgteaser", + snstuff_charcolor_sn_msgteaser:"", + snstuff_wordcolor_sn_msgteaser:"", + + snstuff_charcolor_sn_msgbody:"1800:green", + snstuff_wordcolor_sn_msgbody:"" + \ No newline at end of file diff --git a/sn_templates/tiny_mce/langs/de.js b/sn_templates/tiny_mce/langs/de.js new file mode 100644 index 0000000..ed7e708 --- /dev/null +++ b/sn_templates/tiny_mce/langs/de.js @@ -0,0 +1,180 @@ +tinyMCE.addI18n({de:{ +common:{ +edit_confirm:"Wollen Sie diesen Textbereich mit WYSIWYG bearbeiten?", +apply:"\u00DCbernehmen", +insert:"Einf\u00FCgen", +update:"Aktualisieren", +cancel:"Abbrechen", +close:"Schlie\u00DFen", +browse:"Durchsuchen", +class_name:"CSS-Klasse", +not_set:"- unbestimmt -", +clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\nM\u00F6chten Sie mehr \u00FCber dieses Problem erfahren?", +clipboard_no_support:"Wird derzeit in Ihrem Browser nicht unterst\u00FCtzt. Bitte benutzen Sie stattdessen die Tastenk\u00FCrzel.", +popup_blocked:"Leider hat Ihr Popup-Blocker ein Fenster unterbunden, das f\u00FCr den Betrieb dieses Programms n\u00F6tig ist. Bitte deaktivieren Sie den Popup-Blocker f\u00FCr diese Seite.", +invalid_data:"Fehler: Sie haben ung\u00FCltige Werte eingegeben (rot markiert).", +more_colors:"Weitere Farben" +}, +contextmenu:{ +align:"Ausrichtung", +left:"Linksb\u00FCndig", +center:"Zentriert", +right:"Rechtsb\u00FCndig", +full:"Blocksatz" +}, +insertdatetime:{ +date_fmt:"%d.%m.%Y", +time_fmt:"%H:%M:%S", +insertdate_desc:"Datum einf\u00FCgen", +inserttime_desc:"Zeit einf\u00FCgen", +months_long:"Januar,Februar,M\u00E4rz,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember", +months_short:"Jan,Feb,M\u00E4r,Apr,Mai,Juni,Juli,Aug,Sept,Okt,Nov,Dez", +day_long:"Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag,Sonntag", +day_short:"So,Mo,Di,Mi,Do,Fr,Sa,So" +}, +print:{ +print_desc:"Drucken" +}, +preview:{ +preview_desc:"Vorschau" +}, +directionality:{ +ltr_desc:"Schrift von links nach rechts", +rtl_desc:"Schrift von rechts nach links" +}, +layer:{ +insertlayer_desc:"Neue Ebene einf\u00FCgen", +forward_desc:"Nach vorne holen", +backward_desc:"Nach hinten legen", +absolute_desc:"Absolute Positionierung", +content:"Neue Ebene..." +}, +save:{ +save_desc:"Speichern", +cancel_desc:"Alle \u00C4nderungen verwerfen" +}, +nonbreaking:{ +nonbreaking_desc:"Gesch\u00FCtztes Leerzeichen einf\u00FCgen" +}, +iespell:{ +iespell_desc:"Rechtschreibpr\u00FCfung", +download:"ieSpell konnte nicht gefunden werden. Wollen Sie es installieren?" +}, +advhr:{ +advhr_desc:"Trennlinie" +}, +emotions:{ +emotions_desc:"Smilies" +}, +searchreplace:{ +search_desc:"Suchen", +replace_desc:"Suchen/Ersetzen" +}, +advimage:{ +image_desc:"Bild einf\u00FCgen/ersetzen" +}, +advlink:{ +link_desc:"Link einf\u00FCgen/bearbeiten" +}, +xhtmlxtras:{ +cite_desc:"Quellenangabe", +abbr_desc:"Abk\u00FCrzung", +acronym_desc:"Akronym", +del_desc:"Entfernter Text", +ins_desc:"Eingef\u00FCgter Text", +attribs_desc:"Attribute einf\u00FCgen/bearbeiten" +}, +style:{ +desc:"CSS-Styles bearbeiten" +}, +paste:{ +paste_text_desc:"Als normalen Text einf\u00FCgen", +paste_word_desc:"Mit Formatierungen (aus Word) einf\u00FCgen", +selectall_desc:"Alles ausw\u00E4hlen", +plaintext_mode_sticky:"Einf\u00FCgemodus ist nun \"Nur Text\". Erneut klicken (oder das Einf\u00FCgen aus der Zwischenablage) stellt den Normalmodus wieder her.", +plaintext_mode:"Einf\u00FCgemodus ist nun \"Nur Text\". Erneut klicken stellt den Normalmodus wieder her." +}, +paste_dlg:{ +text_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen.", +text_linebreaks:"Zeilenumbr\u00FCche beibehalten", +word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen." +}, +table:{ +desc:"Tabelle erstellen/bearbeiten", +row_before_desc:"Zeile oberhalb einf\u00FCgen", +row_after_desc:"Zeile unterhalb einf\u00FCgen", +delete_row_desc:"Zeile l\u00F6schen", +col_before_desc:"Spalte links einf\u00FCgen", +col_after_desc:"Spalte rechts einf\u00FCgen", +delete_col_desc:"Spalte l\u00F6schen", +split_cells_desc:"Verbundene Zellen trennen", +merge_cells_desc:"Zellen verbinden", +row_desc:"Eigenschaften der Zeile", +cell_desc:"Eigenschaften der Zelle", +props_desc:"Eigenschaften der Tabelle", +paste_row_before_desc:"Zeile oberhalb aus der Zwischenablage einf\u00FCgen", +paste_row_after_desc:"Zeile unterhalb aus der Zwischenablage einf\u00FCgen", +cut_row_desc:"Zeile ausschneiden", +copy_row_desc:"Zeile kopieren", +del:"Tabelle l\u00F6schen", +row:"Zeile", +col:"Spalte", +cell:"Zelle", +cellprops_delta_width:"150" +}, +autosave:{ +unload_msg:"Ihre \u00C4nderungen werden verloren gehen, wenn Sie die Seite verlassen.", +restore_content:"Automatisch gespeicherten Inhalt wiederherstellen.", +warning_message:"Wenn Sie den Inhalt wiederherstellen, gehen die aktuellen Daten im Editor verloren.\n\nSind sie sicher, dass Sie den Inhalt wiederherstellen m\u00F6chten?" +}, +fullscreen:{ +desc:"Vollbildschirm" +}, +media:{ +desc:"Multimedia einbetten/bearbeiten", +edit:"Multimediaeinbettung bearbeiten" +}, +fullpage:{ +desc:"Dokument-Eigenschaften" +}, +template:{ +desc:"Inhalt aus Vorlage einf\u00FCgen" +}, +visualchars:{ +desc:"Sichtbarkeit der Steuerzeichen an/aus" +}, +spellchecker:{ +desc:"Rechtschreibpr\u00FCfung an/aus", +menu:"Einstellungen der Rechtschreibpr\u00FCfung", +ignore_word:"Wort ignorieren", +ignore_words:"Alle ignorieren", +langs:"Sprachen", +wait:"Bitte warten...", +sug:"Vorschl\u00E4ge", +no_sug:"Keine Vorschl\u00E4ge", +no_mpell:"Keine Rechtschreibfehler gefunden." +}, +pagebreak:{ +desc:"Seitenumbruch einf\u00FCgen" +}, +snstuff:{ +img_desc:"Bild einf\u00FCgen/ersetzen", +lnk_desc:"Link einf\u00FCgen/ersetzen", +code_desc:"Quelltext einf\u00FCgen", +quote_desc:"Zitat einf\u00FCgen", +proposals_desc:"Linkvorschl\u00E4ge einf\u00FCgen", +infobox_desc:"Infobox einf\u00FCgen/bearbeiten", +infoboxhead_desc:"Infobox \u00FCberschrift" +}, +advlist:{ +types:"Typen", +def:"Standard", +lower_alpha:"a. b. c.", +lower_greek:"1. 2. 3.", +lower_roman:"i. ii. iii.", +upper_alpha:"A. B. C.", +upper_roman:"I. II. III.", +circle:"Kreis", +disc:"Punkt", +square:"Quadrat" +}}}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/langs/en.js b/sn_templates/tiny_mce/langs/en.js new file mode 100644 index 0000000..223ada7 --- /dev/null +++ b/sn_templates/tiny_mce/langs/en.js @@ -0,0 +1,170 @@ +tinyMCE.addI18n({en:{ +common:{ +edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", +apply:"Apply", +insert:"Insert", +update:"Update", +cancel:"Cancel", +close:"Close", +browse:"Browse", +class_name:"Class", +not_set:"-- Not set --", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?", +clipboard_no_support:"Currently not supported by your browser, use keyboard shortcuts instead.", +popup_blocked:"Sorry, but we have noticed that your popup-blocker has disabled a window that provides application functionality. You will need to disable popup blocking on this site in order to fully utilize this tool.", +invalid_data:"Error: Invalid values entered, these are marked in red.", +more_colors:"More colors" +}, +contextmenu:{ +align:"Alignment", +left:"Left", +center:"Center", +right:"Right", +full:"Full" +}, +insertdatetime:{ +date_fmt:"%Y-%m-%d", +time_fmt:"%H:%M:%S", +insertdate_desc:"Insert date", +inserttime_desc:"Insert time", +months_long:"January,February,March,April,May,June,July,August,September,October,November,December", +months_short:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", +day_long:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", +day_short:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun" +}, +print:{ +print_desc:"Print" +}, +preview:{ +preview_desc:"Preview" +}, +directionality:{ +ltr_desc:"Direction left to right", +rtl_desc:"Direction right to left" +}, +layer:{ +insertlayer_desc:"Insert new layer", +forward_desc:"Move forward", +backward_desc:"Move backward", +absolute_desc:"Toggle absolute positioning", +content:"New layer..." +}, +save:{ +save_desc:"Save", +cancel_desc:"Cancel all changes" +}, +nonbreaking:{ +nonbreaking_desc:"Insert non-breaking space character" +}, +iespell:{ +iespell_desc:"Run spell checking", +download:"ieSpell not detected. Do you want to install it now?" +}, +advhr:{ +advhr_desc:"Horizontal rule" +}, +emotions:{ +emotions_desc:"Emotions" +}, +searchreplace:{ +search_desc:"Find", +replace_desc:"Find/Replace" +}, +advimage:{ +image_desc:"Insert/edit image" +}, +advlink:{ +link_desc:"Insert/edit link" +}, +xhtmlxtras:{ +cite_desc:"Citation", +abbr_desc:"Abbreviation", +acronym_desc:"Acronym", +del_desc:"Deletion", +ins_desc:"Insertion", +attribs_desc:"Insert/Edit Attributes" +}, +style:{ +desc:"Edit CSS Style" +}, +paste:{ +paste_text_desc:"Paste as Plain Text", +paste_word_desc:"Paste from Word", +selectall_desc:"Select All", +plaintext_mode_sticky:"Paste is now in plain text mode. Click again to toggle back to regular paste mode. After you paste something you will be returned to regular paste mode.", +plaintext_mode:"Paste is now in plain text mode. Click again to toggle back to regular paste mode." +}, +paste_dlg:{ +text_title:"Use CTRL+V on your keyboard to paste the text into the window.", +text_linebreaks:"Keep linebreaks", +word_title:"Use CTRL+V on your keyboard to paste the text into the window." +}, +table:{ +desc:"Inserts a new table", +row_before_desc:"Insert row before", +row_after_desc:"Insert row after", +delete_row_desc:"Delete row", +col_before_desc:"Insert column before", +col_after_desc:"Insert column after", +delete_col_desc:"Remove column", +split_cells_desc:"Split merged table cells", +merge_cells_desc:"Merge table cells", +row_desc:"Table row properties", +cell_desc:"Table cell properties", +props_desc:"Table properties", +paste_row_before_desc:"Paste table row before", +paste_row_after_desc:"Paste table row after", +cut_row_desc:"Cut table row", +copy_row_desc:"Copy table row", +del:"Delete table", +row:"Row", +col:"Column", +cell:"Cell" +}, +autosave:{ +unload_msg:"The changes you made will be lost if you navigate away from this page.", +restore_content:"Restore auto-saved content.", +warning_message:"If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?." +}, +fullscreen:{ +desc:"Toggle fullscreen mode" +}, +media:{ +desc:"Insert / edit embedded media", +edit:"Edit embedded media" +}, +fullpage:{ +desc:"Document properties" +}, +template:{ +desc:"Insert predefined template content" +}, +visualchars:{ +desc:"Visual control characters on/off." +}, +spellchecker:{ +desc:"Toggle spellchecker", +menu:"Spellchecker settings", +ignore_word:"Ignore word", +ignore_words:"Ignore all", +langs:"Languages", +wait:"Please wait...", +sug:"Suggestions", +no_sug:"No suggestions", +no_mpell:"No misspellings found." +}, +pagebreak:{ +desc:"Insert page break." +}, +advlist:{ +types:"Types", +def:"Default", +lower_alpha:"Lower alpha", +lower_greek:"Lower greek", +lower_roman:"Lower roman", +upper_alpha:"Upper alpha", +upper_roman:"Upper roman", +circle:"Circle", +disc:"Disc", +square:"Square" +}}}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/license.txt b/sn_templates/tiny_mce/license.txt new file mode 100644 index 0000000..1837b0a --- /dev/null +++ b/sn_templates/tiny_mce/license.txt @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + diff --git a/sn_templates/tiny_mce/plugins/advhr/css/advhr.css b/sn_templates/tiny_mce/plugins/advhr/css/advhr.css new file mode 100644 index 0000000..3fe369c --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advhr/css/advhr.css @@ -0,0 +1,5 @@ +input.radio {border:1px none #000; background:transparent; vertical-align:middle;} +.panel_wrapper div.current {height:80px;} +#width {width:50px; vertical-align:middle;} +#width2 {width:50px; vertical-align:middle;} +#size {width:100px;} diff --git a/sn_templates/tiny_mce/plugins/advhr/editor_plugin.js b/sn_templates/tiny_mce/plugins/advhr/editor_plugin.js new file mode 100644 index 0000000..4d3b062 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advhr/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advhr/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/advhr/editor_plugin_src.js new file mode 100644 index 0000000..5a4b725 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advhr/editor_plugin_src.js @@ -0,0 +1,57 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedHRPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvancedHr', function() { + ed.windowManager.open({ + file : url + '/rule.htm', + width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)), + height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('advhr', { + title : 'advhr.advhr_desc', + cmd : 'mceAdvancedHr' + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('advhr', n.nodeName == 'HR'); + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'HR') + ed.selection.select(e); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced HR', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advhr/js/rule.js b/sn_templates/tiny_mce/plugins/advhr/js/rule.js new file mode 100644 index 0000000..a60c35f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advhr/js/rule.js @@ -0,0 +1,43 @@ +var AdvHRDialog = { + init : function(ed) { + var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; + + w = dom.getAttrib(n, 'width'); + f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); + f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; + f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); + selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); + }, + + update : function() { + var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; + + h = ' + + + {#advhr.advhr_desc} + + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/advimage/css/advimage.css b/sn_templates/tiny_mce/plugins/advimage/css/advimage.css new file mode 100644 index 0000000..228530f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/css/advimage.css @@ -0,0 +1,13 @@ +#src_list, #over_list, #out_list {width:280px;} +.mceActionPanel {margin-top:7px;} +.alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} +.checkbox {border:0;} +.panel_wrapper div.current {height:305px;} +#prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} +#align, #classlist {width:150px;} +#width, #height {vertical-align:middle; width:50px; text-align:center;} +#vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} +#class_list {width:180px;} +input {width: 280px;} +#constrain, #onmousemovecheck {width:auto;} +#id, #dir, #lang, #usemap, #longdesc {width:200px;} diff --git a/sn_templates/tiny_mce/plugins/advimage/editor_plugin.js b/sn_templates/tiny_mce/plugins/advimage/editor_plugin.js new file mode 100644 index 0000000..4c7a9c3 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advimage/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/advimage/editor_plugin_src.js new file mode 100644 index 0000000..351542f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/editor_plugin_src.js @@ -0,0 +1,50 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedImagePlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceAdvImage', function() { + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + file : url + '/image.htm', + width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)), + height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('image', { + title : 'advimage.image_desc', + cmd : 'mceAdvImage' + }); + }, + + getInfo : function() { + return { + longname : 'Advanced image', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advimage/image.htm b/sn_templates/tiny_mce/plugins/advimage/image.htm new file mode 100644 index 0000000..7af5a00 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/image.htm @@ -0,0 +1,232 @@ + + + + {#advimage_dlg.dialog_title} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#advimage_dlg.general} + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                +
                                                + +
                                                + {#advimage_dlg.preview} + +
                                                +
                                                + +
                                                +
                                                + {#advimage_dlg.tab_appearance} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + {#advimage_dlg.example_img} + Lorem ipsum, Dolor sit amet, consectetuer adipiscing loreum ipsum edipiscing elit, sed diam + nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Loreum ipsum + edipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam + erat volutpat. +
                                                +
                                                + x + px +
                                                  + + + + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#advimage_dlg.swap_image} + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                + + + + +
                                                 
                                                +
                                                + +
                                                + {#advimage_dlg.misc} + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + +
                                                + +
                                                + + + + +
                                                 
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/advimage/img/sample.gif b/sn_templates/tiny_mce/plugins/advimage/img/sample.gif new file mode 100644 index 0000000..53bf689 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/advimage/img/sample.gif differ diff --git a/sn_templates/tiny_mce/plugins/advimage/js/image.js b/sn_templates/tiny_mce/plugins/advimage/js/image.js new file mode 100644 index 0000000..d08e469 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/js/image.js @@ -0,0 +1,443 @@ +var ImageDialog = { + preInit : function() { + var url; + + tinyMCEPopup.requireLangPack(); + + if (url = tinyMCEPopup.getParam("external_image_list_url")) + document.write(''); + }, + + init : function(ed) { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, dom = ed.dom, n = ed.selection.getNode(); + + tinyMCEPopup.resizeToInnerSize(); + this.fillClassList('class_list'); + this.fillFileList('src_list', 'tinyMCEImageList'); + this.fillFileList('over_list', 'tinyMCEImageList'); + this.fillFileList('out_list', 'tinyMCEImageList'); + TinyMCE_EditableSelects.init(); + + if (n.nodeName == 'IMG') { + nl.src.value = dom.getAttrib(n, 'src'); + nl.width.value = dom.getAttrib(n, 'width'); + nl.height.value = dom.getAttrib(n, 'height'); + nl.alt.value = dom.getAttrib(n, 'alt'); + nl.title.value = dom.getAttrib(n, 'title'); + nl.vspace.value = this.getAttrib(n, 'vspace'); + nl.hspace.value = this.getAttrib(n, 'hspace'); + nl.border.value = this.getAttrib(n, 'border'); + selectByValue(f, 'align', this.getAttrib(n, 'align')); + selectByValue(f, 'class_list', dom.getAttrib(n, 'class'), true, true); + nl.style.value = dom.getAttrib(n, 'style'); + nl.id.value = dom.getAttrib(n, 'id'); + nl.dir.value = dom.getAttrib(n, 'dir'); + nl.lang.value = dom.getAttrib(n, 'lang'); + nl.usemap.value = dom.getAttrib(n, 'usemap'); + nl.longdesc.value = dom.getAttrib(n, 'longdesc'); + nl.insert.value = ed.getLang('update'); + + if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseover'))) + nl.onmouseoversrc.value = dom.getAttrib(n, 'onmouseover').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); + + if (/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/.test(dom.getAttrib(n, 'onmouseout'))) + nl.onmouseoutsrc.value = dom.getAttrib(n, 'onmouseout').replace(/^\s*this.src\s*=\s*\'([^\']+)\';?\s*$/, '$1'); + + if (ed.settings.inline_styles) { + // Move attribs to styles + if (dom.getAttrib(n, 'align')) + this.updateStyle('align'); + + if (dom.getAttrib(n, 'hspace')) + this.updateStyle('hspace'); + + if (dom.getAttrib(n, 'border')) + this.updateStyle('border'); + + if (dom.getAttrib(n, 'vspace')) + this.updateStyle('vspace'); + } + } + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '260px'; + + // Setup browse button + document.getElementById('onmouseoversrccontainer').innerHTML = getBrowserHTML('overbrowser','onmouseoversrc','image','theme_advanced_image'); + if (isVisible('overbrowser')) + document.getElementById('onmouseoversrc').style.width = '260px'; + + // Setup browse button + document.getElementById('onmouseoutsrccontainer').innerHTML = getBrowserHTML('outbrowser','onmouseoutsrc','image','theme_advanced_image'); + if (isVisible('outbrowser')) + document.getElementById('onmouseoutsrc').style.width = '260px'; + + // If option enabled default contrain proportions to checked + if (ed.getParam("advimage_constrain_proportions", true)) + f.constrain.checked = true; + + // Check swap image if valid data + if (nl.onmouseoversrc.value || nl.onmouseoutsrc.value) + this.setSwapImage(true); + else + this.setSwapImage(false); + + this.changeAppearance(); + this.showPreviewImage(nl.src.value, 1); + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor, t = this, f = document.forms[0]; + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (tinyMCEPopup.getParam("accessibility_warnings", 1)) { + if (!f.alt.value) { + tinyMCEPopup.confirm(tinyMCEPopup.getLang('advimage_dlg.missing_alt'), function(s) { + if (s) + t.insertAndClose(); + }); + + return; + } + } + + t.insertAndClose(); + }, + + insertAndClose : function() { + var ed = tinyMCEPopup.editor, f = document.forms[0], nl = f.elements, v, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + // Fixes crash in Safari + if (tinymce.isWebKit) + ed.getWin().focus(); + + if (!ed.settings.inline_styles) { + args = { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }; + } else { + // Remove deprecated values + args = { + vspace : '', + hspace : '', + border : '', + align : '' + }; + } + + tinymce.extend(args, { + src : nl.src.value, + width : nl.width.value, + height : nl.height.value, + alt : nl.alt.value, + title : nl.title.value, + 'class' : getSelectValue(f, 'class_list'), + style : nl.style.value, + id : nl.id.value, + dir : nl.dir.value, + lang : nl.lang.value, + usemap : nl.usemap.value, + longdesc : nl.longdesc.value + }); + + args.onmouseover = args.onmouseout = ''; + + if (f.onmousemovecheck.checked) { + if (nl.onmouseoversrc.value) + args.onmouseover = "this.src='" + nl.onmouseoversrc.value + "';"; + + if (nl.onmouseoutsrc.value) + args.onmouseout = "this.src='" + nl.onmouseoutsrc.value + "';"; + } + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + setSwapImage : function(st) { + var f = document.forms[0]; + + f.onmousemovecheck.checked = st; + setBrowserDisabled('overbrowser', !st); + setBrowserDisabled('outbrowser', !st); + + if (f.over_list) + f.over_list.disabled = !st; + + if (f.out_list) + f.out_list.disabled = !st; + + f.onmouseoversrc.disabled = !st; + f.onmouseoutsrc.disabled = !st; + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options.length = 0; + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + lst.options.length = 0; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.elements.width.value = f.elements.height.value = ''; + }, + + updateImageData : function(img, st) { + var f = document.forms[0]; + + if (!st) { + f.elements.width.value = img.width; + f.elements.height.value = img.height; + } + + this.preloadImg = img; + }, + + changeAppearance : function() { + var ed = tinyMCEPopup.editor, f = document.forms[0], img = document.getElementById('alignSampleImg'); + + if (img) { + if (ed.getParam('inline_styles')) { + ed.dom.setAttrib(img, 'style', f.style.value); + } else { + img.align = f.align.value; + img.border = f.border.value; + img.hspace = f.hspace.value; + img.vspace = f.vspace.value; + } + } + }, + + changeHeight : function() { + var f = document.forms[0], tp, t = this; + + if (!f.constrain.checked || !t.preloadImg) { + return; + } + + if (f.width.value == "" || f.height.value == "") + return; + + tp = (parseInt(f.width.value) / parseInt(t.preloadImg.width)) * t.preloadImg.height; + f.height.value = tp.toFixed(0); + }, + + changeWidth : function() { + var f = document.forms[0], tp, t = this; + + if (!f.constrain.checked || !t.preloadImg) { + return; + } + + if (f.width.value == "" || f.height.value == "") + return; + + tp = (parseInt(f.height.value) / parseInt(t.preloadImg.height)) * t.preloadImg.width; + f.width.value = tp.toFixed(0); + }, + + updateStyle : function(ty) { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0], img = dom.create('img', {style : dom.get('style').value}); + + if (tinyMCEPopup.editor.settings.inline_styles) { + // Handle align + if (ty == 'align') { + dom.setStyle(img, 'float', ''); + dom.setStyle(img, 'vertical-align', ''); + + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') + dom.setStyle(img, 'float', v); + else + img.style.verticalAlign = v; + } + } + + // Handle border + if (ty == 'border') { + dom.setStyle(img, 'border', ''); + + v = f.border.value; + if (v || v == '0') { + if (v == '0') + img.style.border = '0'; + else + img.style.border = v + 'px solid black'; + } + } + + // Handle hspace + if (ty == 'hspace') { + dom.setStyle(img, 'marginLeft', ''); + dom.setStyle(img, 'marginRight', ''); + + v = f.hspace.value; + if (v) { + img.style.marginLeft = v + 'px'; + img.style.marginRight = v + 'px'; + } + } + + // Handle vspace + if (ty == 'vspace') { + dom.setStyle(img, 'marginTop', ''); + dom.setStyle(img, 'marginBottom', ''); + + v = f.vspace.value; + if (v) { + img.style.marginTop = v + 'px'; + img.style.marginBottom = v + 'px'; + } + } + + // Merge + dom.get('style').value = dom.serializeStyle(dom.parseStyle(img.style.cssText), 'img'); + } + }, + + changeMouseMove : function() { + }, + + showPreviewImage : function(u, st) { + if (!u) { + tinyMCEPopup.dom.setHTML('prev', ''); + return; + } + + if (!st && tinyMCEPopup.getParam("advimage_update_dimensions_onchange", true)) + this.resetImageData(); + + u = tinyMCEPopup.editor.documentBaseURI.toAbsolute(u); + + if (!st) + tinyMCEPopup.dom.setHTML('prev', ''); + else + tinyMCEPopup.dom.setHTML('prev', ''); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_templates/tiny_mce/plugins/advimage/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/advimage/langs/de_dlg.js new file mode 100644 index 0000000..76764c0 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/langs/de_dlg.js @@ -0,0 +1,43 @@ +tinyMCE.addI18n('de.advimage_dlg',{ +tab_general:"Allgemein", +tab_appearance:"Aussehen", +tab_advanced:"Erweitert", +general:"Allgemein", +title:"Titel", +preview:"Vorschau", +constrain_proportions:"Seitenverh\u00E4ltnis beibehalten", +langdir:"Schriftrichtung", +langcode:"Sprachcode", +long_desc:"Ausf\u00FChrliche Beschreibung", +style:"Format", +classes:"Klassen", +ltr:"Links nach rechts", +rtl:"Rechts nach links", +id:"ID", +map:"Image-Map", +swap_image:"Bild austauschen", +alt_image:"Alternatives Bild", +mouseover:"bei Mauskontakt", +mouseout:"bei keinem Mauskontakt", +misc:"Verschiedenes", +example_img:"Aussehen der Vorschau", +missing_alt:"Wollen Sie wirklich keine Beschreibung eingeben? Bestimmte Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnen so nicht darauf zugreifen, ebenso solche, die einen Textbrowser benutzen oder die Anzeige von Bildern deaktiviert haben.", +dialog_title:"Bild einf\u00FCgen/bearbeiten", +src:"Adresse", +alt:"Beschreibung", +list:"Bilderliste", +border:"Rahmen", +dimensions:"Ausma\u00DFe", +vspace:"Vertikaler Abstand", +hspace:"Horizontaler Abstand", +align:"Ausrichtung", +align_baseline:"Zeile", +align_top:"Oben", +align_middle:"Mittig", +align_bottom:"Unten", +align_texttop:"Oben im Text", +align_textbottom:"Unten im Text", +align_left:"Links", +align_right:"Rechts", +image_list:"Bilderliste" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advimage/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/advimage/langs/en_dlg.js new file mode 100644 index 0000000..ef81f78 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advimage/langs/en_dlg.js @@ -0,0 +1,43 @@ +tinyMCE.addI18n('en.advimage_dlg',{ +tab_general:"General", +tab_appearance:"Appearance", +tab_advanced:"Advanced", +general:"General", +title:"Title", +preview:"Preview", +constrain_proportions:"Constrain proportions", +langdir:"Language direction", +langcode:"Language code", +long_desc:"Long description link", +style:"Style", +classes:"Classes", +ltr:"Left to right", +rtl:"Right to left", +id:"Id", +map:"Image map", +swap_image:"Swap image", +alt_image:"Alternative image", +mouseover:"for mouse over", +mouseout:"for mouse out", +misc:"Miscellaneous", +example_img:"Appearance preview image", +missing_alt:"Are you sure you want to continue without including an Image Description? Without it the image may not be accessible to some users with disabilities, or to those using a text browser, or browsing the Web with images turned off.", +dialog_title:"Insert/edit image", +src:"Image URL", +alt:"Image description", +list:"Image list", +border:"Border", +dimensions:"Dimensions", +vspace:"Vertical space", +hspace:"Horizontal space", +align:"Alignment", +align_baseline:"Baseline", +align_top:"Top", +align_middle:"Middle", +align_bottom:"Bottom", +align_texttop:"Text top", +align_textbottom:"Text bottom", +align_left:"Left", +align_right:"Right", +image_list:"Image list" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advlink/css/advlink.css b/sn_templates/tiny_mce/plugins/advlink/css/advlink.css new file mode 100644 index 0000000..66c6549 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/css/advlink.css @@ -0,0 +1,8 @@ +.mceLinkList, .mceAnchorList, #targetlist {width:280px;} +.mceActionPanel {margin-top:7px;} +.panel_wrapper div.current {height:320px;} +#classlist, #title, #href {width:280px;} +#popupurl, #popupname {width:200px;} +#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} +#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} +#events_panel input {width:200px;} diff --git a/sn_templates/tiny_mce/plugins/advlink/editor_plugin.js b/sn_templates/tiny_mce/plugins/advlink/editor_plugin.js new file mode 100644 index 0000000..983fe5a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advlink/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/advlink/editor_plugin_src.js new file mode 100644 index 0000000..32ea8f3 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/editor_plugin_src.js @@ -0,0 +1,61 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { + init : function(ed, url) { + this.editor = ed; + + // Register commands + ed.addCommand('mceAdvLink', function() { + var se = ed.selection; + + // No selection and not in link + if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A')) + return; + + ed.windowManager.open({ + file : url + '/link.htm', + width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)), + height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('link', { + title : 'advlink.link_desc', + cmd : 'mceAdvLink' + }); + + ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink'); + + ed.onNodeChange.add(function(ed, cm, n, co) { + cm.setDisabled('link', co && n.nodeName != 'A'); + cm.setActive('link', n.nodeName == 'A' && !n.name); + }); + }, + + getInfo : function() { + return { + longname : 'Advanced link', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advlink/js/advlink.js b/sn_templates/tiny_mce/plugins/advlink/js/advlink.js new file mode 100644 index 0000000..6fa37e8 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/js/advlink.js @@ -0,0 +1,528 @@ +/* Functions for the advlink plugin popup */ + +tinyMCEPopup.requireLangPack(); + +var templates = { + "window.open" : "window.open('${url}','${target}','${options}')" +}; + +function preinit() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); +} + +function changeClass() { + var f = document.forms[0]; + + f.classes.value = getSelectValue(f, 'classlist'); +} + +function init() { + tinyMCEPopup.resizeToInnerSize(); + + var formObj = document.forms[0]; + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + var action = "insert"; + var html; + + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink'); + document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink'); + document.getElementById('linklisthrefcontainer').innerHTML = getLinkListHTML('linklisthref','href'); + document.getElementById('anchorlistcontainer').innerHTML = getAnchorListHTML('anchorlist','href'); + document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target'); + + // Link list + html = getLinkListHTML('linklisthref','href'); + if (html == "") + document.getElementById("linklisthrefrow").style.display = 'none'; + else + document.getElementById("linklisthrefcontainer").innerHTML = html; + + // Resize some elements + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '260px'; + + if (isVisible('popupurlbrowser')) + document.getElementById('popupurl').style.width = '180px'; + + elm = inst.dom.getParent(elm, "A"); + if (elm != null && elm.nodeName == "A") + action = "update"; + + formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true); + + setPopupControlsDisabled(true); + + if (action == "update") { + var href = inst.dom.getAttrib(elm, 'href'); + var onclick = inst.dom.getAttrib(elm, 'onclick'); + + // Setup form data + setFormValue('href', href); + setFormValue('title', inst.dom.getAttrib(elm, 'title')); + setFormValue('id', inst.dom.getAttrib(elm, 'id')); + setFormValue('style', inst.dom.getAttrib(elm, "style")); + setFormValue('rel', inst.dom.getAttrib(elm, 'rel')); + setFormValue('rev', inst.dom.getAttrib(elm, 'rev')); + setFormValue('charset', inst.dom.getAttrib(elm, 'charset')); + setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang')); + setFormValue('dir', inst.dom.getAttrib(elm, 'dir')); + setFormValue('lang', inst.dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('type', inst.dom.getAttrib(elm, 'type')); + setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup')); + setFormValue('target', inst.dom.getAttrib(elm, 'target')); + setFormValue('classes', inst.dom.getAttrib(elm, 'class')); + + // Parse onclick data + if (onclick != null && onclick.indexOf('window.open') != -1) + parseWindowOpen(onclick); + else + parseFunction(onclick); + + // Select by the values + selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir')); + selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel')); + selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev')); + selectByValue(formObj, 'linklisthref', href); + + if (href.charAt(0) == '#') + selectByValue(formObj, 'anchorlist', href); + + addClassesToList('classlist', 'advlink_styles'); + + selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true); + selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true); + } else + addClassesToList('classlist', 'advlink_styles'); +} + +function checkPrefix(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external'))) + n.value = 'http://' + n.value; +} + +function setFormValue(name, value) { + document.forms[0].elements[name].value = value; +} + +function parseWindowOpen(onclick) { + var formObj = document.forms[0]; + + // Preprocess center code + if (onclick.indexOf('return false;') != -1) { + formObj.popupreturn.checked = true; + onclick = onclick.replace('return false;', ''); + } else + formObj.popupreturn.checked = false; + + var onClickData = parseLink(onclick); + + if (onClickData != null) { + formObj.ispopup.checked = true; + setPopupControlsDisabled(false); + + var onClickWindowOptions = parseOptions(onClickData['options']); + var url = onClickData['url']; + + formObj.popupname.value = onClickData['target']; + formObj.popupurl.value = url; + formObj.popupwidth.value = getOption(onClickWindowOptions, 'width'); + formObj.popupheight.value = getOption(onClickWindowOptions, 'height'); + + formObj.popupleft.value = getOption(onClickWindowOptions, 'left'); + formObj.popuptop.value = getOption(onClickWindowOptions, 'top'); + + if (formObj.popupleft.value.indexOf('screen') != -1) + formObj.popupleft.value = "c"; + + if (formObj.popuptop.value.indexOf('screen') != -1) + formObj.popuptop.value = "c"; + + formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes"; + formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes"; + formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes"; + formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes"; + formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes"; + formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes"; + formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes"; + + buildOnClick(); + } +} + +function parseFunction(onclick) { + var formObj = document.forms[0]; + var onClickData = parseLink(onclick); + + // TODO: Add stuff here +} + +function getOption(opts, name) { + return typeof(opts[name]) == "undefined" ? "" : opts[name]; +} + +function setPopupControlsDisabled(state) { + var formObj = document.forms[0]; + + formObj.popupname.disabled = state; + formObj.popupurl.disabled = state; + formObj.popupwidth.disabled = state; + formObj.popupheight.disabled = state; + formObj.popupleft.disabled = state; + formObj.popuptop.disabled = state; + formObj.popuplocation.disabled = state; + formObj.popupscrollbars.disabled = state; + formObj.popupmenubar.disabled = state; + formObj.popupresizable.disabled = state; + formObj.popuptoolbar.disabled = state; + formObj.popupstatus.disabled = state; + formObj.popupreturn.disabled = state; + formObj.popupdependent.disabled = state; + + setBrowserDisabled('popupurlbrowser', state); +} + +function parseLink(link) { + link = link.replace(new RegExp(''', 'g'), "'"); + + var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1"); + + // Is function name a template function + var template = templates[fnName]; + if (template) { + // Build regexp + var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi")); + var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\("; + var replaceStr = ""; + for (var i=0; i'); + for (var i=0; i'; + html += ''; + + for (i=0; i' + name + ''; + } + + html += ''; + + return html; +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm, elementArray, i; + + elm = inst.selection.getNode(); + checkPrefix(document.forms[0].href); + + elm = inst.dom.getParent(elm, "A"); + + // Remove element if there is no href + if (!document.forms[0].href.value) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + i = inst.selection.getBookmark(); + inst.dom.remove(elm, 1); + inst.selection.moveToBookmark(i); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (elm == null) { + inst.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';}); + for (i=0; i' + tinyMCELinkList[i][0] + ''; + + html += ''; + + return html; + + // tinyMCE.debug('-- image list start --', html, '-- image list end --'); +} + +function getTargetListHTML(elm_id, target_form_element) { + var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';'); + var html = ''; + + html += ''; + + return html; +} + +// While loading +preinit(); +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/plugins/advlink/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/advlink/langs/de_dlg.js new file mode 100644 index 0000000..6fdfbe2 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/langs/de_dlg.js @@ -0,0 +1,52 @@ +tinyMCE.addI18n('de.advlink_dlg',{ +title:"Link einf\u00FCgen/bearbeiten", +url:"Adresse", +target:"Fenster", +titlefield:"Titel", +is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"mailto:\" voranstellen?", +is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"http://\" voranstellen?", +list:"Linkliste", +general_tab:"Allgemein", +popup_tab:"Popup", +events_tab:"Ereignisse", +advanced_tab:"Erweitert", +general_props:"Allemeine Eigenschaften", +popup_props:"Popup-Eigenschaften", +event_props:"Ereignisse", +advanced_props:"Erweiterte Eigenschaften", +popup_opts:"Optionen", +anchor_names:"Anker", +target_same:"Im selben Fenster/Frame \u00F6ffnen", +target_parent:"Im \u00FCbergeordneten Fenster/Frame \u00F6ffnen", +target_top:"Im obersten Frame \u00F6ffnen (sprengt das Frameset)", +target_blank:"In neuem Fenster \u00F6ffnen", +popup:"JavaScript-Popup", +popup_url:"Popup-Adresse", +popup_name:"Name des Fensters", +popup_return:"Link trotz Popup folgen", +popup_scrollbars:"Scrollbalken anzeigen", +popup_statusbar:"Statusleiste anzeigen", +popup_toolbar:"Werkzeugleisten anzeigen", +popup_menubar:"Browsermen\u00FC anzeigen", +popup_location:"Adressleiste anzeigen", +popup_resizable:"Vergr\u00F6\u00DFern des Fenster zulassen", +popup_dependent:"Vom Elternfenster abh\u00E4ngig
                                                (nur Mozilla/Firefox) ", +popup_size:"Gr\u00F6\u00DFe", +popup_position:"Position (X/Y)", +id:"ID", +style:"Format", +classes:"Klassen", +target_name:"Name der Zielseite", +langdir:"Schriftrichtung", +target_langcode:"Sprache der Zielseite", +langcode:"Sprachcode", +encoding:"Zeichenkodierung der Zielseite", +mime:"MIME-Type der Zielseite", +rel:"Beziehung der Seite zum Linkziel", +rev:"Beziehung des Linkziels zur Seite", +tabindex:"Tabindex", +accesskey:"Tastenk\u00FCrzel", +ltr:"Links nach rechts", +rtl:"Rechts nach links", +link_list:"Linkliste" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advlink/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/advlink/langs/en_dlg.js new file mode 100644 index 0000000..8ef9c79 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/langs/en_dlg.js @@ -0,0 +1,52 @@ +tinyMCE.addI18n('en.advlink_dlg',{ +title:"Insert/edit link", +url:"Link URL", +target:"Target", +titlefield:"Title", +is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +list:"Link list", +general_tab:"General", +popup_tab:"Popup", +events_tab:"Events", +advanced_tab:"Advanced", +general_props:"General properties", +popup_props:"Popup properties", +event_props:"Events", +advanced_props:"Advanced properties", +popup_opts:"Options", +anchor_names:"Anchors", +target_same:"Open in this window / frame", +target_parent:"Open in parent window / frame", +target_top:"Open in top frame (replaces all frames)", +target_blank:"Open in new window", +popup:"Javascript popup", +popup_url:"Popup URL", +popup_name:"Window name", +popup_return:"Insert 'return false'", +popup_scrollbars:"Show scrollbars", +popup_statusbar:"Show status bar", +popup_toolbar:"Show toolbars", +popup_menubar:"Show menu bar", +popup_location:"Show location bar", +popup_resizable:"Make window resizable", +popup_dependent:"Dependent (Mozilla/Firefox only)", +popup_size:"Size", +popup_position:"Position (X/Y)", +id:"Id", +style:"Style", +classes:"Classes", +target_name:"Target name", +langdir:"Language direction", +target_langcode:"Target language", +langcode:"Language code", +encoding:"Target character encoding", +mime:"Target MIME type", +rel:"Relationship page to target", +rev:"Relationship target to page", +tabindex:"Tabindex", +accesskey:"Accesskey", +ltr:"Left to right", +rtl:"Right to left", +link_list:"Link list" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advlink/link.htm b/sn_templates/tiny_mce/plugins/advlink/link.htm new file mode 100644 index 0000000..0b0e0bc --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlink/link.htm @@ -0,0 +1,333 @@ + + + + {#advlink_dlg.title} + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#advlink_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                + +
                                                +
                                                +
                                                + + + +
                                                +
                                                + {#advlink_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#advlink_dlg.event_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/advlist/editor_plugin.js b/sn_templates/tiny_mce/plugins/advlist/editor_plugin.js new file mode 100644 index 0000000..02d1697 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlist/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.AdvListPlugin",{init:function(b,c){var d=this;d.editor=b;function e(g){var f=[];a(g.split(/,/),function(h){f.push({title:"advlist."+(h=="default"?"def":h.replace(/-/g,"_")),styles:{listStyleType:h=="default"?"":h}})});return f}d.numlist=b.getParam("advlist_number_styles")||e("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");d.bullist=b.getParam("advlist_bullet_styles")||e("default,circle,disc,square")},createControl:function(d,b){var f=this,e,h;if(d=="numlist"||d=="bullist"){if(f[d][0].title=="advlist.def"){h=f[d][0]}function c(i,k){var j=true;a(k.styles,function(m,l){if(f.editor.dom.getStyle(i,l)!=m){j=false;return false}});return j}function g(){var k,i=f.editor,l=i.dom,j=i.selection;k=l.getParent(j.getNode(),"ol,ul");if(!k||k.nodeName==(d=="bullist"?"OL":"UL")||c(k,h)){i.execCommand(d=="bullist"?"InsertUnorderedList":"InsertOrderedList")}if(h){k=l.getParent(j.getNode(),"ol,ul");if(k){l.setStyles(k,h.styles);k.removeAttribute("_mce_style")}}}e=b.createSplitButton(d,{title:"advanced."+d+"_desc","class":"mce_"+d,onclick:function(){g()}});e.onRenderMenu.add(function(i,j){j.onShowMenu.add(function(){var m=f.editor.dom,l=m.getParent(f.editor.selection.getNode(),"ol,ul"),k;if(l||h){k=f[d];a(j.items,function(n){var o=true;n.setSelected(0);if(l&&!n.isDisabled()){a(k,function(p){if(p.id==n.id){if(!c(l,p)){o=false;return false}}});if(o){n.setSelected(1)}}});if(!l){j.items[h.id].setSelected(1)}}});j.add({id:f.editor.dom.uniqueId(),title:"advlist.types","class":"mceMenuItemTitle"}).setDisabled(1);a(f[d],function(k){k.id=f.editor.dom.uniqueId();j.add({id:k.id,title:k.title,onclick:function(){h=k;g()}})})});return e}},getInfo:function(){return{longname:"Advanced lists",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlist",tinymce.plugins.AdvListPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/advlist/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/advlist/editor_plugin_src.js new file mode 100644 index 0000000..7a665fa --- /dev/null +++ b/sn_templates/tiny_mce/plugins/advlist/editor_plugin_src.js @@ -0,0 +1,154 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var each = tinymce.each; + + tinymce.create('tinymce.plugins.AdvListPlugin', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + function buildFormats(str) { + var formats = []; + + each(str.split(/,/), function(type) { + formats.push({ + title : 'advlist.' + (type == 'default' ? 'def' : type.replace(/-/g, '_')), + styles : { + listStyleType : type == 'default' ? '' : type + } + }); + }); + + return formats; + }; + + // Setup number formats from config or default + t.numlist = ed.getParam("advlist_number_styles") || buildFormats("default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"); + t.bullist = ed.getParam("advlist_bullet_styles") || buildFormats("default,circle,disc,square"); + }, + + createControl: function(name, cm) { + var t = this, btn, format; + + if (name == 'numlist' || name == 'bullist') { + // Default to first item if it's a default item + if (t[name][0].title == 'advlist.def') + format = t[name][0]; + + function hasFormat(node, format) { + var state = true; + + each(format.styles, function(value, name) { + // Format doesn't match + if (t.editor.dom.getStyle(node, name) != value) { + state = false; + return false; + } + }); + + return state; + }; + + function applyListFormat() { + var list, ed = t.editor, dom = ed.dom, sel = ed.selection; + + // Check for existing list element + list = dom.getParent(sel.getNode(), 'ol,ul'); + + // Switch/add list type if needed + if (!list || list.nodeName == (name == 'bullist' ? 'OL' : 'UL') || hasFormat(list, format)) + ed.execCommand(name == 'bullist' ? 'InsertUnorderedList' : 'InsertOrderedList'); + + // Append styles to new list element + if (format) { + list = dom.getParent(sel.getNode(), 'ol,ul'); + + if (list) { + dom.setStyles(list, format.styles); + list.removeAttribute('_mce_style'); + } + } + }; + + btn = cm.createSplitButton(name, { + title : 'advanced.' + name + '_desc', + 'class' : 'mce_' + name, + onclick : function() { + applyListFormat(); + } + }); + + btn.onRenderMenu.add(function(btn, menu) { + menu.onShowMenu.add(function() { + var dom = t.editor.dom, list = dom.getParent(t.editor.selection.getNode(), 'ol,ul'), fmtList; + + if (list || format) { + fmtList = t[name]; + + // Unselect existing items + each(menu.items, function(item) { + var state = true; + + item.setSelected(0); + + if (list && !item.isDisabled()) { + each(fmtList, function(fmt) { + if (fmt.id == item.id) { + if (!hasFormat(list, fmt)) { + state = false; + return false; + } + } + }); + + if (state) + item.setSelected(1); + } + }); + + // Select the current format + if (!list) + menu.items[format.id].setSelected(1); + } + }); + + menu.add({id : t.editor.dom.uniqueId(), title : 'advlist.types', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + each(t[name], function(item) { + item.id = t.editor.dom.uniqueId(); + + menu.add({id : item.id, title : item.title, onclick : function() { + format = item; + applyListFormat(); + }}); + }); + }); + + return btn; + } + }, + + getInfo : function() { + return { + longname : 'Advanced lists', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlist', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('advlist', tinymce.plugins.AdvListPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/autoresize/editor_plugin.js b/sn_templates/tiny_mce/plugins/autoresize/editor_plugin.js new file mode 100644 index 0000000..1676b15 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/autoresize/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.AutoResizePlugin",{init:function(a,c){var d=this;if(a.getParam("fullscreen_is_enabled")){return}function b(){var h=a.getDoc(),e=h.body,j=h.documentElement,g=tinymce.DOM,i=d.autoresize_min_height,f;f=tinymce.isIE?e.scrollHeight:j.offsetHeight;if(f>d.autoresize_min_height){i=f}g.setStyle(g.get(a.id+"_ifr"),"height",i+"px");if(d.throbbing){a.setProgressState(false);a.setProgressState(true)}}d.editor=a;d.autoresize_min_height=a.getElement().offsetHeight;a.onChange.add(b);a.onSetContent.add(b);a.onPaste.add(b);a.onKeyUp.add(b);a.onPostRender.add(b);if(a.getParam("autoresize_on_init",true)){a.onInit.add(function(f,e){f.setProgressState(true);d.throbbing=true;f.getBody().style.overflowY="hidden"});a.onLoadContent.add(function(f,e){b();setTimeout(function(){b();f.setProgressState(false);d.throbbing=false},1250)})}a.addCommand("mceAutoResize",b)},getInfo:function(){return{longname:"Auto Resize",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("autoresize",tinymce.plugins.AutoResizePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/autoresize/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/autoresize/editor_plugin_src.js new file mode 100644 index 0000000..c260b7a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/autoresize/editor_plugin_src.js @@ -0,0 +1,119 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + /** + * Auto Resize + * + * This plugin automatically resizes the content area to fit its content height. + * It will retain a minimum height, which is the height of the content area when + * it's initialized. + */ + tinymce.create('tinymce.plugins.AutoResizePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + var t = this; + + if (ed.getParam('fullscreen_is_enabled')) + return; + + /** + * This method gets executed each time the editor needs to resize. + */ + function resize() { + var d = ed.getDoc(), b = d.body, de = d.documentElement, DOM = tinymce.DOM, resizeHeight = t.autoresize_min_height, myHeight; + + // Get height differently depending on the browser used + myHeight = tinymce.isIE ? b.scrollHeight : de.offsetHeight; + + // Don't make it smaller than the minimum height + if (myHeight > t.autoresize_min_height) + resizeHeight = myHeight; + + // Resize content element + DOM.setStyle(DOM.get(ed.id + '_ifr'), 'height', resizeHeight + 'px'); + + // if we're throbbing, we'll re-throb to match the new size + if (t.throbbing) { + ed.setProgressState(false); + ed.setProgressState(true); + } + }; + + t.editor = ed; + + // Define minimum height + t.autoresize_min_height = ed.getElement().offsetHeight; + + // Add appropriate listeners for resizing content area + ed.onChange.add(resize); + ed.onSetContent.add(resize); + ed.onPaste.add(resize); + ed.onKeyUp.add(resize); + ed.onPostRender.add(resize); + + if (ed.getParam('autoresize_on_init', true)) { + // Things to do when the editor is ready + ed.onInit.add(function(ed, l) { + // Show throbber until content area is resized properly + ed.setProgressState(true); + t.throbbing = true; + + // Hide scrollbars + ed.getBody().style.overflowY = "hidden"; + }); + + ed.onLoadContent.add(function(ed, l) { + resize(); + + // Because the content area resizes when its content CSS loads, + // and we can't easily add a listener to its onload event, + // we'll just trigger a resize after a short loading period + setTimeout(function() { + resize(); + + // Disable throbber + ed.setProgressState(false); + t.throbbing = false; + }, 1250); + }); + } + + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceAutoResize', resize); + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Auto Resize', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autoresize', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('autoresize', tinymce.plugins.AutoResizePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/autosave/editor_plugin.js b/sn_templates/tiny_mce/plugins/autosave/editor_plugin.js new file mode 100644 index 0000000..b33ebfb --- /dev/null +++ b/sn_templates/tiny_mce/plugins/autosave/editor_plugin.js @@ -0,0 +1 @@ +(function(e){var c="autosave",g="restoredraft",b=true,f,d,a=e.util.Dispatcher;e.create("tinymce.plugins.AutoSave",{init:function(i,j){var h=this,l=i.settings;h.editor=i;function k(n){var m={s:1000,m:60000};n=/^(\d+)([ms]?)$/.exec(""+n);return(n[2]?m[n[2]]:1)*parseInt(n)}e.each({ask_before_unload:b,interval:"30s",retention:"20m",minlength:50},function(n,m){m=c+"_"+m;if(l[m]===f){l[m]=n}});l.autosave_interval=k(l.autosave_interval);l.autosave_retention=k(l.autosave_retention);i.addButton(g,{title:c+".restore_content",onclick:function(){if(i.getContent().replace(/\s| |<\/?p[^>]*>|]*>/gi,"").length>0){i.windowManager.confirm(c+".warning_message",function(m){if(m){h.restoreDraft()}})}else{h.restoreDraft()}}});i.onNodeChange.add(function(){var m=i.controlManager;if(m.get(g)){m.setDisabled(g,!h.hasDraft())}});i.onInit.add(function(){if(i.controlManager.get(g)){h.setupStorage(i);setInterval(function(){h.storeDraft();i.nodeChanged()},l.autosave_interval)}});h.onStoreDraft=new a(h);h.onRestoreDraft=new a(h);h.onRemoveDraft=new a(h);if(!d){window.onbeforeunload=e.plugins.AutoSave._beforeUnloadHandler;d=b}},getInfo:function(){return{longname:"Auto save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave",version:e.majorVersion+"."+e.minorVersion}},getExpDate:function(){return new Date(new Date().getTime()+this.editor.settings.autosave_retention).toUTCString()},setupStorage:function(i){var h=this,k=c+"_test",j="OK";h.key=c+i.id;e.each([function(){if(localStorage){localStorage.setItem(k,j);if(localStorage.getItem(k)===j){localStorage.removeItem(k);return localStorage}}},function(){if(sessionStorage){sessionStorage.setItem(k,j);if(sessionStorage.getItem(k)===j){sessionStorage.removeItem(k);return sessionStorage}}},function(){if(e.isIE){i.getElement().style.behavior="url('#default#userData')";return{autoExpires:b,setItem:function(l,n){var m=i.getElement();m.setAttribute(l,n);m.expires=h.getExpDate();m.save("TinyMCE")},getItem:function(l){var m=i.getElement();m.load("TinyMCE");return m.getAttribute(l)},removeItem:function(l){i.getElement().removeAttribute(l)}}}},],function(l){try{h.storage=l();if(h.storage){return false}}catch(m){}})},storeDraft:function(){var i=this,l=i.storage,j=i.editor,h,k;if(l){if(!l.getItem(i.key)&&!j.isDirty()){return}k=j.getContent();if(k.length>j.settings.autosave_minlength){h=i.getExpDate();if(!i.storage.autoExpires){i.storage.setItem(i.key+"_expires",h)}i.storage.setItem(i.key,k);i.onStoreDraft.dispatch(i,{expires:h,content:k})}}},restoreDraft:function(){var h=this,i=h.storage;if(i){content=i.getItem(h.key);if(content){h.editor.setContent(content);h.onRestoreDraft.dispatch(h,{content:content})}}},hasDraft:function(){var h=this,k=h.storage,i,j;if(k){j=!!k.getItem(h.key);if(j){if(!h.storage.autoExpires){i=new Date(k.getItem(h.key+"_expires"));if(new Date().getTime()]*>|]*>/gi, "").length > 0) { + // Show confirm dialog if the editor isn't empty + ed.windowManager.confirm( + PLUGIN_NAME + ".warning_message", + function(ok) { + if (ok) + self.restoreDraft(); + } + ); + } else + self.restoreDraft(); + } + }); + + // Enable/disable restoredraft button depending on if there is a draft stored or not + ed.onNodeChange.add(function() { + var controlManager = ed.controlManager; + + if (controlManager.get(RESTORE_DRAFT)) + controlManager.setDisabled(RESTORE_DRAFT, !self.hasDraft()); + }); + + ed.onInit.add(function() { + // Check if the user added the restore button, then setup auto storage logic + if (ed.controlManager.get(RESTORE_DRAFT)) { + // Setup storage engine + self.setupStorage(ed); + + // Auto save contents each interval time + setInterval(function() { + self.storeDraft(); + ed.nodeChanged(); + }, settings.autosave_interval); + } + }); + + /** + * This event gets fired when a draft is stored to local storage. + * + * @event onStoreDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onStoreDraft = new Dispatcher(self); + + /** + * This event gets fired when a draft is restored from local storage. + * + * @event onStoreDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onRestoreDraft = new Dispatcher(self); + + /** + * This event gets fired when a draft removed/expired. + * + * @event onRemoveDraft + * @param {tinymce.plugins.AutoSave} sender Plugin instance sending the event. + * @param {Object} draft Draft object containing the HTML contents of the editor. + */ + self.onRemoveDraft = new Dispatcher(self); + + // Add ask before unload dialog only add one unload handler + if (!unloadHandlerAdded) { + window.onbeforeunload = tinymce.plugins.AutoSave._beforeUnloadHandler; + unloadHandlerAdded = TRUE; + } + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @method getInfo + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Auto save', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/autosave', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + /** + * Returns an expiration date UTC string. + * + * @method getExpDate + * @return {String} Expiration date UTC string. + */ + getExpDate : function() { + return new Date( + new Date().getTime() + this.editor.settings.autosave_retention + ).toUTCString(); + }, + + /** + * This method will setup the storage engine. If the browser has support for it. + * + * @method setupStorage + */ + setupStorage : function(ed) { + var self = this, testKey = PLUGIN_NAME + '_test', testVal = "OK"; + + self.key = PLUGIN_NAME + ed.id; + + // Loop though each storage engine type until we find one that works + tinymce.each([ + function() { + // Try HTML5 Local Storage + if (localStorage) { + localStorage.setItem(testKey, testVal); + + if (localStorage.getItem(testKey) === testVal) { + localStorage.removeItem(testKey); + + return localStorage; + } + } + }, + + function() { + // Try HTML5 Session Storage + if (sessionStorage) { + sessionStorage.setItem(testKey, testVal); + + if (sessionStorage.getItem(testKey) === testVal) { + sessionStorage.removeItem(testKey); + + return sessionStorage; + } + } + }, + + function() { + // Try IE userData + if (tinymce.isIE) { + ed.getElement().style.behavior = "url('#default#userData')"; + + // Fake localStorage on old IE + return { + autoExpires : TRUE, + + setItem : function(key, value) { + var userDataElement = ed.getElement(); + + userDataElement.setAttribute(key, value); + userDataElement.expires = self.getExpDate(); + userDataElement.save("TinyMCE"); + }, + + getItem : function(key) { + var userDataElement = ed.getElement(); + + userDataElement.load("TinyMCE"); + + return userDataElement.getAttribute(key); + }, + + removeItem : function(key) { + ed.getElement().removeAttribute(key); + } + }; + } + }, + ], function(setup) { + // Try executing each function to find a suitable storage engine + try { + self.storage = setup(); + + if (self.storage) + return false; + } catch (e) { + // Ignore + } + }); + }, + + /** + * This method will store the current contents in the the storage engine. + * + * @method storeDraft + */ + storeDraft : function() { + var self = this, storage = self.storage, editor = self.editor, expires, content; + + // Is the contents dirty + if (storage) { + // If there is no existing key and the contents hasn't been changed since + // it's original value then there is no point in saving a draft + if (!storage.getItem(self.key) && !editor.isDirty()) + return; + + // Store contents if the contents if longer than the minlength of characters + content = editor.getContent(); + if (content.length > editor.settings.autosave_minlength) { + expires = self.getExpDate(); + + // Store expiration date if needed IE userData has auto expire built in + if (!self.storage.autoExpires) + self.storage.setItem(self.key + "_expires", expires); + + self.storage.setItem(self.key, content); + self.onStoreDraft.dispatch(self, { + expires : expires, + content : content + }); + } + } + }, + + /** + * This method will restore the contents from the storage engine back to the editor. + * + * @method restoreDraft + */ + restoreDraft : function() { + var self = this, storage = self.storage; + + if (storage) { + content = storage.getItem(self.key); + + if (content) { + self.editor.setContent(content); + self.onRestoreDraft.dispatch(self, { + content : content + }); + } + } + }, + + /** + * This method will return true/false if there is a local storage draft available. + * + * @method hasDraft + * @return {boolean} true/false state if there is a local draft. + */ + hasDraft : function() { + var self = this, storage = self.storage, expDate, exists; + + if (storage) { + // Does the item exist at all + exists = !!storage.getItem(self.key); + if (exists) { + // Storage needs autoexpire + if (!self.storage.autoExpires) { + expDate = new Date(storage.getItem(self.key + "_expires")); + + // Contents hasn't expired + if (new Date().getTime() < expDate.getTime()) + return TRUE; + + // Remove it if it has + self.removeDraft(); + } else + return TRUE; + } + } + + return false; + }, + + /** + * Removes the currently stored draft. + * + * @method removeDraft + */ + removeDraft : function() { + var self = this, storage = self.storage, key = self.key, content; + + if (storage) { + // Get current contents and remove the existing draft + content = storage.getItem(key); + storage.removeItem(key); + storage.removeItem(key + "_expires"); + + // Dispatch remove event if we had any contents + if (content) { + self.onRemoveDraft.dispatch(self, { + content : content + }); + } + } + }, + + "static" : { + // Internal unload handler will be called before the page is unloaded + _beforeUnloadHandler : function(e) { + var msg; + + tinymce.each(tinyMCE.editors, function(ed) { + // Store a draft for each editor instance + if (ed.plugins.autosave) + ed.plugins.autosave.storeDraft(); + + // Never ask in fullscreen mode + if (ed.getParam("fullscreen_is_enabled")) + return; + + // Setup a return message if the editor is dirty + if (!msg && ed.isDirty() && ed.getParam("autosave_ask_before_unload")) + msg = ed.getLang("autosave.unload_msg"); + }); + + return msg; + } + } + }); + + tinymce.PluginManager.add('autosave', tinymce.plugins.AutoSave); +})(tinymce); diff --git a/sn_templates/tiny_mce/plugins/autosave/langs/en.js b/sn_templates/tiny_mce/plugins/autosave/langs/en.js new file mode 100644 index 0000000..219f769 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/autosave/langs/en.js @@ -0,0 +1,4 @@ +tinyMCE.addI18n('en.autosave',{ +restore_content: "Restore auto-saved content", +warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/bbcode/editor_plugin.js b/sn_templates/tiny_mce/plugins/bbcode/editor_plugin.js new file mode 100644 index 0000000..930fdff --- /dev/null +++ b/sn_templates/tiny_mce/plugins/bbcode/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a,b){var d=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.onBeforeSetContent.add(function(e,f){f.content=d["_"+c+"_bbcode2html"](f.content)});a.onPostProcess.add(function(e,f){if(f.set){f.content=d["_"+c+"_bbcode2html"](f.content)}if(f.get){f.content=d["_"+c+"_html2bbcode"](f.content)}})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_punbb_html2bbcode:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/(.*?)<\/a>/gi,"[url=$1]$2[/url]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]");b(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]");b(/(.*?)<\/span>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/font>/gi,"[color=$1]$2[/color]");b(/(.*?)<\/span>/gi,"[size=$1]$2[/size]");b(/(.*?)<\/font>/gi,"$1");b(//gi,"[img]$1[/img]");b(/(.*?)<\/span>/gi,"[code]$1[/code]");b(/(.*?)<\/span>/gi,"[quote]$1[/quote]");b(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]");b(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]");b(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]");b(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]");b(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]");b(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]");b(/<\/(strong|b)>/gi,"[/b]");b(/<(strong|b)>/gi,"[b]");b(/<\/(em|i)>/gi,"[/i]");b(/<(em|i)>/gi,"[i]");b(/<\/u>/gi,"[/u]");b(/(.*?)<\/span>/gi,"[u]$1[/u]");b(//gi,"[u]");b(/]*>/gi,"[quote]");b(/<\/blockquote>/gi,"[/quote]");b(/
                                                /gi,"\n");b(//gi,"\n");b(/
                                                /gi,"\n");b(/

                                                /gi,"");b(/<\/p>/gi,"\n");b(/ /gi," ");b(/"/gi,'"');b(/</gi,"<");b(/>/gi,">");b(/&/gi,"&");return a},_punbb_bbcode2html:function(a){a=tinymce.trim(a);function b(c,d){a=a.replace(c,d)}b(/\n/gi,"
                                                ");b(/\[b\]/gi,"");b(/\[\/b\]/gi,"");b(/\[i\]/gi,"");b(/\[\/i\]/gi,"");b(/\[u\]/gi,"");b(/\[\/u\]/gi,"");b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'$2');b(/\[url\](.*?)\[\/url\]/gi,'$1');b(/\[img\](.*?)\[\/img\]/gi,'');b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'$2');b(/\[code\](.*?)\[\/code\]/gi,'$1 ');b(/\[quote.*?\](.*?)\[\/quote\]/gi,'$1 ');return a}});tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/bbcode/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/bbcode/editor_plugin_src.js new file mode 100644 index 0000000..3d27c46 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/bbcode/editor_plugin_src.js @@ -0,0 +1,120 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.BBCodePlugin', { + init : function(ed, url) { + var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = t['_' + dialect + '_bbcode2html'](o.content); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t['_' + dialect + '_bbcode2html'](o.content); + + if (o.get) + o.content = t['_' + dialect + '_html2bbcode'](o.content); + }); + }, + + getInfo : function() { + return { + longname : 'BBCode Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/bbcode', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + // HTML -> BBCode in PunBB dialect + _punbb_html2bbcode : function(s) { + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + + // example: to [b] + rep(/(.*?)<\/a>/gi,"[url=$1]$2[/url]"); + rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); + rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); + rep(/(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"); + rep(/(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"); + rep(/(.*?)<\/span>/gi,"[color=$1]$2[/color]"); + rep(/(.*?)<\/font>/gi,"[color=$1]$2[/color]"); + rep(/(.*?)<\/span>/gi,"[size=$1]$2[/size]"); + rep(/(.*?)<\/font>/gi,"$1"); + rep(//gi,"[img]$1[/img]"); + rep(/(.*?)<\/span>/gi,"[code]$1[/code]"); + rep(/(.*?)<\/span>/gi,"[quote]$1[/quote]"); + rep(/(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"); + rep(/(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"); + rep(/(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"); + rep(/(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"); + rep(/(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"); + rep(/(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"); + rep(/<\/(strong|b)>/gi,"[/b]"); + rep(/<(strong|b)>/gi,"[b]"); + rep(/<\/(em|i)>/gi,"[/i]"); + rep(/<(em|i)>/gi,"[i]"); + rep(/<\/u>/gi,"[/u]"); + rep(/(.*?)<\/span>/gi,"[u]$1[/u]"); + rep(//gi,"[u]"); + rep(/]*>/gi,"[quote]"); + rep(/<\/blockquote>/gi,"[/quote]"); + rep(/
                                                /gi,"\n"); + rep(//gi,"\n"); + rep(/
                                                /gi,"\n"); + rep(/

                                                /gi,""); + rep(/<\/p>/gi,"\n"); + rep(/ /gi," "); + rep(/"/gi,"\""); + rep(/</gi,"<"); + rep(/>/gi,">"); + rep(/&/gi,"&"); + + return s; + }, + + // BBCode -> HTML from PunBB dialect + _punbb_bbcode2html : function(s) { + s = tinymce.trim(s); + + function rep(re, str) { + s = s.replace(re, str); + }; + + // example: [b] to + rep(/\n/gi,"
                                                "); + rep(/\[b\]/gi,""); + rep(/\[\/b\]/gi,""); + rep(/\[i\]/gi,""); + rep(/\[\/i\]/gi,""); + rep(/\[u\]/gi,""); + rep(/\[\/u\]/gi,""); + rep(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,"$2"); + rep(/\[url\](.*?)\[\/url\]/gi,"$1"); + rep(/\[img\](.*?)\[\/img\]/gi,""); + rep(/\[color=(.*?)\](.*?)\[\/color\]/gi,"$2"); + rep(/\[code\](.*?)\[\/code\]/gi,"$1 "); + rep(/\[quote.*?\](.*?)\[\/quote\]/gi,"$1 "); + + return s; + } + }); + + // Register plugin + tinymce.PluginManager.add('bbcode', tinymce.plugins.BBCodePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/contextmenu/editor_plugin.js b/sn_templates/tiny_mce/plugins/contextmenu/editor_plugin.js new file mode 100644 index 0000000..52cf79e --- /dev/null +++ b/sn_templates/tiny_mce/plugins/contextmenu/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.dom.Event,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.ContextMenu",{init:function(d){var f=this,g;f.editor=d;f.onContextMenu=new tinymce.util.Dispatcher(this);d.onContextMenu.add(function(h,i){if(!i.ctrlKey){if(g){h.selection.setRng(g)}f._getMenu(h).showMenu(i.clientX,i.clientY);a.add(h.getDoc(),"click",e);a.cancel(i)}});function e(h,i){g=null;if(i&&i.button==2){g=h.selection.getRng();return}if(f._menu){f._menu.removeAll();f._menu.destroy();a.remove(h.getDoc(),"click",e)}}d.onMouseDown.add(e);d.onKeyDown.add(e)},getInfo:function(){return{longname:"Contextmenu",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getMenu:function(h){var l=this,f=l._menu,i=h.selection,e=i.isCollapsed(),d=i.getNode()||h.getBody(),g,k,j;if(f){f.removeAll();f.destroy()}k=b.getPos(h.getContentAreaContainer());j=b.getPos(h.getContainer());f=h.controlManager.createDropMenu("contextmenu",{offset_x:k.x+h.getParam("contextmenu_offset_x",0),offset_y:k.y+h.getParam("contextmenu_offset_y",0),constrain:1});l._menu=f;f.add({title:"advanced.cut_desc",icon:"cut",cmd:"Cut"}).setDisabled(e);f.add({title:"advanced.copy_desc",icon:"copy",cmd:"Copy"}).setDisabled(e);f.add({title:"advanced.paste_desc",icon:"paste",cmd:"Paste"});if((d.nodeName=="A"&&!h.dom.getAttrib(d,"name"))||!e){f.addSeparator();f.add({title:"advanced.link_desc",icon:"link",cmd:h.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"})}f.addSeparator();f.add({title:"advanced.image_desc",icon:"image",cmd:h.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator();g=f.addMenu({title:"contextmenu.align"});g.add({title:"contextmenu.left",icon:"justifyleft",cmd:"JustifyLeft"});g.add({title:"contextmenu.center",icon:"justifycenter",cmd:"JustifyCenter"});g.add({title:"contextmenu.right",icon:"justifyright",cmd:"JustifyRight"});g.add({title:"contextmenu.full",icon:"justifyfull",cmd:"JustifyFull"});l.onContextMenu.dispatch(l,f,d,e);return f}});tinymce.PluginManager.add("contextmenu",tinymce.plugins.ContextMenu)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/contextmenu/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/contextmenu/editor_plugin_src.js new file mode 100644 index 0000000..e83cb7e --- /dev/null +++ b/sn_templates/tiny_mce/plugins/contextmenu/editor_plugin_src.js @@ -0,0 +1,140 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; + + /** + * This plugin a context menu to TinyMCE editor instances. + * + * @class tinymce.plugins.ContextMenu + */ + tinymce.create('tinymce.plugins.ContextMenu', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @method init + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed) { + var t = this, lastRng; + + t.editor = ed; + + /** + * This event gets fired when the context menu is shown. + * + * @event onContextMenu + * @param {tinymce.plugins.ContextMenu} sender Plugin instance sending the event. + * @param {tinymce.ui.DropMenu} menu Drop down menu to fill with more items if needed. + */ + t.onContextMenu = new tinymce.util.Dispatcher(this); + + ed.onContextMenu.add(function(ed, e) { + if (!e.ctrlKey) { + // Restore the last selection since it was removed + if (lastRng) + ed.selection.setRng(lastRng); + + t._getMenu(ed).showMenu(e.clientX, e.clientY); + Event.add(ed.getDoc(), 'click', hide); + Event.cancel(e); + } + }); + + function hide(ed, e) { + lastRng = null; + + // Since the contextmenu event moves + // the selection we need to store it away + if (e && e.button == 2) { + lastRng = ed.selection.getRng(); + return; + } + + if (t._menu) { + t._menu.removeAll(); + t._menu.destroy(); + Event.remove(ed.getDoc(), 'click', hide); + } + }; + + ed.onMouseDown.add(hide); + ed.onKeyDown.add(hide); + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @method getInfo + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Contextmenu', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/contextmenu', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + _getMenu : function(ed) { + var t = this, m = t._menu, se = ed.selection, col = se.isCollapsed(), el = se.getNode() || ed.getBody(), am, p1, p2; + + if (m) { + m.removeAll(); + m.destroy(); + } + + p1 = DOM.getPos(ed.getContentAreaContainer()); + p2 = DOM.getPos(ed.getContainer()); + + m = ed.controlManager.createDropMenu('contextmenu', { + offset_x : p1.x + ed.getParam('contextmenu_offset_x', 0), + offset_y : p1.y + ed.getParam('contextmenu_offset_y', 0), + constrain : 1 + }); + + t._menu = m; + + m.add({title : 'advanced.cut_desc', icon : 'cut', cmd : 'Cut'}).setDisabled(col); + m.add({title : 'advanced.copy_desc', icon : 'copy', cmd : 'Copy'}).setDisabled(col); + m.add({title : 'advanced.paste_desc', icon : 'paste', cmd : 'Paste'}); + + if ((el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) || !col) { + m.addSeparator(); + m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); + m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); + } + + m.addSeparator(); + m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); + + m.addSeparator(); + am = m.addMenu({title : 'contextmenu.align'}); + am.add({title : 'contextmenu.left', icon : 'justifyleft', cmd : 'JustifyLeft'}); + am.add({title : 'contextmenu.center', icon : 'justifycenter', cmd : 'JustifyCenter'}); + am.add({title : 'contextmenu.right', icon : 'justifyright', cmd : 'JustifyRight'}); + am.add({title : 'contextmenu.full', icon : 'justifyfull', cmd : 'JustifyFull'}); + + t.onContextMenu.dispatch(t, m, el, col); + + return m; + } + }); + + // Register plugin + tinymce.PluginManager.add('contextmenu', tinymce.plugins.ContextMenu); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/directionality/editor_plugin.js b/sn_templates/tiny_mce/plugins/directionality/editor_plugin.js new file mode 100644 index 0000000..bce8e73 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/directionality/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Directionality",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceDirectionLTR",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="ltr"){a.dom.setAttrib(d,"dir","ltr")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addCommand("mceDirectionRTL",function(){var d=a.dom.getParent(a.selection.getNode(),a.dom.isBlock);if(d){if(a.dom.getAttrib(d,"dir")!="rtl"){a.dom.setAttrib(d,"dir","rtl")}else{a.dom.setAttrib(d,"dir","")}}a.nodeChanged()});a.addButton("ltr",{title:"directionality.ltr_desc",cmd:"mceDirectionLTR"});a.addButton("rtl",{title:"directionality.rtl_desc",cmd:"mceDirectionRTL"});a.onNodeChange.add(c._nodeChange,c)},getInfo:function(){return{longname:"Directionality",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,e){var d=b.dom,c;e=d.getParent(e,d.isBlock);if(!e){a.setDisabled("ltr",1);a.setDisabled("rtl",1);return}c=d.getAttrib(e,"dir");a.setActive("ltr",c=="ltr");a.setDisabled("ltr",0);a.setActive("rtl",c=="rtl");a.setDisabled("rtl",0)}});tinymce.PluginManager.add("directionality",tinymce.plugins.Directionality)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/directionality/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/directionality/editor_plugin_src.js new file mode 100644 index 0000000..205d02c --- /dev/null +++ b/sn_templates/tiny_mce/plugins/directionality/editor_plugin_src.js @@ -0,0 +1,82 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Directionality', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + ed.addCommand('mceDirectionLTR', function() { + var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); + + if (e) { + if (ed.dom.getAttrib(e, "dir") != "ltr") + ed.dom.setAttrib(e, "dir", "ltr"); + else + ed.dom.setAttrib(e, "dir", ""); + } + + ed.nodeChanged(); + }); + + ed.addCommand('mceDirectionRTL', function() { + var e = ed.dom.getParent(ed.selection.getNode(), ed.dom.isBlock); + + if (e) { + if (ed.dom.getAttrib(e, "dir") != "rtl") + ed.dom.setAttrib(e, "dir", "rtl"); + else + ed.dom.setAttrib(e, "dir", ""); + } + + ed.nodeChanged(); + }); + + ed.addButton('ltr', {title : 'directionality.ltr_desc', cmd : 'mceDirectionLTR'}); + ed.addButton('rtl', {title : 'directionality.rtl_desc', cmd : 'mceDirectionRTL'}); + + ed.onNodeChange.add(t._nodeChange, t); + }, + + getInfo : function() { + return { + longname : 'Directionality', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/directionality', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var dom = ed.dom, dir; + + n = dom.getParent(n, dom.isBlock); + if (!n) { + cm.setDisabled('ltr', 1); + cm.setDisabled('rtl', 1); + return; + } + + dir = dom.getAttrib(n, 'dir'); + cm.setActive('ltr', dir == "ltr"); + cm.setDisabled('ltr', 0); + cm.setActive('rtl', dir == "rtl"); + cm.setDisabled('rtl', 0); + } + }); + + // Register plugin + tinymce.PluginManager.add('directionality', tinymce.plugins.Directionality); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/emotions/editor_plugin.js b/sn_templates/tiny_mce/plugins/emotions/editor_plugin.js new file mode 100644 index 0000000..dbdd8ff --- /dev/null +++ b/sn_templates/tiny_mce/plugins/emotions/editor_plugin.js @@ -0,0 +1 @@ +(function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/emotions/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/emotions/editor_plugin_src.js new file mode 100644 index 0000000..aeee199 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/emotions/editor_plugin_src.js @@ -0,0 +1,43 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function(tinymce) { + tinymce.create('tinymce.plugins.EmotionsPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceEmotion', function() { + ed.windowManager.open({ + file : url + '/emotions.htm', + width : 250 + parseInt(ed.getLang('emotions.delta_width', 0)), + height : 160 + parseInt(ed.getLang('emotions.delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('emotions', {title : 'emotions.emotions_desc', cmd : 'mceEmotion'}); + }, + + getInfo : function() { + return { + longname : 'Emotions', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('emotions', tinymce.plugins.EmotionsPlugin); +})(tinymce); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/emotions/emotions.htm b/sn_templates/tiny_mce/plugins/emotions/emotions.htm new file mode 100644 index 0000000..5927b60 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/emotions/emotions.htm @@ -0,0 +1,40 @@ + + + + {#emotions_dlg.title} + + + + +

                                                +
                                                {#emotions_dlg.title}:

                                                + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                {#emotions_dlg.cool}{#emotions_dlg.cry}{#emotions_dlg.embarassed}{#emotions_dlg.foot_in_mouth}
                                                {#emotions_dlg.frown}{#emotions_dlg.innocent}{#emotions_dlg.kiss}{#emotions_dlg.laughing}
                                                {#emotions_dlg.money_mouth}{#emotions_dlg.sealed}{#emotions_dlg.smile}{#emotions_dlg.surprised}
                                                {#emotions_dlg.tongue-out}{#emotions_dlg.undecided}{#emotions_dlg.wink}{#emotions_dlg.yell}
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-cool.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-cool.gif new file mode 100644 index 0000000..ba90cc3 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-cool.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-cry.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-cry.gif new file mode 100644 index 0000000..74d897a Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-cry.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-embarassed.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-embarassed.gif new file mode 100644 index 0000000..963a96b Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-embarassed.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif new file mode 100644 index 0000000..16f68cc Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-frown.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-frown.gif new file mode 100644 index 0000000..716f55e Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-frown.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-innocent.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-innocent.gif new file mode 100644 index 0000000..334d49e Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-innocent.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-kiss.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-kiss.gif new file mode 100644 index 0000000..4efd549 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-kiss.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-laughing.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-laughing.gif new file mode 100644 index 0000000..1606c11 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-laughing.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif new file mode 100644 index 0000000..ca2451e Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-sealed.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-sealed.gif new file mode 100644 index 0000000..b33d3cc Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-sealed.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-smile.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-smile.gif new file mode 100644 index 0000000..e6a9e60 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-smile.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-surprised.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-surprised.gif new file mode 100644 index 0000000..cb99cdd Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-surprised.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif new file mode 100644 index 0000000..2075dc1 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-undecided.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-undecided.gif new file mode 100644 index 0000000..bef7e25 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-undecided.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-wink.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-wink.gif new file mode 100644 index 0000000..9faf1af Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-wink.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/img/smiley-yell.gif b/sn_templates/tiny_mce/plugins/emotions/img/smiley-yell.gif new file mode 100644 index 0000000..648e6e8 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/emotions/img/smiley-yell.gif differ diff --git a/sn_templates/tiny_mce/plugins/emotions/js/emotions.js b/sn_templates/tiny_mce/plugins/emotions/js/emotions.js new file mode 100644 index 0000000..e5c950f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/emotions/js/emotions.js @@ -0,0 +1,22 @@ +tinyMCEPopup.requireLangPack(); + +var EmotionsDialog = { + init : function(ed) { + tinyMCEPopup.resizeToInnerSize(); + }, + + insert : function(file, title) { + var ed = tinyMCEPopup.editor, dom = ed.dom; + + tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { + src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file, + alt : ed.getLang(title), + title : ed.getLang(title), + border : 0 + })); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog); diff --git a/sn_templates/tiny_mce/plugins/emotions/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/emotions/langs/de_dlg.js new file mode 100644 index 0000000..7463ee0 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/emotions/langs/de_dlg.js @@ -0,0 +1,20 @@ +tinyMCE.addI18n('de.emotions_dlg',{ +title:"Smiley einf\u00FCgen", +desc:"Smilies", +cool:"Cool", +cry:"Weinend", +embarassed:"Verlegen", +foot_in_mouth:"Reingefallen", +frown:"Stirnrunzelnd", +innocent:"Unschuldig", +kiss:"K\u00FCssend", +laughing:"Lachend", +money_mouth:"Geld", +sealed:"Verschlossen", +smile:"L\u00E4chelnd", +surprised:"\u00DCberrascht", +tongue_out:"Zunge raus", +undecided:"Unentschlossen", +wink:"Zwinkernd", +yell:"Br\u00FCllend" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/emotions/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/emotions/langs/en_dlg.js new file mode 100644 index 0000000..f6d5f4b --- /dev/null +++ b/sn_templates/tiny_mce/plugins/emotions/langs/en_dlg.js @@ -0,0 +1,20 @@ +tinyMCE.addI18n('en.emotions_dlg',{ +title:"Insert emotion", +desc:"Emotions", +cool:"Cool", +cry:"Cry", +embarassed:"Embarassed", +foot_in_mouth:"Foot in mouth", +frown:"Frown", +innocent:"Innocent", +kiss:"Kiss", +laughing:"Laughing", +money_mouth:"Money mouth", +sealed:"Sealed", +smile:"Smile", +surprised:"Surprised", +tongue_out:"Tongue out", +undecided:"Undecided", +wink:"Wink", +yell:"Yell" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/example/dialog.htm b/sn_templates/tiny_mce/plugins/example/dialog.htm new file mode 100644 index 0000000..d6f2856 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/example/dialog.htm @@ -0,0 +1,22 @@ + + + + {#example_dlg.title} + + + + + +
                                                +

                                                Here is a example dialog.

                                                +

                                                Selected text:

                                                +

                                                Custom arg:

                                                + +
                                                + + +
                                                +
                                                + + + diff --git a/sn_templates/tiny_mce/plugins/example/editor_plugin.js b/sn_templates/tiny_mce/plugins/example/editor_plugin.js new file mode 100644 index 0000000..ec1f81e --- /dev/null +++ b/sn_templates/tiny_mce/plugins/example/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/example/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/example/editor_plugin_src.js new file mode 100644 index 0000000..edc1e77 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/example/editor_plugin_src.js @@ -0,0 +1,84 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + // Load plugin specific language pack + tinymce.PluginManager.requireLangPack('example'); + + tinymce.create('tinymce.plugins.ExamplePlugin', { + /** + * Initializes the plugin, this will be executed after the plugin has been created. + * This call is done before the editor instance has finished it's initialization so use the onInit event + * of the editor instance to intercept that event. + * + * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in. + * @param {string} url Absolute URL to where the plugin is located. + */ + init : function(ed, url) { + // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample'); + ed.addCommand('mceExample', function() { + ed.windowManager.open({ + file : url + '/dialog.htm', + width : 320 + parseInt(ed.getLang('example.delta_width', 0)), + height : 120 + parseInt(ed.getLang('example.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, // Plugin absolute URL + some_custom_arg : 'custom arg' // Custom argument + }); + }); + + // Register example button + ed.addButton('example', { + title : 'example.desc', + cmd : 'mceExample', + image : url + '/img/example.gif' + }); + + // Add a node change handler, selects the button in the UI when a image is selected + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('example', n.nodeName == 'IMG'); + }); + }, + + /** + * Creates control instances based in the incomming name. This method is normally not + * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons + * but you sometimes need to create more complex controls like listboxes, split buttons etc then this + * method can be used to create those. + * + * @param {String} n Name of the control to create. + * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control. + * @return {tinymce.ui.Control} New control instance or null if no control was created. + */ + createControl : function(n, cm) { + return null; + }, + + /** + * Returns information about the plugin as a name/value array. + * The current keys are longname, author, authorurl, infourl and version. + * + * @return {Object} Name/value array containing information about the plugin. + */ + getInfo : function() { + return { + longname : 'Example plugin', + author : 'Some author', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example', + version : "1.0" + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/example/img/example.gif b/sn_templates/tiny_mce/plugins/example/img/example.gif new file mode 100644 index 0000000..1ab5da4 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/example/img/example.gif differ diff --git a/sn_templates/tiny_mce/plugins/example/js/dialog.js b/sn_templates/tiny_mce/plugins/example/js/dialog.js new file mode 100644 index 0000000..a7ee507 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/example/js/dialog.js @@ -0,0 +1,19 @@ +tinyMCEPopup.requireLangPack(); + +var ExampleDialog = { + init : function() { + var f = document.forms[0]; + + // Get the selected contents as text and place it in the input + f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); + f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); + }, + + insert : function() { + // Insert the contents from the input into the document + tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); diff --git a/sn_templates/tiny_mce/plugins/example/langs/en.js b/sn_templates/tiny_mce/plugins/example/langs/en.js new file mode 100644 index 0000000..f3721d3 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/example/langs/en.js @@ -0,0 +1,3 @@ +tinyMCE.addI18n('en.example',{ + desc : 'This is just a template button' +}); diff --git a/sn_templates/tiny_mce/plugins/example/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/example/langs/en_dlg.js new file mode 100644 index 0000000..a9cd65f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/example/langs/en_dlg.js @@ -0,0 +1,3 @@ +tinyMCE.addI18n('en.example_dlg',{ + title : 'This is just a example title' +}); diff --git a/sn_templates/tiny_mce/plugins/fullpage/css/fullpage.css b/sn_templates/tiny_mce/plugins/fullpage/css/fullpage.css new file mode 100644 index 0000000..1854eca --- /dev/null +++ b/sn_templates/tiny_mce/plugins/fullpage/css/fullpage.css @@ -0,0 +1,182 @@ +/* Hide the advanced tab */ +#advanced_tab { + display: none; +} + +#metatitle, #metakeywords, #metadescription, #metaauthor, #metacopyright { + width: 280px; +} + +#doctype, #docencoding { + width: 200px; +} + +#langcode { + width: 30px; +} + +#bgimage { + width: 220px; +} + +#fontface { + width: 240px; +} + +#leftmargin, #rightmargin, #topmargin, #bottommargin { + width: 50px; +} + +.panel_wrapper div.current { + height: 400px; +} + +#stylesheet, #style { + width: 240px; +} + +/* Head list classes */ + +.headlistwrapper { + width: 100%; +} + +.addbutton, .removebutton, .moveupbutton, .movedownbutton { + border-top: 1px solid; + border-left: 1px solid; + border-bottom: 1px solid; + border-right: 1px solid; + border-color: #F0F0EE; + cursor: default; + display: block; + width: 20px; + height: 20px; +} + +#doctypes { + width: 200px; +} + +.addbutton:hover, .removebutton:hover, .moveupbutton:hover, .movedownbutton:hover { + border: 1px solid #0A246A; + background-color: #B6BDD2; +} + +.addbutton { + background-image: url('../images/add.gif'); + float: left; + margin-right: 3px; +} + +.removebutton { + background-image: url('../images/remove.gif'); + float: left; +} + +.moveupbutton { + background-image: url('../images/move_up.gif'); + float: left; + margin-right: 3px; +} + +.movedownbutton { + background-image: url('../images/move_down.gif'); + float: left; +} + +.selected { + border: 1px solid #0A246A; + background-color: #B6BDD2; +} + +.toolbar { + width: 100%; +} + +#headlist { + width: 100%; + margin-top: 3px; + font-size: 11px; +} + +#info, #title_element, #meta_element, #script_element, #style_element, #base_element, #link_element, #comment_element, #unknown_element { + display: none; +} + +#addmenu { + position: absolute; + border: 1px solid gray; + display: none; + z-index: 100; + background-color: white; +} + +#addmenu a { + display: block; + width: 100%; + line-height: 20px; + text-decoration: none; + background-color: white; +} + +#addmenu a:hover { + background-color: #B6BDD2; + color: black; +} + +#addmenu span { + padding-left: 10px; + padding-right: 10px; +} + +#updateElementPanel { + display: none; +} + +#script_element .panel_wrapper div.current { + height: 108px; +} + +#style_element .panel_wrapper div.current { + height: 108px; +} + +#link_element .panel_wrapper div.current { + height: 140px; +} + +#element_script_value { + width: 100%; + height: 100px; +} + +#element_comment_value { + width: 100%; + height: 120px; +} + +#element_style_value { + width: 100%; + height: 100px; +} + +#element_title, #element_script_src, #element_meta_name, #element_meta_content, #element_base_href, #element_link_href, #element_link_title { + width: 250px; +} + +.updateElementButton { + margin-top: 3px; +} + +/* MSIE specific styles */ + +* html .addbutton, * html .removebutton, * html .moveupbutton, * html .movedownbutton { + width: 22px; + height: 22px; +} + +textarea { + height: 55px; +} + +.panel_wrapper div.current {height:420px;} \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/fullpage/editor_plugin.js b/sn_templates/tiny_mce/plugins/fullpage/editor_plugin.js new file mode 100644 index 0000000..8e11bfc --- /dev/null +++ b/sn_templates/tiny_mce/plugins/fullpage/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceFullPageProperties",function(){a.windowManager.open({file:b+"/fullpage.htm",width:430+parseInt(a.getLang("fullpage.delta_width",0)),height:495+parseInt(a.getLang("fullpage.delta_height",0)),inline:1},{plugin_url:b,head_html:c.head})});a.addButton("fullpage",{title:"fullpage.desc",cmd:"mceFullPageProperties"});a.onBeforeSetContent.add(c._setContent,c);a.onSetContent.add(c._setBodyAttribs,c);a.onGetContent.add(c._getContent,c)},getInfo:function(){return{longname:"Fullpage",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_setBodyAttribs:function(d,a){var l,c,e,g,b,h,j,f=this.head.match(/body(.*?)>/i);if(f&&f[1]){l=f[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g);if(l){for(c=0,e=l.length;c",a);h.head=f.substring(0,a+1);j=f.indexOf("\n'}h.head+=d.getParam("fullpage_default_doctype",'');h.head+="\n\n\n"+d.getParam("fullpage_default_title","Untitled document")+"\n";if(g=d.getParam("fullpage_default_encoding")){h.head+='\n'}if(g=d.getParam("fullpage_default_font_family")){i+="font-family: "+g+";"}if(g=d.getParam("fullpage_default_font_size")){i+="font-size: "+g+";"}if(g=d.getParam("fullpage_default_text_color")){i+="color: "+g+";"}h.head+="\n\n";h.foot="\n\n"}},_getContent:function(a,c){var b=this;if(!c.source_view||!a.getParam("fullpage_hide_in_source_view")){c.content=tinymce.trim(b.head)+"\n"+tinymce.trim(c.content)+"\n"+tinymce.trim(b.foot)}}});tinymce.PluginManager.add("fullpage",tinymce.plugins.FullPagePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/fullpage/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/fullpage/editor_plugin_src.js new file mode 100644 index 0000000..fc7f988 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/fullpage/editor_plugin_src.js @@ -0,0 +1,149 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.FullPagePlugin', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceFullPageProperties', function() { + ed.windowManager.open({ + file : url + '/fullpage.htm', + width : 430 + parseInt(ed.getLang('fullpage.delta_width', 0)), + height : 495 + parseInt(ed.getLang('fullpage.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + head_html : t.head + }); + }); + + // Register buttons + ed.addButton('fullpage', {title : 'fullpage.desc', cmd : 'mceFullPageProperties'}); + + ed.onBeforeSetContent.add(t._setContent, t); + ed.onSetContent.add(t._setBodyAttribs, t); + ed.onGetContent.add(t._getContent, t); + }, + + getInfo : function() { + return { + longname : 'Fullpage', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/fullpage', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private plugin internal methods + + _setBodyAttribs : function(ed, o) { + var bdattr, i, len, kv, k, v, t, attr = this.head.match(/body(.*?)>/i); + + if (attr && attr[1]) { + bdattr = attr[1].match(/\s*(\w+\s*=\s*".*?"|\w+\s*=\s*'.*?'|\w+\s*=\s*\w+|\w+)\s*/g); + + if (bdattr) { + for(i = 0, len = bdattr.length; i < len; i++) { + kv = bdattr[i].split('='); + k = kv[0].replace(/\s/,''); + v = kv[1]; + + if (v) { + v = v.replace(/^\s+/,'').replace(/\s+$/,''); + t = v.match(/^["'](.*)["']$/); + + if (t) + v = t[1]; + } else + v = k; + + ed.dom.setAttrib(ed.getBody(), 'style', v); + } + } + } + }, + + _createSerializer : function() { + return new tinymce.dom.Serializer({ + dom : this.editor.dom, + apply_source_formatting : true + }); + }, + + _setContent : function(ed, o) { + var t = this, sp, ep, c = o.content, v, st = ''; + + if (o.source_view && ed.getParam('fullpage_hide_in_source_view')) + return; + + // Parse out head, body and footer + c = c.replace(/<(\/?)BODY/gi, '<$1body'); + sp = c.indexOf('', sp); + t.head = c.substring(0, sp + 1); + + ep = c.indexOf('\n'; + + t.head += ed.getParam('fullpage_default_doctype', ''); + t.head += '\n\n\n' + ed.getParam('fullpage_default_title', 'Untitled document') + '\n'; + + if (v = ed.getParam('fullpage_default_encoding')) + t.head += '\n'; + + if (v = ed.getParam('fullpage_default_font_family')) + st += 'font-family: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_font_size')) + st += 'font-size: ' + v + ';'; + + if (v = ed.getParam('fullpage_default_text_color')) + st += 'color: ' + v + ';'; + + t.head += '\n\n'; + t.foot = '\n\n'; + } + }, + + _getContent : function(ed, o) { + var t = this; + + if (!o.source_view || !ed.getParam('fullpage_hide_in_source_view')) + o.content = tinymce.trim(t.head) + '\n' + tinymce.trim(o.content) + '\n' + tinymce.trim(t.foot); + } + }); + + // Register plugin + tinymce.PluginManager.add('fullpage', tinymce.plugins.FullPagePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/fullpage/fullpage.htm b/sn_templates/tiny_mce/plugins/fullpage/fullpage.htm new file mode 100644 index 0000000..d8e62fb --- /dev/null +++ b/sn_templates/tiny_mce/plugins/fullpage/fullpage.htm @@ -0,0 +1,571 @@ + + + + {#fullpage_dlg.title} + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#fullpage_dlg.meta_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                 
                                                 
                                                 
                                                 
                                                 
                                                  + +
                                                +
                                                + +
                                                + {#fullpage_dlg.langprops} + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                  + +
                                                 
                                                + +
                                                 
                                                +
                                                +
                                                + +
                                                +
                                                + {#fullpage_dlg.appearance_textprops} + + + + + + + + + + + + + + + + +
                                                + +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + {#fullpage_dlg.appearance_bgprops} + + + + + + + + + + +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + {#fullpage_dlg.appearance_marginprops} + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                + {#fullpage_dlg.appearance_linkprops} + + + + + + + + + + + + + + + + + + + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + +
                                                 
                                                +
                                                  
                                                +
                                                + +
                                                + {#fullpage_dlg.appearance_style} + + + + + + + + + + +
                                                + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + + +
                                                + {#fullpage_dlg.head_elements} + +
                                                +
                                                +
                                                + + +
                                                +
                                                + + +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                + {#fullpage_dlg.meta_element} + + + + + + + + + + + + + + +
                                                + + +
                                                + +
                                                + {#fullpage_dlg.title_element} + + + + + + +
                                                + + +
                                                + +
                                                + {#fullpage_dlg.script_element} + + + +
                                                + +
                                                +
                                                + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                +
                                                + +
                                                + +
                                                +
                                                + + +
                                                + +
                                                + {#fullpage_dlg.style_element} + + + +
                                                + +
                                                +
                                                + + + + + + + + + +
                                                +
                                                + +
                                                + +
                                                +
                                                + + +
                                                + +
                                                + {#fullpage_dlg.base_element} + + + + + + + + + + +
                                                + + +
                                                + + + +
                                                + {#fullpage_dlg.comment_element} + + + + +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/fullpage/js/fullpage.js b/sn_templates/tiny_mce/plugins/fullpage/js/fullpage.js new file mode 100644 index 0000000..7a80fcd --- /dev/null +++ b/sn_templates/tiny_mce/plugins/fullpage/js/fullpage.js @@ -0,0 +1,471 @@ +/** + * fullpage.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var doc; + +var defaultDocTypes = + 'XHTML 1.0 Transitional=,' + + 'XHTML 1.0 Frameset=,' + + 'XHTML 1.0 Strict=,' + + 'XHTML 1.1=,' + + 'HTML 4.01 Transitional=,' + + 'HTML 4.01 Strict=,' + + 'HTML 4.01 Frameset='; + +var defaultEncodings = + 'Western european (iso-8859-1)=iso-8859-1,' + + 'Central European (iso-8859-2)=iso-8859-2,' + + 'Unicode (UTF-8)=utf-8,' + + 'Chinese traditional (Big5)=big5,' + + 'Cyrillic (iso-8859-5)=iso-8859-5,' + + 'Japanese (iso-2022-jp)=iso-2022-jp,' + + 'Greek (iso-8859-7)=iso-8859-7,' + + 'Korean (iso-2022-kr)=iso-2022-kr,' + + 'ASCII (us-ascii)=us-ascii'; + +var defaultMediaTypes = + 'all=all,' + + 'screen=screen,' + + 'print=print,' + + 'tty=tty,' + + 'tv=tv,' + + 'projection=projection,' + + 'handheld=handheld,' + + 'braille=braille,' + + 'aural=aural'; + +var defaultFontNames = 'Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings'; +var defaultFontSizes = '10px,11px,12px,13px,14px,15px,16px'; + +function init() { + var f = document.forms['fullpage'], el = f.elements, e, i, p, doctypes, encodings, mediaTypes, fonts, ed = tinyMCEPopup.editor, dom = tinyMCEPopup.dom, style; + + // Setup doctype select box + doctypes = ed.getParam("fullpage_doctypes", defaultDocTypes).split(','); + for (i=0; i 1) + addSelectValue(f, 'doctypes', p[0], p[1]); + } + + // Setup fonts select box + fonts = ed.getParam("fullpage_fonts", defaultFontNames).split(';'); + for (i=0; i 1) + addSelectValue(f, 'fontface', p[0], p[1]); + } + + // Setup fontsize select box + fonts = ed.getParam("fullpage_fontsizes", defaultFontSizes).split(','); + for (i=0; i 1) { + addSelectValue(f, 'element_style_media', p[0], p[1]); + addSelectValue(f, 'element_link_media', p[0], p[1]); + } + } + + // Setup encodings select box + encodings = ed.getParam("fullpage_encodings", defaultEncodings).split(','); + for (i=0; i 1) { + addSelectValue(f, 'docencoding', p[0], p[1]); + addSelectValue(f, 'element_script_charset', p[0], p[1]); + addSelectValue(f, 'element_link_charset', p[0], p[1]); + } + } + + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + document.getElementById('link_color_pickcontainer').innerHTML = getColorPickerHTML('link_color_pick','link_color'); + //document.getElementById('hover_color_pickcontainer').innerHTML = getColorPickerHTML('hover_color_pick','hover_color'); + document.getElementById('visited_color_pickcontainer').innerHTML = getColorPickerHTML('visited_color_pick','visited_color'); + document.getElementById('active_color_pickcontainer').innerHTML = getColorPickerHTML('active_color_pick','active_color'); + document.getElementById('textcolor_pickcontainer').innerHTML = getColorPickerHTML('textcolor_pick','textcolor'); + document.getElementById('stylesheet_browsercontainer').innerHTML = getBrowserHTML('stylesheetbrowser','stylesheet','file','fullpage'); + document.getElementById('link_href_pickcontainer').innerHTML = getBrowserHTML('link_href_browser','element_link_href','file','fullpage'); + document.getElementById('script_src_pickcontainer').innerHTML = getBrowserHTML('script_src_browser','element_script_src','file','fullpage'); + document.getElementById('bgimage_pickcontainer').innerHTML = getBrowserHTML('bgimage_browser','bgimage','image','fullpage'); + + // Resize some elements + if (isVisible('stylesheetbrowser')) + document.getElementById('stylesheet').style.width = '220px'; + + if (isVisible('link_href_browser')) + document.getElementById('element_link_href').style.width = '230px'; + + if (isVisible('bgimage_browser')) + document.getElementById('bgimage').style.width = '210px'; + + // Add iframe + dom.add(document.body, 'iframe', {id : 'documentIframe', src : 'javascript:""', style : {display : 'none'}}); + doc = dom.get('documentIframe').contentWindow.document; + h = tinyMCEPopup.getWindowArg('head_html'); + + // Preprocess the HTML disable scripts and urls + h = h.replace(/ + + + +
                                                + +
                                                + + + + + diff --git a/sn_templates/tiny_mce/plugins/iespell/editor_plugin.js b/sn_templates/tiny_mce/plugins/iespell/editor_plugin.js new file mode 100644 index 0000000..e9cba10 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/iespell/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.IESpell",{init:function(a,b){var c=this,d;if(!tinymce.isIE){return}c.editor=a;a.addCommand("mceIESpell",function(){try{d=new ActiveXObject("ieSpell.ieSpellExtension");d.CheckDocumentNode(a.getDoc().documentElement)}catch(f){if(f.number==-2146827859){a.windowManager.confirm(a.getLang("iespell.download"),function(e){if(e){window.open("http://www.iespell.com/download.php","ieSpellDownload","")}})}else{a.windowManager.alert("Error Loading ieSpell: Exception "+f.number)}}});a.addButton("iespell",{title:"iespell.iespell_desc",cmd:"mceIESpell"})},getInfo:function(){return{longname:"IESpell (IE Only)",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("iespell",tinymce.plugins.IESpell)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/iespell/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/iespell/editor_plugin_src.js new file mode 100644 index 0000000..61edf1e --- /dev/null +++ b/sn_templates/tiny_mce/plugins/iespell/editor_plugin_src.js @@ -0,0 +1,54 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.IESpell', { + init : function(ed, url) { + var t = this, sp; + + if (!tinymce.isIE) + return; + + t.editor = ed; + + // Register commands + ed.addCommand('mceIESpell', function() { + try { + sp = new ActiveXObject("ieSpell.ieSpellExtension"); + sp.CheckDocumentNode(ed.getDoc().documentElement); + } catch (e) { + if (e.number == -2146827859) { + ed.windowManager.confirm(ed.getLang("iespell.download"), function(s) { + if (s) + window.open('http://www.iespell.com/download.php', 'ieSpellDownload', ''); + }); + } else + ed.windowManager.alert("Error Loading ieSpell: Exception " + e.number); + } + }); + + // Register buttons + ed.addButton('iespell', {title : 'iespell.iespell_desc', cmd : 'mceIESpell'}); + }, + + getInfo : function() { + return { + longname : 'IESpell (IE Only)', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/iespell', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('iespell', tinymce.plugins.IESpell); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/editor_plugin.js b/sn_templates/tiny_mce/plugins/inlinepopups/editor_plugin.js new file mode 100644 index 0000000..07ea477 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/inlinepopups/editor_plugin.js @@ -0,0 +1 @@ +(function(){var d=tinymce.DOM,b=tinymce.dom.Element,a=tinymce.dom.Event,e=tinymce.each,c=tinymce.is;tinymce.create("tinymce.plugins.InlinePopups",{init:function(f,g){f.onBeforeRenderUI.add(function(){f.windowManager=new tinymce.InlineWindowManager(f);d.loadCSS(g+"/skins/"+(f.settings.inlinepopups_skin||"clearlooks2")+"/window.css")})},getInfo:function(){return{longname:"InlinePopups",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.create("tinymce.InlineWindowManager:tinymce.WindowManager",{InlineWindowManager:function(f){var g=this;g.parent(f);g.zIndex=300000;g.count=0;g.windows={}},open:function(r,j){var y=this,i,k="",q=y.editor,g=0,s=0,h,m,n,o,l,v,x;r=r||{};j=j||{};if(!r.inline){return y.parent(r,j)}if(!r.type){y.bookmark=q.selection.getBookmark(1)}i=d.uniqueId();h=d.getViewPort();r.width=parseInt(r.width||320);r.height=parseInt(r.height||240)+(tinymce.isIE?8:0);r.min_width=parseInt(r.min_width||150);r.min_height=parseInt(r.min_height||100);r.max_width=parseInt(r.max_width||2000);r.max_height=parseInt(r.max_height||2000);r.left=r.left||Math.round(Math.max(h.x,h.x+(h.w/2)-(r.width/2)));r.top=r.top||Math.round(Math.max(h.y,h.y+(h.h/2)-(r.height/2)));r.movable=r.resizable=true;j.mce_width=r.width;j.mce_height=r.height;j.mce_inline=true;j.mce_window_id=i;j.mce_auto_focus=r.auto_focus;y.features=r;y.params=j;y.onOpen.dispatch(y,r,j);if(r.type){k+=" mceModal";if(r.type){k+=" mce"+r.type.substring(0,1).toUpperCase()+r.type.substring(1)}r.resizable=false}if(r.statusbar){k+=" mceStatusbar"}if(r.resizable){k+=" mceResizable"}if(r.minimizable){k+=" mceMinimizable"}if(r.maximizable){k+=" mceMaximizable"}if(r.movable){k+=" mceMovable"}y._addAll(d.doc.body,["div",{id:i,"class":q.settings.inlinepopups_skin||"clearlooks2",style:"width:100px;height:100px"},["div",{id:i+"_wrapper","class":"mceWrapper"+k},["div",{id:i+"_top","class":"mceTop"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_title"},r.title||""]],["div",{id:i+"_middle","class":"mceMiddle"},["div",{id:i+"_left","class":"mceLeft"}],["span",{id:i+"_content"}],["div",{id:i+"_right","class":"mceRight"}]],["div",{id:i+"_bottom","class":"mceBottom"},["div",{"class":"mceLeft"}],["div",{"class":"mceCenter"}],["div",{"class":"mceRight"}],["span",{id:i+"_status"},"Content"]],["a",{"class":"mceMove",tabindex:"-1",href:"javascript:;"}],["a",{"class":"mceMin",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMax",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceMed",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{"class":"mceClose",tabindex:"-1",href:"javascript:;",onmousedown:"return false;"}],["a",{id:i+"_resize_n","class":"mceResize mceResizeN",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_s","class":"mceResize mceResizeS",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_w","class":"mceResize mceResizeW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_e","class":"mceResize mceResizeE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_nw","class":"mceResize mceResizeNW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_ne","class":"mceResize mceResizeNE",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_sw","class":"mceResize mceResizeSW",tabindex:"-1",href:"javascript:;"}],["a",{id:i+"_resize_se","class":"mceResize mceResizeSE",tabindex:"-1",href:"javascript:;"}]]]);d.setStyles(i,{top:-10000,left:-10000});if(tinymce.isGecko){d.setStyle(i,"overflow","auto")}if(!r.type){g+=d.get(i+"_left").clientWidth;g+=d.get(i+"_right").clientWidth;s+=d.get(i+"_top").clientHeight;s+=d.get(i+"_bottom").clientHeight}d.setStyles(i,{top:r.top,left:r.left,width:r.width+g,height:r.height+s});x=r.url||r.file;if(x){if(tinymce.relaxedDomain){x+=(x.indexOf("?")==-1?"?":"&")+"mce_rdomain="+tinymce.relaxedDomain}x=tinymce._addVer(x)}if(!r.type){d.add(i+"_content","iframe",{id:i+"_ifr",src:'javascript:""',frameBorder:0,style:"border:0;width:10px;height:10px"});d.setStyles(i+"_ifr",{width:r.width,height:r.height});d.setAttrib(i+"_ifr","src",x)}else{d.add(i+"_wrapper","a",{id:i+"_ok","class":"mceButton mceOk",href:"javascript:;",onmousedown:"return false;"},"Ok");if(r.type=="confirm"){d.add(i+"_wrapper","a",{"class":"mceButton mceCancel",href:"javascript:;",onmousedown:"return false;"},"Cancel")}d.add(i+"_middle","div",{"class":"mceIcon"});d.setHTML(i+"_content",r.content.replace("\n","
                                                "))}n=a.add(i,"mousedown",function(t){var u=t.target,f,p;f=y.windows[i];y.focus(i);if(u.nodeName=="A"||u.nodeName=="a"){if(u.className=="mceMax"){f.oldPos=f.element.getXY();f.oldSize=f.element.getSize();p=d.getViewPort();p.w-=2;p.h-=2;f.element.moveTo(p.x,p.y);f.element.resizeTo(p.w,p.h);d.setStyles(i+"_ifr",{width:p.w-f.deltaWidth,height:p.h-f.deltaHeight});d.addClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMed"){f.element.moveTo(f.oldPos.x,f.oldPos.y);f.element.resizeTo(f.oldSize.w,f.oldSize.h);f.iframeElement.resizeTo(f.oldSize.w-f.deltaWidth,f.oldSize.h-f.deltaHeight);d.removeClass(i+"_wrapper","mceMaximized")}else{if(u.className=="mceMove"){return y._startDrag(i,t,u.className)}else{if(d.hasClass(u,"mceResize")){return y._startDrag(i,t,u.className.substring(13))}}}}}});o=a.add(i,"click",function(f){var p=f.target;y.focus(i);if(p.nodeName=="A"||p.nodeName=="a"){switch(p.className){case"mceClose":y.close(null,i);return a.cancel(f);case"mceButton mceOk":case"mceButton mceCancel":r.button_func(p.className=="mceButton mceOk");return a.cancel(f)}}});v=y.windows[i]={id:i,mousedown_func:n,click_func:o,element:new b(i,{blocker:1,container:q.getContainer()}),iframeElement:new b(i+"_ifr"),features:r,deltaWidth:g,deltaHeight:s};v.iframeElement.on("focus",function(){y.focus(i)});if(y.count==0&&y.editor.getParam("dialog_type","modal")=="modal"){d.add(d.doc.body,"div",{id:"mceModalBlocker","class":(y.editor.settings.inlinepopups_skin||"clearlooks2")+"_modalBlocker",style:{zIndex:y.zIndex-1}});d.show("mceModalBlocker")}else{d.setStyle("mceModalBlocker","z-index",y.zIndex-1)}if(tinymce.isIE6||/Firefox\/2\./.test(navigator.userAgent)||(tinymce.isIE&&!d.boxModel)){d.setStyles("mceModalBlocker",{position:"absolute",left:h.x,top:h.y,width:h.w-2,height:h.h-2})}y.focus(i);y._fixIELayout(i,1);if(d.get(i+"_ok")){d.get(i+"_ok").focus()}y.count++;return v},focus:function(h){var g=this,f;if(f=g.windows[h]){f.zIndex=this.zIndex++;f.element.setStyle("zIndex",f.zIndex);f.element.update();h=h+"_wrapper";d.removeClass(g.lastId,"mceFocus");d.addClass(h,"mceFocus");g.lastId=h}},_addAll:function(k,h){var g,l,f=this,j=tinymce.DOM;if(c(h,"string")){k.appendChild(j.doc.createTextNode(h))}else{if(h.length){k=k.appendChild(j.create(h[0],h[1]));for(g=2;gf){i=m;f=m.zIndex}});if(i){h.focus(i.id)}}},setTitle:function(f,g){var h;f=this._findId(f);if(h=d.get(f+"_title")){h.innerHTML=d.encode(g)}},alert:function(g,f,j){var i=this,h;h=i.open({title:i,type:"alert",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},confirm:function(g,f,j){var i=this,h;h=i.open({title:i,type:"confirm",button_func:function(k){if(f){f.call(k||i,k)}i.close(null,h.id)},content:d.encode(i.editor.getLang(g,g)),inline:1,width:400,height:130})},_findId:function(f){var g=this;if(typeof(f)=="string"){return f}e(g.windows,function(h){var i=d.get(h.id+"_ifr");if(i&&f==i.contentWindow){f=h.id;return false}});return f},_fixIELayout:function(i,h){var f,g;if(!tinymce.isIE6){return}e(["n","s","w","e","nw","ne","sw","se"],function(j){var k=d.get(i+"_resize_"+j);d.setStyles(k,{width:h?k.clientWidth:"",height:h?k.clientHeight:"",cursor:d.getStyle(k,"cursor",1)});d.setStyle(i+"_bottom","bottom","-1px");k=0});if(f=this.windows[i]){f.element.hide();f.element.show();e(d.select("div,a",i),function(k,j){if(k.currentStyle.backgroundImage!="none"){g=new Image();g.src=k.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/,"$1")}});d.get(i).style.filter=""}}});tinymce.PluginManager.add("inlinepopups",tinymce.plugins.InlinePopups)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/inlinepopups/editor_plugin_src.js new file mode 100644 index 0000000..10ce4d9 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/inlinepopups/editor_plugin_src.js @@ -0,0 +1,635 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.Event, each = tinymce.each, is = tinymce.is; + + tinymce.create('tinymce.plugins.InlinePopups', { + init : function(ed, url) { + // Replace window manager + ed.onBeforeRenderUI.add(function() { + ed.windowManager = new tinymce.InlineWindowManager(ed); + DOM.loadCSS(url + '/skins/' + (ed.settings.inlinepopups_skin || 'clearlooks2') + "/window.css"); + }); + }, + + getInfo : function() { + return { + longname : 'InlinePopups', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/inlinepopups', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + tinymce.create('tinymce.InlineWindowManager:tinymce.WindowManager', { + InlineWindowManager : function(ed) { + var t = this; + + t.parent(ed); + t.zIndex = 300000; + t.count = 0; + t.windows = {}; + }, + + open : function(f, p) { + var t = this, id, opt = '', ed = t.editor, dw = 0, dh = 0, vp, po, mdf, clf, we, w, u; + + f = f || {}; + p = p || {}; + + // Run native windows + if (!f.inline) + return t.parent(f, p); + + // Only store selection if the type is a normal window + if (!f.type) + t.bookmark = ed.selection.getBookmark(1); + + id = DOM.uniqueId(); + vp = DOM.getViewPort(); + f.width = parseInt(f.width || 320); + f.height = parseInt(f.height || 240) + (tinymce.isIE ? 8 : 0); + f.min_width = parseInt(f.min_width || 150); + f.min_height = parseInt(f.min_height || 100); + f.max_width = parseInt(f.max_width || 2000); + f.max_height = parseInt(f.max_height || 2000); + f.left = f.left || Math.round(Math.max(vp.x, vp.x + (vp.w / 2.0) - (f.width / 2.0))); + f.top = f.top || Math.round(Math.max(vp.y, vp.y + (vp.h / 2.0) - (f.height / 2.0))); + f.movable = f.resizable = true; + p.mce_width = f.width; + p.mce_height = f.height; + p.mce_inline = true; + p.mce_window_id = id; + p.mce_auto_focus = f.auto_focus; + + // Transpose +// po = DOM.getPos(ed.getContainer()); +// f.left -= po.x; +// f.top -= po.y; + + t.features = f; + t.params = p; + t.onOpen.dispatch(t, f, p); + + if (f.type) { + opt += ' mceModal'; + + if (f.type) + opt += ' mce' + f.type.substring(0, 1).toUpperCase() + f.type.substring(1); + + f.resizable = false; + } + + if (f.statusbar) + opt += ' mceStatusbar'; + + if (f.resizable) + opt += ' mceResizable'; + + if (f.minimizable) + opt += ' mceMinimizable'; + + if (f.maximizable) + opt += ' mceMaximizable'; + + if (f.movable) + opt += ' mceMovable'; + + // Create DOM objects + t._addAll(DOM.doc.body, + ['div', {id : id, 'class' : ed.settings.inlinepopups_skin || 'clearlooks2', style : 'width:100px;height:100px'}, + ['div', {id : id + '_wrapper', 'class' : 'mceWrapper' + opt}, + ['div', {id : id + '_top', 'class' : 'mceTop'}, + ['div', {'class' : 'mceLeft'}], + ['div', {'class' : 'mceCenter'}], + ['div', {'class' : 'mceRight'}], + ['span', {id : id + '_title'}, f.title || ''] + ], + + ['div', {id : id + '_middle', 'class' : 'mceMiddle'}, + ['div', {id : id + '_left', 'class' : 'mceLeft'}], + ['span', {id : id + '_content'}], + ['div', {id : id + '_right', 'class' : 'mceRight'}] + ], + + ['div', {id : id + '_bottom', 'class' : 'mceBottom'}, + ['div', {'class' : 'mceLeft'}], + ['div', {'class' : 'mceCenter'}], + ['div', {'class' : 'mceRight'}], + ['span', {id : id + '_status'}, 'Content'] + ], + + ['a', {'class' : 'mceMove', tabindex : '-1', href : 'javascript:;'}], + ['a', {'class' : 'mceMin', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceMax', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceMed', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {'class' : 'mceClose', tabindex : '-1', href : 'javascript:;', onmousedown : 'return false;'}], + ['a', {id : id + '_resize_n', 'class' : 'mceResize mceResizeN', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_s', 'class' : 'mceResize mceResizeS', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_w', 'class' : 'mceResize mceResizeW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_e', 'class' : 'mceResize mceResizeE', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_nw', 'class' : 'mceResize mceResizeNW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_ne', 'class' : 'mceResize mceResizeNE', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_sw', 'class' : 'mceResize mceResizeSW', tabindex : '-1', href : 'javascript:;'}], + ['a', {id : id + '_resize_se', 'class' : 'mceResize mceResizeSE', tabindex : '-1', href : 'javascript:;'}] + ] + ] + ); + + DOM.setStyles(id, {top : -10000, left : -10000}); + + // Fix gecko rendering bug, where the editors iframe messed with window contents + if (tinymce.isGecko) + DOM.setStyle(id, 'overflow', 'auto'); + + // Measure borders + if (!f.type) { + dw += DOM.get(id + '_left').clientWidth; + dw += DOM.get(id + '_right').clientWidth; + dh += DOM.get(id + '_top').clientHeight; + dh += DOM.get(id + '_bottom').clientHeight; + } + + // Resize window + DOM.setStyles(id, {top : f.top, left : f.left, width : f.width + dw, height : f.height + dh}); + + u = f.url || f.file; + if (u) { + if (tinymce.relaxedDomain) + u += (u.indexOf('?') == -1 ? '?' : '&') + 'mce_rdomain=' + tinymce.relaxedDomain; + + u = tinymce._addVer(u); + } + + if (!f.type) { + DOM.add(id + '_content', 'iframe', {id : id + '_ifr', src : 'javascript:""', frameBorder : 0, style : 'border:0;width:10px;height:10px'}); + DOM.setStyles(id + '_ifr', {width : f.width, height : f.height}); + DOM.setAttrib(id + '_ifr', 'src', u); + } else { + DOM.add(id + '_wrapper', 'a', {id : id + '_ok', 'class' : 'mceButton mceOk', href : 'javascript:;', onmousedown : 'return false;'}, 'Ok'); + + if (f.type == 'confirm') + DOM.add(id + '_wrapper', 'a', {'class' : 'mceButton mceCancel', href : 'javascript:;', onmousedown : 'return false;'}, 'Cancel'); + + DOM.add(id + '_middle', 'div', {'class' : 'mceIcon'}); + DOM.setHTML(id + '_content', f.content.replace('\n', '
                                                ')); + } + + // Register events + mdf = Event.add(id, 'mousedown', function(e) { + var n = e.target, w, vp; + + w = t.windows[id]; + t.focus(id); + + if (n.nodeName == 'A' || n.nodeName == 'a') { + if (n.className == 'mceMax') { + w.oldPos = w.element.getXY(); + w.oldSize = w.element.getSize(); + + vp = DOM.getViewPort(); + + // Reduce viewport size to avoid scrollbars + vp.w -= 2; + vp.h -= 2; + + w.element.moveTo(vp.x, vp.y); + w.element.resizeTo(vp.w, vp.h); + DOM.setStyles(id + '_ifr', {width : vp.w - w.deltaWidth, height : vp.h - w.deltaHeight}); + DOM.addClass(id + '_wrapper', 'mceMaximized'); + } else if (n.className == 'mceMed') { + // Reset to old size + w.element.moveTo(w.oldPos.x, w.oldPos.y); + w.element.resizeTo(w.oldSize.w, w.oldSize.h); + w.iframeElement.resizeTo(w.oldSize.w - w.deltaWidth, w.oldSize.h - w.deltaHeight); + + DOM.removeClass(id + '_wrapper', 'mceMaximized'); + } else if (n.className == 'mceMove') + return t._startDrag(id, e, n.className); + else if (DOM.hasClass(n, 'mceResize')) + return t._startDrag(id, e, n.className.substring(13)); + } + }); + + clf = Event.add(id, 'click', function(e) { + var n = e.target; + + t.focus(id); + + if (n.nodeName == 'A' || n.nodeName == 'a') { + switch (n.className) { + case 'mceClose': + t.close(null, id); + return Event.cancel(e); + + case 'mceButton mceOk': + case 'mceButton mceCancel': + f.button_func(n.className == 'mceButton mceOk'); + return Event.cancel(e); + } + } + }); + + // Add window + w = t.windows[id] = { + id : id, + mousedown_func : mdf, + click_func : clf, + element : new Element(id, {blocker : 1, container : ed.getContainer()}), + iframeElement : new Element(id + '_ifr'), + features : f, + deltaWidth : dw, + deltaHeight : dh + }; + + w.iframeElement.on('focus', function() { + t.focus(id); + }); + + // Setup blocker + if (t.count == 0 && t.editor.getParam('dialog_type', 'modal') == 'modal') { + DOM.add(DOM.doc.body, 'div', { + id : 'mceModalBlocker', + 'class' : (t.editor.settings.inlinepopups_skin || 'clearlooks2') + '_modalBlocker', + style : {zIndex : t.zIndex - 1} + }); + + DOM.show('mceModalBlocker'); // Reduces flicker in IE + } else + DOM.setStyle('mceModalBlocker', 'z-index', t.zIndex - 1); + + if (tinymce.isIE6 || /Firefox\/2\./.test(navigator.userAgent) || (tinymce.isIE && !DOM.boxModel)) + DOM.setStyles('mceModalBlocker', {position : 'absolute', left : vp.x, top : vp.y, width : vp.w - 2, height : vp.h - 2}); + + t.focus(id); + t._fixIELayout(id, 1); + + // Focus ok button + if (DOM.get(id + '_ok')) + DOM.get(id + '_ok').focus(); + + t.count++; + + return w; + }, + + focus : function(id) { + var t = this, w; + + if (w = t.windows[id]) { + w.zIndex = this.zIndex++; + w.element.setStyle('zIndex', w.zIndex); + w.element.update(); + + id = id + '_wrapper'; + DOM.removeClass(t.lastId, 'mceFocus'); + DOM.addClass(id, 'mceFocus'); + t.lastId = id; + } + }, + + _addAll : function(te, ne) { + var i, n, t = this, dom = tinymce.DOM; + + if (is(ne, 'string')) + te.appendChild(dom.doc.createTextNode(ne)); + else if (ne.length) { + te = te.appendChild(dom.create(ne[0], ne[1])); + + for (i=2; i ix) { + fw = w; + ix = w.zIndex; + } + }); + + if (fw) + t.focus(fw.id); + } + }, + + setTitle : function(w, ti) { + var e; + + w = this._findId(w); + + if (e = DOM.get(w + '_title')) + e.innerHTML = DOM.encode(ti); + }, + + alert : function(txt, cb, s) { + var t = this, w; + + w = t.open({ + title : t, + type : 'alert', + button_func : function(s) { + if (cb) + cb.call(s || t, s); + + t.close(null, w.id); + }, + content : DOM.encode(t.editor.getLang(txt, txt)), + inline : 1, + width : 400, + height : 130 + }); + }, + + confirm : function(txt, cb, s) { + var t = this, w; + + w = t.open({ + title : t, + type : 'confirm', + button_func : function(s) { + if (cb) + cb.call(s || t, s); + + t.close(null, w.id); + }, + content : DOM.encode(t.editor.getLang(txt, txt)), + inline : 1, + width : 400, + height : 130 + }); + }, + + // Internal functions + + _findId : function(w) { + var t = this; + + if (typeof(w) == 'string') + return w; + + each(t.windows, function(wo) { + var ifr = DOM.get(wo.id + '_ifr'); + + if (ifr && w == ifr.contentWindow) { + w = wo.id; + return false; + } + }); + + return w; + }, + + _fixIELayout : function(id, s) { + var w, img; + + if (!tinymce.isIE6) + return; + + // Fixes the bug where hover flickers and does odd things in IE6 + each(['n','s','w','e','nw','ne','sw','se'], function(v) { + var e = DOM.get(id + '_resize_' + v); + + DOM.setStyles(e, { + width : s ? e.clientWidth : '', + height : s ? e.clientHeight : '', + cursor : DOM.getStyle(e, 'cursor', 1) + }); + + DOM.setStyle(id + "_bottom", 'bottom', '-1px'); + + e = 0; + }); + + // Fixes graphics glitch + if (w = this.windows[id]) { + // Fixes rendering bug after resize + w.element.hide(); + w.element.show(); + + // Forced a repaint of the window + //DOM.get(id).style.filter = ''; + + // IE has a bug where images used in CSS won't get loaded + // sometimes when the cache in the browser is disabled + // This fix tries to solve it by loading the images using the image object + each(DOM.select('div,a', id), function(e, i) { + if (e.currentStyle.backgroundImage != 'none') { + img = new Image(); + img.src = e.currentStyle.backgroundImage.replace(/url\(\"(.+)\"\)/, '$1'); + } + }); + + DOM.get(id).style.filter = ''; + } + } + }); + + // Register plugin + tinymce.PluginManager.add('inlinepopups', tinymce.plugins.InlinePopups); +})(); + diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif new file mode 100644 index 0000000..94abd08 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif new file mode 100644 index 0000000..e671094 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif new file mode 100644 index 0000000..6baf64a Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif new file mode 100644 index 0000000..497307a Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif new file mode 100644 index 0000000..c894b2e Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif new file mode 100644 index 0000000..c2a2ad4 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif new file mode 100644 index 0000000..43a735f Binary files /dev/null and b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif differ diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css new file mode 100644 index 0000000..5e6fd7d --- /dev/null +++ b/sn_templates/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css @@ -0,0 +1,90 @@ +/* Clearlooks 2 */ + +/* Reset */ +.clearlooks2, .clearlooks2 div, .clearlooks2 span, .clearlooks2 a {vertical-align:baseline; text-align:left; position:absolute; border:0; padding:0; margin:0; background:transparent; font-family:Arial,Verdana; font-size:11px; color:#000; text-decoration:none; font-weight:normal; width:auto; height:auto; overflow:hidden; display:block} + +/* General */ +.clearlooks2 {position:absolute; direction:ltr} +.clearlooks2 .mceWrapper {position:static} +.mceEventBlocker {position:fixed; left:0; top:0; background:url(img/horizontal.gif) no-repeat 0 -75px; width:100%; height:100%} +.clearlooks2 .mcePlaceHolder {border:1px solid #000; background:#888; top:0; left:0; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50)} +.clearlooks2_modalBlocker {position:fixed; left:0; top:0; width:100%; height:100%; background:#FFF; opacity:0.6; -ms-filter:'alpha(opacity=60)'; filter:alpha(opacity=60); display:none} + +/* Top */ +.clearlooks2 .mceTop, .clearlooks2 .mceTop div {top:0; width:100%; height:23px} +.clearlooks2 .mceTop .mceLeft {width:6px; background:url(img/corners.gif)} +.clearlooks2 .mceTop .mceCenter {right:6px; width:100%; height:23px; background:url(img/horizontal.gif) 12px 0; clip:rect(auto auto auto 12px)} +.clearlooks2 .mceTop .mceRight {right:0; width:6px; height:23px; background:url(img/corners.gif) -12px 0} +.clearlooks2 .mceTop span {width:100%; text-align:center; vertical-align:middle; line-height:23px; font-weight:bold} +.clearlooks2 .mceFocus .mceTop .mceLeft {background:url(img/corners.gif) -6px 0} +.clearlooks2 .mceFocus .mceTop .mceCenter {background:url(img/horizontal.gif) 0 -23px} +.clearlooks2 .mceFocus .mceTop .mceRight {background:url(img/corners.gif) -18px 0} +.clearlooks2 .mceFocus .mceTop span {color:#FFF} + +/* Middle */ +.clearlooks2 .mceMiddle, .clearlooks2 .mceMiddle div {top:0} +.clearlooks2 .mceMiddle {width:100%; height:100%; clip:rect(23px auto auto auto)} +.clearlooks2 .mceMiddle .mceLeft {left:0; width:5px; height:100%; background:url(img/vertical.gif) -5px 0} +.clearlooks2 .mceMiddle span {top:23px; left:5px; width:100%; height:100%; background:#FFF} +.clearlooks2 .mceMiddle .mceRight {right:0; width:5px; height:100%; background:url(img/vertical.gif)} + +/* Bottom */ +.clearlooks2 .mceBottom, .clearlooks2 .mceBottom div {height:6px} +.clearlooks2 .mceBottom {left:0; bottom:0; width:100%} +.clearlooks2 .mceBottom div {top:0} +.clearlooks2 .mceBottom .mceLeft {left:0; width:5px; background:url(img/corners.gif) -34px -6px} +.clearlooks2 .mceBottom .mceCenter {left:5px; width:100%; background:url(img/horizontal.gif) 0 -46px} +.clearlooks2 .mceBottom .mceRight {right:0; width:5px; background: url(img/corners.gif) -34px 0} +.clearlooks2 .mceBottom span {display:none} +.clearlooks2 .mceStatusbar .mceBottom, .clearlooks2 .mceStatusbar .mceBottom div {height:23px} +.clearlooks2 .mceStatusbar .mceBottom .mceLeft {background:url(img/corners.gif) -29px 0} +.clearlooks2 .mceStatusbar .mceBottom .mceCenter {background:url(img/horizontal.gif) 0 -52px} +.clearlooks2 .mceStatusbar .mceBottom .mceRight {background:url(img/corners.gif) -24px 0} +.clearlooks2 .mceStatusbar .mceBottom span {display:block; left:7px; font-family:Arial, Verdana; font-size:11px; line-height:23px} + +/* Actions */ +.clearlooks2 a {width:29px; height:16px; top:3px;} +.clearlooks2 .mceClose {right:6px; background:url(img/buttons.gif) -87px 0} +.clearlooks2 .mceMin {display:none; right:68px; background:url(img/buttons.gif) 0 0} +.clearlooks2 .mceMed {display:none; right:37px; background:url(img/buttons.gif) -29px 0} +.clearlooks2 .mceMax {display:none; right:37px; background:url(img/buttons.gif) -58px 0} +.clearlooks2 .mceMove {display:none;width:100%;cursor:move;background:url(img/corners.gif) no-repeat -100px -100px} +.clearlooks2 .mceMovable .mceMove {display:block} +.clearlooks2 .mceFocus .mceClose {right:6px; background:url(img/buttons.gif) -87px -16px} +.clearlooks2 .mceFocus .mceMin {right:68px; background:url(img/buttons.gif) 0 -16px} +.clearlooks2 .mceFocus .mceMed {right:37px; background:url(img/buttons.gif) -29px -16px} +.clearlooks2 .mceFocus .mceMax {right:37px; background:url(img/buttons.gif) -58px -16px} +.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px} +.clearlooks2 .mceFocus .mceClose:hover {right:6px; background:url(img/buttons.gif) -87px -32px} +.clearlooks2 .mceFocus .mceMin:hover {right:68px; background:url(img/buttons.gif) 0 -32px} +.clearlooks2 .mceFocus .mceMed:hover {right:37px; background:url(img/buttons.gif) -29px -32px} +.clearlooks2 .mceFocus .mceMax:hover {right:37px; background:url(img/buttons.gif) -58px -32px} + +/* Resize */ +.clearlooks2 .mceResize {top:auto; left:auto; display:none; width:5px; height:5px; background:url(img/horizontal.gif) no-repeat 0 -75px} +.clearlooks2 .mceResizable .mceResize {display:block} +.clearlooks2 .mceResizable .mceMin, .clearlooks2 .mceMax {display:none} +.clearlooks2 .mceMinimizable .mceMin {display:block} +.clearlooks2 .mceMaximizable .mceMax {display:block} +.clearlooks2 .mceMaximized .mceMed {display:block} +.clearlooks2 .mceMaximized .mceMax {display:none} +.clearlooks2 a.mceResizeN {top:0; left:0; width:100%; cursor:n-resize} +.clearlooks2 a.mceResizeNW {top:0; left:0; cursor:nw-resize} +.clearlooks2 a.mceResizeNE {top:0; right:0; cursor:ne-resize} +.clearlooks2 a.mceResizeW {top:0; left:0; height:100%; cursor:w-resize;} +.clearlooks2 a.mceResizeE {top:0; right:0; height:100%; cursor:e-resize} +.clearlooks2 a.mceResizeS {bottom:0; left:0; width:100%; cursor:s-resize} +.clearlooks2 a.mceResizeSW {bottom:0; left:0; cursor:sw-resize} +.clearlooks2 a.mceResizeSE {bottom:0; right:0; cursor:se-resize} + +/* Alert/Confirm */ +.clearlooks2 .mceButton {font-weight:bold; bottom:10px; width:80px; height:30px; background:url(img/button.gif); line-height:30px; vertical-align:middle; text-align:center; outline:0} +.clearlooks2 .mceMiddle .mceIcon {left:15px; top:35px; width:32px; height:32px} +.clearlooks2 .mceAlert .mceMiddle span, .clearlooks2 .mceConfirm .mceMiddle span {background:transparent;left:60px; top:35px; width:320px; height:50px; font-weight:bold; overflow:auto; white-space:normal} +.clearlooks2 a:hover {font-weight:bold;} +.clearlooks2 .mceAlert .mceMiddle, .clearlooks2 .mceConfirm .mceMiddle {background:#D6D7D5} +.clearlooks2 .mceAlert .mceOk {left:50%; top:auto; margin-left: -40px} +.clearlooks2 .mceAlert .mceIcon {background:url(img/alert.gif)} +.clearlooks2 .mceConfirm .mceOk {left:50%; top:auto; margin-left: -90px} +.clearlooks2 .mceConfirm .mceCancel {left:50%; top:auto} +.clearlooks2 .mceConfirm .mceIcon {background:url(img/confirm.gif)} \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/inlinepopups/template.htm b/sn_templates/tiny_mce/plugins/inlinepopups/template.htm new file mode 100644 index 0000000..c98fe41 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/inlinepopups/template.htm @@ -0,0 +1,387 @@ + + + +Template for dialogs + + + + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Blured +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Focused +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Statusbar +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Statusbar, Resizable +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Resizable, Maximizable +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Blurred, Maximizable, Statusbar, Resizable +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Maximized, Maximizable, Minimizable +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Blured +
                                                + +
                                                +
                                                + Content +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + Statusbar text. +
                                                + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Alert +
                                                + +
                                                +
                                                + + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                + + + Ok + +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + Confirm +
                                                + +
                                                +
                                                + + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + This is a very long error message. This is a very long error message. + +
                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                + + + Ok + Cancel + +
                                                +
                                                +
                                                + + + diff --git a/sn_templates/tiny_mce/plugins/insertdatetime/editor_plugin.js b/sn_templates/tiny_mce/plugins/insertdatetime/editor_plugin.js new file mode 100644 index 0000000..938ce6b --- /dev/null +++ b/sn_templates/tiny_mce/plugins/insertdatetime/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.InsertDateTime",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceInsertDate",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_dateFormat",a.getLang("insertdatetime.date_fmt")));a.execCommand("mceInsertContent",false,d)});a.addCommand("mceInsertTime",function(){var d=c._getDateTime(new Date(),a.getParam("plugin_insertdate_timeFormat",a.getLang("insertdatetime.time_fmt")));a.execCommand("mceInsertContent",false,d)});a.addButton("insertdate",{title:"insertdatetime.insertdate_desc",cmd:"mceInsertDate"});a.addButton("inserttime",{title:"insertdatetime.inserttime_desc",cmd:"mceInsertTime"})},getInfo:function(){return{longname:"Insert date/time",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/insertdatetime",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_getDateTime:function(e,a){var c=this.editor;function b(g,d){g=""+g;if(g.length-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{if(g[c]>0){a[c].style.zIndex=g[c]-1}}}else{for(f=0;fg[c]){j=f;break}}if(j>-1){a[c].style.zIndex=g[j];a[j].style.zIndex=g[c]}else{a[c].style.zIndex=g[c]+1}}b.execCommand("mceRepaint")},_getParentLayer:function(a){return this.editor.dom.getParent(a,function(b){return b.nodeType==1&&/^(absolute|relative|static)$/i.test(b.style.position)})},_insertLayer:function(){var a=this.editor,b=a.dom.getPos(a.dom.getParent(a.selection.getNode(),"*"));a.dom.add(a.getBody(),"div",{style:{position:"absolute",left:b.x,top:(b.y>20?b.y:20),width:100,height:100},"class":"mceItemVisualAid"},a.selection.getContent()||a.getLang("layer.content"))},_toggleAbsolute:function(){var a=this.editor,b=this._getParentLayer(a.selection.getNode());if(!b){b=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")}if(b){if(b.style.position.toLowerCase()=="absolute"){a.dom.setStyles(b,{position:"",left:"",top:"",width:"",height:""});a.dom.removeClass(b,"mceItemVisualAid")}else{if(b.style.left==""){b.style.left=20+"px"}if(b.style.top==""){b.style.top=20+"px"}if(b.style.width==""){b.style.width=b.width?(b.width+"px"):"100px"}if(b.style.height==""){b.style.height=b.height?(b.height+"px"):"100px"}b.style.position="absolute";a.addVisual(a.getBody())}a.execCommand("mceRepaint");a.nodeChanged()}}});tinymce.PluginManager.add("layer",tinymce.plugins.Layer)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/layer/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/layer/editor_plugin_src.js new file mode 100644 index 0000000..701de1a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/layer/editor_plugin_src.js @@ -0,0 +1,212 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Layer', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceInsertLayer', t._insertLayer, t); + + ed.addCommand('mceMoveForward', function() { + t._move(1); + }); + + ed.addCommand('mceMoveBackward', function() { + t._move(-1); + }); + + ed.addCommand('mceMakeAbsolute', function() { + t._toggleAbsolute(); + }); + + // Register buttons + ed.addButton('moveforward', {title : 'layer.forward_desc', cmd : 'mceMoveForward'}); + ed.addButton('movebackward', {title : 'layer.backward_desc', cmd : 'mceMoveBackward'}); + ed.addButton('absolute', {title : 'layer.absolute_desc', cmd : 'mceMakeAbsolute'}); + ed.addButton('insertlayer', {title : 'layer.insertlayer_desc', cmd : 'mceInsertLayer'}); + + ed.onInit.add(function() { + if (tinymce.isIE) + ed.getDoc().execCommand('2D-Position', false, true); + }); + + ed.onNodeChange.add(t._nodeChange, t); + ed.onVisualAid.add(t._visualAid, t); + }, + + getInfo : function() { + return { + longname : 'Layer', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/layer', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var le, p; + + le = this._getParentLayer(n); + p = ed.dom.getParent(n, 'DIV,P,IMG'); + + if (!p) { + cm.setDisabled('absolute', 1); + cm.setDisabled('moveforward', 1); + cm.setDisabled('movebackward', 1); + } else { + cm.setDisabled('absolute', 0); + cm.setDisabled('moveforward', !le); + cm.setDisabled('movebackward', !le); + cm.setActive('absolute', le && le.style.position.toLowerCase() == "absolute"); + } + }, + + // Private methods + + _visualAid : function(ed, e, s) { + var dom = ed.dom; + + tinymce.each(dom.select('div,p', e), function(e) { + if (/^(absolute|relative|static)$/i.test(e.style.position)) { + if (s) + dom.addClass(e, 'mceItemVisualAid'); + else + dom.removeClass(e, 'mceItemVisualAid'); + } + }); + }, + + _move : function(d) { + var ed = this.editor, i, z = [], le = this._getParentLayer(ed.selection.getNode()), ci = -1, fi = -1, nl; + + nl = []; + tinymce.walk(ed.getBody(), function(n) { + if (n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position)) + nl.push(n); + }, 'childNodes'); + + // Find z-indexes + for (i=0; i -1) { + nl[ci].style.zIndex = z[fi]; + nl[fi].style.zIndex = z[ci]; + } else { + if (z[ci] > 0) + nl[ci].style.zIndex = z[ci] - 1; + } + } else { + // Move forward + + // Try find a higher one + for (i=0; i z[ci]) { + fi = i; + break; + } + } + + if (fi > -1) { + nl[ci].style.zIndex = z[fi]; + nl[fi].style.zIndex = z[ci]; + } else + nl[ci].style.zIndex = z[ci] + 1; + } + + ed.execCommand('mceRepaint'); + }, + + _getParentLayer : function(n) { + return this.editor.dom.getParent(n, function(n) { + return n.nodeType == 1 && /^(absolute|relative|static)$/i.test(n.style.position); + }); + }, + + _insertLayer : function() { + var ed = this.editor, p = ed.dom.getPos(ed.dom.getParent(ed.selection.getNode(), '*')); + + ed.dom.add(ed.getBody(), 'div', { + style : { + position : 'absolute', + left : p.x, + top : (p.y > 20 ? p.y : 20), + width : 100, + height : 100 + }, + 'class' : 'mceItemVisualAid' + }, ed.selection.getContent() || ed.getLang('layer.content')); + }, + + _toggleAbsolute : function() { + var ed = this.editor, le = this._getParentLayer(ed.selection.getNode()); + + if (!le) + le = ed.dom.getParent(ed.selection.getNode(), 'DIV,P,IMG'); + + if (le) { + if (le.style.position.toLowerCase() == "absolute") { + ed.dom.setStyles(le, { + position : '', + left : '', + top : '', + width : '', + height : '' + }); + + ed.dom.removeClass(le, 'mceItemVisualAid'); + } else { + if (le.style.left == "") + le.style.left = 20 + 'px'; + + if (le.style.top == "") + le.style.top = 20 + 'px'; + + if (le.style.width == "") + le.style.width = le.width ? (le.width + 'px') : '100px'; + + if (le.style.height == "") + le.style.height = le.height ? (le.height + 'px') : '100px'; + + le.style.position = "absolute"; + ed.addVisual(ed.getBody()); + } + + ed.execCommand('mceRepaint'); + ed.nodeChanged(); + } + } + }); + + // Register plugin + tinymce.PluginManager.add('layer', tinymce.plugins.Layer); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/legacyoutput/editor_plugin.js b/sn_templates/tiny_mce/plugins/legacyoutput/editor_plugin.js new file mode 100644 index 0000000..29d43c5 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/legacyoutput/editor_plugin.js @@ -0,0 +1 @@ +(function(a){a.onAddEditor.addToTop(function(c,b){b.settings.inline_styles=false});a.create("tinymce.plugins.LegacyOutput",{init:function(b){b.onInit.add(function(){var c="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",e=a.explode(b.settings.font_size_style_values),d=b.serializer;b.formatter.register({alignleft:{selector:c,attributes:{align:"left"}},aligncenter:{selector:c,attributes:{align:"center"}},alignright:{selector:c,attributes:{align:"right"}},alignfull:{selector:c,attributes:{align:"full"}},bold:{inline:"b"},italic:{inline:"i"},underline:{inline:"u"},strikethrough:{inline:"strike"},fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(f){return a.inArray(e,f.value)+1}}},forecolor:{inline:"font",styles:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}});d._setup();a.each("b,i,u,strike".split(","),function(f){var g=d.rules[f];if(!g){d.addRules(f)}});if(!d.rules.font){d.addRules("font[face|size|color|style]")}a.each(c.split(","),function(f){var h=d.rules[f],g;if(h){a.each(h.attribs,function(j,i){if(i.name=="align"){g=true;return false}});if(!g){h.attribs.push({name:"align"})}}});b.onNodeChange.add(function(g,k){var j,f,h,i;f=g.dom.getParent(g.selection.getNode(),"font");if(f){h=f.face;i=f.size}if(j=k.get("fontselect")){j.select(function(l){return l==h})}if(j=k.get("fontsizeselect")){j.select(function(m){var l=a.inArray(e,m.fontSize);return l+1==i})}})})},getInfo:function(){return{longname:"LegacyOutput",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("legacyoutput",a.plugins.LegacyOutput)})(tinymce); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/legacyoutput/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/legacyoutput/editor_plugin_src.js new file mode 100644 index 0000000..3bbdb7b --- /dev/null +++ b/sn_templates/tiny_mce/plugins/legacyoutput/editor_plugin_src.js @@ -0,0 +1,136 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + * + * This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align + * attributes and so forth. There are a few cases where these old items might be needed for example in email applications or with Flash + * + * However you should NOT use this plugin if you are building some system that produces web contents such as a CMS. All these elements are + * not apart of the newer specifications for HTML and XHTML. + */ + +(function(tinymce) { + // Override inline_styles setting to force TinyMCE to produce deprecated contents + tinymce.onAddEditor.addToTop(function(tinymce, editor) { + editor.settings.inline_styles = false; + }); + + // Create the legacy ouput plugin + tinymce.create('tinymce.plugins.LegacyOutput', { + init : function(editor) { + editor.onInit.add(function() { + var alignElements = 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', + fontSizes = tinymce.explode(editor.settings.font_size_style_values), + serializer = editor.serializer; + + // Override some internal formats to produce legacy elements and attributes + editor.formatter.register({ + // Change alignment formats to use the deprecated align attribute + alignleft : {selector : alignElements, attributes : {align : 'left'}}, + aligncenter : {selector : alignElements, attributes : {align : 'center'}}, + alignright : {selector : alignElements, attributes : {align : 'right'}}, + alignfull : {selector : alignElements, attributes : {align : 'full'}}, + + // Change the basic formatting elements to use deprecated element types + bold : {inline : 'b'}, + italic : {inline : 'i'}, + underline : {inline : 'u'}, + strikethrough : {inline : 'strike'}, + + // Change font size and font family to use the deprecated font element + fontname : {inline : 'font', attributes : {face : '%value'}}, + fontsize : { + inline : 'font', + attributes : { + size : function(vars) { + return tinymce.inArray(fontSizes, vars.value) + 1; + } + } + }, + + // Setup font elements for colors as well + forecolor : {inline : 'font', styles : {color : '%value'}}, + hilitecolor : {inline : 'font', styles : {backgroundColor : '%value'}} + }); + + // Force parsing of the serializer rules + serializer._setup(); + + // Check that deprecated elements are allowed if not add them + tinymce.each('b,i,u,strike'.split(','), function(name) { + var rule = serializer.rules[name]; + + if (!rule) + serializer.addRules(name); + }); + + // Add font element if it's missing + if (!serializer.rules["font"]) + serializer.addRules("font[face|size|color|style]"); + + // Add the missing and depreacted align attribute for the serialization engine + tinymce.each(alignElements.split(','), function(name) { + var rule = serializer.rules[name], found; + + if (rule) { + tinymce.each(rule.attribs, function(name, attr) { + if (attr.name == 'align') { + found = true; + return false; + } + }); + + if (!found) + rule.attribs.push({name : 'align'}); + } + }); + + // Listen for the onNodeChange event so that we can do special logic for the font size and font name drop boxes + editor.onNodeChange.add(function(editor, control_manager) { + var control, fontElm, fontName, fontSize; + + // Find font element get it's name and size + fontElm = editor.dom.getParent(editor.selection.getNode(), 'font'); + if (fontElm) { + fontName = fontElm.face; + fontSize = fontElm.size; + } + + // Select/unselect the font name in droplist + if (control = control_manager.get('fontselect')) { + control.select(function(value) { + return value == fontName; + }); + } + + // Select/unselect the font size in droplist + if (control = control_manager.get('fontsizeselect')) { + control.select(function(value) { + var index = tinymce.inArray(fontSizes, value.fontSize); + + return index + 1 == fontSize; + }); + } + }); + }); + }, + + getInfo : function() { + return { + longname : 'LegacyOutput', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/legacyoutput', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('legacyoutput', tinymce.plugins.LegacyOutput); +})(tinymce); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/media/css/content.css b/sn_templates/tiny_mce/plugins/media/css/content.css new file mode 100644 index 0000000..7739381 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/media/css/content.css @@ -0,0 +1,6 @@ +.mceItemFlash, .mceItemShockWave, .mceItemQuickTime, .mceItemWindowsMedia, .mceItemRealMedia {border:1px dotted #cc0000; background-position:center; background-repeat:no-repeat; background-color:#ffffcc;} +.mceItemShockWave {background-image: url(../img/shockwave.gif);} +.mceItemFlash {background-image:url(../img/flash.gif);} +.mceItemQuickTime {background-image:url(../img/quicktime.gif);} +.mceItemWindowsMedia {background-image:url(../img/windowsmedia.gif);} +.mceItemRealMedia {background-image:url(../img/realmedia.gif);} diff --git a/sn_templates/tiny_mce/plugins/media/css/media.css b/sn_templates/tiny_mce/plugins/media/css/media.css new file mode 100644 index 0000000..7b2253b --- /dev/null +++ b/sn_templates/tiny_mce/plugins/media/css/media.css @@ -0,0 +1,16 @@ +#id, #name, #hspace, #vspace, #class_name, #align { width: 100px } +#hspace, #vspace { width: 50px } +#flash_quality, #flash_align, #flash_scale, #flash_salign, #flash_wmode { width: 100px } +#flash_base, #flash_flashvars { width: 240px } +#width, #height { width: 40px } +#src, #media_type { width: 250px } +#class { width: 120px } +#prev { margin: 0; border: 1px solid black; width: 380px; height: 230px; overflow: auto } +.panel_wrapper div.current { height: 390px; overflow: auto } +#flash_options, #shockwave_options, #qt_options, #wmp_options, #rmp_options { display: none } +.mceAddSelectValue { background-color: #DDDDDD } +#qt_starttime, #qt_endtime, #qt_fov, #qt_href, #qt_moveid, #qt_moviename, #qt_node, #qt_pan, #qt_qtsrc, #qt_qtsrcchokespeed, #qt_target, #qt_tilt, #qt_urlsubstituten, #qt_volume { width: 70px } +#wmp_balance, #wmp_baseurl, #wmp_captioningid, #wmp_currentmarker, #wmp_currentposition, #wmp_defaultframe, #wmp_playcount, #wmp_rate, #wmp_uimode, #wmp_volume { width: 70px } +#rmp_console, #rmp_numloop, #rmp_controls, #rmp_scriptcallbacks { width: 70px } +#shockwave_swvolume, #shockwave_swframe, #shockwave_swurl, #shockwave_swstretchvalign, #shockwave_swstretchhalign, #shockwave_swstretchstyle { width: 90px } +#qt_qtsrc { width: 200px } diff --git a/sn_templates/tiny_mce/plugins/media/editor_plugin.js b/sn_templates/tiny_mce/plugins/media/editor_plugin.js new file mode 100644 index 0000000..4bbe367 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/media/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.MediaPlugin",{init:function(b,c){var e=this;e.editor=b;e.url=c;function f(g){return/^(mceItemFlash|mceItemShockWave|mceItemWindowsMedia|mceItemQuickTime|mceItemRealMedia)$/.test(g.className)}b.onPreInit.add(function(){b.serializer.addRules("param[name|value|_mce_value]")});b.addCommand("mceMedia",function(){b.windowManager.open({file:c+"/media.htm",width:430+parseInt(b.getLang("media.delta_width",0)),height:470+parseInt(b.getLang("media.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("media",{title:"media.desc",cmd:"mceMedia"});b.onNodeChange.add(function(h,g,i){g.setActive("media",i.nodeName=="IMG"&&f(i))});b.onInit.add(function(){var g={mceItemFlash:"flash",mceItemShockWave:"shockwave",mceItemWindowsMedia:"windowsmedia",mceItemQuickTime:"quicktime",mceItemRealMedia:"realmedia"};b.selection.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.selection.onBeforeSetContent.add(e._objectsToSpans,e);if(b.settings.content_css!==false){b.dom.loadCSS(c+"/css/content.css")}if(b.theme&&b.theme.onResolveName){b.theme.onResolveName.add(function(h,i){if(i.name=="img"){a(g,function(l,j){if(b.dom.hasClass(i.node,j)){i.name=l;i.title=b.dom.getAttrib(i.node,"title");return false}})}})}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(i,h,j){if(j.nodeName=="IMG"&&/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(j.className)){h.add({title:"media.edit",icon:"media",cmd:"mceMedia"})}})}});b.onBeforeSetContent.add(e._objectsToSpans,e);b.onSetContent.add(function(){e._spansToImgs(b.getBody())});b.onPreProcess.add(function(g,i){var h=g.dom;if(i.set){e._spansToImgs(i.node);a(h.select("IMG",i.node),function(k){var j;if(f(k)){j=e._parse(k.title);h.setAttrib(k,"width",h.getAttrib(k,"width",j.width||100));h.setAttrib(k,"height",h.getAttrib(k,"height",j.height||100))}})}if(i.get){a(h.select("IMG",i.node),function(m){var l,j,k;if(g.getParam("media_use_script")){if(f(m)){m.className=m.className.replace(/mceItem/g,"mceTemp")}return}switch(m.className){case"mceItemFlash":l="d27cdb6e-ae6d-11cf-96b8-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="application/x-shockwave-flash";break;case"mceItemShockWave":l="166b1bca-3f9c-11cf-8075-444553540000";j="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0";k="application/x-director";break;case"mceItemWindowsMedia":l=g.getParam("media_wmp6_compatible")?"05589fa1-c356-11ce-bf01-00aa0055595a":"6bf52a52-394a-11d3-b153-00c04f79faa6";j="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701";k="application/x-mplayer2";break;case"mceItemQuickTime":l="02bf25d5-8c17-4b23-bc80-d3488abddc6b";j="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0";k="video/quicktime";break;case"mceItemRealMedia":l="cfcdaa03-8be4-11cf-b84b-0020afbbccfa";j="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";k="audio/x-pn-realaudio-plugin";break}if(l){h.replace(e._buildObj({classid:l,codebase:j,type:k},m),m)}})}});b.onPostProcess.add(function(g,h){h.content=h.content.replace(/_mce_value=/g,"value=")});function d(g,h){h=new RegExp(h+'="([^"]+)"',"g").exec(g);return h?b.dom.decode(h[1]):""}b.onPostProcess.add(function(g,h){if(g.getParam("media_use_script")){h.content=h.content.replace(/]+>/g,function(j){var i=d(j,"class");if(/^(mceTempFlash|mceTempShockWave|mceTempWindowsMedia|mceTempQuickTime|mceTempRealMedia)$/.test(i)){at=e._parse(d(j,"title"));at.width=d(j,"width");at.height=d(j,"height");j=''; + } + + return im; + }); + } + }); + }, + + getInfo : function() { + return { + longname : 'Media', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/media', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + _objectsToSpans : function(ed, o) { + var t = this, h = o.content; + + h = h.replace(/]*>\s*write(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)\(\{([^\)]*)\}\);\s*<\/script>/gi, function(a, b, c) { + var o = t._parse(c); + + return '' + }); + + h = h.replace(/]*)>/gi, ''); + h = h.replace(/]*)\/?>/gi, ''); + h = h.replace(/]*)>/gi, ''); + h = h.replace(/<\/(object)([^>]*)>/gi, ''); + h = h.replace(/<\/embed>/gi, ''); + h = h.replace(/]*)>/gi, function(a, b) {return ''}); + h = h.replace(/\/ class=\"mceItemParam\"><\/span>/gi, 'class="mceItemParam">'); + + o.content = h; + }, + + _buildObj : function(o, n) { + var ob, ed = this.editor, dom = ed.dom, p = this._parse(n.title), stc; + + stc = ed.getParam('media_strict', true) && o.type == 'application/x-shockwave-flash'; + + p.width = o.width = dom.getAttrib(n, 'width') || 100; + p.height = o.height = dom.getAttrib(n, 'height') || 100; + + if (p.src) + p.src = ed.convertURL(p.src, 'src', n); + + if (stc) { + ob = dom.create('span', { + id : p.id, + _mce_name : 'object', + type : 'application/x-shockwave-flash', + data : p.src, + style : dom.getAttrib(n, 'style'), + width : o.width, + height : o.height + }); + } else { + ob = dom.create('span', { + id : p.id, + _mce_name : 'object', + classid : "clsid:" + o.classid, + style : dom.getAttrib(n, 'style'), + codebase : o.codebase, + width : o.width, + height : o.height + }); + } + + each (p, function(v, k) { + if (!/^(width|height|codebase|classid|id|_cx|_cy)$/.test(k)) { + // Use url instead of src in IE for Windows media + if (o.type == 'application/x-mplayer2' && k == 'src' && !p.url) + k = 'url'; + + if (v) + dom.add(ob, 'span', {_mce_name : 'param', name : k, '_mce_value' : v}); + } + }); + + if (!stc) + dom.add(ob, 'span', tinymce.extend({_mce_name : 'embed', type : o.type, style : dom.getAttrib(n, 'style')}, p)); + + return ob; + }, + + _spansToImgs : function(p) { + var t = this, dom = t.editor.dom, im, ci; + + each(dom.select('span', p), function(n) { + // Convert object into image + if (dom.getAttrib(n, 'class') == 'mceItemObject') { + ci = dom.getAttrib(n, "classid").toLowerCase().replace(/\s+/g, ''); + + switch (ci) { + case 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000': + dom.replace(t._createImg('mceItemFlash', n), n); + break; + + case 'clsid:166b1bca-3f9c-11cf-8075-444553540000': + dom.replace(t._createImg('mceItemShockWave', n), n); + break; + + case 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6': + case 'clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95': + case 'clsid:05589fa1-c356-11ce-bf01-00aa0055595a': + dom.replace(t._createImg('mceItemWindowsMedia', n), n); + break; + + case 'clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b': + dom.replace(t._createImg('mceItemQuickTime', n), n); + break; + + case 'clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa': + dom.replace(t._createImg('mceItemRealMedia', n), n); + break; + + default: + dom.replace(t._createImg('mceItemFlash', n), n); + } + + return; + } + + // Convert embed into image + if (dom.getAttrib(n, 'class') == 'mceItemEmbed') { + switch (dom.getAttrib(n, 'type')) { + case 'application/x-shockwave-flash': + dom.replace(t._createImg('mceItemFlash', n), n); + break; + + case 'application/x-director': + dom.replace(t._createImg('mceItemShockWave', n), n); + break; + + case 'application/x-mplayer2': + dom.replace(t._createImg('mceItemWindowsMedia', n), n); + break; + + case 'video/quicktime': + dom.replace(t._createImg('mceItemQuickTime', n), n); + break; + + case 'audio/x-pn-realaudio-plugin': + dom.replace(t._createImg('mceItemRealMedia', n), n); + break; + + default: + dom.replace(t._createImg('mceItemFlash', n), n); + } + } + }); + }, + + _createImg : function(cl, n) { + var im, dom = this.editor.dom, pa = {}, ti = '', args; + + args = ['id', 'name', 'width', 'height', 'bgcolor', 'align', 'flashvars', 'src', 'wmode', 'allowfullscreen', 'quality', 'data']; + + // Create image + im = dom.create('img', { + src : this.url + '/img/trans.gif', + width : dom.getAttrib(n, 'width') || 100, + height : dom.getAttrib(n, 'height') || 100, + style : dom.getAttrib(n, 'style'), + 'class' : cl + }); + + // Setup base parameters + each(args, function(na) { + var v = dom.getAttrib(n, na); + + if (v) + pa[na] = v; + }); + + // Add optional parameters + each(dom.select('span', n), function(n) { + if (dom.hasClass(n, 'mceItemParam')) + pa[dom.getAttrib(n, 'name')] = dom.getAttrib(n, '_mce_value'); + }); + + // Use src not movie + if (pa.movie) { + pa.src = pa.movie; + delete pa.movie; + } + + // No src try data + if (!pa.src) { + pa.src = pa.data; + delete pa.data; + } + + // Merge with embed args + n = dom.select('.mceItemEmbed', n)[0]; + if (n) { + each(args, function(na) { + var v = dom.getAttrib(n, na); + + if (v && !pa[na]) + pa[na] = v; + }); + } + + delete pa.width; + delete pa.height; + + im.title = this._serialize(pa); + + return im; + }, + + _parse : function(s) { + return tinymce.util.JSON.parse('{' + s + '}'); + }, + + _serialize : function(o) { + return tinymce.util.JSON.serialize(o).replace(/[{}]/g, ''); + } + }); + + // Register plugin + tinymce.PluginManager.add('media', tinymce.plugins.MediaPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/media/img/flash.gif b/sn_templates/tiny_mce/plugins/media/img/flash.gif new file mode 100644 index 0000000..cb192e6 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/flash.gif differ diff --git a/sn_templates/tiny_mce/plugins/media/img/flv_player.swf b/sn_templates/tiny_mce/plugins/media/img/flv_player.swf new file mode 100644 index 0000000..042c2ab Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/flv_player.swf differ diff --git a/sn_templates/tiny_mce/plugins/media/img/quicktime.gif b/sn_templates/tiny_mce/plugins/media/img/quicktime.gif new file mode 100644 index 0000000..3b04991 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/quicktime.gif differ diff --git a/sn_templates/tiny_mce/plugins/media/img/realmedia.gif b/sn_templates/tiny_mce/plugins/media/img/realmedia.gif new file mode 100644 index 0000000..fdfe0b9 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/realmedia.gif differ diff --git a/sn_templates/tiny_mce/plugins/media/img/shockwave.gif b/sn_templates/tiny_mce/plugins/media/img/shockwave.gif new file mode 100644 index 0000000..5f235df Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/shockwave.gif differ diff --git a/sn_templates/tiny_mce/plugins/media/img/trans.gif b/sn_templates/tiny_mce/plugins/media/img/trans.gif new file mode 100644 index 0000000..3884865 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/trans.gif differ diff --git a/sn_templates/tiny_mce/plugins/media/img/windowsmedia.gif b/sn_templates/tiny_mce/plugins/media/img/windowsmedia.gif new file mode 100644 index 0000000..ab50f2d Binary files /dev/null and b/sn_templates/tiny_mce/plugins/media/img/windowsmedia.gif differ diff --git a/sn_templates/tiny_mce/plugins/media/js/embed.js b/sn_templates/tiny_mce/plugins/media/js/embed.js new file mode 100644 index 0000000..6fe25de --- /dev/null +++ b/sn_templates/tiny_mce/plugins/media/js/embed.js @@ -0,0 +1,73 @@ +/** + * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. + */ + +function writeFlash(p) { + writeEmbed( + 'D27CDB6E-AE6D-11cf-96B8-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'application/x-shockwave-flash', + p + ); +} + +function writeShockWave(p) { + writeEmbed( + '166B1BCA-3F9C-11CF-8075-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0', + 'application/x-director', + p + ); +} + +function writeQuickTime(p) { + writeEmbed( + '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', + 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0', + 'video/quicktime', + p + ); +} + +function writeRealMedia(p) { + writeEmbed( + 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'audio/x-pn-realaudio-plugin', + p + ); +} + +function writeWindowsMedia(p) { + p.url = p.src; + writeEmbed( + '6BF52A52-394A-11D3-B153-00C04F79FAA6', + 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701', + 'application/x-mplayer2', + p + ); +} + +function writeEmbed(cls, cb, mt, p) { + var h = '', n; + + h += ''; + + h += ''); + +function init() { + var pl = "", f, val; + var type = "flash", fe, i; + + ed = tinyMCEPopup.editor; + + tinyMCEPopup.resizeToInnerSize(); + f = document.forms[0] + + fe = ed.selection.getNode(); + if (/mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) { + pl = fe.title; + + switch (ed.dom.getAttrib(fe, 'class')) { + case 'mceItemFlash': + type = 'flash'; + break; + + case 'mceItemFlashVideo': + type = 'flv'; + break; + + case 'mceItemShockWave': + type = 'shockwave'; + break; + + case 'mceItemWindowsMedia': + type = 'wmp'; + break; + + case 'mceItemQuickTime': + type = 'qt'; + break; + + case 'mceItemRealMedia': + type = 'rmp'; + break; + } + + document.forms[0].insert.value = ed.getLang('update', 'Insert', true); + } + + document.getElementById('filebrowsercontainer').innerHTML = getBrowserHTML('filebrowser','src','media','media'); + document.getElementById('qtsrcfilebrowsercontainer').innerHTML = getBrowserHTML('qtsrcfilebrowser','qt_qtsrc','media','media'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + + var html = getMediaListHTML('medialist','src','media','media'); + if (html == "") + document.getElementById("linklistrow").style.display = 'none'; + else + document.getElementById("linklistcontainer").innerHTML = html; + + // Resize some elements + if (isVisible('filebrowser')) + document.getElementById('src').style.width = '230px'; + + // Setup form + if (pl != "") { + pl = tinyMCEPopup.editor.plugins.media._parse(pl); + + switch (type) { + case "flash": + setBool(pl, 'flash', 'play'); + setBool(pl, 'flash', 'loop'); + setBool(pl, 'flash', 'menu'); + setBool(pl, 'flash', 'swliveconnect'); + setStr(pl, 'flash', 'quality'); + setStr(pl, 'flash', 'scale'); + setStr(pl, 'flash', 'salign'); + setStr(pl, 'flash', 'wmode'); + setStr(pl, 'flash', 'base'); + setStr(pl, 'flash', 'flashvars'); + break; + + case "qt": + setBool(pl, 'qt', 'loop'); + setBool(pl, 'qt', 'autoplay'); + setBool(pl, 'qt', 'cache'); + setBool(pl, 'qt', 'controller'); + setBool(pl, 'qt', 'correction'); + setBool(pl, 'qt', 'enablejavascript'); + setBool(pl, 'qt', 'kioskmode'); + setBool(pl, 'qt', 'autohref'); + setBool(pl, 'qt', 'playeveryframe'); + setBool(pl, 'qt', 'tarsetcache'); + setStr(pl, 'qt', 'scale'); + setStr(pl, 'qt', 'starttime'); + setStr(pl, 'qt', 'endtime'); + setStr(pl, 'qt', 'tarset'); + setStr(pl, 'qt', 'qtsrcchokespeed'); + setStr(pl, 'qt', 'volume'); + setStr(pl, 'qt', 'qtsrc'); + break; + + case "shockwave": + setBool(pl, 'shockwave', 'sound'); + setBool(pl, 'shockwave', 'progress'); + setBool(pl, 'shockwave', 'autostart'); + setBool(pl, 'shockwave', 'swliveconnect'); + setStr(pl, 'shockwave', 'swvolume'); + setStr(pl, 'shockwave', 'swstretchstyle'); + setStr(pl, 'shockwave', 'swstretchhalign'); + setStr(pl, 'shockwave', 'swstretchvalign'); + break; + + case "wmp": + setBool(pl, 'wmp', 'autostart'); + setBool(pl, 'wmp', 'enabled'); + setBool(pl, 'wmp', 'enablecontextmenu'); + setBool(pl, 'wmp', 'fullscreen'); + setBool(pl, 'wmp', 'invokeurls'); + setBool(pl, 'wmp', 'mute'); + setBool(pl, 'wmp', 'stretchtofit'); + setBool(pl, 'wmp', 'windowlessvideo'); + setStr(pl, 'wmp', 'balance'); + setStr(pl, 'wmp', 'baseurl'); + setStr(pl, 'wmp', 'captioningid'); + setStr(pl, 'wmp', 'currentmarker'); + setStr(pl, 'wmp', 'currentposition'); + setStr(pl, 'wmp', 'defaultframe'); + setStr(pl, 'wmp', 'playcount'); + setStr(pl, 'wmp', 'rate'); + setStr(pl, 'wmp', 'uimode'); + setStr(pl, 'wmp', 'volume'); + break; + + case "rmp": + setBool(pl, 'rmp', 'autostart'); + setBool(pl, 'rmp', 'loop'); + setBool(pl, 'rmp', 'autogotourl'); + setBool(pl, 'rmp', 'center'); + setBool(pl, 'rmp', 'imagestatus'); + setBool(pl, 'rmp', 'maintainaspect'); + setBool(pl, 'rmp', 'nojava'); + setBool(pl, 'rmp', 'prefetch'); + setBool(pl, 'rmp', 'shuffle'); + setStr(pl, 'rmp', 'console'); + setStr(pl, 'rmp', 'controls'); + setStr(pl, 'rmp', 'numloop'); + setStr(pl, 'rmp', 'scriptcallbacks'); + break; + } + + setStr(pl, null, 'src'); + setStr(pl, null, 'id'); + setStr(pl, null, 'name'); + setStr(pl, null, 'vspace'); + setStr(pl, null, 'hspace'); + setStr(pl, null, 'bgcolor'); + setStr(pl, null, 'align'); + setStr(pl, null, 'width'); + setStr(pl, null, 'height'); + + if ((val = ed.dom.getAttrib(fe, "width")) != "") + pl.width = f.width.value = val; + + if ((val = ed.dom.getAttrib(fe, "height")) != "") + pl.height = f.height.value = val; + + oldWidth = pl.width ? parseInt(pl.width) : 0; + oldHeight = pl.height ? parseInt(pl.height) : 0; + } else + oldWidth = oldHeight = 0; + + selectByValue(f, 'media_type', type); + changedType(type); + updateColor('bgcolor_pick', 'bgcolor'); + + TinyMCE_EditableSelects.init(); + generatePreview(); +} + +function insertMedia() { + var fe, f = document.forms[0], h; + + tinyMCEPopup.restoreSelection(); + + if (!AutoValidator.validate(f)) { + tinyMCEPopup.alert(ed.getLang('invalid_data')); + return false; + } + + f.width.value = f.width.value == "" ? 100 : f.width.value; + f.height.value = f.height.value == "" ? 100 : f.height.value; + + fe = ed.selection.getNode(); + if (fe != null && /mceItem(Flash|ShockWave|WindowsMedia|QuickTime|RealMedia)/.test(ed.dom.getAttrib(fe, 'class'))) { + switch (f.media_type.options[f.media_type.selectedIndex].value) { + case "flash": + fe.className = "mceItemFlash"; + break; + + case "flv": + fe.className = "mceItemFlashVideo"; + break; + + case "shockwave": + fe.className = "mceItemShockWave"; + break; + + case "qt": + fe.className = "mceItemQuickTime"; + break; + + case "wmp": + fe.className = "mceItemWindowsMedia"; + break; + + case "rmp": + fe.className = "mceItemRealMedia"; + break; + } + + if (fe.width != f.width.value || fe.height != f.height.value) + ed.execCommand('mceRepaint'); + + fe.title = serializeParameters(); + fe.width = f.width.value; + fe.height = f.height.value; + fe.style.width = f.width.value + (f.width.value.indexOf('%') == -1 ? 'px' : ''); + fe.style.height = f.height.value + (f.height.value.indexOf('%') == -1 ? 'px' : ''); + fe.align = f.align.options[f.align.selectedIndex].value; + } else { + h = ' 0) { + var html = ""; + + html += ''; + + return html; + } + + return ""; +} + +function getType(v) { + var fo, i, c, el, x, f = document.forms[0]; + + fo = ed.getParam("media_types", "flash=swf;flv=flv;shockwave=dcr;qt=mov,qt,mpg,mp3,mp4,mpeg;shockwave=dcr;wmp=avi,wmv,wm,asf,asx,wmx,wvx;rmp=rm,ra,ram").split(';'); + + // YouTube + if (v.match(/watch\?v=(.+)(.*)/)) { + f.width.value = '425'; + f.height.value = '350'; + f.src.value = 'http://www.youtube.com/v/' + v.match(/v=(.*)(.*)/)[0].split('=')[1]; + return 'flash'; + } + + // Google video + if (v.indexOf('http://video.google.com/videoplay?docid=') == 0) { + f.width.value = '425'; + f.height.value = '326'; + f.src.value = 'http://video.google.com/googleplayer.swf?docId=' + v.substring('http://video.google.com/videoplay?docid='.length) + '&hl=en'; + return 'flash'; + } + + for (i=0; i 0 ? s.substring(0, s.length - 1) : s; + + return s; +} + +function setBool(pl, p, n) { + if (typeof(pl[n]) == "undefined") + return; + + document.forms[0].elements[p + "_" + n].checked = pl[n] != 'false'; +} + +function setStr(pl, p, n) { + var f = document.forms[0], e = f.elements[(p != null ? p + "_" : '') + n]; + + if (typeof(pl[n]) == "undefined") + return; + + if (e.type == "text") + e.value = pl[n]; + else + selectByValue(f, (p != null ? p + "_" : '') + n, pl[n]); +} + +function getBool(p, n, d, tv, fv) { + var v = document.forms[0].elements[p + "_" + n].checked; + + tv = typeof(tv) == 'undefined' ? 'true' : "'" + jsEncode(tv) + "'"; + fv = typeof(fv) == 'undefined' ? 'false' : "'" + jsEncode(fv) + "'"; + + return (v == d) ? '' : n + (v ? ':' + tv + ',' : ":\'" + fv + "\',"); +} + +function getStr(p, n, d) { + var e = document.forms[0].elements[(p != null ? p + "_" : "") + n]; + var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value; + + if (n == 'src') + v = tinyMCEPopup.editor.convertURL(v, 'src', null); + + return ((n == d || v == '') ? '' : n + ":'" + jsEncode(v) + "',"); +} + +function getInt(p, n, d) { + var e = document.forms[0].elements[(p != null ? p + "_" : "") + n]; + var v = e.type == "text" ? e.value : e.options[e.selectedIndex].value; + + return ((n == d || v == '') ? '' : n + ":" + v.replace(/[^0-9]+/g, '') + ","); +} + +function jsEncode(s) { + s = s.replace(new RegExp('\\\\', 'g'), '\\\\'); + s = s.replace(new RegExp('"', 'g'), '\\"'); + s = s.replace(new RegExp("'", 'g'), "\\'"); + + return s; +} + +function generatePreview(c) { + var f = document.forms[0], p = document.getElementById('prev'), h = '', cls, pl, n, type, codebase, wp, hp, nw, nh; + + p.innerHTML = ''; + + nw = parseInt(f.width.value); + nh = parseInt(f.height.value); + + if (f.width.value != "" && f.height.value != "") { + if (f.constrain.checked) { + if (c == 'width' && oldWidth != 0) { + wp = nw / oldWidth; + nh = Math.round(wp * nh); + f.height.value = nh; + } else if (c == 'height' && oldHeight != 0) { + hp = nh / oldHeight; + nw = Math.round(hp * nw); + f.width.value = nw; + } + } + } + + if (f.width.value != "") + oldWidth = nw; + + if (f.height.value != "") + oldHeight = nh; + + // After constrain + pl = serializeParameters(); + + switch (f.media_type.options[f.media_type.selectedIndex].value) { + case "flash": + cls = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'; + codebase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0'; + type = 'application/x-shockwave-flash'; + break; + + case "shockwave": + cls = 'clsid:166B1BCA-3F9C-11CF-8075-444553540000'; + codebase = 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0'; + type = 'application/x-director'; + break; + + case "qt": + cls = 'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'; + codebase = 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0'; + type = 'video/quicktime'; + break; + + case "wmp": + cls = ed.getParam('media_wmp6_compatible') ? 'clsid:05589FA1-C356-11CE-BF01-00AA0055595A' : 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6'; + codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; + type = 'application/x-mplayer2'; + break; + + case "rmp": + cls = 'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'; + codebase = 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'; + type = 'audio/x-pn-realaudio-plugin'; + break; + } + + if (pl == '') { + p.innerHTML = ''; + return; + } + + pl = tinyMCEPopup.editor.plugins.media._parse(pl); + + if (!pl.src) { + p.innerHTML = ''; + return; + } + + pl.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(pl.src); + pl.width = !pl.width ? 100 : pl.width; + pl.height = !pl.height ? 100 : pl.height; + pl.id = !pl.id ? 'obj' : pl.id; + pl.name = !pl.name ? 'eobj' : pl.name; + pl.align = !pl.align ? '' : pl.align; + + // Avoid annoying warning about insecure items + if (!tinymce.isIE || document.location.protocol != 'https:') { + h += ''; + + for (n in pl) { + h += ''; + + // Add extra url parameter if it's an absolute URL + if (n == 'src' && pl[n].indexOf('://') != -1) + h += ''; + } + } + + h += ' + + + {#media_dlg.title} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#media_dlg.general} + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                x   
                                                +
                                                +
                                                + +
                                                + {#media_dlg.preview} + +
                                                +
                                                + +
                                                +
                                                + {#media_dlg.advanced} + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + {#media_dlg.flash_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + +
                                                + + + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + + + + + + + +
                                                +
                                                + +
                                                + {#media_dlg.flv_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +
                                                + +
                                                + {#media_dlg.qt_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +  
                                                + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + {#media_dlg.wmp_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +
                                                + +
                                                + {#media_dlg.rmp_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +   +
                                                +
                                                + +
                                                + {#media_dlg.shockwave_options} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + + + +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/nonbreaking/editor_plugin.js b/sn_templates/tiny_mce/plugins/nonbreaking/editor_plugin.js new file mode 100644 index 0000000..f2dbbff --- /dev/null +++ b/sn_templates/tiny_mce/plugins/nonbreaking/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Nonbreaking",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceNonBreaking",function(){a.execCommand("mceInsertContent",false,(a.plugins.visualchars&&a.plugins.visualchars.state)?'·':" ")});a.addButton("nonbreaking",{title:"nonbreaking.nonbreaking_desc",cmd:"mceNonBreaking"});if(a.getParam("nonbreaking_force_tab")){a.onKeyDown.add(function(d,f){if(tinymce.isIE&&f.keyCode==9){d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");d.execCommand("mceNonBreaking");tinymce.dom.Event.cancel(f)}})}},getInfo:function(){return{longname:"Nonbreaking space",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("nonbreaking",tinymce.plugins.Nonbreaking)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/nonbreaking/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/nonbreaking/editor_plugin_src.js new file mode 100644 index 0000000..a9e68af --- /dev/null +++ b/sn_templates/tiny_mce/plugins/nonbreaking/editor_plugin_src.js @@ -0,0 +1,53 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Nonbreaking', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceNonBreaking', function() { + ed.execCommand('mceInsertContent', false, (ed.plugins.visualchars && ed.plugins.visualchars.state) ? '·' : ' '); + }); + + // Register buttons + ed.addButton('nonbreaking', {title : 'nonbreaking.nonbreaking_desc', cmd : 'mceNonBreaking'}); + + if (ed.getParam('nonbreaking_force_tab')) { + ed.onKeyDown.add(function(ed, e) { + if (tinymce.isIE && e.keyCode == 9) { + ed.execCommand('mceNonBreaking'); + ed.execCommand('mceNonBreaking'); + ed.execCommand('mceNonBreaking'); + tinymce.dom.Event.cancel(e); + } + }); + } + }, + + getInfo : function() { + return { + longname : 'Nonbreaking space', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/nonbreaking', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + + // Private methods + }); + + // Register plugin + tinymce.PluginManager.add('nonbreaking', tinymce.plugins.Nonbreaking); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/noneditable/editor_plugin.js b/sn_templates/tiny_mce/plugins/noneditable/editor_plugin.js new file mode 100644 index 0000000..9945cd8 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/noneditable/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.dom.Event;tinymce.create("tinymce.plugins.NonEditablePlugin",{init:function(d,e){var f=this,c,b;f.editor=d;c=d.getParam("noneditable_editable_class","mceEditable");b=d.getParam("noneditable_noneditable_class","mceNonEditable");d.onNodeChange.addToTop(function(h,g,k){var j,i;j=h.dom.getParent(h.selection.getStart(),function(l){return h.dom.hasClass(l,b)});i=h.dom.getParent(h.selection.getEnd(),function(l){return h.dom.hasClass(l,b)});if(j||i){f._setDisabled(1);return false}else{f._setDisabled(0)}})},getInfo:function(){return{longname:"Non editable elements",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_block:function(c,d){var b=d.keyCode;if((b>32&&b<41)||(b>111&&b<124)){return}return a.cancel(d)},_setDisabled:function(d){var c=this,b=c.editor;tinymce.each(b.controlManager.controls,function(e){e.setDisabled(d)});if(d!==c.disabled){if(d){b.onKeyDown.addToTop(c._block);b.onKeyPress.addToTop(c._block);b.onKeyUp.addToTop(c._block);b.onPaste.addToTop(c._block)}else{b.onKeyDown.remove(c._block);b.onKeyPress.remove(c._block);b.onKeyUp.remove(c._block);b.onPaste.remove(c._block)}c.disabled=d}}});tinymce.PluginManager.add("noneditable",tinymce.plugins.NonEditablePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/noneditable/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/noneditable/editor_plugin_src.js new file mode 100644 index 0000000..54a7b36 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/noneditable/editor_plugin_src.js @@ -0,0 +1,90 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var Event = tinymce.dom.Event; + + tinymce.create('tinymce.plugins.NonEditablePlugin', { + init : function(ed, url) { + var t = this, editClass, nonEditClass; + + t.editor = ed; + editClass = ed.getParam("noneditable_editable_class", "mceEditable"); + nonEditClass = ed.getParam("noneditable_noneditable_class", "mceNonEditable"); + + ed.onNodeChange.addToTop(function(ed, cm, n) { + var sc, ec; + + // Block if start or end is inside a non editable element + sc = ed.dom.getParent(ed.selection.getStart(), function(n) { + return ed.dom.hasClass(n, nonEditClass); + }); + + ec = ed.dom.getParent(ed.selection.getEnd(), function(n) { + return ed.dom.hasClass(n, nonEditClass); + }); + + // Block or unblock + if (sc || ec) { + t._setDisabled(1); + return false; + } else + t._setDisabled(0); + }); + }, + + getInfo : function() { + return { + longname : 'Non editable elements', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/noneditable', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + _block : function(ed, e) { + var k = e.keyCode; + + // Don't block arrow keys, pg up/down, and F1-F12 + if ((k > 32 && k < 41) || (k > 111 && k < 124)) + return; + + return Event.cancel(e); + }, + + _setDisabled : function(s) { + var t = this, ed = t.editor; + + tinymce.each(ed.controlManager.controls, function(c) { + c.setDisabled(s); + }); + + if (s !== t.disabled) { + if (s) { + ed.onKeyDown.addToTop(t._block); + ed.onKeyPress.addToTop(t._block); + ed.onKeyUp.addToTop(t._block); + ed.onPaste.addToTop(t._block); + } else { + ed.onKeyDown.remove(t._block); + ed.onKeyPress.remove(t._block); + ed.onKeyUp.remove(t._block); + ed.onPaste.remove(t._block); + } + + t.disabled = s; + } + } + }); + + // Register plugin + tinymce.PluginManager.add('noneditable', tinymce.plugins.NonEditablePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/pagebreak/css/content.css b/sn_templates/tiny_mce/plugins/pagebreak/css/content.css new file mode 100644 index 0000000..c949d58 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/pagebreak/css/content.css @@ -0,0 +1 @@ +.mcePageBreak {display:block;border:0;width:100%;height:12px;border-top:1px dotted #ccc;margin-top:15px;background:#fff url(../img/pagebreak.gif) no-repeat center top;} diff --git a/sn_templates/tiny_mce/plugins/pagebreak/editor_plugin.js b/sn_templates/tiny_mce/plugins/pagebreak/editor_plugin.js new file mode 100644 index 0000000..a212f69 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/pagebreak/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.PageBreakPlugin",{init:function(b,d){var f='',a="mcePageBreak",c=b.getParam("pagebreak_separator",""),e;e=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(g){return"\\"+g}),"g");b.addCommand("mcePageBreak",function(){b.execCommand("mceInsertContent",0,f)});b.addButton("pagebreak",{title:"pagebreak.desc",cmd:a});b.onInit.add(function(){if(b.settings.content_css!==false){b.dom.loadCSS(d+"/css/content.css")}if(b.theme.onResolveName){b.theme.onResolveName.add(function(g,h){if(h.node.nodeName=="IMG"&&b.dom.hasClass(h.node,a)){h.name="pagebreak"}})}});b.onClick.add(function(g,h){h=h.target;if(h.nodeName==="IMG"&&g.dom.hasClass(h,a)){g.selection.select(h)}});b.onNodeChange.add(function(h,g,i){g.setActive("pagebreak",i.nodeName==="IMG"&&h.dom.hasClass(i,a))});b.onBeforeSetContent.add(function(g,h){h.content=h.content.replace(e,f)});b.onPostProcess.add(function(g,h){if(h.get){h.content=h.content.replace(/]+>/g,function(i){if(i.indexOf('class="mcePageBreak')!==-1){i=c}return i})}})},getInfo:function(){return{longname:"PageBreak",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("pagebreak",tinymce.plugins.PageBreakPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/pagebreak/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/pagebreak/editor_plugin_src.js new file mode 100644 index 0000000..905a743 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/pagebreak/editor_plugin_src.js @@ -0,0 +1,77 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.PageBreakPlugin', { + init : function(ed, url) { + var pb = '', cls = 'mcePageBreak', sep = ed.getParam('pagebreak_separator', ''), pbRE; + + pbRE = new RegExp(sep.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g, function(a) {return '\\' + a;}), 'g'); + + // Register commands + ed.addCommand('mcePageBreak', function() { + ed.execCommand('mceInsertContent', 0, pb); + }); + + // Register buttons + ed.addButton('pagebreak', {title : 'pagebreak.desc', cmd : cls}); + + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + "/css/content.css"); + + if (ed.theme.onResolveName) { + ed.theme.onResolveName.add(function(th, o) { + if (o.node.nodeName == 'IMG' && ed.dom.hasClass(o.node, cls)) + o.name = 'pagebreak'; + }); + } + }); + + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'IMG' && ed.dom.hasClass(e, cls)) + ed.selection.select(e); + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setActive('pagebreak', n.nodeName === 'IMG' && ed.dom.hasClass(n, cls)); + }); + + ed.onBeforeSetContent.add(function(ed, o) { + o.content = o.content.replace(pbRE, pb); + }); + + ed.onPostProcess.add(function(ed, o) { + if (o.get) + o.content = o.content.replace(/]+>/g, function(im) { + if (im.indexOf('class="mcePageBreak') !== -1) + im = sep; + + return im; + }); + }); + }, + + getInfo : function() { + return { + longname : 'PageBreak', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/pagebreak', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('pagebreak', tinymce.plugins.PageBreakPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/pagebreak/img/pagebreak.gif b/sn_templates/tiny_mce/plugins/pagebreak/img/pagebreak.gif new file mode 100644 index 0000000..acdf408 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/pagebreak/img/pagebreak.gif differ diff --git a/sn_templates/tiny_mce/plugins/pagebreak/img/trans.gif b/sn_templates/tiny_mce/plugins/pagebreak/img/trans.gif new file mode 100644 index 0000000..3884865 Binary files /dev/null and b/sn_templates/tiny_mce/plugins/pagebreak/img/trans.gif differ diff --git a/sn_templates/tiny_mce/plugins/paste/editor_plugin.js b/sn_templates/tiny_mce/plugins/paste/editor_plugin.js new file mode 100644 index 0000000..3e7b250 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/editor_plugin.js @@ -0,0 +1 @@ +(function(){var c=tinymce.each,d=null,a={paste_auto_cleanup_on_paste:true,paste_block_drop:false,paste_retain_style_properties:"none",paste_strip_class_attributes:"mso",paste_remove_spans:false,paste_remove_styles:false,paste_remove_styles_if_webkit:true,paste_convert_middot_lists:true,paste_convert_headers_to_strong:false,paste_dialog_width:"450",paste_dialog_height:"400",paste_text_use_dialog:false,paste_text_sticky:false,paste_text_notifyalways:false,paste_text_linebreaktype:"p",paste_text_replacements:[[/\u2026/g,"..."],[/[\x93\x94\u201c\u201d]/g,'"'],[/[\x60\x91\x92\u2018\u2019]/g,"'"]]};function b(e,f){return e.getParam(f,a[f])}tinymce.create("tinymce.plugins.PastePlugin",{init:function(e,f){var g=this;g.editor=e;g.url=f;g.onPreProcess=new tinymce.util.Dispatcher(g);g.onPostProcess=new tinymce.util.Dispatcher(g);g.onPreProcess.add(g._preProcess);g.onPostProcess.add(g._postProcess);g.onPreProcess.add(function(j,k){e.execCallback("paste_preprocess",j,k)});g.onPostProcess.add(function(j,k){e.execCallback("paste_postprocess",j,k)});e.pasteAsPlainText=false;function i(l,j){var k=e.dom;g.onPreProcess.dispatch(g,l);l.node=k.create("div",0,l.content);g.onPostProcess.dispatch(g,l);l.content=e.serializer.serialize(l.node,{getInner:1});if((!j)&&(e.pasteAsPlainText)){g._insertPlainText(e,k,l.content);if(!b(e,"paste_text_sticky")){e.pasteAsPlainText=false;e.controlManager.setActive("pastetext",false)}}else{if(/<(p|h[1-6]|ul|ol)/.test(l.content)){g._insertBlockContent(e,k,l.content)}else{g._insert(l.content)}}}e.addCommand("mceInsertClipboardContent",function(j,k){i(k,true)});if(!b(e,"paste_text_use_dialog")){e.addCommand("mcePasteText",function(k,j){var l=tinymce.util.Cookie;e.pasteAsPlainText=!e.pasteAsPlainText;e.controlManager.setActive("pastetext",e.pasteAsPlainText);if((e.pasteAsPlainText)&&(!l.get("tinymcePasteText"))){if(b(e,"paste_text_sticky")){e.windowManager.alert(e.translate("paste.plaintext_mode_sticky"))}else{e.windowManager.alert(e.translate("paste.plaintext_mode_sticky"))}if(!b(e,"paste_text_notifyalways")){l.set("tinymcePasteText","1",new Date(new Date().getFullYear()+1,12,31))}}})}e.addButton("pastetext",{title:"paste.paste_text_desc",cmd:"mcePasteText"});e.addButton("selectall",{title:"paste.selectall_desc",cmd:"selectall"});function h(s){var m,q,k,l=e.selection,p=e.dom,r=e.getBody(),j;if(e.pasteAsPlainText&&(s.clipboardData||p.doc.dataTransfer)){s.preventDefault();i({content:(s.clipboardData||p.doc.dataTransfer).getData("Text")},true);return}if(p.get("_mcePaste")){return}m=p.add(r,"div",{id:"_mcePaste","class":"mcePaste"},"\uFEFF");if(r!=e.getDoc().body){j=p.getPos(e.selection.getStart(),r).y}else{j=r.scrollTop}p.setStyles(m,{position:"absolute",left:-10000,top:j,width:1,height:1,overflow:"hidden"});if(tinymce.isIE){k=p.doc.body.createTextRange();k.moveToElementText(m);k.execCommand("Paste");p.remove(m);if(m.innerHTML==="\uFEFF"){e.execCommand("mcePasteWord");s.preventDefault();return}i({content:m.innerHTML});return tinymce.dom.Event.cancel(s)}else{function o(n){n.preventDefault()}p.bind(e.getDoc(),"mousedown",o);p.bind(e.getDoc(),"keydown",o);q=e.selection.getRng();m=m.firstChild;k=e.getDoc().createRange();k.setStart(m,0);k.setEnd(m,1);l.setRng(k);window.setTimeout(function(){var t="",n=p.select("div.mcePaste");c(n,function(u){c(p.select("div.mcePaste",u),function(v){p.remove(v,1)});c(p.select("span.Apple-style-span",u),function(v){p.remove(v,1)});t+=u.innerHTML});c(n,function(u){p.remove(u)});if(q){l.setRng(q)}i({content:t});p.unbind(e.getDoc(),"mousedown",o);p.unbind(e.getDoc(),"keydown",o)},0)}}if(b(e,"paste_auto_cleanup_on_paste")){if(tinymce.isOpera||/Firefox\/2/.test(navigator.userAgent)){e.onKeyDown.add(function(j,k){if(((tinymce.isMac?k.metaKey:k.ctrlKey)&&k.keyCode==86)||(k.shiftKey&&k.keyCode==45)){h(k)}})}else{e.onPaste.addToTop(function(j,k){return h(k)})}}if(b(e,"paste_block_drop")){e.onInit.add(function(){e.dom.bind(e.getBody(),["dragend","dragover","draggesture","dragdrop","drop","drag"],function(j){j.preventDefault();j.stopPropagation();return false})})}g._legacySupport()},getInfo:function(){return{longname:"Paste text/word",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_preProcess:function(i,f){var l=this.editor,k=f.content,q=tinymce.grep,p=tinymce.explode,g=tinymce.trim,m,j;function e(h){c(h,function(o){if(o.constructor==RegExp){k=k.replace(o,"")}else{k=k.replace(o[0],o[1])}})}if(/class="?Mso|style="[^"]*\bmso-|w:WordDocument/i.test(k)||f.wordContent){f.wordContent=true;e([/^\s*( )+/gi,/( |]*>)+\s*$/gi]);if(b(l,"paste_convert_headers_to_strong")){k=k.replace(/

                                                ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"

                                                $1

                                                ")}if(b(l,"paste_convert_middot_lists")){e([[//gi,"$&__MCE_ITEM__"],[/(]+(?:mso-list:|:\s*symbol)[^>]+>)/gi,"$1__MCE_ITEM__"]])}e([//gi,/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi,[/<(\/?)s>/gi,"<$1strike>"],[/ /gi,"\u00a0"]]);do{m=k.length;k=k.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi,"$1")}while(m!=k.length);if(b(l,"paste_retain_style_properties").replace(/^none$/i,"").length==0){k=k.replace(/<\/?span[^>]*>/gi,"")}else{e([[/([\s\u00a0]*)<\/span>/gi,function(o,h){return(h.length>0)?h.replace(/./," ").slice(Math.floor(h.length/2)).split("").join("\u00a0"):""}],[/(<[a-z][^>]*)\sstyle="([^"]*)"/gi,function(u,h,t){var v=[],o=0,r=p(g(t).replace(/"/gi,"'"),";");c(r,function(s){var w,y,z=p(s,":");function x(A){return A+((A!=="0")&&(/\d$/.test(A)))?"px":""}if(z.length==2){w=z[0].toLowerCase();y=z[1].toLowerCase();switch(w){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":v[o++]=w.replace(/^mso-|-alt$/g,"")+":"+x(y);return;case"horiz-align":v[o++]="text-align:"+y;return;case"vert-align":v[o++]="vertical-align:"+y;return;case"font-color":case"mso-foreground":v[o++]="color:"+y;return;case"mso-background":case"mso-highlight":v[o++]="background:"+y;return;case"mso-default-height":v[o++]="min-height:"+x(y);return;case"mso-default-width":v[o++]="min-width:"+x(y);return;case"mso-padding-between-alt":v[o++]="border-collapse:separate;border-spacing:"+x(y);return;case"text-line-through":if((y=="single")||(y=="double")){v[o++]="text-decoration:line-through"}return;case"mso-zero-height":if(y=="yes"){v[o++]="display:none"}return}if(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(w)){return}v[o++]=w+":"+z[1]}});if(o>0){return h+' style="'+v.join(";")+'"'}else{return h}}]])}}if(b(l,"paste_convert_headers_to_strong")){e([[/]*>/gi,"

                                                "],[/<\/h[1-6][^>]*>/gi,"

                                                "]])}j=b(l,"paste_strip_class_attributes");if(j!=="none"){function n(r,o){if(j==="all"){return""}var h=q(p(o.replace(/^(["'])(.*)\1$/,"$2")," "),function(s){return(/^(?!mso)/i.test(s))});return h.length?' class="'+h.join(" ")+'"':""}k=k.replace(/ class="([^"]+)"/gi,n);k=k.replace(/ class=(\w+)/gi,n)}if(b(l,"paste_remove_spans")){k=k.replace(/<\/?span[^>]*>/gi,"")}f.content=k},_postProcess:function(h,j){var g=this,f=g.editor,i=f.dom,e;if(j.wordContent){c(i.select("a",j.node),function(k){if(!k.href||k.href.indexOf("#_Toc")!=-1){i.remove(k,1)}});if(b(f,"paste_convert_middot_lists")){g._convertLists(h,j)}e=b(f,"paste_retain_style_properties");if((tinymce.is(e,"string"))&&(e!=="all")&&(e!=="*")){e=tinymce.explode(e.replace(/^none$/i,""));c(i.select("*",j.node),function(n){var o={},l=0,m,p,k;if(e){for(m=0;m0){i.setStyles(n,o)}else{if(n.nodeName=="SPAN"&&!n.className){i.remove(n,true)}}})}}if(b(f,"paste_remove_styles")||(b(f,"paste_remove_styles_if_webkit")&&tinymce.isWebKit)){c(i.select("*[style]",j.node),function(k){k.removeAttribute("style");k.removeAttribute("_mce_style")})}else{if(tinymce.isWebKit){c(i.select("*",j.node),function(k){k.removeAttribute("_mce_style")})}}},_convertLists:function(h,f){var j=h.editor.dom,i,m,e=-1,g,n=[],l,k;c(j.select("p",f.node),function(u){var r,v="",t,s,o,q;for(r=u.firstChild;r&&r.nodeType==3;r=r.nextSibling){v+=r.nodeValue}v=u.innerHTML.replace(/<\/?\w+[^>]*>/gi,"").replace(/ /g,"\u00a0");if(/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(v)){t="ul"}if(/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(v)){t="ol"}if(t){g=parseFloat(u.style.marginLeft||0);if(g>e){n.push(g)}if(!i||t!=l){i=j.create(t);j.insertAfter(i,u)}else{if(g>e){i=m.appendChild(j.create(t))}else{if(g]*>/gi,"");if(t=="ul"&&/^[\u2022\u00b7\u00a7\u00d8o]/.test(p)){j.remove(w)}else{if(/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(p)){j.remove(w)}}});s=u.innerHTML;if(t=="ul"){s=u.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/,"")}else{s=u.innerHTML.replace(/__MCE_ITEM__/g,"").replace(/^\s*\w+\.( |\u00a0)+\s*/,"")}m=i.appendChild(j.create("li",0,s));j.remove(u);e=g;l=t}else{i=e=0}});k=f.node.innerHTML;if(k.indexOf("__MCE_ITEM__")!=-1){f.node.innerHTML=k.replace(/__MCE_ITEM__/g,"")}},_insertBlockContent:function(l,h,m){var f,j,g=l.selection,q,n,e,o,i,k="mce_marker";function p(t){var s;if(tinymce.isIE){s=l.getDoc().body.createTextRange();s.moveToElementText(t);s.collapse(false);s.select()}else{g.select(t,1);g.collapse(false)}}this._insert(' ',1);j=h.get(k);f=h.getParent(j,"p,h1,h2,h3,h4,h5,h6,ul,ol,th,td");if(f&&!/TD|TH/.test(f.nodeName)){j=h.split(f,j);c(h.create("div",0,m).childNodes,function(r){q=j.parentNode.insertBefore(r.cloneNode(true),j)});p(q)}else{h.setOuterHTML(j,m);g.select(l.getBody(),1);g.collapse(0)}while(n=h.get(k)){h.remove(n)}n=g.getStart();e=h.getViewPort(l.getWin());o=l.dom.getPos(n).y;i=n.clientHeight;if(oe.y+e.h){l.getDoc().body.scrollTop=o0)){if(!d){d=("34,quot,38,amp,39,apos,60,lt,62,gt,"+j.serializer.settings.entities).split(",")}if(/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(v)){q([/[\n\r]+/g])}else{q([/\r+/g])}q([[/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi,"\n\n"],[/]*>|<\/tr>/gi,"\n"],[/<\/t[dh]>\s*]*>/gi,"\t"],/<[a-z!\/?][^>]*>/gi,[/ /gi," "],[/&(#\d+|[a-z0-9]{1,10});/gi,function(i,h){if(h.charAt(0)==="#"){return String.fromCharCode(h.slice(1))}else{return((i=y(d,h))>0)?String.fromCharCode(d[i-1]):" "}}],[/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi,"$1"],[/\n{3,}/g,"\n\n"],/^\s+|\s+$/g]);v=x.encode(v);if(!s.isCollapsed()){z.execCommand("Delete",false,null)}if(m(o,"array")||(m(o,"array"))){q(o)}else{if(m(o,"string")){q(new RegExp(o,"gi"))}}if(g=="none"){q([[/\n+/g," "]])}else{if(g=="br"){q([[/\n/g,"
                                                "]])}else{q([/^\s+|\s+$/g,[/\n\n/g,"

                                                "],[/\n/g,"
                                                "]])}}if((l=v.indexOf("

                                                "))!=-1){k=v.lastIndexOf("

                                                ");r=s.getNode();e=[];do{if(r.nodeType==1){if(r.nodeName=="TD"||r.nodeName=="BODY"){break}e[e.length]=r}}while(r=r.parentNode);if(e.length>0){p=v.substring(0,l);f="";for(t=0,u=e.length;t";f+="<"+e[e.length-t-1].nodeName.toLowerCase()+">"}if(l==k){v=p+f+v.substring(l+7)}else{v=p+v.substring(l+4,k+4)+f+v.substring(k+7)}}}j.execCommand("mceInsertRawHTML",false,v+' ');window.setTimeout(function(){var h=x.get("_plain_text_marker"),B,i,A,w;s.select(h,false);z.execCommand("Delete",false,null);h=null;B=s.getStart();i=x.getViewPort(n);A=x.getPos(B).y;w=B.clientHeight;if((Ai.y+i.h)){z.body.scrollTop=A

                                                ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi, "

                                                $1

                                                "); + } + + if (getParam(ed, "paste_convert_middot_lists")) { + process([ + [//gi, '$&__MCE_ITEM__'], // Convert supportLists to a list item marker + [/(]+(?:mso-list:|:\s*symbol)[^>]+>)/gi, '$1__MCE_ITEM__'] // Convert mso-list and symbol spans to item markers + ]); + } + + process([ + // Word comments like conditional comments etc + //gi, + + // Remove comments, scripts (e.g., msoShowComment), XML tag, VML content, MS Office namespaced tags, and a few other tags + /<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s\/>]))[^>]*>/gi, + + // Convert into for line-though + [/<(\/?)s>/gi, "<$1strike>"], + + // Replace nsbp entites to char since it's easier to handle + [/ /gi, "\u00a0"] + ]); + + // Remove bad attributes, with or without quotes, ensuring that attribute text is really inside a tag. + // If JavaScript had a RegExp look-behind, we could have integrated this with the last process() array and got rid of the loop. But alas, it does not, so we cannot. + do { + len = h.length; + h = h.replace(/(<[a-z][^>]*\s)(?:id|name|language|type|on\w+|\w+:\w+)=(?:"[^"]*"|\w+)\s?/gi, "$1"); + } while (len != h.length); + + // Remove all spans if no styles is to be retained + if (getParam(ed, "paste_retain_style_properties").replace(/^none$/i, "").length == 0) { + h = h.replace(/<\/?span[^>]*>/gi, ""); + } else { + // We're keeping styles, so at least clean them up. + // CSS Reference: http://msdn.microsoft.com/en-us/library/aa155477.aspx + + process([ + // Convert ___ to string of alternating breaking/non-breaking spaces of same length + [/([\s\u00a0]*)<\/span>/gi, + function(str, spaces) { + return (spaces.length > 0)? spaces.replace(/./, " ").slice(Math.floor(spaces.length/2)).split("").join("\u00a0") : ""; + } + ], + + // Examine all styles: delete junk, transform some, and keep the rest + [/(<[a-z][^>]*)\sstyle="([^"]*)"/gi, + function(str, tag, style) { + var n = [], + i = 0, + s = explode(trim(style).replace(/"/gi, "'"), ";"); + + // Examine each style definition within the tag's style attribute + each(s, function(v) { + var name, value, + parts = explode(v, ":"); + + function ensureUnits(v) { + return v + ((v !== "0") && (/\d$/.test(v)))? "px" : ""; + } + + if (parts.length == 2) { + name = parts[0].toLowerCase(); + value = parts[1].toLowerCase(); + + // Translate certain MS Office styles into their CSS equivalents + switch (name) { + case "mso-padding-alt": + case "mso-padding-top-alt": + case "mso-padding-right-alt": + case "mso-padding-bottom-alt": + case "mso-padding-left-alt": + case "mso-margin-alt": + case "mso-margin-top-alt": + case "mso-margin-right-alt": + case "mso-margin-bottom-alt": + case "mso-margin-left-alt": + case "mso-table-layout-alt": + case "mso-height": + case "mso-width": + case "mso-vertical-align-alt": + n[i++] = name.replace(/^mso-|-alt$/g, "") + ":" + ensureUnits(value); + return; + + case "horiz-align": + n[i++] = "text-align:" + value; + return; + + case "vert-align": + n[i++] = "vertical-align:" + value; + return; + + case "font-color": + case "mso-foreground": + n[i++] = "color:" + value; + return; + + case "mso-background": + case "mso-highlight": + n[i++] = "background:" + value; + return; + + case "mso-default-height": + n[i++] = "min-height:" + ensureUnits(value); + return; + + case "mso-default-width": + n[i++] = "min-width:" + ensureUnits(value); + return; + + case "mso-padding-between-alt": + n[i++] = "border-collapse:separate;border-spacing:" + ensureUnits(value); + return; + + case "text-line-through": + if ((value == "single") || (value == "double")) { + n[i++] = "text-decoration:line-through"; + } + return; + + case "mso-zero-height": + if (value == "yes") { + n[i++] = "display:none"; + } + return; + } + + // Eliminate all MS Office style definitions that have no CSS equivalent by examining the first characters in the name + if (/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/.test(name)) { + return; + } + + // If it reached this point, it must be a valid CSS style + n[i++] = name + ":" + parts[1]; // Lower-case name, but keep value case + } + }); + + // If style attribute contained any valid styles the re-write it; otherwise delete style attribute. + if (i > 0) { + return tag + ' style="' + n.join(';') + '"'; + } else { + return tag; + } + } + ] + ]); + } + } + + // Replace headers with + if (getParam(ed, "paste_convert_headers_to_strong")) { + process([ + [/]*>/gi, "

                                                "], + [/<\/h[1-6][^>]*>/gi, "

                                                "] + ]); + } + + // Class attribute options are: leave all as-is ("none"), remove all ("all"), or remove only those starting with mso ("mso"). + // Note:- paste_strip_class_attributes: "none", verify_css_classes: true is also a good variation. + stripClass = getParam(ed, "paste_strip_class_attributes"); + + if (stripClass !== "none") { + function removeClasses(match, g1) { + if (stripClass === "all") + return ''; + + var cls = grep(explode(g1.replace(/^(["'])(.*)\1$/, "$2"), " "), + function(v) { + return (/^(?!mso)/i.test(v)); + } + ); + + return cls.length ? ' class="' + cls.join(" ") + '"' : ''; + }; + + h = h.replace(/ class="([^"]+)"/gi, removeClasses); + h = h.replace(/ class=(\w+)/gi, removeClasses); + } + + // Remove spans option + if (getParam(ed, "paste_remove_spans")) { + h = h.replace(/<\/?span[^>]*>/gi, ""); + } + + //console.log('After preprocess:' + h); + + o.content = h; + }, + + /** + * Various post process items. + */ + _postProcess : function(pl, o) { + var t = this, ed = t.editor, dom = ed.dom, styleProps; + + if (o.wordContent) { + // Remove named anchors or TOC links + each(dom.select('a', o.node), function(a) { + if (!a.href || a.href.indexOf('#_Toc') != -1) + dom.remove(a, 1); + }); + + if (getParam(ed, "paste_convert_middot_lists")) { + t._convertLists(pl, o); + } + + // Process styles + styleProps = getParam(ed, "paste_retain_style_properties"); // retained properties + + // Process only if a string was specified and not equal to "all" or "*" + if ((tinymce.is(styleProps, "string")) && (styleProps !== "all") && (styleProps !== "*")) { + styleProps = tinymce.explode(styleProps.replace(/^none$/i, "")); + + // Retains some style properties + each(dom.select('*', o.node), function(el) { + var newStyle = {}, npc = 0, i, sp, sv; + + // Store a subset of the existing styles + if (styleProps) { + for (i = 0; i < styleProps.length; i++) { + sp = styleProps[i]; + sv = dom.getStyle(el, sp); + + if (sv) { + newStyle[sp] = sv; + npc++; + } + } + } + + // Remove all of the existing styles + dom.setAttrib(el, 'style', ''); + + if (styleProps && npc > 0) + dom.setStyles(el, newStyle); // Add back the stored subset of styles + else // Remove empty span tags that do not have class attributes + if (el.nodeName == 'SPAN' && !el.className) + dom.remove(el, true); + }); + } + } + + // Remove all style information or only specifically on WebKit to avoid the style bug on that browser + if (getParam(ed, "paste_remove_styles") || (getParam(ed, "paste_remove_styles_if_webkit") && tinymce.isWebKit)) { + each(dom.select('*[style]', o.node), function(el) { + el.removeAttribute('style'); + el.removeAttribute('_mce_style'); + }); + } else { + if (tinymce.isWebKit) { + // We need to compress the styles on WebKit since if you paste it will become + // Removing the mce_style that contains the real value will force the Serializer engine to compress the styles + each(dom.select('*', o.node), function(el) { + el.removeAttribute('_mce_style'); + }); + } + } + }, + + /** + * Converts the most common bullet and number formats in Office into a real semantic UL/LI list. + */ + _convertLists : function(pl, o) { + var dom = pl.editor.dom, listElm, li, lastMargin = -1, margin, levels = [], lastType, html; + + // Convert middot lists into real semantic lists + each(dom.select('p', o.node), function(p) { + var sib, val = '', type, html, idx, parents; + + // Get text node value at beginning of paragraph + for (sib = p.firstChild; sib && sib.nodeType == 3; sib = sib.nextSibling) + val += sib.nodeValue; + + val = p.innerHTML.replace(/<\/?\w+[^>]*>/gi, '').replace(/ /g, '\u00a0'); + + // Detect unordered lists look for bullets + if (/^(__MCE_ITEM__)+[\u2022\u00b7\u00a7\u00d8o]\s*\u00a0*/.test(val)) + type = 'ul'; + + // Detect ordered lists 1., a. or ixv. + if (/^__MCE_ITEM__\s*\w+\.\s*\u00a0{2,}/.test(val)) + type = 'ol'; + + // Check if node value matches the list pattern: o   + if (type) { + margin = parseFloat(p.style.marginLeft || 0); + + if (margin > lastMargin) + levels.push(margin); + + if (!listElm || type != lastType) { + listElm = dom.create(type); + dom.insertAfter(listElm, p); + } else { + // Nested list element + if (margin > lastMargin) { + listElm = li.appendChild(dom.create(type)); + } else if (margin < lastMargin) { + // Find parent level based on margin value + idx = tinymce.inArray(levels, margin); + parents = dom.getParents(listElm.parentNode, type); + listElm = parents[parents.length - 1 - idx] || listElm; + } + } + + // Remove middot or number spans if they exists + each(dom.select('span', p), function(span) { + var html = span.innerHTML.replace(/<\/?\w+[^>]*>/gi, ''); + + // Remove span with the middot or the number + if (type == 'ul' && /^[\u2022\u00b7\u00a7\u00d8o]/.test(html)) + dom.remove(span); + else if (/^[\s\S]*\w+\.( |\u00a0)*\s*/.test(html)) + dom.remove(span); + }); + + html = p.innerHTML; + + // Remove middot/list items + if (type == 'ul') + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^[\u2022\u00b7\u00a7\u00d8o]\s*( |\u00a0)+\s*/, ''); + else + html = p.innerHTML.replace(/__MCE_ITEM__/g, '').replace(/^\s*\w+\.( |\u00a0)+\s*/, ''); + + // Create li and add paragraph data into the new li + li = listElm.appendChild(dom.create('li', 0, html)); + dom.remove(p); + + lastMargin = margin; + lastType = type; + } else + listElm = lastMargin = 0; // End list element + }); + + // Remove any left over makers + html = o.node.innerHTML; + if (html.indexOf('__MCE_ITEM__') != -1) + o.node.innerHTML = html.replace(/__MCE_ITEM__/g, ''); + }, + + /** + * This method will split the current block parent and insert the contents inside the split position. + * This logic can be improved so text nodes at the start/end remain in the start/end block elements + */ + _insertBlockContent : function(ed, dom, content) { + var parentBlock, marker, sel = ed.selection, last, elm, vp, y, elmHeight, markerId = 'mce_marker'; + + function select(n) { + var r; + + if (tinymce.isIE) { + r = ed.getDoc().body.createTextRange(); + r.moveToElementText(n); + r.collapse(false); + r.select(); + } else { + sel.select(n, 1); + sel.collapse(false); + } + } + + // Insert a marker for the caret position + this._insert(' ', 1); + marker = dom.get(markerId); + parentBlock = dom.getParent(marker, 'p,h1,h2,h3,h4,h5,h6,ul,ol,th,td'); + + // If it's a parent block but not a table cell + if (parentBlock && !/TD|TH/.test(parentBlock.nodeName)) { + // Split parent block + marker = dom.split(parentBlock, marker); + + // Insert nodes before the marker + each(dom.create('div', 0, content).childNodes, function(n) { + last = marker.parentNode.insertBefore(n.cloneNode(true), marker); + }); + + // Move caret after marker + select(last); + } else { + dom.setOuterHTML(marker, content); + sel.select(ed.getBody(), 1); + sel.collapse(0); + } + + // Remove marker if it's left + while (elm = dom.get(markerId)) + dom.remove(elm); + + // Get element, position and height + elm = sel.getStart(); + vp = dom.getViewPort(ed.getWin()); + y = ed.dom.getPos(elm).y; + elmHeight = elm.clientHeight; + + // Is element within viewport if not then scroll it into view + if (y < vp.y || y + elmHeight > vp.y + vp.h) + ed.getDoc().body.scrollTop = y < vp.y ? y : y - vp.h + 25; + }, + + /** + * Inserts the specified contents at the caret position. + */ + _insert : function(h, skip_undo) { + var ed = this.editor, r = ed.selection.getRng(); + + // First delete the contents seems to work better on WebKit when the selection spans multiple list items or multiple table cells. + if (!ed.selection.isCollapsed() && r.startContainer != r.endContainer) + ed.getDoc().execCommand('Delete', false, null); + + // It's better to use the insertHTML method on Gecko since it will combine paragraphs correctly before inserting the contents + ed.execCommand(tinymce.isGecko ? 'insertHTML' : 'mceInsertContent', false, h, {skip_undo : skip_undo}); + }, + + /** + * Instead of the old plain text method which tried to re-create a paste operation, the + * new approach adds a plain text mode toggle switch that changes the behavior of paste. + * This function is passed the same input that the regular paste plugin produces. + * It performs additional scrubbing and produces (and inserts) the plain text. + * This approach leverages all of the great existing functionality in the paste + * plugin, and requires minimal changes to add the new functionality. + * Speednet - June 2009 + */ + _insertPlainText : function(ed, dom, h) { + var i, len, pos, rpos, node, breakElms, before, after, + w = ed.getWin(), + d = ed.getDoc(), + sel = ed.selection, + is = tinymce.is, + inArray = tinymce.inArray, + linebr = getParam(ed, "paste_text_linebreaktype"), + rl = getParam(ed, "paste_text_replacements"); + + function process(items) { + each(items, function(v) { + if (v.constructor == RegExp) + h = h.replace(v, ""); + else + h = h.replace(v[0], v[1]); + }); + }; + + if ((typeof(h) === "string") && (h.length > 0)) { + if (!entities) + entities = ("34,quot,38,amp,39,apos,60,lt,62,gt," + ed.serializer.settings.entities).split(","); + + // If HTML content with line-breaking tags, then remove all cr/lf chars because only tags will break a line + if (/<(?:p|br|h[1-6]|ul|ol|dl|table|t[rdh]|div|blockquote|fieldset|pre|address|center)[^>]*>/i.test(h)) { + process([ + /[\n\r]+/g + ]); + } else { + // Otherwise just get rid of carriage returns (only need linefeeds) + process([ + /\r+/g + ]); + } + + process([ + [/<\/(?:p|h[1-6]|ul|ol|dl|table|div|blockquote|fieldset|pre|address|center)>/gi, "\n\n"], // Block tags get a blank line after them + [/]*>|<\/tr>/gi, "\n"], // Single linebreak for
                                                tags and table rows + [/<\/t[dh]>\s*]*>/gi, "\t"], // Table cells get tabs betweem them + /<[a-z!\/?][^>]*>/gi, // Delete all remaining tags + [/ /gi, " "], // Convert non-break spaces to regular spaces (remember, *plain text*) + [ + // HTML entity + /&(#\d+|[a-z0-9]{1,10});/gi, + + // Replace with actual character + function(e, s) { + if (s.charAt(0) === "#") { + return String.fromCharCode(s.slice(1)); + } + else { + return ((e = inArray(entities, s)) > 0)? String.fromCharCode(entities[e-1]) : " "; + } + } + ], + [/(?:(?!\n)\s)*(\n+)(?:(?!\n)\s)*/gi, "$1"], // Cool little RegExp deletes whitespace around linebreak chars. + [/\n{3,}/g, "\n\n"], // Max. 2 consecutive linebreaks + /^\s+|\s+$/g // Trim the front & back + ]); + + h = dom.encode(h); + + // Delete any highlighted text before pasting + if (!sel.isCollapsed()) { + d.execCommand("Delete", false, null); + } + + // Perform default or custom replacements + if (is(rl, "array") || (is(rl, "array"))) { + process(rl); + } + else if (is(rl, "string")) { + process(new RegExp(rl, "gi")); + } + + // Treat paragraphs as specified in the config + if (linebr == "none") { + process([ + [/\n+/g, " "] + ]); + } + else if (linebr == "br") { + process([ + [/\n/g, "
                                                "] + ]); + } + else { + process([ + /^\s+|\s+$/g, + [/\n\n/g, "

                                                "], + [/\n/g, "
                                                "] + ]); + } + + // This next piece of code handles the situation where we're pasting more than one paragraph of plain + // text, and we are pasting the content into the middle of a block node in the editor. The block + // node gets split at the selection point into "Para A" and "Para B" (for the purposes of explaining). + // The first paragraph of the pasted text is appended to "Para A", and the last paragraph of the + // pasted text is prepended to "Para B". Any other paragraphs of pasted text are placed between + // "Para A" and "Para B". This code solves a host of problems with the original plain text plugin and + // now handles styles correctly. (Pasting plain text into a styled paragraph is supposed to make the + // plain text take the same style as the existing paragraph.) + if ((pos = h.indexOf("

                                                ")) != -1) { + rpos = h.lastIndexOf("

                                                "); + node = sel.getNode(); + breakElms = []; // Get list of elements to break + + do { + if (node.nodeType == 1) { + // Don't break tables and break at body + if (node.nodeName == "TD" || node.nodeName == "BODY") { + break; + } + + breakElms[breakElms.length] = node; + } + } while (node = node.parentNode); + + // Are we in the middle of a block node? + if (breakElms.length > 0) { + before = h.substring(0, pos); + after = ""; + + for (i=0, len=breakElms.length; i"; + after += "<" + breakElms[breakElms.length-i-1].nodeName.toLowerCase() + ">"; + } + + if (pos == rpos) { + h = before + after + h.substring(pos+7); + } + else { + h = before + h.substring(pos+4, rpos+4) + after + h.substring(rpos+7); + } + } + } + + // Insert content at the caret, plus add a marker for repositioning the caret + ed.execCommand("mceInsertRawHTML", false, h + ' '); + + // Reposition the caret to the marker, which was placed immediately after the inserted content. + // Needs to be done asynchronously (in window.setTimeout) or else it doesn't work in all browsers. + // The second part of the code scrolls the content up if the caret is positioned off-screen. + // This is only necessary for WebKit browsers, but it doesn't hurt to use for all. + window.setTimeout(function() { + var marker = dom.get('_plain_text_marker'), + elm, vp, y, elmHeight; + + sel.select(marker, false); + d.execCommand("Delete", false, null); + marker = null; + + // Get element, position and height + elm = sel.getStart(); + vp = dom.getViewPort(w); + y = dom.getPos(elm).y; + elmHeight = elm.clientHeight; + + // Is element within viewport if not then scroll it into view + if ((y < vp.y) || (y + elmHeight > vp.y + vp.h)) { + d.body.scrollTop = y < vp.y ? y : y - vp.h + 25; + } + }, 0); + } + }, + + /** + * This method will open the old style paste dialogs. Some users might want the old behavior but still use the new cleanup engine. + */ + _legacySupport : function() { + var t = this, ed = t.editor; + + // Register command(s) for backwards compatibility + ed.addCommand("mcePasteWord", function() { + ed.windowManager.open({ + file: t.url + "/pasteword.htm", + width: parseInt(getParam(ed, "paste_dialog_width")), + height: parseInt(getParam(ed, "paste_dialog_height")), + inline: 1 + }); + }); + + if (getParam(ed, "paste_text_use_dialog")) { + ed.addCommand("mcePasteText", function() { + ed.windowManager.open({ + file : t.url + "/pastetext.htm", + width: parseInt(getParam(ed, "paste_dialog_width")), + height: parseInt(getParam(ed, "paste_dialog_height")), + inline : 1 + }); + }); + } + + // Register button for backwards compatibility + ed.addButton("pasteword", {title : "paste.paste_word_desc", cmd : "mcePasteWord"}); + } + }); + + // Register plugin + tinymce.PluginManager.add("paste", tinymce.plugins.PastePlugin); +})(); diff --git a/sn_templates/tiny_mce/plugins/paste/js/pastetext.js b/sn_templates/tiny_mce/plugins/paste/js/pastetext.js new file mode 100644 index 0000000..81b1d6a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/js/pastetext.js @@ -0,0 +1,36 @@ +tinyMCEPopup.requireLangPack(); + +var PasteTextDialog = { + init : function() { + this.resize(); + }, + + insert : function() { + var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines; + + // Convert linebreaks into paragraphs + if (document.getElementById('linebreaks').checked) { + lines = h.split(/\r?\n/); + if (lines.length > 1) { + h = ''; + tinymce.each(lines, function(row) { + h += '

                                                ' + row + '

                                                '; + }); + } + } + + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h}); + tinyMCEPopup.close(); + }, + + resize : function() { + var vp = tinyMCEPopup.dom.getViewPort(window), el; + + el = document.getElementById('content'); + + el.style.width = (vp.w - 20) + 'px'; + el.style.height = (vp.h - 90) + 'px'; + } +}; + +tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog); diff --git a/sn_templates/tiny_mce/plugins/paste/js/pasteword.js b/sn_templates/tiny_mce/plugins/paste/js/pasteword.js new file mode 100644 index 0000000..959bf39 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/js/pasteword.js @@ -0,0 +1,51 @@ +tinyMCEPopup.requireLangPack(); + +var PasteWordDialog = { + init : function() { + var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = ''; + + // Create iframe + el.innerHTML = ''; + ifr = document.getElementById('iframe'); + doc = ifr.contentWindow.document; + + // Force absolute CSS urls + css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")]; + css = css.concat(tinymce.explode(ed.settings.content_css) || []); + tinymce.each(css, function(u) { + cssHTML += ''; + }); + + // Write content into iframe + doc.open(); + doc.write('' + cssHTML + ''); + doc.close(); + + doc.designMode = 'on'; + this.resize(); + + window.setTimeout(function() { + ifr.contentWindow.focus(); + }, 10); + }, + + insert : function() { + var h = document.getElementById('iframe').contentWindow.document.body.innerHTML; + + tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true}); + tinyMCEPopup.close(); + }, + + resize : function() { + var vp = tinyMCEPopup.dom.getViewPort(window), el; + + el = document.getElementById('iframe'); + + if (el) { + el.style.width = (vp.w - 20) + 'px'; + el.style.height = (vp.h - 90) + 'px'; + } + } +}; + +tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog); diff --git a/sn_templates/tiny_mce/plugins/paste/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/paste/langs/de_dlg.js new file mode 100644 index 0000000..ab0bd6b --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/langs/de_dlg.js @@ -0,0 +1,5 @@ +tinyMCE.addI18n('de.paste_dlg',{ +text_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen.", +text_linebreaks:"Zeilenumbr\u00FCche beibehalten", +word_title:"Dr\u00FCcken Sie auf Ihrer Tastatur Strg+V, um den Text einzuf\u00FCgen." +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/paste/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/paste/langs/en_dlg.js new file mode 100644 index 0000000..823eb16 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/langs/en_dlg.js @@ -0,0 +1,5 @@ +tinyMCE.addI18n('en.paste_dlg',{ +text_title:"Use CTRL+V on your keyboard to paste the text into the window.", +text_linebreaks:"Keep linebreaks", +word_title:"Use CTRL+V on your keyboard to paste the text into the window." +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/paste/pastetext.htm b/sn_templates/tiny_mce/plugins/paste/pastetext.htm new file mode 100644 index 0000000..8ccfbb9 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/pastetext.htm @@ -0,0 +1,27 @@ + + + {#paste.paste_text_desc} + + + + +
                                                +
                                                {#paste.paste_text_desc}
                                                + +
                                                + +
                                                + +
                                                + +
                                                {#paste_dlg.text_title}
                                                + + + +
                                                + + +
                                                +
                                                + + \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/paste/pasteword.htm b/sn_templates/tiny_mce/plugins/paste/pasteword.htm new file mode 100644 index 0000000..7731f39 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/paste/pasteword.htm @@ -0,0 +1,21 @@ + + + {#paste.paste_word_desc} + + + + +
                                                +
                                                {#paste.paste_word_desc}
                                                + +
                                                {#paste_dlg.word_title}
                                                + +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/preview/editor_plugin.js b/sn_templates/tiny_mce/plugins/preview/editor_plugin.js new file mode 100644 index 0000000..507909c --- /dev/null +++ b/sn_templates/tiny_mce/plugins/preview/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Preview",{init:function(a,b){var d=this,c=tinymce.explode(a.settings.content_css);d.editor=a;tinymce.each(c,function(f,e){c[e]=a.documentBaseURI.toAbsolute(f)});a.addCommand("mcePreview",function(){a.windowManager.open({file:a.getParam("plugin_preview_pageurl",b+"/preview.html"),width:parseInt(a.getParam("plugin_preview_width","550")),height:parseInt(a.getParam("plugin_preview_height","600")),resizable:"yes",scrollbars:"yes",popup_css:c?c.join(","):a.baseURI.toAbsolute("themes/"+a.settings.theme+"/skins/"+a.settings.skin+"/content.css"),inline:a.getParam("plugin_preview_inline",1)},{base:a.documentBaseURI.getURI()})});a.addButton("preview",{title:"preview.preview_desc",cmd:"mcePreview"})},getInfo:function(){return{longname:"Preview",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("preview",tinymce.plugins.Preview)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/preview/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/preview/editor_plugin_src.js new file mode 100644 index 0000000..80f00f0 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/preview/editor_plugin_src.js @@ -0,0 +1,53 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Preview', { + init : function(ed, url) { + var t = this, css = tinymce.explode(ed.settings.content_css); + + t.editor = ed; + + // Force absolute CSS urls + tinymce.each(css, function(u, k) { + css[k] = ed.documentBaseURI.toAbsolute(u); + }); + + ed.addCommand('mcePreview', function() { + ed.windowManager.open({ + file : ed.getParam("plugin_preview_pageurl", url + "/preview.html"), + width : parseInt(ed.getParam("plugin_preview_width", "550")), + height : parseInt(ed.getParam("plugin_preview_height", "600")), + resizable : "yes", + scrollbars : "yes", + popup_css : css ? css.join(',') : ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css"), + inline : ed.getParam("plugin_preview_inline", 1) + }, { + base : ed.documentBaseURI.getURI() + }); + }); + + ed.addButton('preview', {title : 'preview.preview_desc', cmd : 'mcePreview'}); + }, + + getInfo : function() { + return { + longname : 'Preview', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/preview', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('preview', tinymce.plugins.Preview); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/preview/example.html b/sn_templates/tiny_mce/plugins/preview/example.html new file mode 100644 index 0000000..4820222 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/preview/example.html @@ -0,0 +1,28 @@ + + + + + +Example of a custom preview page + + + +Editor contents:
                                                +
                                                + +
                                                + + + diff --git a/sn_templates/tiny_mce/plugins/preview/jscripts/embed.js b/sn_templates/tiny_mce/plugins/preview/jscripts/embed.js new file mode 100644 index 0000000..6fe25de --- /dev/null +++ b/sn_templates/tiny_mce/plugins/preview/jscripts/embed.js @@ -0,0 +1,73 @@ +/** + * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. + */ + +function writeFlash(p) { + writeEmbed( + 'D27CDB6E-AE6D-11cf-96B8-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'application/x-shockwave-flash', + p + ); +} + +function writeShockWave(p) { + writeEmbed( + '166B1BCA-3F9C-11CF-8075-444553540000', + 'http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0', + 'application/x-director', + p + ); +} + +function writeQuickTime(p) { + writeEmbed( + '02BF25D5-8C17-4B23-BC80-D3488ABDDC6B', + 'http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0', + 'video/quicktime', + p + ); +} + +function writeRealMedia(p) { + writeEmbed( + 'CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA', + 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', + 'audio/x-pn-realaudio-plugin', + p + ); +} + +function writeWindowsMedia(p) { + p.url = p.src; + writeEmbed( + '6BF52A52-394A-11D3-B153-00C04F79FAA6', + 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701', + 'application/x-mplayer2', + p + ); +} + +function writeEmbed(cls, cb, mt, p) { + var h = '', n; + + h += ''; + + h += ' + + + + + +{#preview.preview_desc} + + + + + diff --git a/sn_templates/tiny_mce/plugins/print/editor_plugin.js b/sn_templates/tiny_mce/plugins/print/editor_plugin.js new file mode 100644 index 0000000..b5b3a55 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/print/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Print",{init:function(a,b){a.addCommand("mcePrint",function(){a.getWin().print()});a.addButton("print",{title:"print.print_desc",cmd:"mcePrint"})},getInfo:function(){return{longname:"Print",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("print",tinymce.plugins.Print)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/print/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/print/editor_plugin_src.js new file mode 100644 index 0000000..47e666a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/print/editor_plugin_src.js @@ -0,0 +1,34 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Print', { + init : function(ed, url) { + ed.addCommand('mcePrint', function() { + ed.getWin().print(); + }); + + ed.addButton('print', {title : 'print.print_desc', cmd : 'mcePrint'}); + }, + + getInfo : function() { + return { + longname : 'Print', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('print', tinymce.plugins.Print); +})(); diff --git a/sn_templates/tiny_mce/plugins/save/editor_plugin.js b/sn_templates/tiny_mce/plugins/save/editor_plugin.js new file mode 100644 index 0000000..8e93996 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/save/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.Save",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceSave",c._save,c);a.addCommand("mceCancel",c._cancel,c);a.addButton("save",{title:"save.save_desc",cmd:"mceSave"});a.addButton("cancel",{title:"save.cancel_desc",cmd:"mceCancel"});a.onNodeChange.add(c._nodeChange,c);a.addShortcut("ctrl+s",a.getLang("save.save_desc"),"mceSave")},getInfo:function(){return{longname:"Save",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_nodeChange:function(b,a,c){var b=this.editor;if(b.getParam("save_enablewhendirty")){a.setDisabled("save",!b.isDirty());a.setDisabled("cancel",!b.isDirty())}},_save:function(){var c=this.editor,a,e,d,b;a=tinymce.DOM.get(c.id).form||tinymce.DOM.getParent(c.id,"form");if(c.getParam("save_enablewhendirty")&&!c.isDirty()){return}tinyMCE.triggerSave();if(e=c.getParam("save_onsavecallback")){if(c.execCallback("save_onsavecallback",c)){c.startContent=tinymce.trim(c.getContent({format:"raw"}));c.nodeChanged()}return}if(a){c.isNotDirty=true;if(a.onsubmit==null||a.onsubmit()!=false){a.submit()}c.nodeChanged()}else{c.windowManager.alert("Error: No form element found.")}},_cancel:function(){var a=this.editor,c,b=tinymce.trim(a.startContent);if(c=a.getParam("save_oncancelcallback")){a.execCallback("save_oncancelcallback",a);return}a.setContent(b);a.undoManager.clear();a.nodeChanged()}});tinymce.PluginManager.add("save",tinymce.plugins.Save)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/save/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/save/editor_plugin_src.js new file mode 100644 index 0000000..5ab6491 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/save/editor_plugin_src.js @@ -0,0 +1,101 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.Save', { + init : function(ed, url) { + var t = this; + + t.editor = ed; + + // Register commands + ed.addCommand('mceSave', t._save, t); + ed.addCommand('mceCancel', t._cancel, t); + + // Register buttons + ed.addButton('save', {title : 'save.save_desc', cmd : 'mceSave'}); + ed.addButton('cancel', {title : 'save.cancel_desc', cmd : 'mceCancel'}); + + ed.onNodeChange.add(t._nodeChange, t); + ed.addShortcut('ctrl+s', ed.getLang('save.save_desc'), 'mceSave'); + }, + + getInfo : function() { + return { + longname : 'Save', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/save', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + // Private methods + + _nodeChange : function(ed, cm, n) { + var ed = this.editor; + + if (ed.getParam('save_enablewhendirty')) { + cm.setDisabled('save', !ed.isDirty()); + cm.setDisabled('cancel', !ed.isDirty()); + } + }, + + // Private methods + + _save : function() { + var ed = this.editor, formObj, os, i, elementId; + + formObj = tinymce.DOM.get(ed.id).form || tinymce.DOM.getParent(ed.id, 'form'); + + if (ed.getParam("save_enablewhendirty") && !ed.isDirty()) + return; + + tinyMCE.triggerSave(); + + // Use callback instead + if (os = ed.getParam("save_onsavecallback")) { + if (ed.execCallback('save_onsavecallback', ed)) { + ed.startContent = tinymce.trim(ed.getContent({format : 'raw'})); + ed.nodeChanged(); + } + + return; + } + + if (formObj) { + ed.isNotDirty = true; + + if (formObj.onsubmit == null || formObj.onsubmit() != false) + formObj.submit(); + + ed.nodeChanged(); + } else + ed.windowManager.alert("Error: No form element found."); + }, + + _cancel : function() { + var ed = this.editor, os, h = tinymce.trim(ed.startContent); + + // Use callback instead + if (os = ed.getParam("save_oncancelcallback")) { + ed.execCallback('save_oncancelcallback', ed); + return; + } + + ed.setContent(h); + ed.undoManager.clear(); + ed.nodeChanged(); + } + }); + + // Register plugin + tinymce.PluginManager.add('save', tinymce.plugins.Save); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/searchreplace/css/searchreplace.css b/sn_templates/tiny_mce/plugins/searchreplace/css/searchreplace.css new file mode 100644 index 0000000..3e2eaf3 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/css/searchreplace.css @@ -0,0 +1,6 @@ +.panel_wrapper {height:85px;} +.panel_wrapper div.current {height:85px;} + +/* IE */ +* html .panel_wrapper {height:100px;} +* html .panel_wrapper div.current {height:100px;} diff --git a/sn_templates/tiny_mce/plugins/searchreplace/editor_plugin.js b/sn_templates/tiny_mce/plugins/searchreplace/editor_plugin.js new file mode 100644 index 0000000..cd9c985 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.SearchReplacePlugin",{init:function(a,c){function b(d){a.windowManager.open({file:c+"/searchreplace.htm",width:420+parseInt(a.getLang("searchreplace.delta_width",0)),height:170+parseInt(a.getLang("searchreplace.delta_height",0)),inline:1,auto_focus:0},{mode:d,search_string:a.selection.getContent({format:"text"}),plugin_url:c})}a.addCommand("mceSearch",function(){b("search")});a.addCommand("mceReplace",function(){b("replace")});a.addButton("search",{title:"searchreplace.search_desc",cmd:"mceSearch"});a.addButton("replace",{title:"searchreplace.replace_desc",cmd:"mceReplace"});a.addShortcut("ctrl+f","searchreplace.search_desc","mceSearch")},getInfo:function(){return{longname:"Search/Replace",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("searchreplace",tinymce.plugins.SearchReplacePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/searchreplace/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/searchreplace/editor_plugin_src.js new file mode 100644 index 0000000..e9b3ee8 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/editor_plugin_src.js @@ -0,0 +1,57 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.SearchReplacePlugin', { + init : function(ed, url) { + function open(m) { + ed.windowManager.open({ + file : url + '/searchreplace.htm', + width : 420 + parseInt(ed.getLang('searchreplace.delta_width', 0)), + height : 170 + parseInt(ed.getLang('searchreplace.delta_height', 0)), + inline : 1, + auto_focus : 0 + }, { + mode : m, + search_string : ed.selection.getContent({format : 'text'}), + plugin_url : url + }); + }; + + // Register commands + ed.addCommand('mceSearch', function() { + open('search'); + }); + + ed.addCommand('mceReplace', function() { + open('replace'); + }); + + // Register buttons + ed.addButton('search', {title : 'searchreplace.search_desc', cmd : 'mceSearch'}); + ed.addButton('replace', {title : 'searchreplace.replace_desc', cmd : 'mceReplace'}); + + ed.addShortcut('ctrl+f', 'searchreplace.search_desc', 'mceSearch'); + }, + + getInfo : function() { + return { + longname : 'Search/Replace', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/searchreplace', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('searchreplace', tinymce.plugins.SearchReplacePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/searchreplace/js/searchreplace.js b/sn_templates/tiny_mce/plugins/searchreplace/js/searchreplace.js new file mode 100644 index 0000000..4cc0f40 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/js/searchreplace.js @@ -0,0 +1,130 @@ +tinyMCEPopup.requireLangPack(); + +var SearchReplaceDialog = { + init : function(ed) { + var f = document.forms[0], m = tinyMCEPopup.getWindowArg("mode"); + + this.switchMode(m); + + f[m + '_panel_searchstring'].value = tinyMCEPopup.getWindowArg("search_string"); + + // Focus input field + f[m + '_panel_searchstring'].focus(); + }, + + switchMode : function(m) { + var f, lm = this.lastMode; + + if (lm != m) { + f = document.forms[0]; + + if (lm) { + f[m + '_panel_searchstring'].value = f[lm + '_panel_searchstring'].value; + f[m + '_panel_backwardsu'].checked = f[lm + '_panel_backwardsu'].checked; + f[m + '_panel_backwardsd'].checked = f[lm + '_panel_backwardsd'].checked; + f[m + '_panel_casesensitivebox'].checked = f[lm + '_panel_casesensitivebox'].checked; + } + + mcTabs.displayTab(m + '_tab', m + '_panel'); + document.getElementById("replaceBtn").style.display = (m == "replace") ? "inline" : "none"; + document.getElementById("replaceAllBtn").style.display = (m == "replace") ? "inline" : "none"; + this.lastMode = m; + } + }, + + searchNext : function(a) { + var ed = tinyMCEPopup.editor, se = ed.selection, r = se.getRng(), f, m = this.lastMode, s, b, fl = 0, w = ed.getWin(), wm = ed.windowManager, fo = 0; + + // Get input + f = document.forms[0]; + s = f[m + '_panel_searchstring'].value; + b = f[m + '_panel_backwardsu'].checked; + ca = f[m + '_panel_casesensitivebox'].checked; + rs = f['replace_panel_replacestring'].value; + + if (s == '') + return; + + function fix() { + // Correct Firefox graphics glitches + r = se.getRng().cloneRange(); + ed.getDoc().execCommand('SelectAll', false, null); + se.setRng(r); + }; + + function replace() { + if (tinymce.isIE) + ed.selection.getRng().duplicate().pasteHTML(rs); // Needs to be duplicated due to selection bug in IE + else + ed.getDoc().execCommand('InsertHTML', false, rs); + }; + + // IE flags + if (ca) + fl = fl | 4; + + switch (a) { + case 'all': + // Move caret to beginning of text + ed.execCommand('SelectAll'); + ed.selection.collapse(true); + + if (tinymce.isIE) { + while (r.findText(s, b ? -1 : 1, fl)) { + r.scrollIntoView(); + r.select(); + replace(); + fo = 1; + + if (b) { + r.moveEnd("character", -(rs.length)); // Otherwise will loop forever + } + } + + tinyMCEPopup.storeSelection(); + } else { + while (w.find(s, ca, b, false, false, false, false)) { + replace(); + fo = 1; + } + } + + if (fo) + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.allreplaced')); + else + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + + return; + + case 'current': + if (!ed.selection.isCollapsed()) + replace(); + + break; + } + + se.collapse(b); + r = se.getRng(); + + // Whats the point + if (!s) + return; + + if (tinymce.isIE) { + if (r.findText(s, b ? -1 : 1, fl)) { + r.scrollIntoView(); + r.select(); + } else + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + + tinyMCEPopup.storeSelection(); + } else { + if (!w.find(s, ca, b, false, false, false, false)) + tinyMCEPopup.alert(ed.getLang('searchreplace_dlg.notfound')); + else + fix(); + } + } +}; + +tinyMCEPopup.onInit.add(SearchReplaceDialog.init, SearchReplaceDialog); diff --git a/sn_templates/tiny_mce/plugins/searchreplace/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/searchreplace/langs/de_dlg.js new file mode 100644 index 0000000..6bb60d6 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/langs/de_dlg.js @@ -0,0 +1,16 @@ +tinyMCE.addI18n('de.searchreplace_dlg',{ +searchnext_desc:"Weitersuchen", +notfound:"Die Suche ist am Ende angelangt. Die Zeichenkette konnte nicht gefunden werden.", +search_title:"Suchen", +replace_title:"Suchen/Ersetzen", +allreplaced:"Alle Vorkommen der Zeichenkette wurden ersetzt.", +findwhat:"Zu suchender Text", +replacewith:"Ersetzen durch", +direction:"Suchrichtung", +up:"Aufw\u00E4rts", +down:"Abw\u00E4rts", +mcase:"Gro\u00DF-/Kleinschreibung beachten", +findnext:"Weitersuchen", +replace:"Ersetzen", +replaceall:"Alle ersetzen" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/searchreplace/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/searchreplace/langs/en_dlg.js new file mode 100644 index 0000000..3dd3453 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/langs/en_dlg.js @@ -0,0 +1,16 @@ +tinyMCE.addI18n('en.searchreplace_dlg',{ +searchnext_desc:"Find again", +notfound:"The search has been completed. The search string could not be found.", +search_title:"Find", +replace_title:"Find/Replace", +allreplaced:"All occurrences of the search string were replaced.", +findwhat:"Find what", +replacewith:"Replace with", +direction:"Direction", +up:"Up", +down:"Down", +mcase:"Match case", +findnext:"Find next", +replace:"Replace", +replaceall:"Replace all" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/searchreplace/searchreplace.htm b/sn_templates/tiny_mce/plugins/searchreplace/searchreplace.htm new file mode 100644 index 0000000..243a4bc --- /dev/null +++ b/sn_templates/tiny_mce/plugins/searchreplace/searchreplace.htm @@ -0,0 +1,99 @@ + + + + {#searchreplace_dlg.replace_title} + + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + +
                                                + + + + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + + +
                                                + + + + + + + + +
                                                +
                                                + + + + + +
                                                +
                                                +
                                                + +
                                                + +
                                                + + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/spellchecker/css/content.css b/sn_templates/tiny_mce/plugins/spellchecker/css/content.css new file mode 100644 index 0000000..656ce1e --- /dev/null +++ b/sn_templates/tiny_mce/plugins/spellchecker/css/content.css @@ -0,0 +1 @@ +.mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;} diff --git a/sn_templates/tiny_mce/plugins/spellchecker/editor_plugin.js b/sn_templates/tiny_mce/plugins/spellchecker/editor_plugin.js new file mode 100644 index 0000000..a4d2925 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/spellchecker/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.util.JSONRequest,c=tinymce.each,b=tinymce.DOM;tinymce.create("tinymce.plugins.SpellcheckerPlugin",{getInfo:function(){return{longname:"Spellchecker",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker",version:tinymce.majorVersion+"."+tinymce.minorVersion}},init:function(e,f){var g=this,d;g.url=f;g.editor=e;g.rpcUrl=e.getParam("spellchecker_rpc_url","{backend}");if(g.rpcUrl=="{backend}"){if(tinymce.isIE){return}g.hasSupport=true;e.onContextMenu.addToTop(function(h,i){if(g.active){return false}})}e.addCommand("mceSpellCheck",function(){if(g.rpcUrl=="{backend}"){g.editor.getBody().spellcheck=g.active=!g.active;return}if(!g.active){e.setProgressState(1);g._sendRPC("checkWords",[g.selectedLang,g._getWords()],function(h){if(h.length>0){g.active=1;g._markWords(h);e.setProgressState(0);e.nodeChanged()}else{e.setProgressState(0);if(e.getParam("spellchecker_report_no_misspellings",true)){e.windowManager.alert("spellchecker.no_mpell")}}})}else{g._done()}});e.onInit.add(function(){if(e.settings.content_css!==false){e.dom.loadCSS(f+"/css/content.css")}});e.onClick.add(g._showMenu,g);e.onContextMenu.add(g._showMenu,g);e.onBeforeGetContent.add(function(){if(g.active){g._removeWords()}});e.onNodeChange.add(function(i,h){h.setActive("spellchecker",g.active)});e.onSetContent.add(function(){g._done()});e.onBeforeGetContent.add(function(){g._done()});e.onBeforeExecCommand.add(function(h,i){if(i=="mceFullScreen"){g._done()}});g.languages={};c(e.getParam("spellchecker_languages","+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv","hash"),function(i,h){if(h.indexOf("+")===0){h=h.substring(1);g.selectedLang=i}g.languages[h]=i})},createControl:function(h,d){var f=this,g,e=f.editor;if(h=="spellchecker"){if(f.rpcUrl=="{backend}"){if(f.hasSupport){g=d.createButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f})}return g}g=d.createSplitButton(h,{title:"spellchecker.desc",cmd:"mceSpellCheck",scope:f});g.onRenderMenu.add(function(j,i){i.add({title:"spellchecker.langs","class":"mceMenuItemTitle"}).setDisabled(1);c(f.languages,function(n,m){var p={icon:1},l;p.onclick=function(){l.setSelected(1);f.selectedItem.setSelected(0);f.selectedItem=l;f.selectedLang=n};p.title=m;l=i.add(p);l.setSelected(n==f.selectedLang);if(n==f.selectedLang){f.selectedItem=l}})});return g}},_walk:function(i,g){var h=this.editor.getDoc(),e;if(h.createTreeWalker){e=h.createTreeWalker(i,NodeFilter.SHOW_TEXT,null,false);while((i=e.nextNode())!=null){g.call(this,i)}}else{tinymce.walk(i,g,"childNodes")}},_getSeparators:function(){var e="",d,f=this.editor.getParam("spellchecker_word_separator_chars",'\\s!"#$%&()*+,-./:;<=>?@[]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c');for(d=0;d$1$2');q=q.replace(g,'$1$2');j.replace(j.create("span",{"class":"mceItemHidden"},q),r)}}});l.moveToBookmark(m)},_showMenu:function(g,i){var h=this,g=h.editor,d=h._menu,k,j=g.dom,f=j.getViewPort(g.getWin());if(!d){k=b.getPos(g.getContentAreaContainer());d=g.controlManager.createDropMenu("spellcheckermenu",{offset_x:k.x,offset_y:k.y,"class":"mceNoIcons"});h._menu=d}if(j.hasClass(i.target,"mceItemHiddenSpellWord")){d.removeAll();d.add({title:"spellchecker.wait","class":"mceMenuItemTitle"}).setDisabled(1);h._sendRPC("getSuggestions",[h.selectedLang,j.decode(i.target.innerHTML)],function(l){var e;d.removeAll();if(l.length>0){d.add({title:"spellchecker.sug","class":"mceMenuItemTitle"}).setDisabled(1);c(l,function(m){d.add({title:m,onclick:function(){j.replace(g.getDoc().createTextNode(m),i.target);h._checkDone()}})});d.addSeparator()}else{d.add({title:"spellchecker.no_sug","class":"mceMenuItemTitle"}).setDisabled(1)}e=h.editor.getParam("spellchecker_enable_ignore_rpc","");d.add({title:"spellchecker.ignore_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});d.add({title:"spellchecker.ignore_words",onclick:function(){var m=i.target.innerHTML;h._removeWords(j.decode(m));h._checkDone();if(e){g.setProgressState(1);h._sendRPC("ignoreWords",[h.selectedLang,m],function(n){g.setProgressState(0)})}}});if(h.editor.getParam("spellchecker_enable_learn_rpc")){d.add({title:"spellchecker.learn_word",onclick:function(){var m=i.target.innerHTML;j.remove(i.target,1);h._checkDone();g.setProgressState(1);h._sendRPC("learnWord",[h.selectedLang,m],function(n){g.setProgressState(0)})}})}d.update()});g.selection.select(i.target);k=j.getPos(i.target);d.showMenu(k.x,k.y+i.target.offsetHeight-f.y);return tinymce.dom.Event.cancel(i)}else{d.hideMenu()}},_checkDone:function(){var e=this,d=e.editor,g=d.dom,f;c(g.select("span"),function(h){if(h&&g.hasClass(h,"mceItemHiddenSpellWord")){f=true;return false}});if(!f){e._done()}},_done:function(){var d=this,e=d.active;if(d.active){d.active=0;d._removeWords();if(d._menu){d._menu.hideMenu()}if(e){d.editor.nodeChanged()}}},_sendRPC:function(e,g,d){var f=this;a.sendRPC({url:f.rpcUrl,method:e,params:g,success:d,error:function(i,h){f.editor.setProgressState(0);f.editor.windowManager.alert(i.errstr||("Error response: "+h.responseText))}})}});tinymce.PluginManager.add("spellchecker",tinymce.plugins.SpellcheckerPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/spellchecker/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/spellchecker/editor_plugin_src.js new file mode 100644 index 0000000..8fb7431 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/spellchecker/editor_plugin_src.js @@ -0,0 +1,415 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var JSONRequest = tinymce.util.JSONRequest, each = tinymce.each, DOM = tinymce.DOM; + + tinymce.create('tinymce.plugins.SpellcheckerPlugin', { + getInfo : function() { + return { + longname : 'Spellchecker', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + }, + + init : function(ed, url) { + var t = this, cm; + + t.url = url; + t.editor = ed; + t.rpcUrl = ed.getParam("spellchecker_rpc_url", "{backend}"); + + if (t.rpcUrl == '{backend}') { + // Sniff if the browser supports native spellchecking (Don't know of a better way) + if (tinymce.isIE) + return; + + t.hasSupport = true; + + // Disable the context menu when spellchecking is active + ed.onContextMenu.addToTop(function(ed, e) { + if (t.active) + return false; + }); + } + + // Register commands + ed.addCommand('mceSpellCheck', function() { + if (t.rpcUrl == '{backend}') { + // Enable/disable native spellchecker + t.editor.getBody().spellcheck = t.active = !t.active; + return; + } + + if (!t.active) { + ed.setProgressState(1); + t._sendRPC('checkWords', [t.selectedLang, t._getWords()], function(r) { + if (r.length > 0) { + t.active = 1; + t._markWords(r); + ed.setProgressState(0); + ed.nodeChanged(); + } else { + ed.setProgressState(0); + + if (ed.getParam('spellchecker_report_no_misspellings', true)) + ed.windowManager.alert('spellchecker.no_mpell'); + } + }); + } else + t._done(); + }); + + ed.onInit.add(function() { + if (ed.settings.content_css !== false) + ed.dom.loadCSS(url + '/css/content.css'); + }); + + ed.onClick.add(t._showMenu, t); + ed.onContextMenu.add(t._showMenu, t); + ed.onBeforeGetContent.add(function() { + if (t.active) + t._removeWords(); + }); + + ed.onNodeChange.add(function(ed, cm) { + cm.setActive('spellchecker', t.active); + }); + + ed.onSetContent.add(function() { + t._done(); + }); + + ed.onBeforeGetContent.add(function() { + t._done(); + }); + + ed.onBeforeExecCommand.add(function(ed, cmd) { + if (cmd == 'mceFullScreen') + t._done(); + }); + + // Find selected language + t.languages = {}; + each(ed.getParam('spellchecker_languages', '+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv', 'hash'), function(v, k) { + if (k.indexOf('+') === 0) { + k = k.substring(1); + t.selectedLang = v; + } + + t.languages[k] = v; + }); + }, + + createControl : function(n, cm) { + var t = this, c, ed = t.editor; + + if (n == 'spellchecker') { + // Use basic button if we use the native spellchecker + if (t.rpcUrl == '{backend}') { + // Create simple toggle button if we have native support + if (t.hasSupport) + c = cm.createButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t}); + + return c; + } + + c = cm.createSplitButton(n, {title : 'spellchecker.desc', cmd : 'mceSpellCheck', scope : t}); + + c.onRenderMenu.add(function(c, m) { + m.add({title : 'spellchecker.langs', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + each(t.languages, function(v, k) { + var o = {icon : 1}, mi; + + o.onclick = function() { + mi.setSelected(1); + t.selectedItem.setSelected(0); + t.selectedItem = mi; + t.selectedLang = v; + }; + + o.title = k; + mi = m.add(o); + mi.setSelected(v == t.selectedLang); + + if (v == t.selectedLang) + t.selectedItem = mi; + }) + }); + + return c; + } + }, + + // Internal functions + + _walk : function(n, f) { + var d = this.editor.getDoc(), w; + + if (d.createTreeWalker) { + w = d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, false); + + while ((n = w.nextNode()) != null) + f.call(this, n); + } else + tinymce.walk(n, f, 'childNodes'); + }, + + _getSeparators : function() { + var re = '', i, str = this.editor.getParam('spellchecker_word_separator_chars', '\\s!"#$%&()*+,-./:;<=>?@[\]^_{|}§©«®±¶·¸»¼½¾¿×÷¤\u201d\u201c'); + + // Build word separator regexp + for (i=0; i$1$2'); + v = v.replace(r3, '$1$2'); + + dom.replace(dom.create('span', {'class' : 'mceItemHidden'}, v), n); + } + } + }); + + se.moveToBookmark(b); + }, + + _showMenu : function(ed, e) { + var t = this, ed = t.editor, m = t._menu, p1, dom = ed.dom, vp = dom.getViewPort(ed.getWin()); + + if (!m) { + p1 = DOM.getPos(ed.getContentAreaContainer()); + //p2 = DOM.getPos(ed.getContainer()); + + m = ed.controlManager.createDropMenu('spellcheckermenu', { + offset_x : p1.x, + offset_y : p1.y, + 'class' : 'mceNoIcons' + }); + + t._menu = m; + } + + if (dom.hasClass(e.target, 'mceItemHiddenSpellWord')) { + m.removeAll(); + m.add({title : 'spellchecker.wait', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + t._sendRPC('getSuggestions', [t.selectedLang, dom.decode(e.target.innerHTML)], function(r) { + var ignoreRpc; + + m.removeAll(); + + if (r.length > 0) { + m.add({title : 'spellchecker.sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + each(r, function(v) { + m.add({title : v, onclick : function() { + dom.replace(ed.getDoc().createTextNode(v), e.target); + t._checkDone(); + }}); + }); + + m.addSeparator(); + } else + m.add({title : 'spellchecker.no_sug', 'class' : 'mceMenuItemTitle'}).setDisabled(1); + + ignoreRpc = t.editor.getParam("spellchecker_enable_ignore_rpc", ''); + m.add({ + title : 'spellchecker.ignore_word', + onclick : function() { + var word = e.target.innerHTML; + + dom.remove(e.target, 1); + t._checkDone(); + + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + } + }); + + m.add({ + title : 'spellchecker.ignore_words', + onclick : function() { + var word = e.target.innerHTML; + + t._removeWords(dom.decode(word)); + t._checkDone(); + + // tell the server if we need to + if (ignoreRpc) { + ed.setProgressState(1); + t._sendRPC('ignoreWords', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + } + }); + + + if (t.editor.getParam("spellchecker_enable_learn_rpc")) { + m.add({ + title : 'spellchecker.learn_word', + onclick : function() { + var word = e.target.innerHTML; + + dom.remove(e.target, 1); + t._checkDone(); + + ed.setProgressState(1); + t._sendRPC('learnWord', [t.selectedLang, word], function(r) { + ed.setProgressState(0); + }); + } + }); + } + + m.update(); + }); + + ed.selection.select(e.target); + p1 = dom.getPos(e.target); + m.showMenu(p1.x, p1.y + e.target.offsetHeight - vp.y); + + return tinymce.dom.Event.cancel(e); + } else + m.hideMenu(); + }, + + _checkDone : function() { + var t = this, ed = t.editor, dom = ed.dom, o; + + each(dom.select('span'), function(n) { + if (n && dom.hasClass(n, 'mceItemHiddenSpellWord')) { + o = true; + return false; + } + }); + + if (!o) + t._done(); + }, + + _done : function() { + var t = this, la = t.active; + + if (t.active) { + t.active = 0; + t._removeWords(); + + if (t._menu) + t._menu.hideMenu(); + + if (la) + t.editor.nodeChanged(); + } + }, + + _sendRPC : function(m, p, cb) { + var t = this; + + JSONRequest.sendRPC({ + url : t.rpcUrl, + method : m, + params : p, + success : cb, + error : function(e, x) { + t.editor.setProgressState(0); + t.editor.windowManager.alert(e.errstr || ('Error response: ' + x.responseText)); + } + }); + } + }); + + // Register plugin + tinymce.PluginManager.add('spellchecker', tinymce.plugins.SpellcheckerPlugin); +})(); diff --git a/sn_templates/tiny_mce/plugins/spellchecker/img/wline.gif b/sn_templates/tiny_mce/plugins/spellchecker/img/wline.gif new file mode 100644 index 0000000..7d0a4db Binary files /dev/null and b/sn_templates/tiny_mce/plugins/spellchecker/img/wline.gif differ diff --git a/sn_templates/tiny_mce/plugins/style/css/props.css b/sn_templates/tiny_mce/plugins/style/css/props.css new file mode 100644 index 0000000..5550b09 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/css/props.css @@ -0,0 +1,13 @@ +#text_font {width:250px;} +#text_size {width:70px;} +.mceAddSelectValue {background:#DDD;} +select, #block_text_indent, #box_width, #box_height, #box_padding_top, #box_padding_right, #box_padding_bottom, #box_padding_left {width:70px;} +#box_margin_top, #box_margin_right, #box_margin_bottom, #box_margin_left, #positioning_width, #positioning_height, #positioning_zindex {width:70px;} +#positioning_placement_top, #positioning_placement_right, #positioning_placement_bottom, #positioning_placement_left {width:70px;} +#positioning_clip_top, #positioning_clip_right, #positioning_clip_bottom, #positioning_clip_left {width:70px;} +.panel_wrapper div.current {padding-top:10px;height:230px;} +.delim {border-left:1px solid gray;} +.tdelim {border-bottom:1px solid gray;} +#block_display {width:145px;} +#list_type {width:115px;} +.disabled {background:#EEE;} diff --git a/sn_templates/tiny_mce/plugins/style/editor_plugin.js b/sn_templates/tiny_mce/plugins/style/editor_plugin.js new file mode 100644 index 0000000..cab2153 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.StylePlugin",{init:function(a,b){a.addCommand("mceStyleProps",function(){a.windowManager.open({file:b+"/props.htm",width:480+parseInt(a.getLang("style.delta_width",0)),height:320+parseInt(a.getLang("style.delta_height",0)),inline:1},{plugin_url:b,style_text:a.selection.getNode().style.cssText})});a.addCommand("mceSetElementStyle",function(d,c){if(e=a.selection.getNode()){a.dom.setAttrib(e,"style",c);a.execCommand("mceRepaint")}});a.onNodeChange.add(function(d,c,f){c.setDisabled("styleprops",f.nodeName==="BODY")});a.addButton("styleprops",{title:"style.desc",cmd:"mceStyleProps"})},getInfo:function(){return{longname:"Style",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("style",tinymce.plugins.StylePlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/style/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/style/editor_plugin_src.js new file mode 100644 index 0000000..c09d5e8 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/editor_plugin_src.js @@ -0,0 +1,55 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.StylePlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceStyleProps', function() { + ed.windowManager.open({ + file : url + '/props.htm', + width : 480 + parseInt(ed.getLang('style.delta_width', 0)), + height : 320 + parseInt(ed.getLang('style.delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + style_text : ed.selection.getNode().style.cssText + }); + }); + + ed.addCommand('mceSetElementStyle', function(ui, v) { + if (e = ed.selection.getNode()) { + ed.dom.setAttrib(e, 'style', v); + ed.execCommand('mceRepaint'); + } + }); + + ed.onNodeChange.add(function(ed, cm, n) { + cm.setDisabled('styleprops', n.nodeName === 'BODY'); + }); + + // Register buttons + ed.addButton('styleprops', {title : 'style.desc', cmd : 'mceStyleProps'}); + }, + + getInfo : function() { + return { + longname : 'Style', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/style', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('style', tinymce.plugins.StylePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/style/js/props.js b/sn_templates/tiny_mce/plugins/style/js/props.js new file mode 100644 index 0000000..1e73806 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/js/props.js @@ -0,0 +1,641 @@ +tinyMCEPopup.requireLangPack(); + +var defaultFonts = "" + + "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" + + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + + "Courier New, Courier, mono=Courier New, Courier, mono;" + + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + + "Georgia, Times New Roman, Times, serif=Georgia, Times New Roman, Times, serif;" + + "Verdana, Arial, Helvetica, sans-serif=Verdana, Arial, Helvetica, sans-serif;" + + "Geneva, Arial, Helvetica, sans-serif=Geneva, Arial, Helvetica, sans-serif"; + +var defaultSizes = "9;10;12;14;16;18;24;xx-small;x-small;small;medium;large;x-large;xx-large;smaller;larger"; +var defaultMeasurement = "+pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%"; +var defaultSpacingMeasurement = "pixels=px;points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;+ems=em;exs=ex;%"; +var defaultIndentMeasurement = "pixels=px;+points=pt;inches=in;centimetres=cm;millimetres=mm;picas=pc;ems=em;exs=ex;%"; +var defaultWeight = "normal;bold;bolder;lighter;100;200;300;400;500;600;700;800;900"; +var defaultTextStyle = "normal;italic;oblique"; +var defaultVariant = "normal;small-caps"; +var defaultLineHeight = "normal"; +var defaultAttachment = "fixed;scroll"; +var defaultRepeat = "no-repeat;repeat;repeat-x;repeat-y"; +var defaultPosH = "left;center;right"; +var defaultPosV = "top;center;bottom"; +var defaultVAlign = "baseline;sub;super;top;text-top;middle;bottom;text-bottom"; +var defaultDisplay = "inline;block;list-item;run-in;compact;marker;table;inline-table;table-row-group;table-header-group;table-footer-group;table-row;table-column-group;table-column;table-cell;table-caption;none"; +var defaultBorderStyle = "none;solid;dashed;dotted;double;groove;ridge;inset;outset"; +var defaultBorderWidth = "thin;medium;thick"; +var defaultListType = "disc;circle;square;decimal;lower-roman;upper-roman;lower-alpha;upper-alpha;none"; + +function init() { + var ce = document.getElementById('container'), h; + + ce.style.cssText = tinyMCEPopup.getWindowArg('style_text'); + + h = getBrowserHTML('background_image_browser','background_image','image','advimage'); + document.getElementById("background_image_browser").innerHTML = h; + + document.getElementById('text_color_pickcontainer').innerHTML = getColorPickerHTML('text_color_pick','text_color'); + document.getElementById('background_color_pickcontainer').innerHTML = getColorPickerHTML('background_color_pick','background_color'); + document.getElementById('border_color_top_pickcontainer').innerHTML = getColorPickerHTML('border_color_top_pick','border_color_top'); + document.getElementById('border_color_right_pickcontainer').innerHTML = getColorPickerHTML('border_color_right_pick','border_color_right'); + document.getElementById('border_color_bottom_pickcontainer').innerHTML = getColorPickerHTML('border_color_bottom_pick','border_color_bottom'); + document.getElementById('border_color_left_pickcontainer').innerHTML = getColorPickerHTML('border_color_left_pick','border_color_left'); + + fillSelect(0, 'text_font', 'style_font', defaultFonts, ';', true); + fillSelect(0, 'text_size', 'style_font_size', defaultSizes, ';', true); + fillSelect(0, 'text_size_measurement', 'style_font_size_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'text_case', 'style_text_case', "capitalize;uppercase;lowercase", ';', true); + fillSelect(0, 'text_weight', 'style_font_weight', defaultWeight, ';', true); + fillSelect(0, 'text_style', 'style_font_style', defaultTextStyle, ';', true); + fillSelect(0, 'text_variant', 'style_font_variant', defaultVariant, ';', true); + fillSelect(0, 'text_lineheight', 'style_font_line_height', defaultLineHeight, ';', true); + fillSelect(0, 'text_lineheight_measurement', 'style_font_line_height_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'background_attachment', 'style_background_attachment', defaultAttachment, ';', true); + fillSelect(0, 'background_repeat', 'style_background_repeat', defaultRepeat, ';', true); + + fillSelect(0, 'background_hpos_measurement', 'style_background_hpos_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'background_vpos_measurement', 'style_background_vpos_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'background_hpos', 'style_background_hpos', defaultPosH, ';', true); + fillSelect(0, 'background_vpos', 'style_background_vpos', defaultPosV, ';', true); + + fillSelect(0, 'block_wordspacing', 'style_wordspacing', 'normal', ';', true); + fillSelect(0, 'block_wordspacing_measurement', 'style_wordspacing_measurement', defaultSpacingMeasurement, ';', true); + fillSelect(0, 'block_letterspacing', 'style_letterspacing', 'normal', ';', true); + fillSelect(0, 'block_letterspacing_measurement', 'style_letterspacing_measurement', defaultSpacingMeasurement, ';', true); + fillSelect(0, 'block_vertical_alignment', 'style_vertical_alignment', defaultVAlign, ';', true); + fillSelect(0, 'block_text_align', 'style_text_align', "left;right;center;justify", ';', true); + fillSelect(0, 'block_whitespace', 'style_whitespace', "normal;pre;nowrap", ';', true); + fillSelect(0, 'block_display', 'style_display', defaultDisplay, ';', true); + fillSelect(0, 'block_text_indent_measurement', 'style_text_indent_measurement', defaultIndentMeasurement, ';', true); + + fillSelect(0, 'box_width_measurement', 'style_box_width_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_height_measurement', 'style_box_height_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_float', 'style_float', 'left;right;none', ';', true); + fillSelect(0, 'box_clear', 'style_clear', 'left;right;both;none', ';', true); + fillSelect(0, 'box_padding_left_measurement', 'style_padding_left_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_top_measurement', 'style_padding_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_bottom_measurement', 'style_padding_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_padding_right_measurement', 'style_padding_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_left_measurement', 'style_margin_left_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_top_measurement', 'style_margin_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_bottom_measurement', 'style_margin_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'box_margin_right_measurement', 'style_margin_right_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'border_style_top', 'style_border_style_top', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_right', 'style_border_style_right', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_bottom', 'style_border_style_bottom', defaultBorderStyle, ';', true); + fillSelect(0, 'border_style_left', 'style_border_style_left', defaultBorderStyle, ';', true); + + fillSelect(0, 'border_width_top', 'style_border_width_top', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_right', 'style_border_width_right', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_bottom', 'style_border_width_bottom', defaultBorderWidth, ';', true); + fillSelect(0, 'border_width_left', 'style_border_width_left', defaultBorderWidth, ';', true); + + fillSelect(0, 'border_width_top_measurement', 'style_border_width_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_right_measurement', 'style_border_width_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_bottom_measurement', 'style_border_width_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'border_width_left_measurement', 'style_border_width_left_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'list_type', 'style_list_type', defaultListType, ';', true); + fillSelect(0, 'list_position', 'style_list_position', "inside;outside", ';', true); + + fillSelect(0, 'positioning_type', 'style_positioning_type', "absolute;relative;static", ';', true); + fillSelect(0, 'positioning_visibility', 'style_positioning_visibility', "inherit;visible;hidden", ';', true); + + fillSelect(0, 'positioning_width_measurement', 'style_positioning_width_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_height_measurement', 'style_positioning_height_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_overflow', 'style_positioning_overflow', "visible;hidden;scroll;auto", ';', true); + + fillSelect(0, 'positioning_placement_top_measurement', 'style_positioning_placement_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_right_measurement', 'style_positioning_placement_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_bottom_measurement', 'style_positioning_placement_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_placement_left_measurement', 'style_positioning_placement_left_measurement', defaultMeasurement, ';', true); + + fillSelect(0, 'positioning_clip_top_measurement', 'style_positioning_clip_top_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_right_measurement', 'style_positioning_clip_right_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_bottom_measurement', 'style_positioning_clip_bottom_measurement', defaultMeasurement, ';', true); + fillSelect(0, 'positioning_clip_left_measurement', 'style_positioning_clip_left_measurement', defaultMeasurement, ';', true); + + TinyMCE_EditableSelects.init(); + setupFormData(); + showDisabledControls(); +} + +function setupFormData() { + var ce = document.getElementById('container'), f = document.forms[0], s, b, i; + + // Setup text fields + + selectByValue(f, 'text_font', ce.style.fontFamily, true, true); + selectByValue(f, 'text_size', getNum(ce.style.fontSize), true, true); + selectByValue(f, 'text_size_measurement', getMeasurement(ce.style.fontSize)); + selectByValue(f, 'text_weight', ce.style.fontWeight, true, true); + selectByValue(f, 'text_style', ce.style.fontStyle, true, true); + selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true); + selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight)); + selectByValue(f, 'text_case', ce.style.textTransform, true, true); + selectByValue(f, 'text_variant', ce.style.fontVariant, true, true); + f.text_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.color); + updateColor('text_color_pick', 'text_color'); + f.text_underline.checked = inStr(ce.style.textDecoration, 'underline'); + f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); + f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); + f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); + + // Setup background fields + + f.background_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.backgroundColor); + updateColor('background_color_pick', 'background_color'); + f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true); + selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true); + selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true); + selectByValue(f, 'background_hpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 0))); + selectByValue(f, 'background_vpos', getNum(getVal(ce.style.backgroundPosition, 1)), true, true); + selectByValue(f, 'background_vpos_measurement', getMeasurement(getVal(ce.style.backgroundPosition, 1))); + + // Setup block fields + + selectByValue(f, 'block_wordspacing', getNum(ce.style.wordSpacing), true, true); + selectByValue(f, 'block_wordspacing_measurement', getMeasurement(ce.style.wordSpacing)); + selectByValue(f, 'block_letterspacing', getNum(ce.style.letterSpacing), true, true); + selectByValue(f, 'block_letterspacing_measurement', getMeasurement(ce.style.letterSpacing)); + selectByValue(f, 'block_vertical_alignment', ce.style.verticalAlign, true, true); + selectByValue(f, 'block_text_align', ce.style.textAlign, true, true); + f.block_text_indent.value = getNum(ce.style.textIndent); + selectByValue(f, 'block_text_indent_measurement', getMeasurement(ce.style.textIndent)); + selectByValue(f, 'block_whitespace', ce.style.whiteSpace, true, true); + selectByValue(f, 'block_display', ce.style.display, true, true); + + // Setup box fields + + f.box_width.value = getNum(ce.style.width); + selectByValue(f, 'box_width_measurement', getMeasurement(ce.style.width)); + + f.box_height.value = getNum(ce.style.height); + selectByValue(f, 'box_height_measurement', getMeasurement(ce.style.height)); + + if (tinymce.isGecko) + selectByValue(f, 'box_float', ce.style.cssFloat, true, true); + else + selectByValue(f, 'box_float', ce.style.styleFloat, true, true); + + selectByValue(f, 'box_clear', ce.style.clear, true, true); + + setupBox(f, ce, 'box_padding', 'padding', ''); + setupBox(f, ce, 'box_margin', 'margin', ''); + + // Setup border fields + + setupBox(f, ce, 'border_style', 'border', 'Style'); + setupBox(f, ce, 'border_width', 'border', 'Width'); + setupBox(f, ce, 'border_color', 'border', 'Color'); + + updateColor('border_color_top_pick', 'border_color_top'); + updateColor('border_color_right_pick', 'border_color_right'); + updateColor('border_color_bottom_pick', 'border_color_bottom'); + updateColor('border_color_left_pick', 'border_color_left'); + + f.elements.border_color_top.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_top.value); + f.elements.border_color_right.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_right.value); + f.elements.border_color_bottom.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_bottom.value); + f.elements.border_color_left.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_left.value); + + // Setup list fields + + selectByValue(f, 'list_type', ce.style.listStyleType, true, true); + selectByValue(f, 'list_position', ce.style.listStylePosition, true, true); + f.list_bullet_image.value = ce.style.listStyleImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + + // Setup box fields + + selectByValue(f, 'positioning_type', ce.style.position, true, true); + selectByValue(f, 'positioning_visibility', ce.style.visibility, true, true); + selectByValue(f, 'positioning_overflow', ce.style.overflow, true, true); + f.positioning_zindex.value = ce.style.zIndex ? ce.style.zIndex : ""; + + f.positioning_width.value = getNum(ce.style.width); + selectByValue(f, 'positioning_width_measurement', getMeasurement(ce.style.width)); + + f.positioning_height.value = getNum(ce.style.height); + selectByValue(f, 'positioning_height_measurement', getMeasurement(ce.style.height)); + + setupBox(f, ce, 'positioning_placement', '', '', ['top', 'right', 'bottom', 'left']); + + s = ce.style.clip.replace(new RegExp("rect\\('?([^']*)'?\\)", 'gi'), "$1"); + s = s.replace(/,/g, ' '); + + if (!hasEqualValues([getVal(s, 0), getVal(s, 1), getVal(s, 2), getVal(s, 3)])) { + f.positioning_clip_top.value = getNum(getVal(s, 0)); + selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); + f.positioning_clip_right.value = getNum(getVal(s, 1)); + selectByValue(f, 'positioning_clip_right_measurement', getMeasurement(getVal(s, 1))); + f.positioning_clip_bottom.value = getNum(getVal(s, 2)); + selectByValue(f, 'positioning_clip_bottom_measurement', getMeasurement(getVal(s, 2))); + f.positioning_clip_left.value = getNum(getVal(s, 3)); + selectByValue(f, 'positioning_clip_left_measurement', getMeasurement(getVal(s, 3))); + } else { + f.positioning_clip_top.value = getNum(getVal(s, 0)); + selectByValue(f, 'positioning_clip_top_measurement', getMeasurement(getVal(s, 0))); + f.positioning_clip_right.value = f.positioning_clip_bottom.value = f.positioning_clip_left.value; + } + +// setupBox(f, ce, '', 'border', 'Color'); +} + +function getMeasurement(s) { + return s.replace(/^([0-9.]+)(.*)$/, "$2"); +} + +function getNum(s) { + if (new RegExp('^(?:[0-9.]+)(?:[a-z%]+)$', 'gi').test(s)) + return s.replace(/[^0-9.]/g, ''); + + return s; +} + +function inStr(s, n) { + return new RegExp(n, 'gi').test(s); +} + +function getVal(s, i) { + var a = s.split(' '); + + if (a.length > 1) + return a[i]; + + return ""; +} + +function setValue(f, n, v) { + if (f.elements[n].type == "text") + f.elements[n].value = v; + else + selectByValue(f, n, v, true, true); +} + +function setupBox(f, ce, fp, pr, sf, b) { + if (typeof(b) == "undefined") + b = ['Top', 'Right', 'Bottom', 'Left']; + + if (isSame(ce, pr, sf, b)) { + f.elements[fp + "_same"].checked = true; + + setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); + f.elements[fp + "_top"].disabled = false; + + f.elements[fp + "_right"].value = ""; + f.elements[fp + "_right"].disabled = true; + f.elements[fp + "_bottom"].value = ""; + f.elements[fp + "_bottom"].disabled = true; + f.elements[fp + "_left"].value = ""; + f.elements[fp + "_left"].disabled = true; + + if (f.elements[fp + "_top_measurement"]) { + selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); + f.elements[fp + "_left_measurement"].disabled = true; + f.elements[fp + "_bottom_measurement"].disabled = true; + f.elements[fp + "_right_measurement"].disabled = true; + } + } else { + f.elements[fp + "_same"].checked = false; + + setValue(f, fp + "_top", getNum(ce.style[pr + b[0] + sf])); + f.elements[fp + "_top"].disabled = false; + + setValue(f, fp + "_right", getNum(ce.style[pr + b[1] + sf])); + f.elements[fp + "_right"].disabled = false; + + setValue(f, fp + "_bottom", getNum(ce.style[pr + b[2] + sf])); + f.elements[fp + "_bottom"].disabled = false; + + setValue(f, fp + "_left", getNum(ce.style[pr + b[3] + sf])); + f.elements[fp + "_left"].disabled = false; + + if (f.elements[fp + "_top_measurement"]) { + selectByValue(f, fp + '_top_measurement', getMeasurement(ce.style[pr + b[0] + sf])); + selectByValue(f, fp + '_right_measurement', getMeasurement(ce.style[pr + b[1] + sf])); + selectByValue(f, fp + '_bottom_measurement', getMeasurement(ce.style[pr + b[2] + sf])); + selectByValue(f, fp + '_left_measurement', getMeasurement(ce.style[pr + b[3] + sf])); + f.elements[fp + "_left_measurement"].disabled = false; + f.elements[fp + "_bottom_measurement"].disabled = false; + f.elements[fp + "_right_measurement"].disabled = false; + } + } +} + +function isSame(e, pr, sf, b) { + var a = [], i, x; + + if (typeof(b) == "undefined") + b = ['Top', 'Right', 'Bottom', 'Left']; + + if (typeof(sf) == "undefined" || sf == null) + sf = ""; + + a[0] = e.style[pr + b[0] + sf]; + a[1] = e.style[pr + b[1] + sf]; + a[2] = e.style[pr + b[2] + sf]; + a[3] = e.style[pr + b[3] + sf]; + + for (i=0; i 0 ? s.substring(1) : s; + + if (f.text_none.checked) + s = "none"; + + ce.style.textDecoration = s; + + // Build background styles + + ce.style.backgroundColor = f.background_color.value; + ce.style.backgroundImage = f.background_image.value != "" ? "url(" + f.background_image.value + ")" : ""; + ce.style.backgroundRepeat = f.background_repeat.value; + ce.style.backgroundAttachment = f.background_attachment.value; + + if (f.background_hpos.value != "") { + s = ""; + s += f.background_hpos.value + (isNum(f.background_hpos.value) ? f.background_hpos_measurement.value : "") + " "; + s += f.background_vpos.value + (isNum(f.background_vpos.value) ? f.background_vpos_measurement.value : ""); + ce.style.backgroundPosition = s; + } + + // Build block styles + + ce.style.wordSpacing = f.block_wordspacing.value + (isNum(f.block_wordspacing.value) ? f.block_wordspacing_measurement.value : ""); + ce.style.letterSpacing = f.block_letterspacing.value + (isNum(f.block_letterspacing.value) ? f.block_letterspacing_measurement.value : ""); + ce.style.verticalAlign = f.block_vertical_alignment.value; + ce.style.textAlign = f.block_text_align.value; + ce.style.textIndent = f.block_text_indent.value + (isNum(f.block_text_indent.value) ? f.block_text_indent_measurement.value : ""); + ce.style.whiteSpace = f.block_whitespace.value; + ce.style.display = f.block_display.value; + + // Build box styles + + ce.style.width = f.box_width.value + (isNum(f.box_width.value) ? f.box_width_measurement.value : ""); + ce.style.height = f.box_height.value + (isNum(f.box_height.value) ? f.box_height_measurement.value : ""); + ce.style.styleFloat = f.box_float.value; + + if (tinymce.isGecko) + ce.style.cssFloat = f.box_float.value; + + ce.style.clear = f.box_clear.value; + + if (!f.box_padding_same.checked) { + ce.style.paddingTop = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); + ce.style.paddingRight = f.box_padding_right.value + (isNum(f.box_padding_right.value) ? f.box_padding_right_measurement.value : ""); + ce.style.paddingBottom = f.box_padding_bottom.value + (isNum(f.box_padding_bottom.value) ? f.box_padding_bottom_measurement.value : ""); + ce.style.paddingLeft = f.box_padding_left.value + (isNum(f.box_padding_left.value) ? f.box_padding_left_measurement.value : ""); + } else + ce.style.padding = f.box_padding_top.value + (isNum(f.box_padding_top.value) ? f.box_padding_top_measurement.value : ""); + + if (!f.box_margin_same.checked) { + ce.style.marginTop = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); + ce.style.marginRight = f.box_margin_right.value + (isNum(f.box_margin_right.value) ? f.box_margin_right_measurement.value : ""); + ce.style.marginBottom = f.box_margin_bottom.value + (isNum(f.box_margin_bottom.value) ? f.box_margin_bottom_measurement.value : ""); + ce.style.marginLeft = f.box_margin_left.value + (isNum(f.box_margin_left.value) ? f.box_margin_left_measurement.value : ""); + } else + ce.style.margin = f.box_margin_top.value + (isNum(f.box_margin_top.value) ? f.box_margin_top_measurement.value : ""); + + // Build border styles + + if (!f.border_style_same.checked) { + ce.style.borderTopStyle = f.border_style_top.value; + ce.style.borderRightStyle = f.border_style_right.value; + ce.style.borderBottomStyle = f.border_style_bottom.value; + ce.style.borderLeftStyle = f.border_style_left.value; + } else + ce.style.borderStyle = f.border_style_top.value; + + if (!f.border_width_same.checked) { + ce.style.borderTopWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); + ce.style.borderRightWidth = f.border_width_right.value + (isNum(f.border_width_right.value) ? f.border_width_right_measurement.value : ""); + ce.style.borderBottomWidth = f.border_width_bottom.value + (isNum(f.border_width_bottom.value) ? f.border_width_bottom_measurement.value : ""); + ce.style.borderLeftWidth = f.border_width_left.value + (isNum(f.border_width_left.value) ? f.border_width_left_measurement.value : ""); + } else + ce.style.borderWidth = f.border_width_top.value + (isNum(f.border_width_top.value) ? f.border_width_top_measurement.value : ""); + + if (!f.border_color_same.checked) { + ce.style.borderTopColor = f.border_color_top.value; + ce.style.borderRightColor = f.border_color_right.value; + ce.style.borderBottomColor = f.border_color_bottom.value; + ce.style.borderLeftColor = f.border_color_left.value; + } else + ce.style.borderColor = f.border_color_top.value; + + // Build list styles + + ce.style.listStyleType = f.list_type.value; + ce.style.listStylePosition = f.list_position.value; + ce.style.listStyleImage = f.list_bullet_image.value != "" ? "url(" + f.list_bullet_image.value + ")" : ""; + + // Build positioning styles + + ce.style.position = f.positioning_type.value; + ce.style.visibility = f.positioning_visibility.value; + + if (ce.style.width == "") + ce.style.width = f.positioning_width.value + (isNum(f.positioning_width.value) ? f.positioning_width_measurement.value : ""); + + if (ce.style.height == "") + ce.style.height = f.positioning_height.value + (isNum(f.positioning_height.value) ? f.positioning_height_measurement.value : ""); + + ce.style.zIndex = f.positioning_zindex.value; + ce.style.overflow = f.positioning_overflow.value; + + if (!f.positioning_placement_same.checked) { + ce.style.top = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); + ce.style.right = f.positioning_placement_right.value + (isNum(f.positioning_placement_right.value) ? f.positioning_placement_right_measurement.value : ""); + ce.style.bottom = f.positioning_placement_bottom.value + (isNum(f.positioning_placement_bottom.value) ? f.positioning_placement_bottom_measurement.value : ""); + ce.style.left = f.positioning_placement_left.value + (isNum(f.positioning_placement_left.value) ? f.positioning_placement_left_measurement.value : ""); + } else { + s = f.positioning_placement_top.value + (isNum(f.positioning_placement_top.value) ? f.positioning_placement_top_measurement.value : ""); + ce.style.top = s; + ce.style.right = s; + ce.style.bottom = s; + ce.style.left = s; + } + + if (!f.positioning_clip_same.checked) { + s = "rect("; + s += (isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_right.value) ? f.positioning_clip_right.value + f.positioning_clip_right_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_bottom.value) ? f.positioning_clip_bottom.value + f.positioning_clip_bottom_measurement.value : "auto") + " "; + s += (isNum(f.positioning_clip_left.value) ? f.positioning_clip_left.value + f.positioning_clip_left_measurement.value : "auto"); + s += ")"; + + if (s != "rect(auto auto auto auto)") + ce.style.clip = s; + } else { + s = "rect("; + t = isNum(f.positioning_clip_top.value) ? f.positioning_clip_top.value + f.positioning_clip_top_measurement.value : "auto"; + s += t + " "; + s += t + " "; + s += t + " "; + s += t + ")"; + + if (s != "rect(auto auto auto auto)") + ce.style.clip = s; + } + + ce.style.cssText = ce.style.cssText; +} + +function isNum(s) { + return new RegExp('[0-9]+', 'g').test(s); +} + +function showDisabledControls() { + var f = document.forms, i, a; + + for (i=0; i 1) { + addSelectValue(f, s, p[0], p[1]); + + if (se) + selectByValue(f, s, p[1]); + } else { + addSelectValue(f, s, p[0], p[0]); + + if (se) + selectByValue(f, s, p[0]); + } + } +} + +function toggleSame(ce, pre) { + var el = document.forms[0].elements, i; + + if (ce.checked) { + el[pre + "_top"].disabled = false; + el[pre + "_right"].disabled = true; + el[pre + "_bottom"].disabled = true; + el[pre + "_left"].disabled = true; + + if (el[pre + "_top_measurement"]) { + el[pre + "_top_measurement"].disabled = false; + el[pre + "_right_measurement"].disabled = true; + el[pre + "_bottom_measurement"].disabled = true; + el[pre + "_left_measurement"].disabled = true; + } + } else { + el[pre + "_top"].disabled = false; + el[pre + "_right"].disabled = false; + el[pre + "_bottom"].disabled = false; + el[pre + "_left"].disabled = false; + + if (el[pre + "_top_measurement"]) { + el[pre + "_top_measurement"].disabled = false; + el[pre + "_right_measurement"].disabled = false; + el[pre + "_bottom_measurement"].disabled = false; + el[pre + "_left_measurement"].disabled = false; + } + } + + showDisabledControls(); +} + +function synch(fr, to) { + var f = document.forms[0]; + + f.elements[to].value = f.elements[fr].value; + + if (f.elements[fr + "_measurement"]) + selectByValue(f, to + "_measurement", f.elements[fr + "_measurement"].value); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/plugins/style/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/style/langs/de_dlg.js new file mode 100644 index 0000000..c30de26 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/langs/de_dlg.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('de.style_dlg',{ +title:"CSS-Styles bearbeiten", +apply:"\u00DCbernehmen", +text_tab:"Text", +background_tab:"Hintergrund", +block_tab:"Block", +box_tab:"Box", +border_tab:"Rahmen", +list_tab:"Liste", +positioning_tab:"Positionierung", +text_props:"Text", +text_font:"Schriftart", +text_size:"Gr\u00F6\u00DFe", +text_weight:"Dicke", +text_style:"Stil", +text_variant:"Variante", +text_lineheight:"Zeilenh\u00F6he", +text_case:"Schreibung", +text_color:"Farbe", +text_decoration:"Gestaltung", +text_overline:"\u00FCberstrichen", +text_underline:"unterstrichen", +text_striketrough:"durchgestrichen", +text_blink:"blinkend", +text_none:"keine", +background_color:"Hintergrundfarbe", +background_image:"Hintergrundbild", +background_repeat:"Wiederholung", +background_attachment:"Wasserzeicheneffekt", +background_hpos:"Position X", +background_vpos:"Position Y", +block_wordspacing:"Wortabstand", +block_letterspacing:"Buchstabenabstand", +block_vertical_alignment:"Vertikale Ausrichtung", +block_text_align:"Ausrichtung", +block_text_indent:"Einr\u00FCckung", +block_whitespace:"Automatischer Umbruch", +block_display:"Umbruchverhalten", +box_width:"Breite", +box_height:"H\u00F6he", +box_float:"Umflie\u00DFung", +box_clear:"Umflie\u00DFung verhindern", +padding:"Innerer Abstand", +same:"Alle gleich", +top:"Oben", +right:"Rechts", +bottom:"Unten", +left:"Links", +margin:"\u00C4u\u00DFerer Abstand", +style:"Format", +width:"Breite", +height:"H\u00F6he", +color:"Textfarbe", +list_type:"Listenpunkt-Art", +bullet_image:"Listenpunkt-Grafik", +position:"Positionierung", +positioning_type:"Art der Positionierung", +visibility:"Sichtbar", +zindex:"Z-Wert", +overflow:"Verhalten bei \u00DCbergr\u00F6\u00DFe", +placement:"Platzierung", +clip:"Ausschnitt" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/style/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/style/langs/en_dlg.js new file mode 100644 index 0000000..d9d7762 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/langs/en_dlg.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('en.style_dlg',{ +title:"Edit CSS Style", +apply:"Apply", +text_tab:"Text", +background_tab:"Background", +block_tab:"Block", +box_tab:"Box", +border_tab:"Border", +list_tab:"List", +positioning_tab:"Positioning", +text_props:"Text", +text_font:"Font", +text_size:"Size", +text_weight:"Weight", +text_style:"Style", +text_variant:"Variant", +text_lineheight:"Line height", +text_case:"Case", +text_color:"Color", +text_decoration:"Decoration", +text_overline:"overline", +text_underline:"underline", +text_striketrough:"strikethrough", +text_blink:"blink", +text_none:"none", +background_color:"Background color", +background_image:"Background image", +background_repeat:"Repeat", +background_attachment:"Attachment", +background_hpos:"Horizontal position", +background_vpos:"Vertical position", +block_wordspacing:"Word spacing", +block_letterspacing:"Letter spacing", +block_vertical_alignment:"Vertical alignment", +block_text_align:"Text align", +block_text_indent:"Text indent", +block_whitespace:"Whitespace", +block_display:"Display", +box_width:"Width", +box_height:"Height", +box_float:"Float", +box_clear:"Clear", +padding:"Padding", +same:"Same for all", +top:"Top", +right:"Right", +bottom:"Bottom", +left:"Left", +margin:"Margin", +style:"Style", +width:"Width", +height:"Height", +color:"Color", +list_type:"Type", +bullet_image:"Bullet image", +position:"Position", +positioning_type:"Type", +visibility:"Visibility", +zindex:"Z-index", +overflow:"Overflow", +placement:"Placement", +clip:"Clip" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/style/props.htm b/sn_templates/tiny_mce/plugins/style/props.htm new file mode 100644 index 0000000..549ed04 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/style/props.htm @@ -0,0 +1,723 @@ + + + + {#style_dlg.title} + + + + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + + + + + + +
                                                 
                                                +
                                                + +
                                                + + + +
                                                + + + + + + +
                                                + +  
                                                +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                {#style_dlg.text_decoration} + + + + + + + + + + + + + + + + + + + + + +
                                                +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + + +
                                                 
                                                +
                                                + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + +
                                                + + + + + + +
                                                 
                                                +
                                                   
                                                + + + + + + +
                                                 
                                                +
                                                   
                                                +
                                                +
                                                + {#style_dlg.padding} + + + + + + + + + + + + + + + + + + + + + + +
                                                 
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#style_dlg.margin} + + + + + + + + + + + + + + + + + + + + + + +
                                                 
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                + + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                  {#style_dlg.style} {#style_dlg.width} {#style_dlg.color}
                                                      
                                                {#style_dlg.top}   + + + + + + +
                                                 
                                                +
                                                  + + + + + +
                                                 
                                                +
                                                {#style_dlg.right}   + + + + + + +
                                                 
                                                +
                                                  + + + + + +
                                                 
                                                +
                                                {#style_dlg.bottom}   + + + + + + +
                                                 
                                                +
                                                  + + + + + +
                                                 
                                                +
                                                {#style_dlg.left}   + + + + + + +
                                                 
                                                +
                                                  + + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + + +
                                                +
                                                + +
                                                + + + + + + + + + + + + + + + + + + + + + +
                                                   
                                                + + + + + + +
                                                 
                                                +
                                                   
                                                + + + + + + +
                                                 
                                                +
                                                   
                                                + +
                                                +
                                                + {#style_dlg.placement} + + + + + + + + + + + + + + + + + + + + + + +
                                                 
                                                {#style_dlg.top} + + + + + + +
                                                 
                                                +
                                                {#style_dlg.right} + + + + + + +
                                                 
                                                +
                                                {#style_dlg.bottom} + + + + + + +
                                                 
                                                +
                                                {#style_dlg.left} + + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#style_dlg.clip} + + + + + + + + + + + + + + + + + + + + + + +
                                                 
                                                {#style_dlg.top} + + + + + + +
                                                 
                                                +
                                                {#style_dlg.right} + + + + + + +
                                                 
                                                +
                                                {#style_dlg.bottom} + + + + + + +
                                                 
                                                +
                                                {#style_dlg.left} + + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + + + +
                                                +
                                                + +
                                                +
                                                +
                                                + + + diff --git a/sn_templates/tiny_mce/plugins/tabfocus/editor_plugin.js b/sn_templates/tiny_mce/plugins/tabfocus/editor_plugin.js new file mode 100644 index 0000000..27d2440 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/tabfocus/editor_plugin.js @@ -0,0 +1 @@ +(function(){var c=tinymce.DOM,a=tinymce.dom.Event,d=tinymce.each,b=tinymce.explode;tinymce.create("tinymce.plugins.TabFocusPlugin",{init:function(f,g){function e(i,j){if(j.keyCode===9){return a.cancel(j)}}function h(l,p){var j,m,o,n,k;function q(i){o=c.getParent(l.id,"form");n=o.elements;if(o){d(n,function(s,r){if(s.id==l.id){j=r;return false}});if(i>0){for(m=j+1;m=0;m--){if(n[m].type!="hidden"){return n[m]}}}}return null}if(p.keyCode===9){k=b(l.getParam("tab_focus",l.getParam("tabfocus_elements",":prev,:next")));if(k.length==1){k[1]=k[0];k[0]=":prev"}if(p.shiftKey){if(k[0]==":prev"){n=q(-1)}else{n=c.get(k[0])}}else{if(k[1]==":next"){n=q(1)}else{n=c.get(k[1])}}if(n){if(l=tinymce.get(n.id||n.name)){l.focus()}else{window.setTimeout(function(){window.focus();n.focus()},10)}return a.cancel(p)}}}f.onKeyUp.add(e);if(tinymce.isGecko){f.onKeyPress.add(h);f.onKeyDown.add(e)}else{f.onKeyDown.add(h)}f.onInit.add(function(){d(c.select("a:first,a:last",f.getContainer()),function(i){a.add(i,"focus",function(){f.focus()})})})},getInfo:function(){return{longname:"Tabfocus",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("tabfocus",tinymce.plugins.TabFocusPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/tabfocus/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/tabfocus/editor_plugin_src.js new file mode 100644 index 0000000..e0e9635 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/tabfocus/editor_plugin_src.js @@ -0,0 +1,112 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, explode = tinymce.explode; + + tinymce.create('tinymce.plugins.TabFocusPlugin', { + init : function(ed, url) { + function tabCancel(ed, e) { + if (e.keyCode === 9) + return Event.cancel(e); + }; + + function tabHandler(ed, e) { + var x, i, f, el, v; + + function find(d) { + f = DOM.getParent(ed.id, 'form'); + el = f.elements; + + if (f) { + each(el, function(e, i) { + if (e.id == ed.id) { + x = i; + return false; + } + }); + + if (d > 0) { + for (i = x + 1; i < el.length; i++) { + if (el[i].type != 'hidden') + return el[i]; + } + } else { + for (i = x - 1; i >= 0; i--) { + if (el[i].type != 'hidden') + return el[i]; + } + } + } + + return null; + }; + + if (e.keyCode === 9) { + v = explode(ed.getParam('tab_focus', ed.getParam('tabfocus_elements', ':prev,:next'))); + + if (v.length == 1) { + v[1] = v[0]; + v[0] = ':prev'; + } + + // Find element to focus + if (e.shiftKey) { + if (v[0] == ':prev') + el = find(-1); + else + el = DOM.get(v[0]); + } else { + if (v[1] == ':next') + el = find(1); + else + el = DOM.get(v[1]); + } + + if (el) { + if (ed = tinymce.get(el.id || el.name)) + ed.focus(); + else + window.setTimeout(function() {window.focus();el.focus();}, 10); + + return Event.cancel(e); + } + } + }; + + ed.onKeyUp.add(tabCancel); + + if (tinymce.isGecko) { + ed.onKeyPress.add(tabHandler); + ed.onKeyDown.add(tabCancel); + } else + ed.onKeyDown.add(tabHandler); + + ed.onInit.add(function() { + each(DOM.select('a:first,a:last', ed.getContainer()), function(n) { + Event.add(n, 'focus', function() {ed.focus();}); + }); + }); + }, + + getInfo : function() { + return { + longname : 'Tabfocus', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/tabfocus', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('tabfocus', tinymce.plugins.TabFocusPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/table/cell.htm b/sn_templates/tiny_mce/plugins/table/cell.htm new file mode 100644 index 0000000..af7e003 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/cell.htm @@ -0,0 +1,178 @@ + + + + {#table_dlg.cell_title} + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + +
                                                + + + +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/table/css/cell.css b/sn_templates/tiny_mce/plugins/table/css/cell.css new file mode 100644 index 0000000..a47cc1a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/css/cell.css @@ -0,0 +1,17 @@ +/* CSS file for cell dialog in the table plugin */ + +.panel_wrapper div.current { + height: 200px; +} + +.advfield { + width: 200px; +} + +#action { + margin-bottom: 3px; +} + +#class { + width: 150px; +} \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/table/css/row.css b/sn_templates/tiny_mce/plugins/table/css/row.css new file mode 100644 index 0000000..0e397db --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/css/row.css @@ -0,0 +1,25 @@ +/* CSS file for row dialog in the table plugin */ + +.panel_wrapper div.current { + height: 200px; +} + +.advfield { + width: 200px; +} + +#action { + margin-bottom: 3px; +} + +#rowtype,#align,#valign,#class,#height { + width: 150px; +} + +#height { + width: 50px; +} + +.col2 { + padding-left: 20px; +} diff --git a/sn_templates/tiny_mce/plugins/table/css/table.css b/sn_templates/tiny_mce/plugins/table/css/table.css new file mode 100644 index 0000000..8f10783 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/css/table.css @@ -0,0 +1,13 @@ +/* CSS file for table dialog in the table plugin */ + +.panel_wrapper div.current { + height: 245px; +} + +.advfield { + width: 200px; +} + +#class { + width: 150px; +} diff --git a/sn_templates/tiny_mce/plugins/table/editor_plugin.js b/sn_templates/tiny_mce/plugins/table/editor_plugin.js new file mode 100644 index 0000000..266d7d5 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/editor_plugin.js @@ -0,0 +1 @@ +(function(b){var c=b.each;function a(F,E,I){var e,J,B,n;r();n=E.getParent(I.getStart(),"th,td");if(n){J=D(n);B=G();n=v(J.x,J.y)}function w(L,K){L=L.cloneNode(K);L.removeAttribute("id");return L}function r(){var K=0;e=[];c(["thead","tbody","tfoot"],function(L){var M=E.select(L+" tr",F);c(M,function(N,O){O+=K;c(E.select("td,th",N),function(U,P){var Q,R,S,T;if(e[O]){while(e[O][P]){P++}}S=g(U,"rowspan");T=g(U,"colspan");for(R=O;R'}return false}},"childNodes");K=w(K,false);K.rowSpan=K.colSpan=1;if(L){K.appendChild(L)}else{if(!b.isIE){K.innerHTML='
                                                '}}return K}function p(){var K=E.createRng();c(E.select("tr",F),function(L){if(L.cells.length==0){E.remove(L)}});if(E.select("tr",F).length==0){K.setStartAfter(F);K.setEndAfter(F);I.setRng(K);E.remove(F);return}c(E.select("thead,tbody,tfoot",F),function(L){if(L.rows.length==0){E.remove(L)}});r();row=e[Math.min(e.length-1,J.y)];if(row){I.select(row[Math.min(row.length-1,J.x)].elm,true);I.collapse(true)}}function s(Q,O,S,P){var N,L,K,M,R;N=e[O][Q].elm.parentNode;for(K=1;K<=S;K++){N=E.getNext(N,"tr");if(N){for(L=Q;L>=0;L--){R=e[O+K][L].elm;if(R.parentNode==N){for(M=1;M<=P;M++){E.insertAfter(d(R),R)}break}}if(L==-1){for(M=1;M<=P;M++){N.insertBefore(d(N.cells[0]),N.cells[0])}}}}}function A(){c(e,function(K,L){c(K,function(N,M){var Q,P,R,O;if(h(N)){N=N.elm;Q=g(N,"colspan");P=g(N,"rowspan");if(Q>1||P>1){N.colSpan=N.rowSpan=1;for(O=0;O1){P.rowSpan=rowSpan+1;continue}}else{if(K>0&&e[K-1][O]){S=e[K-1][O].elm;rowSpan=g(S,"rowspan");if(rowSpan>1){S.rowSpan=rowSpan+1;continue}}}L=d(P);L.colSpan=P.colSpan;R.appendChild(L);M=P}}if(R.hasChildNodes()){if(!N){E.insertAfter(R,Q)}else{Q.parentNode.insertBefore(R,Q)}}}function f(L){var M,K;c(e,function(N,O){c(N,function(Q,P){if(h(Q)){M=P;if(L){return false}}});if(L){return !M}});c(e,function(Q,R){var N=Q[M].elm,O,P;if(N!=K){P=g(N,"colspan");O=g(N,"rowspan");if(P==1){if(!L){E.insertAfter(d(N),N);s(M,R,O-1,P)}else{N.parentNode.insertBefore(d(N),N);s(M,R,O-1,P)}}else{N.colSpan++}K=N}})}function m(){var K=[];c(e,function(L,M){c(L,function(O,N){if(h(O)&&b.inArray(K,N)===-1){c(e,function(R){var P=R[N].elm,Q;Q=g(P,"colspan");if(Q>1){P.colSpan=Q-1}else{E.remove(P)}});K.push(N)}})});p()}function l(){var L;function K(O){var N,P,M;N=E.getNext(O,"tr");c(O.cells,function(Q){var R=g(Q,"rowspan");if(R>1){Q.rowSpan=R-1;P=D(Q);s(P.x,P.y,1,1)}});P=D(O.cells[0]);c(e[P.y],function(Q){var R;Q=Q.elm;if(Q!=M){R=g(Q,"rowspan");if(R<=1){E.remove(Q)}else{Q.rowSpan=R-1}M=Q}})}L=j();c(L.reverse(),function(M){K(M)});p()}function C(){var K=j();E.remove(K);p();return K}function H(){var K=j();c(K,function(M,L){K[L]=w(M,true)});return K}function z(M,L){var N=j(),K=N[L?0:N.length-1],O=K.cells.length;c(e,function(Q){var P;O=0;c(Q,function(S,R){if(S.real){O+=S.colspan}if(S.elm.parentNode==K){P=1}});if(P){return false}});if(!L){M.reverse()}c(M,function(R){var Q=R.cells.length,P;for(i=0;iL){L=P}if(O>K){K=O}if(Q.real){S=Q.colspan-1;R=Q.rowspan-1;if(S){if(P+S>L){L=P+S}}if(R){if(O+R>K){K=O+R}}}}})});return{x:L,y:K}}function t(Q){var N,M,S,R,L,K,O,P;B=D(Q);if(J&&B){N=Math.min(J.x,B.x);M=Math.min(J.y,B.y);S=Math.max(J.x,B.x);R=Math.max(J.y,B.y);L=S;K=R;for(y=M;y<=K;y++){Q=e[y][N];if(!Q.real){if(N-(Q.colspan-1)L){L=x+O}}if(P){if(y+P>K){K=y+P}}}}}E.removeClass(E.select("td.mceSelected,th.mceSelected"),"mceSelected");for(y=M;y<=K;y++){for(x=N;x<=L;x++){E.addClass(e[y][x].elm,"mceSelected")}}}}b.extend(this,{deleteTable:q,split:A,merge:o,insertRow:k,insertCol:f,deleteCols:m,deleteRows:l,cutRows:C,copyRows:H,pasteRows:z,getPos:D,setStartCell:u,setEndCell:t})}b.create("tinymce.plugins.TablePlugin",{init:function(e,f){var d,j;function h(m){var l=e.selection,k=e.dom.getParent(m||l.getNode(),"table");if(k){return new a(k,e.dom,l)}}function g(){e.getBody().style.webkitUserSelect="";e.dom.removeClass(e.dom.select("td.mceSelected,th.mceSelected"),"mceSelected")}c([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(k){e.addButton(k[0],{title:k[1],cmd:k[2],ui:k[3]})});if(!b.isIE){e.onClick.add(function(k,l){l=l.target;if(l.nodeName==="TABLE"){k.selection.select(l)}})}e.onNodeChange.add(function(l,k,o){var m;o=l.selection.getStart();m=l.dom.getParent(o,"td,th,caption");k.setActive("table",o.nodeName==="TABLE"||!!m);if(m&&m.nodeName==="CAPTION"){m=0}k.setDisabled("delete_table",!m);k.setDisabled("delete_col",!m);k.setDisabled("delete_table",!m);k.setDisabled("delete_row",!m);k.setDisabled("col_after",!m);k.setDisabled("col_before",!m);k.setDisabled("row_after",!m);k.setDisabled("row_before",!m);k.setDisabled("row_props",!m);k.setDisabled("cell_props",!m);k.setDisabled("split_cells",!m);k.setDisabled("merge_cells",!m)});e.onInit.add(function(l){var k,o,p=l.dom,m;d=l.windowManager;l.onMouseDown.add(function(q,r){if(r.button!=2){g();o=p.getParent(r.target,"td,th");k=p.getParent(o,"table")}});p.bind(l.getDoc(),"mouseover",function(t){var r,q,s=t.target;if(o&&(m||s!=o)&&(s.nodeName=="TD"||s.nodeName=="TH")){q=p.getParent(s,"table");if(q==k){if(!m){m=h(q);m.setStartCell(o);l.getBody().style.webkitUserSelect="none"}m.setEndCell(s)}r=l.selection.getSel();if(r.removeAllRanges){r.removeAllRanges()}else{r.empty()}t.preventDefault()}});l.onMouseUp.add(function(z,A){var r,t=z.selection,B,C=t.getSel(),q,u,s,w;if(o){if(m){z.getBody().style.webkitUserSelect=""}function v(D,F){var E=new b.dom.TreeWalker(D,D);do{if(D.nodeType==3&&b.trim(D.nodeValue).length!=0){if(F){r.setStart(D,0)}else{r.setEnd(D,D.nodeValue.length)}return}if(D.nodeName=="BR"){if(F){r.setStartBefore(D)}else{r.setEndBefore(D)}return}}while(D=(F?E.next():E.prev()))}B=p.select("td.mceSelected,th.mceSelected");if(B.length>0){r=p.createRng();u=B[0];w=B[B.length-1];v(u,1);q=new b.dom.TreeWalker(u,p.getParent(B[0],"table"));do{if(u.nodeName=="TD"||u.nodeName=="TH"){if(!p.hasClass(u,"mceSelected")){break}s=u}}while(u=q.next());v(s);t.setRng(r)}z.nodeChanged();o=m=k=null}});l.onKeyUp.add(function(q,r){g()});if(l&&l.plugins.contextmenu){l.plugins.contextmenu.onContextMenu.add(function(s,q,u){var v,t=l.selection,r=t.getNode()||l.getBody();if(l.dom.getParent(u,"td")||l.dom.getParent(u,"th")||l.dom.select("td.mceSelected,th.mceSelected").length){q.removeAll();if(r.nodeName=="A"&&!l.dom.getAttrib(r,"name")){q.add({title:"advanced.link_desc",icon:"link",cmd:l.plugins.advlink?"mceAdvLink":"mceLink",ui:true});q.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});q.addSeparator()}if(r.nodeName=="IMG"&&r.className.indexOf("mceItem")==-1){q.add({title:"advanced.image_desc",icon:"image",cmd:l.plugins.advimage?"mceAdvImage":"mceImage",ui:true});q.addSeparator()}q.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",value:{action:"insert"}});q.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable"});q.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete"});q.addSeparator();v=q.addMenu({title:"table.cell"});v.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps"});v.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells"});v.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells"});v=q.addMenu({title:"table.row"});v.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps"});v.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});v.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});v.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});v.addSeparator();v.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});v.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});v.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"}).setDisabled(!j);v.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"}).setDisabled(!j);v=q.addMenu({title:"table.col"});v.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});v.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});v.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{q.add({title:"table.desc",icon:"table",cmd:"mceInsertTable"})}})}if(!b.isIE){function n(){var q;for(q=l.getBody().lastChild;q&&q.nodeType==3&&!q.nodeValue.length;q=q.previousSibling){}if(q&&q.nodeName=="TABLE"){l.dom.add(l.getBody(),"p",null,'
                                                ')}}if(b.isGecko){l.onKeyDown.add(function(r,t){var q,s,u=r.dom;if(t.keyCode==37||t.keyCode==38){q=r.selection.getRng();s=u.getParent(q.startContainer,"table");if(s&&r.getBody().firstChild==s){if(isAtStart(q,s)){q=u.createRng();q.setStartBefore(s);q.setEndBefore(s);r.selection.setRng(q);t.preventDefault()}}}})}l.onKeyUp.add(n);l.onSetContent.add(n);l.onVisualAid.add(n);l.onPreProcess.add(function(q,s){var r=s.node.lastChild;if(r&&r.childNodes.length==1&&r.firstChild.nodeName=="BR"){q.dom.remove(r)}});n()}});c({mceTableSplitCells:function(k){k.split()},mceTableMergeCells:function(l){var m,n,k;k=e.dom.getParent(e.selection.getNode(),"th,td");if(k){m=k.rowSpan;n=k.colSpan}if(!e.dom.select("td.mceSelected,th.mceSelected").length){d.open({url:f+"/merge_cells.htm",width:240+parseInt(e.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(e.getLang("table.merge_cells_delta_height",0)),inline:1},{rows:m,cols:n,onaction:function(o){l.merge(k,o.cols,o.rows)},plugin_url:f})}else{l.merge()}},mceTableInsertRowBefore:function(k){k.insertRow(true)},mceTableInsertRowAfter:function(k){k.insertRow()},mceTableInsertColBefore:function(k){k.insertCol(true)},mceTableInsertColAfter:function(k){k.insertCol()},mceTableDeleteCol:function(k){k.deleteCols()},mceTableDeleteRow:function(k){k.deleteRows()},mceTableCutRow:function(k){j=k.cutRows()},mceTableCopyRow:function(k){j=k.copyRows()},mceTablePasteRowBefore:function(k){k.pasteRows(j,true)},mceTablePasteRowAfter:function(k){k.pasteRows(j)},mceTableDelete:function(k){k.deleteTable()}},function(l,k){e.addCommand(k,function(){var m=h();if(m){l(m);e.execCommand("mceRepaint");g()}})});c({mceInsertTable:function(k){d.open({url:f+"/table.htm",width:400+parseInt(e.getLang("table.table_delta_width",0)),height:320+parseInt(e.getLang("table.table_delta_height",0)),inline:1},{plugin_url:f,action:k?k.action:0})},mceTableRowProps:function(){d.open({url:f+"/row.htm",width:400+parseInt(e.getLang("table.rowprops_delta_width",0)),height:295+parseInt(e.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:f})},mceTableCellProps:function(){d.open({url:f+"/cell.htm",width:400+parseInt(e.getLang("table.cellprops_delta_width",0)),height:295+parseInt(e.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:f})}},function(l,k){e.addCommand(k,function(m,n){l(n)})})}});b.PluginManager.add("table",b.plugins.TablePlugin)})(tinymce); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/table/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/table/editor_plugin_src.js new file mode 100644 index 0000000..0195e96 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/editor_plugin_src.js @@ -0,0 +1,1125 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function(tinymce) { + var each = tinymce.each; + + /** + * Table Grid class. + */ + function TableGrid(table, dom, selection) { + var grid, startPos, endPos, selectedCell; + + buildGrid(); + selectedCell = dom.getParent(selection.getStart(), 'th,td'); + if (selectedCell) { + startPos = getPos(selectedCell); + endPos = findEndPos(); + selectedCell = getCell(startPos.x, startPos.y); + } + + function cloneNode(node, children) { + node = node.cloneNode(children); + node.removeAttribute('id'); + + return node; + } + + function buildGrid() { + var startY = 0; + + grid = []; + + each(['thead', 'tbody', 'tfoot'], function(part) { + var rows = dom.select(part + ' tr', table); + + each(rows, function(tr, y) { + y += startY; + + each(dom.select('td,th', tr), function(td, x) { + var x2, y2, rowspan, colspan; + + // Skip over existing cells produced by rowspan + if (grid[y]) { + while (grid[y][x]) + x++; + } + + // Get col/rowspan from cell + rowspan = getSpanVal(td, 'rowspan'); + colspan = getSpanVal(td, 'colspan'); + + // Fill out rowspan/colspan right and down + for (y2 = y; y2 < y + rowspan; y2++) { + if (!grid[y2]) + grid[y2] = []; + + for (x2 = x; x2 < x + colspan; x2++) { + grid[y2][x2] = { + part : part, + real : y2 == y && x2 == x, + elm : td, + rowspan : rowspan, + colspan : colspan + }; + } + } + }); + }); + + startY += rows.length; + }); + }; + + function getCell(x, y) { + var row; + + row = grid[y]; + if (row) + return row[x]; + }; + + function getSpanVal(td, name) { + return parseInt(td.getAttribute(name) || 1); + }; + + function isCellSelected(cell) { + return dom.hasClass(cell.elm, 'mceSelected') || cell == selectedCell; + }; + + function getSelectedRows() { + var rows = []; + + each(table.rows, function(row) { + each(row.cells, function(cell) { + if (dom.hasClass(cell, 'mceSelected') || cell == selectedCell.elm) { + rows.push(row); + return false; + } + }); + }); + + return rows; + }; + + function deleteTable() { + var rng = dom.createRng(); + + rng.setStartAfter(table); + rng.setEndAfter(table); + + selection.setRng(rng); + + dom.remove(table); + }; + + function cloneCell(cell) { + var formatNode; + + // Clone formats + tinymce.walk(cell, function(node) { + var curNode; + + if (node.nodeType == 3) { + each(dom.getParents(node.parentNode, null, cell).reverse(), function(node) { + node = cloneNode(node, false); + + if (!formatNode) + formatNode = curNode = node; + else if (curNode) + curNode.appendChild(node); + + curNode = node; + }); + + // Add something to the inner node + if (curNode) + curNode.innerHTML = tinymce.isIE ? ' ' : '
                                                '; + + return false; + } + }, 'childNodes'); + + cell = cloneNode(cell, false); + cell.rowSpan = cell.colSpan = 1; + + if (formatNode) { + cell.appendChild(formatNode); + } else { + if (!tinymce.isIE) + cell.innerHTML = '
                                                '; + } + + return cell; + }; + + function cleanup() { + var rng = dom.createRng(); + + // Empty rows + each(dom.select('tr', table), function(tr) { + if (tr.cells.length == 0) + dom.remove(tr); + }); + + // Empty table + if (dom.select('tr', table).length == 0) { + rng.setStartAfter(table); + rng.setEndAfter(table); + selection.setRng(rng); + dom.remove(table); + return; + } + + // Empty header/body/footer + each(dom.select('thead,tbody,tfoot', table), function(part) { + if (part.rows.length == 0) + dom.remove(part); + }); + + // Restore selection to start position if it still exists + buildGrid(); + + // Restore the selection to the closest table position + row = grid[Math.min(grid.length - 1, startPos.y)]; + if (row) { + selection.select(row[Math.min(row.length - 1, startPos.x)].elm, true); + selection.collapse(true); + } + }; + + function fillLeftDown(x, y, rows, cols) { + var tr, x2, r, c, cell; + + tr = grid[y][x].elm.parentNode; + for (r = 1; r <= rows; r++) { + tr = dom.getNext(tr, 'tr'); + + if (tr) { + // Loop left to find real cell + for (x2 = x; x2 >= 0; x2--) { + cell = grid[y + r][x2].elm; + + if (cell.parentNode == tr) { + // Append clones after + for (c = 1; c <= cols; c++) + dom.insertAfter(cloneCell(cell), cell); + + break; + } + } + + if (x2 == -1) { + // Insert nodes before first cell + for (c = 1; c <= cols; c++) + tr.insertBefore(cloneCell(tr.cells[0]), tr.cells[0]); + } + } + } + }; + + function split() { + each(grid, function(row, y) { + each(row, function(cell, x) { + var colSpan, rowSpan, newCell, i; + + if (isCellSelected(cell)) { + cell = cell.elm; + colSpan = getSpanVal(cell, 'colspan'); + rowSpan = getSpanVal(cell, 'rowspan'); + + if (colSpan > 1 || rowSpan > 1) { + cell.colSpan = cell.rowSpan = 1; + + // Insert cells right + for (i = 0; i < colSpan - 1; i++) + dom.insertAfter(cloneCell(cell), cell); + + fillLeftDown(x, y, rowSpan - 1, colSpan); + } + } + }); + }); + }; + + function merge(cell, cols, rows) { + var startX, startY, endX, endY, x, y, startCell, endCell, cell, children; + + // Use specified cell and cols/rows + if (cell) { + pos = getPos(cell); + startX = pos.x; + startY = pos.y; + endX = startX + (cols - 1); + endY = startY + (rows - 1); + } else { + // Use selection + startX = startPos.x; + startY = startPos.y; + endX = endPos.x; + endY = endPos.y; + } + + // Find start/end cells + startCell = getCell(startX, startY); + endCell = getCell(endX, endY); + + // Check if the cells exists and if they are of the same part for example tbody = tbody + if (startCell && endCell && startCell.part == endCell.part) { + // Split and rebuild grid + split(); + buildGrid(); + + // Set row/col span to start cell + startCell = getCell(startX, startY).elm; + startCell.colSpan = (endX - startX) + 1; + startCell.rowSpan = (endY - startY) + 1; + + // Remove other cells and add it's contents to the start cell + for (y = startY; y <= endY; y++) { + for (x = startX; x <= endX; x++) { + cell = grid[y][x].elm; + + if (cell != startCell) { + // Move children to startCell + children = tinymce.grep(cell.childNodes); + each(children, function(node, i) { + // Jump over last BR element + if (node.nodeName != 'BR' || i != children.length - 1) + startCell.appendChild(node); + }); + + // Remove cell + dom.remove(cell); + } + } + } + + // Remove empty rows etc and restore caret location + cleanup(); + } + }; + + function insertRow(before) { + var posY, cell, lastCell, x, rowElm, newRow, newCell, otherCell; + + // Find first/last row + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell)) { + cell = cell.elm; + rowElm = cell.parentNode; + newRow = cloneNode(rowElm, false); + posY = y; + + if (before) + return false; + } + }); + + if (before) + return !posY; + }); + + for (x = 0; x < grid[0].length; x++) { + cell = grid[posY][x].elm; + + if (cell != lastCell) { + if (!before) { + rowSpan = getSpanVal(cell, 'rowspan'); + if (rowSpan > 1) { + cell.rowSpan = rowSpan + 1; + continue; + } + } else { + // Check if cell above can be expanded + if (posY > 0 && grid[posY - 1][x]) { + otherCell = grid[posY - 1][x].elm; + rowSpan = getSpanVal(otherCell, 'rowspan'); + if (rowSpan > 1) { + otherCell.rowSpan = rowSpan + 1; + continue; + } + } + } + + // Insert new cell into new row + newCell = cloneCell(cell) + newCell.colSpan = cell.colSpan; + newRow.appendChild(newCell); + + lastCell = cell; + } + } + + if (newRow.hasChildNodes()) { + if (!before) + dom.insertAfter(newRow, rowElm); + else + rowElm.parentNode.insertBefore(newRow, rowElm); + } + }; + + function insertCol(before) { + var posX, lastCell; + + // Find first/last column + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell)) { + posX = x; + + if (before) + return false; + } + }); + + if (before) + return !posX; + }); + + each(grid, function(row, y) { + var cell = row[posX].elm, rowSpan, colSpan; + + if (cell != lastCell) { + colSpan = getSpanVal(cell, 'colspan'); + rowSpan = getSpanVal(cell, 'rowspan'); + + if (colSpan == 1) { + if (!before) { + dom.insertAfter(cloneCell(cell), cell); + fillLeftDown(posX, y, rowSpan - 1, colSpan); + } else { + cell.parentNode.insertBefore(cloneCell(cell), cell); + fillLeftDown(posX, y, rowSpan - 1, colSpan); + } + } else + cell.colSpan++; + + lastCell = cell; + } + }); + }; + + function deleteCols() { + var cols = []; + + // Get selected column indexes + each(grid, function(row, y) { + each(row, function(cell, x) { + if (isCellSelected(cell) && tinymce.inArray(cols, x) === -1) { + each(grid, function(row) { + var cell = row[x].elm, colSpan; + + colSpan = getSpanVal(cell, 'colspan'); + + if (colSpan > 1) + cell.colSpan = colSpan - 1; + else + dom.remove(cell); + }); + + cols.push(x); + } + }); + }); + + cleanup(); + }; + + function deleteRows() { + var rows; + + function deleteRow(tr) { + var nextTr, pos, lastCell; + + nextTr = dom.getNext(tr, 'tr'); + + // Move down row spanned cells + each(tr.cells, function(cell) { + var rowSpan = getSpanVal(cell, 'rowspan'); + + if (rowSpan > 1) { + cell.rowSpan = rowSpan - 1; + pos = getPos(cell); + fillLeftDown(pos.x, pos.y, 1, 1); + } + }); + + // Delete cells + pos = getPos(tr.cells[0]); + each(grid[pos.y], function(cell) { + var rowSpan; + + cell = cell.elm; + + if (cell != lastCell) { + rowSpan = getSpanVal(cell, 'rowspan'); + + if (rowSpan <= 1) + dom.remove(cell); + else + cell.rowSpan = rowSpan - 1; + + lastCell = cell; + } + }); + }; + + // Get selected rows and move selection out of scope + rows = getSelectedRows(); + + // Delete all selected rows + each(rows.reverse(), function(tr) { + deleteRow(tr); + }); + + cleanup(); + }; + + function cutRows() { + var rows = getSelectedRows(); + + dom.remove(rows); + cleanup(); + + return rows; + }; + + function copyRows() { + var rows = getSelectedRows(); + + each(rows, function(row, i) { + rows[i] = cloneNode(row, true); + }); + + return rows; + }; + + function pasteRows(rows, before) { + var selectedRows = getSelectedRows(), + targetRow = selectedRows[before ? 0 : selectedRows.length - 1], + targetCellCount = targetRow.cells.length; + + // Calc target cell count + each(grid, function(row) { + var match; + + targetCellCount = 0; + each(row, function(cell, x) { + if (cell.real) + targetCellCount += cell.colspan; + + if (cell.elm.parentNode == targetRow) + match = 1; + }); + + if (match) + return false; + }); + + if (!before) + rows.reverse(); + + each(rows, function(row) { + var cellCount = row.cells.length, cell; + + // Remove col/rowspans + for (i = 0; i < cellCount; i++) { + cell = row.cells[i]; + cell.colSpan = cell.rowSpan = 1; + } + + // Needs more cells + for (i = cellCount; i < targetCellCount; i++) + row.appendChild(cloneCell(row.cells[cellCount - 1])); + + // Needs less cells + for (i = targetCellCount; i < cellCount; i++) + dom.remove(row.cells[i]); + + // Add before/after + if (before) + targetRow.parentNode.insertBefore(row, targetRow); + else + dom.insertAfter(row, targetRow); + }); + }; + + function getPos(target) { + var pos; + + each(grid, function(row, y) { + each(row, function(cell, x) { + if (cell.elm == target) { + pos = {x : x, y : y}; + return false; + } + }); + + return !pos; + }); + + return pos; + }; + + function setStartCell(cell) { + startPos = getPos(cell); + }; + + function findEndPos() { + var pos, maxX, maxY; + + maxX = maxY = 0; + + each(grid, function(row, y) { + each(row, function(cell, x) { + var colSpan, rowSpan; + + if (isCellSelected(cell)) { + cell = grid[y][x]; + + if (x > maxX) + maxX = x; + + if (y > maxY) + maxY = y; + + if (cell.real) { + colSpan = cell.colspan - 1; + rowSpan = cell.rowspan - 1; + + if (colSpan) { + if (x + colSpan > maxX) + maxX = x + colSpan; + } + + if (rowSpan) { + if (y + rowSpan > maxY) + maxY = y + rowSpan; + } + } + } + }); + }); + + return {x : maxX, y : maxY}; + }; + + function setEndCell(cell) { + var startX, startY, endX, endY, maxX, maxY, colSpan, rowSpan; + + endPos = getPos(cell); + + if (startPos && endPos) { + // Get start/end positions + startX = Math.min(startPos.x, endPos.x); + startY = Math.min(startPos.y, endPos.y); + endX = Math.max(startPos.x, endPos.x); + endY = Math.max(startPos.y, endPos.y); + + // Expand end positon to include spans + maxX = endX; + maxY = endY; + + // Expand startX + for (y = startY; y <= maxY; y++) { + cell = grid[y][startX]; + + if (!cell.real) { + if (startX - (cell.colspan - 1) < startX) + startX -= cell.colspan - 1; + } + } + + // Expand startY + for (x = startX; x <= maxX; x++) { + cell = grid[startY][x]; + + if (!cell.real) { + if (startY - (cell.rowspan - 1) < startY) + startY -= cell.rowspan - 1; + } + } + + // Find max X, Y + for (y = startY; y <= endY; y++) { + for (x = startX; x <= endX; x++) { + cell = grid[y][x]; + + if (cell.real) { + colSpan = cell.colspan - 1; + rowSpan = cell.rowspan - 1; + + if (colSpan) { + if (x + colSpan > maxX) + maxX = x + colSpan; + } + + if (rowSpan) { + if (y + rowSpan > maxY) + maxY = y + rowSpan; + } + } + } + } + + // Remove current selection + dom.removeClass(dom.select('td.mceSelected,th.mceSelected'), 'mceSelected'); + + // Add new selection + for (y = startY; y <= maxY; y++) { + for (x = startX; x <= maxX; x++) + dom.addClass(grid[y][x].elm, 'mceSelected'); + } + } + }; + + // Expose to public + tinymce.extend(this, { + deleteTable : deleteTable, + split : split, + merge : merge, + insertRow : insertRow, + insertCol : insertCol, + deleteCols : deleteCols, + deleteRows : deleteRows, + cutRows : cutRows, + copyRows : copyRows, + pasteRows : pasteRows, + getPos : getPos, + setStartCell : setStartCell, + setEndCell : setEndCell + }); + }; + + tinymce.create('tinymce.plugins.TablePlugin', { + init : function(ed, url) { + var winMan, clipboardRows; + + function createTableGrid(node) { + var selection = ed.selection, tblElm = ed.dom.getParent(node || selection.getNode(), 'table'); + + if (tblElm) + return new TableGrid(tblElm, ed.dom, selection); + }; + + function cleanup() { + // Restore selection possibilities + ed.getBody().style.webkitUserSelect = ''; + ed.dom.removeClass(ed.dom.select('td.mceSelected,th.mceSelected'), 'mceSelected'); + }; + + // Register buttons + each([ + ['table', 'table.desc', 'mceInsertTable', true], + ['delete_table', 'table.del', 'mceTableDelete'], + ['delete_col', 'table.delete_col_desc', 'mceTableDeleteCol'], + ['delete_row', 'table.delete_row_desc', 'mceTableDeleteRow'], + ['col_after', 'table.col_after_desc', 'mceTableInsertColAfter'], + ['col_before', 'table.col_before_desc', 'mceTableInsertColBefore'], + ['row_after', 'table.row_after_desc', 'mceTableInsertRowAfter'], + ['row_before', 'table.row_before_desc', 'mceTableInsertRowBefore'], + ['row_props', 'table.row_desc', 'mceTableRowProps', true], + ['cell_props', 'table.cell_desc', 'mceTableCellProps', true], + ['split_cells', 'table.split_cells_desc', 'mceTableSplitCells', true], + ['merge_cells', 'table.merge_cells_desc', 'mceTableMergeCells', true] + ], function(c) { + ed.addButton(c[0], {title : c[1], cmd : c[2], ui : c[3]}); + }); + + // Select whole table is a table border is clicked + if (!tinymce.isIE) { + ed.onClick.add(function(ed, e) { + e = e.target; + + if (e.nodeName === 'TABLE') + ed.selection.select(e); + }); + } + + // Handle node change updates + ed.onNodeChange.add(function(ed, cm, n) { + var p; + + n = ed.selection.getStart(); + p = ed.dom.getParent(n, 'td,th,caption'); + cm.setActive('table', n.nodeName === 'TABLE' || !!p); + + // Disable table tools if we are in caption + if (p && p.nodeName === 'CAPTION') + p = 0; + + cm.setDisabled('delete_table', !p); + cm.setDisabled('delete_col', !p); + cm.setDisabled('delete_table', !p); + cm.setDisabled('delete_row', !p); + cm.setDisabled('col_after', !p); + cm.setDisabled('col_before', !p); + cm.setDisabled('row_after', !p); + cm.setDisabled('row_before', !p); + cm.setDisabled('row_props', !p); + cm.setDisabled('cell_props', !p); + cm.setDisabled('split_cells', !p); + cm.setDisabled('merge_cells', !p); + }); + + ed.onInit.add(function(ed) { + var startTable, startCell, dom = ed.dom, tableGrid; + + winMan = ed.windowManager; + + // Add cell selection logic + ed.onMouseDown.add(function(ed, e) { + if (e.button != 2) { + cleanup(); + + startCell = dom.getParent(e.target, 'td,th'); + startTable = dom.getParent(startCell, 'table'); + } + }); + + dom.bind(ed.getDoc(), 'mouseover', function(e) { + var sel, table, target = e.target; + + if (startCell && (tableGrid || target != startCell) && (target.nodeName == 'TD' || target.nodeName == 'TH')) { + table = dom.getParent(target, 'table'); + if (table == startTable) { + if (!tableGrid) { + tableGrid = createTableGrid(table); + tableGrid.setStartCell(startCell); + + ed.getBody().style.webkitUserSelect = 'none'; + } + + tableGrid.setEndCell(target); + } + + // Remove current selection + sel = ed.selection.getSel(); + + if (sel.removeAllRanges) + sel.removeAllRanges(); + else + sel.empty(); + + e.preventDefault(); + } + }); + + ed.onMouseUp.add(function(ed, e) { + var rng, sel = ed.selection, selectedCells, nativeSel = sel.getSel(), walker, node, lastNode, endNode; + + // Move selection to startCell + if (startCell) { + if (tableGrid) + ed.getBody().style.webkitUserSelect = ''; + + function setPoint(node, start) { + var walker = new tinymce.dom.TreeWalker(node, node); + + do { + // Text node + if (node.nodeType == 3 && tinymce.trim(node.nodeValue).length != 0) { + if (start) + rng.setStart(node, 0); + else + rng.setEnd(node, node.nodeValue.length); + + return; + } + + // BR element + if (node.nodeName == 'BR') { + if (start) + rng.setStartBefore(node); + else + rng.setEndBefore(node); + + return; + } + } while (node = (start ? walker.next() : walker.prev())); + }; + + // Try to expand text selection as much as we can only Gecko supports cell selection + selectedCells = dom.select('td.mceSelected,th.mceSelected'); + if (selectedCells.length > 0) { + rng = dom.createRng(); + node = selectedCells[0]; + endNode = selectedCells[selectedCells.length - 1]; + + setPoint(node, 1); + walker = new tinymce.dom.TreeWalker(node, dom.getParent(selectedCells[0], 'table')); + + do { + if (node.nodeName == 'TD' || node.nodeName == 'TH') { + if (!dom.hasClass(node, 'mceSelected')) + break; + + lastNode = node; + } + } while (node = walker.next()); + + setPoint(lastNode); + + sel.setRng(rng); + } + + ed.nodeChanged(); + startCell = tableGrid = startTable = null; + } + }); + + ed.onKeyUp.add(function(ed, e) { + cleanup(); + }); + + // Add context menu + if (ed && ed.plugins.contextmenu) { + ed.plugins.contextmenu.onContextMenu.add(function(th, m, e) { + var sm, se = ed.selection, el = se.getNode() || ed.getBody(); + + if (ed.dom.getParent(e, 'td') || ed.dom.getParent(e, 'th') || ed.dom.select('td.mceSelected,th.mceSelected').length) { + m.removeAll(); + + if (el.nodeName == 'A' && !ed.dom.getAttrib(el, 'name')) { + m.add({title : 'advanced.link_desc', icon : 'link', cmd : ed.plugins.advlink ? 'mceAdvLink' : 'mceLink', ui : true}); + m.add({title : 'advanced.unlink_desc', icon : 'unlink', cmd : 'UnLink'}); + m.addSeparator(); + } + + if (el.nodeName == 'IMG' && el.className.indexOf('mceItem') == -1) { + m.add({title : 'advanced.image_desc', icon : 'image', cmd : ed.plugins.advimage ? 'mceAdvImage' : 'mceImage', ui : true}); + m.addSeparator(); + } + + m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable', value : {action : 'insert'}}); + m.add({title : 'table.props_desc', icon : 'table_props', cmd : 'mceInsertTable'}); + m.add({title : 'table.del', icon : 'delete_table', cmd : 'mceTableDelete'}); + m.addSeparator(); + + // Cell menu + sm = m.addMenu({title : 'table.cell'}); + sm.add({title : 'table.cell_desc', icon : 'cell_props', cmd : 'mceTableCellProps'}); + sm.add({title : 'table.split_cells_desc', icon : 'split_cells', cmd : 'mceTableSplitCells'}); + sm.add({title : 'table.merge_cells_desc', icon : 'merge_cells', cmd : 'mceTableMergeCells'}); + + // Row menu + sm = m.addMenu({title : 'table.row'}); + sm.add({title : 'table.row_desc', icon : 'row_props', cmd : 'mceTableRowProps'}); + sm.add({title : 'table.row_before_desc', icon : 'row_before', cmd : 'mceTableInsertRowBefore'}); + sm.add({title : 'table.row_after_desc', icon : 'row_after', cmd : 'mceTableInsertRowAfter'}); + sm.add({title : 'table.delete_row_desc', icon : 'delete_row', cmd : 'mceTableDeleteRow'}); + sm.addSeparator(); + sm.add({title : 'table.cut_row_desc', icon : 'cut', cmd : 'mceTableCutRow'}); + sm.add({title : 'table.copy_row_desc', icon : 'copy', cmd : 'mceTableCopyRow'}); + sm.add({title : 'table.paste_row_before_desc', icon : 'paste', cmd : 'mceTablePasteRowBefore'}).setDisabled(!clipboardRows); + sm.add({title : 'table.paste_row_after_desc', icon : 'paste', cmd : 'mceTablePasteRowAfter'}).setDisabled(!clipboardRows); + + // Column menu + sm = m.addMenu({title : 'table.col'}); + sm.add({title : 'table.col_before_desc', icon : 'col_before', cmd : 'mceTableInsertColBefore'}); + sm.add({title : 'table.col_after_desc', icon : 'col_after', cmd : 'mceTableInsertColAfter'}); + sm.add({title : 'table.delete_col_desc', icon : 'delete_col', cmd : 'mceTableDeleteCol'}); + } else + m.add({title : 'table.desc', icon : 'table', cmd : 'mceInsertTable'}); + }); + } + + // Fixes an issue on Gecko where it's impossible to place the caret behind a table + // This fix will force a paragraph element after the table but only when the forced_root_block setting is enabled + if (!tinymce.isIE) { + function fixTableCaretPos() { + var last; + + // Skip empty text nodes form the end + for (last = ed.getBody().lastChild; last && last.nodeType == 3 && !last.nodeValue.length; last = last.previousSibling) ; + + if (last && last.nodeName == 'TABLE') + ed.dom.add(ed.getBody(), 'p', null, '
                                                '); + }; + + // Fixes an bug where it's impossible to place the caret before a table in Gecko + // this fix solves it by detecting when the caret is at the beginning of such a table + // and then manually moves the caret infront of the table + if (tinymce.isGecko) { + ed.onKeyDown.add(function(ed, e) { + var rng, table, dom = ed.dom; + + // On gecko it's not possible to place the caret before a table + if (e.keyCode == 37 || e.keyCode == 38) { + rng = ed.selection.getRng(); + table = dom.getParent(rng.startContainer, 'table'); + + if (table && ed.getBody().firstChild == table) { + if (isAtStart(rng, table)) { + rng = dom.createRng(); + + rng.setStartBefore(table); + rng.setEndBefore(table); + + ed.selection.setRng(rng); + + e.preventDefault(); + } + } + } + }); + } + + ed.onKeyUp.add(fixTableCaretPos); + ed.onSetContent.add(fixTableCaretPos); + ed.onVisualAid.add(fixTableCaretPos); + + ed.onPreProcess.add(function(ed, o) { + var last = o.node.lastChild; + + if (last && last.childNodes.length == 1 && last.firstChild.nodeName == 'BR') + ed.dom.remove(last); + }); + + fixTableCaretPos(); + } + }); + + // Register action commands + each({ + mceTableSplitCells : function(grid) { + grid.split(); + }, + + mceTableMergeCells : function(grid) { + var rowSpan, colSpan, cell; + + cell = ed.dom.getParent(ed.selection.getNode(), 'th,td'); + if (cell) { + rowSpan = cell.rowSpan; + colSpan = cell.colSpan; + } + + if (!ed.dom.select('td.mceSelected,th.mceSelected').length) { + winMan.open({ + url : url + '/merge_cells.htm', + width : 240 + parseInt(ed.getLang('table.merge_cells_delta_width', 0)), + height : 110 + parseInt(ed.getLang('table.merge_cells_delta_height', 0)), + inline : 1 + }, { + rows : rowSpan, + cols : colSpan, + onaction : function(data) { + grid.merge(cell, data.cols, data.rows); + }, + plugin_url : url + }); + } else + grid.merge(); + }, + + mceTableInsertRowBefore : function(grid) { + grid.insertRow(true); + }, + + mceTableInsertRowAfter : function(grid) { + grid.insertRow(); + }, + + mceTableInsertColBefore : function(grid) { + grid.insertCol(true); + }, + + mceTableInsertColAfter : function(grid) { + grid.insertCol(); + }, + + mceTableDeleteCol : function(grid) { + grid.deleteCols(); + }, + + mceTableDeleteRow : function(grid) { + grid.deleteRows(); + }, + + mceTableCutRow : function(grid) { + clipboardRows = grid.cutRows(); + }, + + mceTableCopyRow : function(grid) { + clipboardRows = grid.copyRows(); + }, + + mceTablePasteRowBefore : function(grid) { + grid.pasteRows(clipboardRows, true); + }, + + mceTablePasteRowAfter : function(grid) { + grid.pasteRows(clipboardRows); + }, + + mceTableDelete : function(grid) { + grid.deleteTable(); + } + }, function(func, name) { + ed.addCommand(name, function() { + var grid = createTableGrid(); + + if (grid) { + func(grid); + ed.execCommand('mceRepaint'); + cleanup(); + } + }); + }); + + // Register dialog commands + each({ + mceInsertTable : function(val) { + winMan.open({ + url : url + '/table.htm', + width : 400 + parseInt(ed.getLang('table.table_delta_width', 0)), + height : 320 + parseInt(ed.getLang('table.table_delta_height', 0)), + inline : 1 + }, { + plugin_url : url, + action : val ? val.action : 0 + }); + }, + + mceTableRowProps : function() { + winMan.open({ + url : url + '/row.htm', + width : 400 + parseInt(ed.getLang('table.rowprops_delta_width', 0)), + height : 295 + parseInt(ed.getLang('table.rowprops_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }, + + mceTableCellProps : function() { + winMan.open({ + url : url + '/cell.htm', + width : 400 + parseInt(ed.getLang('table.cellprops_delta_width', 0)), + height : 295 + parseInt(ed.getLang('table.cellprops_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + } + }, function(func, name) { + ed.addCommand(name, function(ui, val) { + func(val); + }); + }); + } + }); + + // Register plugin + tinymce.PluginManager.add('table', tinymce.plugins.TablePlugin); +})(tinymce); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/table/js/cell.js b/sn_templates/tiny_mce/plugins/table/js/cell.js new file mode 100644 index 0000000..fae7e6f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/js/cell.js @@ -0,0 +1,286 @@ +tinyMCEPopup.requireLangPack(); + +var ed; + +function init() { + ed = tinyMCEPopup.editor; + tinyMCEPopup.resizeToInnerSize(); + + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor') + + var inst = ed; + var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th"); + var formObj = document.forms[0]; + var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style")); + + // Get table cell data + var celltype = tdElm.nodeName.toLowerCase(); + var align = ed.dom.getAttrib(tdElm, 'align'); + var valign = ed.dom.getAttrib(tdElm, 'valign'); + var width = trimSize(getStyle(tdElm, 'width', 'width')); + var height = trimSize(getStyle(tdElm, 'height', 'height')); + var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor')); + var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor')); + var className = ed.dom.getAttrib(tdElm, 'class'); + var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + var id = ed.dom.getAttrib(tdElm, 'id'); + var lang = ed.dom.getAttrib(tdElm, 'lang'); + var dir = ed.dom.getAttrib(tdElm, 'dir'); + var scope = ed.dom.getAttrib(tdElm, 'scope'); + + // Setup form + addClassesToList('class', 'table_cell_styles'); + TinyMCE_EditableSelects.init(); + + if (!ed.dom.hasClass(tdElm, 'mceSelected')) { + formObj.bordercolor.value = bordercolor; + formObj.bgcolor.value = bgcolor; + formObj.backgroundimage.value = backgroundimage; + formObj.width.value = width; + formObj.height.value = height; + formObj.id.value = id; + formObj.lang.value = lang; + formObj.style.value = ed.dom.serializeStyle(st); + selectByValue(formObj, 'align', align); + selectByValue(formObj, 'valign', valign); + selectByValue(formObj, 'class', className, true, true); + selectByValue(formObj, 'celltype', celltype); + selectByValue(formObj, 'dir', dir); + selectByValue(formObj, 'scope', scope); + + // Resize some elements + if (isVisible('backgroundimagebrowser')) + document.getElementById('backgroundimage').style.width = '180px'; + + updateColor('bordercolor_pick', 'bordercolor'); + updateColor('bgcolor_pick', 'bgcolor'); + } else + tinyMCEPopup.dom.hide('action'); +} + +function updateAction() { + var el, inst = ed, tdElm, trElm, tableElm, formObj = document.forms[0]; + + tinyMCEPopup.restoreSelection(); + el = ed.selection.getStart(); + tdElm = ed.dom.getParent(el, "td,th"); + trElm = ed.dom.getParent(el, "tr"); + tableElm = ed.dom.getParent(el, "table"); + + // Cell is selected + if (ed.dom.hasClass(tdElm, 'mceSelected')) { + // Update all selected sells + tinymce.each(ed.dom.select('td.mceSelected,th.mceSelected'), function(td) { + updateCell(td); + }); + + ed.addVisual(); + ed.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + return; + } + + ed.execCommand('mceBeginUndoLevel'); + + switch (getSelectValue(formObj, 'action')) { + case "cell": + var celltype = getSelectValue(formObj, 'celltype'); + var scope = getSelectValue(formObj, 'scope'); + + function doUpdate(s) { + if (s) { + updateCell(tdElm); + + ed.addVisual(); + ed.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + } + }; + + if (ed.getParam("accessibility_warnings", 1)) { + if (celltype == "th" && scope == "") + tinyMCEPopup.confirm(ed.getLang('table_dlg.missing_scope', '', true), doUpdate); + else + doUpdate(1); + + return; + } + + updateCell(tdElm); + break; + + case "row": + var cell = trElm.firstChild; + + if (cell.nodeName != "TD" && cell.nodeName != "TH") + cell = nextCell(cell); + + do { + cell = updateCell(cell, true); + } while ((cell = nextCell(cell)) != null); + + break; + + case "all": + var rows = tableElm.getElementsByTagName("tr"); + + for (var i=0; i 0) { + tinymce.each(tableElm.rows, function(tr) { + var i; + + for (i = 0; i < tr.cells.length; i++) { + if (dom.hasClass(tr.cells[i], 'mceSelected')) { + updateRow(tr, true); + return; + } + } + }); + + inst.addVisual(); + inst.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + tinyMCEPopup.close(); + return; + } + + inst.execCommand('mceBeginUndoLevel'); + + switch (action) { + case "row": + updateRow(trElm); + break; + + case "all": + var rows = tableElm.getElementsByTagName("tr"); + + for (var i=0; i colLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.col_limit').replace(/\{\$cols\}/g, colLimit)); + return false; + } else if (rowLimit && rows > rowLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.row_limit').replace(/\{\$rows\}/g, rowLimit)); + return false; + } else if (cellLimit && cols * rows > cellLimit) { + tinyMCEPopup.alert(inst.getLang('table_dlg.cell_limit').replace(/\{\$cells\}/g, cellLimit)); + return false; + } + + // Update table + if (action == "update") { + inst.execCommand('mceBeginUndoLevel'); + + dom.setAttrib(elm, 'cellPadding', cellpadding, true); + dom.setAttrib(elm, 'cellSpacing', cellspacing, true); + dom.setAttrib(elm, 'border', border); + dom.setAttrib(elm, 'align', align); + dom.setAttrib(elm, 'frame', frame); + dom.setAttrib(elm, 'rules', rules); + dom.setAttrib(elm, 'class', className); + dom.setAttrib(elm, 'style', style); + dom.setAttrib(elm, 'id', id); + dom.setAttrib(elm, 'summary', summary); + dom.setAttrib(elm, 'dir', dir); + dom.setAttrib(elm, 'lang', lang); + + capEl = inst.dom.select('caption', elm)[0]; + + if (capEl && !caption) + capEl.parentNode.removeChild(capEl); + + if (!capEl && caption) { + capEl = elm.ownerDocument.createElement('caption'); + + if (!tinymce.isIE) + capEl.innerHTML = '
                                                '; + + elm.insertBefore(capEl, elm.firstChild); + } + + if (width && inst.settings.inline_styles) { + dom.setStyle(elm, 'width', width); + dom.setAttrib(elm, 'width', ''); + } else { + dom.setAttrib(elm, 'width', width, true); + dom.setStyle(elm, 'width', ''); + } + + // Remove these since they are not valid XHTML + dom.setAttrib(elm, 'borderColor', ''); + dom.setAttrib(elm, 'bgColor', ''); + dom.setAttrib(elm, 'background', ''); + + if (height && inst.settings.inline_styles) { + dom.setStyle(elm, 'height', height); + dom.setAttrib(elm, 'height', ''); + } else { + dom.setAttrib(elm, 'height', height, true); + dom.setStyle(elm, 'height', ''); + } + + if (background != '') + elm.style.backgroundImage = "url('" + background + "')"; + else + elm.style.backgroundImage = ''; + +/* if (tinyMCEPopup.getParam("inline_styles")) { + if (width != '') + elm.style.width = getCSSSize(width); + }*/ + + if (bordercolor != "") { + elm.style.borderColor = bordercolor; + elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle; + elm.style.borderWidth = border == "" ? "1px" : border; + } else + elm.style.borderColor = ''; + + elm.style.backgroundColor = bgcolor; + elm.style.height = getCSSSize(height); + + inst.addVisual(); + + // Fix for stange MSIE align bug + //elm.outerHTML = elm.outerHTML; + + inst.nodeChanged(); + inst.execCommand('mceEndUndoLevel'); + + // Repaint if dimensions changed + if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight) + inst.execCommand('mceRepaint'); + + tinyMCEPopup.close(); + return true; + } + + // Create new table + html += ''); + + tinymce.each('h1,h2,h3,h4,h5,h6,p'.split(','), function(n) { + if (patt) + patt += ','; + + patt += n + ' ._mce_marker'; + }); + + tinymce.each(inst.dom.select(patt), function(n) { + inst.dom.split(inst.dom.getParent(n, 'h1,h2,h3,h4,h5,h6,p'), n); + }); + + dom.setOuterHTML(dom.select('br._mce_marker')[0], html); + } else + inst.execCommand('mceInsertContent', false, html); + + tinymce.each(dom.select('table[_mce_new]'), function(node) { + var td = dom.select('td', node); + + inst.selection.select(td[0], true); + inst.selection.collapse(); + + dom.setAttrib(node, '_mce_new', ''); + }); + + inst.addVisual(); + inst.execCommand('mceEndUndoLevel'); + + tinyMCEPopup.close(); +} + +function makeAttrib(attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib]; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value == "") + return ""; + + // XML encode it + value = value.replace(/&/g, '&'); + value = value.replace(/\"/g, '"'); + value = value.replace(//g, '>'); + + return ' ' + attrib + '="' + value + '"'; +} + +function init() { + tinyMCEPopup.resizeToInnerSize(); + + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); + document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); + document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor'); + + var cols = 2, rows = 2, border = tinyMCEPopup.getParam('table_default_border', '0'), cellpadding = tinyMCEPopup.getParam('table_default_cellpadding', ''), cellspacing = tinyMCEPopup.getParam('table_default_cellspacing', ''); + var align = "", width = "", height = "", bordercolor = "", bgcolor = "", className = ""; + var id = "", summary = "", style = "", dir = "", lang = "", background = "", bgcolor = "", bordercolor = "", rules, frame; + var inst = tinyMCEPopup.editor, dom = inst.dom; + var formObj = document.forms[0]; + var elm = dom.getParent(inst.selection.getNode(), "table"); + + action = tinyMCEPopup.getWindowArg('action'); + + if (!action) + action = elm ? "update" : "insert"; + + if (elm && action != "insert") { + var rowsAr = elm.rows; + var cols = 0; + for (var i=0; i cols) + cols = rowsAr[i].cells.length; + + cols = cols; + rows = rowsAr.length; + + st = dom.parseStyle(dom.getAttrib(elm, "style")); + border = trimSize(getStyle(elm, 'border', 'borderWidth')); + cellpadding = dom.getAttrib(elm, 'cellpadding', ""); + cellspacing = dom.getAttrib(elm, 'cellspacing', ""); + width = trimSize(getStyle(elm, 'width', 'width')); + height = trimSize(getStyle(elm, 'height', 'height')); + bordercolor = convertRGBToHex(getStyle(elm, 'bordercolor', 'borderLeftColor')); + bgcolor = convertRGBToHex(getStyle(elm, 'bgcolor', 'backgroundColor')); + align = dom.getAttrib(elm, 'align', align); + frame = dom.getAttrib(elm, 'frame'); + rules = dom.getAttrib(elm, 'rules'); + className = tinymce.trim(dom.getAttrib(elm, 'class').replace(/mceItem.+/g, '')); + id = dom.getAttrib(elm, 'id'); + summary = dom.getAttrib(elm, 'summary'); + style = dom.serializeStyle(st); + dir = dom.getAttrib(elm, 'dir'); + lang = dom.getAttrib(elm, 'lang'); + background = getStyle(elm, 'background', 'backgroundImage').replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); + formObj.caption.checked = elm.getElementsByTagName('caption').length > 0; + + orgTableWidth = width; + orgTableHeight = height; + + action = "update"; + formObj.insert.value = inst.getLang('update'); + } + + addClassesToList('class', "table_styles"); + TinyMCE_EditableSelects.init(); + + // Update form + selectByValue(formObj, 'align', align); + selectByValue(formObj, 'tframe', frame); + selectByValue(formObj, 'rules', rules); + selectByValue(formObj, 'class', className, true, true); + formObj.cols.value = cols; + formObj.rows.value = rows; + formObj.border.value = border; + formObj.cellpadding.value = cellpadding; + formObj.cellspacing.value = cellspacing; + formObj.width.value = width; + formObj.height.value = height; + formObj.bordercolor.value = bordercolor; + formObj.bgcolor.value = bgcolor; + formObj.id.value = id; + formObj.summary.value = summary; + formObj.style.value = style; + formObj.dir.value = dir; + formObj.lang.value = lang; + formObj.backgroundimage.value = background; + + updateColor('bordercolor_pick', 'bordercolor'); + updateColor('bgcolor_pick', 'bgcolor'); + + // Resize some elements + if (isVisible('backgroundimagebrowser')) + document.getElementById('backgroundimage').style.width = '180px'; + + // Disable some fields in update mode + if (action == "update") { + formObj.cols.disabled = true; + formObj.rows.disabled = true; + } +} + +function changedSize() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + +/* var width = formObj.width.value; + if (width != "") + st['width'] = tinyMCEPopup.getParam("inline_styles") ? getCSSSize(width) : ""; + else + st['width'] = "";*/ + + var height = formObj.height.value; + if (height != "") + st['height'] = getCSSSize(height); + else + st['height'] = ""; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedBackgroundImage() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + st['background-image'] = "url('" + formObj.backgroundimage.value + "')"; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedBorder() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + // Update border width if the element has a color + if (formObj.border.value != "" && formObj.bordercolor.value != "") + st['border-width'] = formObj.border.value + "px"; + + formObj.style.value = dom.serializeStyle(st); +} + +function changedColor() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + st['background-color'] = formObj.bgcolor.value; + + if (formObj.bordercolor.value != "") { + st['border-color'] = formObj.bordercolor.value; + + // Add border-width if it's missing + if (!st['border-width']) + st['border-width'] = formObj.border.value == "" ? "1px" : formObj.border.value + "px"; + } + + formObj.style.value = dom.serializeStyle(st); +} + +function changedStyle() { + var formObj = document.forms[0]; + var st = dom.parseStyle(formObj.style.value); + + if (st['background-image']) + formObj.backgroundimage.value = st['background-image'].replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); + else + formObj.backgroundimage.value = ''; + + if (st['width']) + formObj.width.value = trimSize(st['width']); + + if (st['height']) + formObj.height.value = trimSize(st['height']); + + if (st['background-color']) { + formObj.bgcolor.value = st['background-color']; + updateColor('bgcolor_pick','bgcolor'); + } + + if (st['border-color']) { + formObj.bordercolor.value = st['border-color']; + updateColor('bordercolor_pick','bordercolor'); + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/plugins/table/langs/de_dlg.js b/sn_templates/tiny_mce/plugins/table/langs/de_dlg.js new file mode 100644 index 0000000..8b177c3 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/langs/de_dlg.js @@ -0,0 +1,74 @@ +tinyMCE.addI18n('de.table_dlg',{ +general_tab:"Allgemein", +advanced_tab:"Erweitert", +general_props:"Allgemeine Einstellungen", +advanced_props:"Erweiterte Einstellungen", +rowtype:"Gruppierung", +title:"Tabelle einf\u00FCgen/bearbeiten", +width:"Breite", +height:"H\u00F6he", +cols:"Spalten", +rows:"Zeilen", +cellspacing:"Zellenabstand", +cellpadding:"Abstand innerhalb der Zellen", +border:"Rahmen", +align:"Ausrichtung", +align_default:"Standard", +align_left:"Links", +align_right:"Rechts", +align_middle:"Mittig", +row_title:"Eigenschaften der Zeile", +cell_title:"Eigenschaften der Zelle", +cell_type:"Zellentyp", +valign:"Vertikale Ausrichtung", +align_top:"Oben", +align_bottom:"Unten", +bordercolor:"Rahmenfarbe", +bgcolor:"Hintergrundfarbe", +merge_cells_title:"Zellen vereinen", +id:"ID", +style:"Format", +langdir:"Schriftrichtung", +langcode:"Sprachcode", +mime:"MIME-Type des Inhalts", +ltr:"Links nach rechts", +rtl:"Rechts nach links", +bgimage:"Hintergrundbild", +summary:"Zusammenfassung", +td:"Textzelle", +th:"\u00DCberschrift", +cell_cell:"Diese Zelle ver\u00E4ndern", +cell_row:"Alle Zellen in dieser Zeile ver\u00E4ndern", +cell_all:"Alle Zellen der Tabelle ver\u00E4ndern", +row_row:"Diese Zeile ver\u00E4ndern", +row_odd:"Ungerade Zeilen ver\u00E4ndern", +row_even:"Gerade Zeilen ver\u00E4ndern", +row_all:"Alle Zeilen ver\u00E4ndern", +thead:"Tabellenkopf", +tbody:"Tabelleninhalt", +tfoot:"Tabellenfu\u00DF", +scope:"Bezug", +rowgroup:"Vertikal gruppieren", +colgroup:"Horizontal gruppieren", +col_limit:"Sie haben die maximale Spaltenzahl von {$cols} \u00FCberschritten.", +row_limit:"Sie haben die maximale Zeilenzahl von {$rows} \u00FCberschritten.", +cell_limit:"Sie haben die maximale Zellenzahl von {$cells} \u00FCberschritten.", +missing_scope:"Wollen Sie wirklich keine Beziehung f\u00FCr diese \u00DCberschrift angeben? Benutzer mit k\u00F6rperlichen Einschr\u00E4nkungen k\u00F6nnten Schwierigkeiten haben, den Inhalt der Tabelle zu verstehen.", +caption:"Beschriftung der Tabelle", +frame:"Rahmen", +frame_none:"keine", +frame_groups:"zwischen Gruppen", +frame_rows:"zwischen Zeilen", +frame_cols:"zwischen Spalten", +frame_all:"zwischen allen Zellen", +rules:"Gitter", +rules_void:"keins", +rules_above:"nur oben", +rules_below:"nur unten", +rules_hsides:"oben und unten", +rules_lhs:"nur links", +rules_rhs:"nur rechts", +rules_vsides:"links und rechts", +rules_box:"alle 4 Seiten (Box)", +rules_border:"alle 4 Seiten (Border)" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/table/langs/en_dlg.js b/sn_templates/tiny_mce/plugins/table/langs/en_dlg.js new file mode 100644 index 0000000..a33c987 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/langs/en_dlg.js @@ -0,0 +1,74 @@ +tinyMCE.addI18n('en.table_dlg',{ +general_tab:"General", +advanced_tab:"Advanced", +general_props:"General properties", +advanced_props:"Advanced properties", +rowtype:"Row in table part", +title:"Insert/Modify table", +width:"Width", +height:"Height", +cols:"Cols", +rows:"Rows", +cellspacing:"Cellspacing", +cellpadding:"Cellpadding", +border:"Border", +align:"Alignment", +align_default:"Default", +align_left:"Left", +align_right:"Right", +align_middle:"Center", +row_title:"Table row properties", +cell_title:"Table cell properties", +cell_type:"Cell type", +valign:"Vertical alignment", +align_top:"Top", +align_bottom:"Bottom", +bordercolor:"Border color", +bgcolor:"Background color", +merge_cells_title:"Merge table cells", +id:"Id", +style:"Style", +langdir:"Language direction", +langcode:"Language code", +mime:"Target MIME type", +ltr:"Left to right", +rtl:"Right to left", +bgimage:"Background image", +summary:"Summary", +td:"Data", +th:"Header", +cell_cell:"Update current cell", +cell_row:"Update all cells in row", +cell_all:"Update all cells in table", +row_row:"Update current row", +row_odd:"Update odd rows in table", +row_even:"Update even rows in table", +row_all:"Update all rows in table", +thead:"Table Head", +tbody:"Table Body", +tfoot:"Table Foot", +scope:"Scope", +rowgroup:"Row Group", +colgroup:"Col Group", +col_limit:"You've exceeded the maximum number of columns of {$cols}.", +row_limit:"You've exceeded the maximum number of rows of {$rows}.", +cell_limit:"You've exceeded the maximum number of cells of {$cells}.", +missing_scope:"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.", +caption:"Table caption", +frame:"Frame", +frame_none:"none", +frame_groups:"groups", +frame_rows:"rows", +frame_cols:"cols", +frame_all:"all", +rules:"Rules", +rules_void:"void", +rules_above:"above", +rules_below:"below", +rules_hsides:"hsides", +rules_lhs:"lhs", +rules_rhs:"rhs", +rules_vsides:"vsides", +rules_box:"box", +rules_border:"border" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/table/merge_cells.htm b/sn_templates/tiny_mce/plugins/table/merge_cells.htm new file mode 100644 index 0000000..b1a8d9b --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/merge_cells.htm @@ -0,0 +1,32 @@ + + + + {#table_dlg.merge_cells_title} + + + + + + +
                                                +
                                                + {#table_dlg.merge_cells_title} + + + + + + + + + +
                                                {#table_dlg.cols}:
                                                {#table_dlg.rows}:
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/table/row.htm b/sn_templates/tiny_mce/plugins/table/row.htm new file mode 100644 index 0000000..33fc9cc --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/row.htm @@ -0,0 +1,155 @@ + + + + {#table_dlg.row_title} + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + +
                                                + +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/table/table.htm b/sn_templates/tiny_mce/plugins/table/table.htm new file mode 100644 index 0000000..122b04a --- /dev/null +++ b/sn_templates/tiny_mce/plugins/table/table.htm @@ -0,0 +1,187 @@ + + + + {#table_dlg.title} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#table_dlg.general_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#table_dlg.advanced_props} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                + +
                                                + +
                                                + +
                                                + + + + + +
                                                 
                                                +
                                                + + + + + +
                                                 
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/template/blank.htm b/sn_templates/tiny_mce/plugins/template/blank.htm new file mode 100644 index 0000000..538a3b1 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/template/blank.htm @@ -0,0 +1,12 @@ + + + blank_page + + + + + + + diff --git a/sn_templates/tiny_mce/plugins/template/css/template.css b/sn_templates/tiny_mce/plugins/template/css/template.css new file mode 100644 index 0000000..0a03f2e --- /dev/null +++ b/sn_templates/tiny_mce/plugins/template/css/template.css @@ -0,0 +1,23 @@ +#frmbody { + padding: 10px; + background-color: #FFF; + border: 1px solid #CCC; +} + +.frmRow { + margin-bottom: 10px; +} + +#templatesrc { + border: none; + width: 320px; + height: 240px; +} + +.title { + padding-bottom: 5px; +} + +.mceActionPanel { + padding-top: 5px; +} diff --git a/sn_templates/tiny_mce/plugins/template/editor_plugin.js b/sn_templates/tiny_mce/plugins/template/editor_plugin.js new file mode 100644 index 0000000..ebe3c27 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/template/editor_plugin.js @@ -0,0 +1 @@ +(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.TemplatePlugin",{init:function(b,c){var d=this;d.editor=b;b.addCommand("mceTemplate",function(e){b.windowManager.open({file:c+"/template.htm",width:b.getParam("template_popup_width",750),height:b.getParam("template_popup_height",600),inline:1},{plugin_url:c})});b.addCommand("mceInsertTemplate",d._insertTemplate,d);b.addButton("template",{title:"template.desc",cmd:"mceTemplate"});b.onPreProcess.add(function(e,g){var f=e.dom;a(f.select("div",g.node),function(h){if(f.hasClass(h,"mceTmpl")){a(f.select("*",h),function(i){if(f.hasClass(i,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){i.innerHTML=d._getDateTime(new Date(),e.getParam("template_mdate_format",e.getLang("template.mdate_format")))}});d._replaceVals(h)}})})},getInfo:function(){return{longname:"Template plugin",author:"Moxiecode Systems AB",authorurl:"http://www.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_insertTemplate:function(i,j){var k=this,g=k.editor,f,c,d=g.dom,b=g.selection.getContent();f=j.content;a(k.editor.getParam("template_replace_values"),function(l,h){if(typeof(l)!="function"){f=f.replace(new RegExp("\\{\\$"+h+"\\}","g"),l)}});c=d.create("div",null,f);n=d.select(".mceTmpl",c);if(n&&n.length>0){c=d.create("div",null);c.appendChild(n[0].cloneNode(true))}function e(l,h){return new RegExp("\\b"+h+"\\b","g").test(l.className)}a(d.select("*",c),function(h){if(e(h,g.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_cdate_format",g.getLang("template.cdate_format")))}if(e(h,g.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))){h.innerHTML=k._getDateTime(new Date(),g.getParam("template_mdate_format",g.getLang("template.mdate_format")))}if(e(h,g.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))){h.innerHTML=b}});k._replaceVals(c);g.execCommand("mceInsertContent",false,c.innerHTML);g.addVisual()},_replaceVals:function(c){var d=this.editor.dom,b=this.editor.getParam("template_replace_values");a(d.select("*",c),function(f){a(b,function(g,e){if(d.hasClass(f,e)){if(typeof(b[e])=="function"){b[e](f)}}})})},_getDateTime:function(e,b){if(!b){return""}function c(g,d){var f;g=""+g;if(g.length 0) { + el = dom.create('div', null); + el.appendChild(n[0].cloneNode(true)); + } + + function hasClass(n, c) { + return new RegExp('\\b' + c + '\\b', 'g').test(n.className); + }; + + each(dom.select('*', el), function(n) { + // Replace cdate + if (hasClass(n, ed.getParam('template_cdate_classes', 'cdate').replace(/\s+/g, '|'))) + n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_cdate_format", ed.getLang("template.cdate_format"))); + + // Replace mdate + if (hasClass(n, ed.getParam('template_mdate_classes', 'mdate').replace(/\s+/g, '|'))) + n.innerHTML = t._getDateTime(new Date(), ed.getParam("template_mdate_format", ed.getLang("template.mdate_format"))); + + // Replace selection + if (hasClass(n, ed.getParam('template_selected_content_classes', 'selcontent').replace(/\s+/g, '|'))) + n.innerHTML = sel; + }); + + t._replaceVals(el); + + ed.execCommand('mceInsertContent', false, el.innerHTML); + ed.addVisual(); + }, + + _replaceVals : function(e) { + var dom = this.editor.dom, vl = this.editor.getParam('template_replace_values'); + + each(dom.select('*', e), function(e) { + each(vl, function(v, k) { + if (dom.hasClass(e, k)) { + if (typeof(vl[k]) == 'function') + vl[k](e); + } + }); + }); + }, + + _getDateTime : function(d, fmt) { + if (!fmt) + return ""; + + function addZeros(value, len) { + var i; + + value = "" + value; + + if (value.length < len) { + for (i=0; i<(len-value.length); i++) + value = "0" + value; + } + + return value; + } + + fmt = fmt.replace("%D", "%m/%d/%y"); + fmt = fmt.replace("%r", "%I:%M:%S %p"); + fmt = fmt.replace("%Y", "" + d.getFullYear()); + fmt = fmt.replace("%y", "" + d.getYear()); + fmt = fmt.replace("%m", addZeros(d.getMonth()+1, 2)); + fmt = fmt.replace("%d", addZeros(d.getDate(), 2)); + fmt = fmt.replace("%H", "" + addZeros(d.getHours(), 2)); + fmt = fmt.replace("%M", "" + addZeros(d.getMinutes(), 2)); + fmt = fmt.replace("%S", "" + addZeros(d.getSeconds(), 2)); + fmt = fmt.replace("%I", "" + ((d.getHours() + 11) % 12 + 1)); + fmt = fmt.replace("%p", "" + (d.getHours() < 12 ? "AM" : "PM")); + fmt = fmt.replace("%B", "" + this.editor.getLang("template_months_long").split(',')[d.getMonth()]); + fmt = fmt.replace("%b", "" + this.editor.getLang("template_months_short").split(',')[d.getMonth()]); + fmt = fmt.replace("%A", "" + this.editor.getLang("template_day_long").split(',')[d.getDay()]); + fmt = fmt.replace("%a", "" + this.editor.getLang("template_day_short").split(',')[d.getDay()]); + fmt = fmt.replace("%%", "%"); + + return fmt; + } + }); + + // Register plugin + tinymce.PluginManager.add('template', tinymce.plugins.TemplatePlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/template/js/template.js b/sn_templates/tiny_mce/plugins/template/js/template.js new file mode 100644 index 0000000..7eab2eb --- /dev/null +++ b/sn_templates/tiny_mce/plugins/template/js/template.js @@ -0,0 +1,106 @@ +tinyMCEPopup.requireLangPack(); + +var TemplateDialog = { + preInit : function() { + var url = tinyMCEPopup.getParam("template_external_list_url"); + + if (url != null) + document.write(''); + }, + + init : function() { + var ed = tinyMCEPopup.editor, tsrc, sel, x, u; + + tsrc = ed.getParam("template_templates", false); + sel = document.getElementById('tpath'); + + // Setup external template list + if (!tsrc && typeof(tinyMCETemplateList) != 'undefined') { + for (x=0, tsrc = []; x'); + }); + }, + + selectTemplate : function(u, ti) { + var d = window.frames['templatesrc'].document, x, tsrc = this.tsrc; + + if (!u) + return; + + d.body.innerHTML = this.templateHTML = this.getFileContents(u); + + for (x=0; x + + {#template_dlg.title} + + + + + +
                                                +
                                                +
                                                {#template_dlg.desc}
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + {#template_dlg.preview} + +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/visualchars/editor_plugin.js b/sn_templates/tiny_mce/plugins/visualchars/editor_plugin.js new file mode 100644 index 0000000..53d31c4 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/visualchars/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.VisualChars",{init:function(a,b){var c=this;c.editor=a;a.addCommand("mceVisualChars",c._toggleVisualChars,c);a.addButton("visualchars",{title:"visualchars.desc",cmd:"mceVisualChars"});a.onBeforeGetContent.add(function(d,e){if(c.state){c.state=true;c._toggleVisualChars()}})},getInfo:function(){return{longname:"Visual characters",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/visualchars",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_toggleVisualChars:function(){var m=this,g=m.editor,a,e,f,k=g.getDoc(),l=g.getBody(),j,n=g.selection,c;m.state=!m.state;g.controlManager.setActive("visualchars",m.state);if(m.state){a=[];tinymce.walk(l,function(b){if(b.nodeType==3&&b.nodeValue&&b.nodeValue.indexOf("\u00a0")!=-1){a.push(b)}},"childNodes");for(e=0;e$1');j=j.replace(/\u00a0/g,"\u00b7");g.dom.setOuterHTML(a[e],j,k)}}else{a=tinymce.grep(g.dom.select("span",l),function(b){return g.dom.hasClass(b,"mceVisualNbsp")});for(e=0;e$1'); + nv = nv.replace(/\u00a0/g, '\u00b7'); + ed.dom.setOuterHTML(nl[i], nv, d); + } + } else { + nl = tinymce.grep(ed.dom.select('span', b), function(n) { + return ed.dom.hasClass(n, 'mceVisualNbsp'); + }); + + for (i=0; i0')}}else{tinymce.DOM.add(h,"span",{},'0')}});a.onInit.add(function(e){e.selection.onSetContent.add(function(){c._count(e)});c._count(e)});a.onSetContent.add(function(e){c._count(e)});a.onKeyUp.add(function(f,g){if(g.keyCode==d){return}if(13==g.keyCode||8==d||46==d){c._count(f)}d=g.keyCode})},_count:function(b){var c=this,a=0;if(c.block){return}c.block=1;setTimeout(function(){var d=b.getContent({format:"raw"});if(d){d=d.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ");d=d.replace(c.cleanre,"");d.replace(c.countre,function(){a++})}tinymce.DOM.setHTML(c.id,a.toString());setTimeout(function(){c.block=0},2000)},1)},getInfo:function(){return{longname:"Word Count plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("wordcount",tinymce.plugins.WordCount)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/wordcount/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/wordcount/editor_plugin_src.js new file mode 100644 index 0000000..36ffe89 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/wordcount/editor_plugin_src.js @@ -0,0 +1,98 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.WordCount', { + block : 0, + id : null, + countre : null, + cleanre : null, + + init : function(ed, url) { + var t = this, last = 0; + + t.countre = ed.getParam('wordcount_countregex', /\S\s+/g); + t.cleanre = ed.getParam('wordcount_cleanregex', /[0-9.(),;:!?%#$¿'"_+=\\/-]*/g); + t.id = ed.id + '-word-count'; + + ed.onPostRender.add(function(ed, cm) { + var row, id; + + // Add it to the specified id or the theme advanced path + id = ed.getParam('wordcount_target_id'); + if (!id) { + row = tinymce.DOM.get(ed.id + '_path_row'); + + if (row) + tinymce.DOM.add(row.parentNode, 'div', {'style': 'float: right'}, ed.getLang('wordcount.words', 'Words: ') + '0'); + } else + tinymce.DOM.add(id, 'span', {}, '0'); + }); + + ed.onInit.add(function(ed) { + ed.selection.onSetContent.add(function() { + t._count(ed); + }); + + t._count(ed); + }); + + ed.onSetContent.add(function(ed) { + t._count(ed); + }); + + ed.onKeyUp.add(function(ed, e) { + if (e.keyCode == last) + return; + + if (13 == e.keyCode || 8 == last || 46 == last) + t._count(ed); + + last = e.keyCode; + }); + }, + + _count : function(ed) { + var t = this, tc = 0; + + // Keep multiple calls from happening at the same time + if (t.block) + return; + + t.block = 1; + + setTimeout(function() { + var tx = ed.getContent({format : 'raw'}); + + if (tx) { + tx = tx.replace(/<.[^<>]*?>/g, ' ').replace(/ | /gi, ' '); // remove html tags and space chars + tx = tx.replace(t.cleanre, ''); // remove numbers and punctuation + tx.replace(t.countre, function() {tc++;}); // count the words + } + + tinymce.DOM.setHTML(t.id, tc.toString()); + + setTimeout(function() {t.block = 0;}, 2000); + }, 1); + }, + + getInfo: function() { + return { + longname : 'Word Count plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/wordcount', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + tinymce.PluginManager.add('wordcount', tinymce.plugins.WordCount); +})(); diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/abbr.htm b/sn_templates/tiny_mce/plugins/xhtmlxtras/abbr.htm new file mode 100644 index 0000000..0282fff --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/abbr.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_abbr_element} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                : + +
                                                :
                                                : + +
                                                : + +
                                                +
                                                +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                +
                                                +
                                                +
                                                +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/acronym.htm b/sn_templates/tiny_mce/plugins/xhtmlxtras/acronym.htm new file mode 100644 index 0000000..e0ed031 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/acronym.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_acronym_element} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                : + +
                                                :
                                                : + +
                                                : + +
                                                +
                                                +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                +
                                                +
                                                +
                                                +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/attributes.htm b/sn_templates/tiny_mce/plugins/xhtmlxtras/attributes.htm new file mode 100644 index 0000000..fc5ba97 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/attributes.htm @@ -0,0 +1,148 @@ + + + + {#xhtmlxtras_dlg.attribs_title} + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.attribute_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                + +
                                                :
                                                : + +
                                                : + +
                                                +
                                                +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.attribute_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                +
                                                +
                                                +
                                                +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/cite.htm b/sn_templates/tiny_mce/plugins/xhtmlxtras/cite.htm new file mode 100644 index 0000000..b23becc --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/cite.htm @@ -0,0 +1,141 @@ + + + + {#xhtmlxtras_dlg.title_cite_element} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                : + +
                                                :
                                                : + +
                                                : + +
                                                +
                                                +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                +
                                                +
                                                +
                                                +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/css/attributes.css b/sn_templates/tiny_mce/plugins/xhtmlxtras/css/attributes.css new file mode 100644 index 0000000..85b1b37 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/css/attributes.css @@ -0,0 +1,11 @@ +.panel_wrapper div.current { + height: 290px; +} + +#id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { + width: 200px; +} + +#events_panel input { + width: 200px; +} diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/css/popup.css b/sn_templates/tiny_mce/plugins/xhtmlxtras/css/popup.css new file mode 100644 index 0000000..034b985 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/css/popup.css @@ -0,0 +1,9 @@ +input.field, select.field {width:200px;} +input.picker {width:179px; margin-left: 5px;} +input.disabled {border-color:#F2F2F2;} +img.picker {vertical-align:text-bottom; cursor:pointer;} +h1 {padding: 0 0 5px 0;} +.panel_wrapper div.current {height:160px;} +#xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;} +a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;} +#datetime {width:180px;} diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/del.htm b/sn_templates/tiny_mce/plugins/xhtmlxtras/del.htm new file mode 100644 index 0000000..bc80944 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/del.htm @@ -0,0 +1,161 @@ + + + + {#xhtmlxtras_dlg.title_del_element} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
                                                : + + + + + +
                                                +
                                                :
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                : + +
                                                :
                                                : + +
                                                : + +
                                                +
                                                +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                +
                                                +
                                                +
                                                +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/editor_plugin.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/editor_plugin.js new file mode 100644 index 0000000..e519526 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/editor_plugin.js @@ -0,0 +1 @@ +(function(){tinymce.create("tinymce.plugins.XHTMLXtrasPlugin",{init:function(b,c){b.addCommand("mceCite",function(){b.windowManager.open({file:c+"/cite.htm",width:350+parseInt(b.getLang("xhtmlxtras.cite_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.cite_delta_height",0)),inline:1},{plugin_url:c})});b.addCommand("mceAcronym",function(){b.windowManager.open({file:c+"/acronym.htm",width:350+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.acronym_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAbbr",function(){b.windowManager.open({file:c+"/abbr.htm",width:350+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),height:250+parseInt(b.getLang("xhtmlxtras.abbr_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceDel",function(){b.windowManager.open({file:c+"/del.htm",width:340+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.del_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceIns",function(){b.windowManager.open({file:c+"/ins.htm",width:340+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),height:310+parseInt(b.getLang("xhtmlxtras.ins_delta_width",0)),inline:1},{plugin_url:c})});b.addCommand("mceAttributes",function(){b.windowManager.open({file:c+"/attributes.htm",width:380,height:370,inline:1},{plugin_url:c})});b.addButton("cite",{title:"xhtmlxtras.cite_desc",cmd:"mceCite"});b.addButton("acronym",{title:"xhtmlxtras.acronym_desc",cmd:"mceAcronym"});b.addButton("abbr",{title:"xhtmlxtras.abbr_desc",cmd:"mceAbbr"});b.addButton("del",{title:"xhtmlxtras.del_desc",cmd:"mceDel"});b.addButton("ins",{title:"xhtmlxtras.ins_desc",cmd:"mceIns"});b.addButton("attribs",{title:"xhtmlxtras.attribs_desc",cmd:"mceAttributes"});if(tinymce.isIE){function a(d,e){if(e.set){e.content=e.content.replace(/]+)>/gi,"");e.content=e.content.replace(/<\/abbr>/gi,"")}}b.onBeforeSetContent.add(a);b.onPostProcess.add(a)}b.onNodeChange.add(function(e,d,g,f){g=e.dom.getParent(g,"CITE,ACRONYM,ABBR,DEL,INS");d.setDisabled("cite",f);d.setDisabled("acronym",f);d.setDisabled("abbr",f);d.setDisabled("del",f);d.setDisabled("ins",f);d.setDisabled("attribs",g&&g.nodeName=="BODY");d.setActive("cite",0);d.setActive("acronym",0);d.setActive("abbr",0);d.setActive("del",0);d.setActive("ins",0);if(g){do{d.setDisabled(g.nodeName.toLowerCase(),0);d.setActive(g.nodeName.toLowerCase(),1)}while(g=g.parentNode)}});b.onPreInit.add(function(){b.dom.create("abbr")})},getInfo:function(){return{longname:"XHTML Xtras Plugin",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("xhtmlxtras",tinymce.plugins.XHTMLXtrasPlugin)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js new file mode 100644 index 0000000..ceac275 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js @@ -0,0 +1,144 @@ +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', { + init : function(ed, url) { + // Register commands + ed.addCommand('mceCite', function() { + ed.windowManager.open({ + file : url + '/cite.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.cite_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.cite_delta_height', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAcronym', function() { + ed.windowManager.open({ + file : url + '/acronym.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAbbr', function() { + ed.windowManager.open({ + file : url + '/abbr.htm', + width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), + height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceDel', function() { + ed.windowManager.open({ + file : url + '/del.htm', + width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), + height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceIns', function() { + ed.windowManager.open({ + file : url + '/ins.htm', + width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), + height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)), + inline : 1 + }, { + plugin_url : url + }); + }); + + ed.addCommand('mceAttributes', function() { + ed.windowManager.open({ + file : url + '/attributes.htm', + width : 380, + height : 370, + inline : 1 + }, { + plugin_url : url + }); + }); + + // Register buttons + ed.addButton('cite', {title : 'xhtmlxtras.cite_desc', cmd : 'mceCite'}); + ed.addButton('acronym', {title : 'xhtmlxtras.acronym_desc', cmd : 'mceAcronym'}); + ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'}); + ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'}); + ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'}); + ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'}); + + if (tinymce.isIE) { + function fix(ed, o) { + if (o.set) { + o.content = o.content.replace(/]+)>/gi, ''); + o.content = o.content.replace(/<\/abbr>/gi, ''); + } + }; + + ed.onBeforeSetContent.add(fix); + ed.onPostProcess.add(fix); + } + + ed.onNodeChange.add(function(ed, cm, n, co) { + n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS'); + + cm.setDisabled('cite', co); + cm.setDisabled('acronym', co); + cm.setDisabled('abbr', co); + cm.setDisabled('del', co); + cm.setDisabled('ins', co); + cm.setDisabled('attribs', n && n.nodeName == 'BODY'); + cm.setActive('cite', 0); + cm.setActive('acronym', 0); + cm.setActive('abbr', 0); + cm.setActive('del', 0); + cm.setActive('ins', 0); + + // Activate all + if (n) { + do { + cm.setDisabled(n.nodeName.toLowerCase(), 0); + cm.setActive(n.nodeName.toLowerCase(), 1); + } while (n = n.parentNode); + } + }); + + ed.onPreInit.add(function() { + // Fixed IE issue where it can't handle these elements correctly + ed.dom.create('abbr'); + }); + }, + + getInfo : function() { + return { + longname : 'XHTML Xtras Plugin', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/xhtmlxtras', + version : tinymce.majorVersion + "." + tinymce.minorVersion + }; + } + }); + + // Register plugin + tinymce.PluginManager.add('xhtmlxtras', tinymce.plugins.XHTMLXtrasPlugin); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/ins.htm b/sn_templates/tiny_mce/plugins/xhtmlxtras/ins.htm new file mode 100644 index 0000000..9448d67 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/ins.htm @@ -0,0 +1,161 @@ + + + + {#xhtmlxtras_dlg.title_ins_element} + + + + + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_general_tab} + + + + + + + + + +
                                                : + + + + + +
                                                +
                                                :
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_attrib_tab} + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                : + +
                                                :
                                                : + +
                                                : + +
                                                +
                                                +
                                                +
                                                +
                                                + {#xhtmlxtras_dlg.fieldset_events_tab} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                :
                                                +
                                                +
                                                +
                                                +
                                                + + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/js/abbr.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/abbr.js new file mode 100644 index 0000000..1790e83 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/abbr.js @@ -0,0 +1,28 @@ +/** + * abbr.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('abbr'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAbbr() { + SXE.insertElement('abbr'); + tinyMCEPopup.close(); +} + +function removeAbbr() { + SXE.removeElement('abbr'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/js/acronym.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/acronym.js new file mode 100644 index 0000000..93b8d25 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/acronym.js @@ -0,0 +1,28 @@ +/** + * acronym.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('acronym'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertAcronym() { + SXE.insertElement('acronym'); + tinyMCEPopup.close(); +} + +function removeAcronym() { + SXE.removeElement('acronym'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/js/attributes.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/attributes.js new file mode 100644 index 0000000..c7e0e7f --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/attributes.js @@ -0,0 +1,126 @@ +/** + * attributes.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + tinyMCEPopup.resizeToInnerSize(); + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + var elm = inst.selection.getNode(); + var f = document.forms[0]; + var onclick = dom.getAttrib(elm, 'onclick'); + + setFormValue('title', dom.getAttrib(elm, 'title')); + setFormValue('id', dom.getAttrib(elm, 'id')); + setFormValue('style', dom.getAttrib(elm, "style")); + setFormValue('dir', dom.getAttrib(elm, 'dir')); + setFormValue('lang', dom.getAttrib(elm, 'lang')); + setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : "")); + setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : "")); + setFormValue('onfocus', dom.getAttrib(elm, 'onfocus')); + setFormValue('onblur', dom.getAttrib(elm, 'onblur')); + setFormValue('onclick', onclick); + setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick')); + setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown')); + setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup')); + setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover')); + setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove')); + setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout')); + setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress')); + setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown')); + setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup')); + className = dom.getAttrib(elm, 'class'); + + addClassesToList('classlist', 'advlink_styles'); + selectByValue(f, 'classlist', className, true); + + TinyMCE_EditableSelects.init(); +} + +function setFormValue(name, value) { + if(value && document.forms[0].elements[name]){ + document.forms[0].elements[name].value = value; + } +} + +function insertAction() { + var inst = tinyMCEPopup.editor; + var elm = inst.selection.getNode(); + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + setAllAttribs(elm); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); +} + +function setAttrib(elm, attrib, value) { + var formObj = document.forms[0]; + var valueElm = formObj.elements[attrib.toLowerCase()]; + var inst = tinyMCEPopup.editor; + var dom = inst.dom; + + if (typeof(value) == "undefined" || value == null) { + value = ""; + + if (valueElm) + value = valueElm.value; + } + + if (value != "") { + dom.setAttrib(elm, attrib.toLowerCase(), value); + + if (attrib == "style") + attrib = "style.cssText"; + + if (attrib.substring(0, 2) == 'on') + value = 'return true;' + value; + + if (attrib == "class") + attrib = "className"; + + elm[attrib]=value; + } else + elm.removeAttribute(attrib); +} + +function setAllAttribs(elm) { + var f = document.forms[0]; + + setAttrib(elm, 'title'); + setAttrib(elm, 'id'); + setAttrib(elm, 'style'); + setAttrib(elm, 'class', getSelectValue(f, 'classlist')); + setAttrib(elm, 'dir'); + setAttrib(elm, 'lang'); + setAttrib(elm, 'tabindex'); + setAttrib(elm, 'accesskey'); + setAttrib(elm, 'onfocus'); + setAttrib(elm, 'onblur'); + setAttrib(elm, 'onclick'); + setAttrib(elm, 'ondblclick'); + setAttrib(elm, 'onmousedown'); + setAttrib(elm, 'onmouseup'); + setAttrib(elm, 'onmouseover'); + setAttrib(elm, 'onmousemove'); + setAttrib(elm, 'onmouseout'); + setAttrib(elm, 'onkeypress'); + setAttrib(elm, 'onkeydown'); + setAttrib(elm, 'onkeyup'); + + // Refresh in old MSIE +// if (tinyMCE.isMSIE5) +// elm.outerHTML = elm.outerHTML; +} + +function insertAttribute() { + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); +tinyMCEPopup.requireLangPack(); diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/js/cite.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/cite.js new file mode 100644 index 0000000..b73ef47 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/cite.js @@ -0,0 +1,28 @@ +/** + * cite.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('cite'); + if (SXE.currentAction == "update") { + SXE.showRemoveButton(); + } +} + +function insertCite() { + SXE.insertElement('cite'); + tinyMCEPopup.close(); +} + +function removeCite() { + SXE.removeElement('cite'); + tinyMCEPopup.close(); +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/js/del.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/del.js new file mode 100644 index 0000000..d5dd8e4 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/del.js @@ -0,0 +1,63 @@ +/** + * del.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('del'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertDel() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL'); + + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('del'); + var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';}); + for (var i=0; i 0) { + tagName = element_name; + + insertInlineElement(element_name); + var elementArray = tinymce.grep(SXE.inst.dom.select(element_name)); + for (var i=0; i -1) ? true : false; +} + +SXE.removeClass = function(elm,cl) { + if(elm.className == null || elm.className == "" || !SXE.containsClass(elm,cl)) { + return true; + } + var classNames = elm.className.split(" "); + var newClassNames = ""; + for (var x = 0, cnl = classNames.length; x < cnl; x++) { + if (classNames[x] != cl) { + newClassNames += (classNames[x] + " "); + } + } + elm.className = newClassNames.substring(0,newClassNames.length-1); //removes extra space at the end +} + +SXE.addClass = function(elm,cl) { + if(!SXE.containsClass(elm,cl)) elm.className ? elm.className += " " + cl : elm.className = cl; + return true; +} + +function insertInlineElement(en) { + var ed = tinyMCEPopup.editor, dom = ed.dom; + + ed.getDoc().execCommand('FontName', false, 'mceinline'); + tinymce.each(dom.select('span,font'), function(n) { + if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline') + dom.replace(dom.create(en, {_mce_new : 1}), n, 1); + }); +} diff --git a/sn_templates/tiny_mce/plugins/xhtmlxtras/js/ins.js b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/ins.js new file mode 100644 index 0000000..8d29d53 --- /dev/null +++ b/sn_templates/tiny_mce/plugins/xhtmlxtras/js/ins.js @@ -0,0 +1,62 @@ +/** + * ins.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +function init() { + SXE.initElementDialog('ins'); + if (SXE.currentAction == "update") { + setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime')); + setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite')); + SXE.showRemoveButton(); + } +} + +function setElementAttribs(elm) { + setAllCommonAttribs(elm); + setAttrib(elm, 'datetime'); + setAttrib(elm, 'cite'); +} + +function insertIns() { + var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS'); + tinyMCEPopup.execCommand('mceBeginUndoLevel'); + if (elm == null) { + var s = SXE.inst.selection.getContent(); + if(s.length > 0) { + insertInlineElement('INS'); + var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';}); + for (var i=0; i + + + {#advanced_dlg.about_title} + + + + + + + +
                                                +
                                                +

                                                {#advanced_dlg.about_title}

                                                +

                                                Version: ()

                                                +

                                                TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL + by Moxiecode Systems AB. It has the ability to convert HTML TEXTAREA fields or other HTML elements to editor instances.

                                                +

                                                Copyright © 2003-2008, Moxiecode Systems AB, All rights reserved.

                                                +

                                                For more information about this software visit the TinyMCE website.

                                                + +
                                                + Got Moxie? + Hosted By Sourceforge + Also on freshmeat +
                                                +
                                                + +
                                                +
                                                +

                                                {#advanced_dlg.about_loaded}

                                                + +
                                                +
                                                + +

                                                 

                                                +
                                                +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + + diff --git a/sn_templates/tiny_mce/themes/advanced/anchor.htm b/sn_templates/tiny_mce/themes/advanced/anchor.htm new file mode 100644 index 0000000..9c70f9b --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/anchor.htm @@ -0,0 +1,26 @@ + + + + {#advanced_dlg.anchor_title} + + + + +
                                                + + + + + + + + +
                                                {#advanced_dlg.anchor_title}
                                                {#advanced_dlg.anchor_name}:
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/themes/advanced/charmap.htm b/sn_templates/tiny_mce/themes/advanced/charmap.htm new file mode 100644 index 0000000..c36c237 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/charmap.htm @@ -0,0 +1,52 @@ + + + + {#advanced_dlg.charmap_title} + + + + + + + + + + + + + + + +
                                                {#advanced_dlg.charmap_title}
                                                + + + + + + + + + +
                                                 
                                                 
                                                +
                                                + + + + + + + + + + + + + + + + +
                                                HTML-Code
                                                 
                                                 
                                                NUM-Code
                                                 
                                                +
                                                + + + diff --git a/sn_templates/tiny_mce/themes/advanced/color_picker.htm b/sn_templates/tiny_mce/themes/advanced/color_picker.htm new file mode 100644 index 0000000..148550f --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/color_picker.htm @@ -0,0 +1,73 @@ + + + + {#advanced_dlg.colorpicker_title} + + + + + +
                                                + + +
                                                +
                                                +
                                                + {#advanced_dlg.colorpicker_picker_title} +
                                                + + +
                                                + +
                                                + +
                                                +
                                                +
                                                +
                                                + +
                                                +
                                                + {#advanced_dlg.colorpicker_palette_title} +
                                                + +
                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + {#advanced_dlg.colorpicker_named_title} +
                                                + +
                                                + +
                                                + +
                                                + {#advanced_dlg.colorpicker_name} +
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                + +
                                                + +
                                                +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/themes/advanced/editor_template.js b/sn_templates/tiny_mce/themes/advanced/editor_template.js new file mode 100644 index 0000000..008b995 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/editor_template.js @@ -0,0 +1 @@ +(function(e){var d=e.DOM,b=e.dom.Event,h=e.extend,f=e.each,a=e.util.Cookie,g,c=e.explode;e.ThemeManager.requireLangPack("advanced");e.create("tinymce.themes.AdvancedTheme",{sizes:[8,10,12,14,18,24,36],controls:{bold:["bold_desc","Bold"],italic:["italic_desc","Italic"],underline:["underline_desc","Underline"],strikethrough:["striketrough_desc","Strikethrough"],justifyleft:["justifyleft_desc","JustifyLeft"],justifycenter:["justifycenter_desc","JustifyCenter"],justifyright:["justifyright_desc","JustifyRight"],justifyfull:["justifyfull_desc","JustifyFull"],bullist:["bullist_desc","InsertUnorderedList"],numlist:["numlist_desc","InsertOrderedList"],outdent:["outdent_desc","Outdent"],indent:["indent_desc","Indent"],cut:["cut_desc","Cut"],copy:["copy_desc","Copy"],paste:["paste_desc","Paste"],undo:["undo_desc","Undo"],redo:["redo_desc","Redo"],link:["link_desc","mceLink"],unlink:["unlink_desc","unlink"],image:["image_desc","mceImage"],cleanup:["cleanup_desc","mceCleanup"],help:["help_desc","mceHelp"],code:["code_desc","mceCodeEditor"],hr:["hr_desc","InsertHorizontalRule"],removeformat:["removeformat_desc","RemoveFormat"],sub:["sub_desc","subscript"],sup:["sup_desc","superscript"],forecolor:["forecolor_desc","ForeColor"],forecolorpicker:["forecolor_desc","mceForeColor"],backcolor:["backcolor_desc","HiliteColor"],backcolorpicker:["backcolor_desc","mceBackColor"],charmap:["charmap_desc","mceCharMap"],visualaid:["visualaid_desc","mceToggleVisualAid"],anchor:["anchor_desc","mceInsertAnchor"],newdocument:["newdocument_desc","mceNewDocument"],blockquote:["blockquote_desc","mceBlockQuote"]},stateControls:["bold","italic","underline","strikethrough","bullist","numlist","justifyleft","justifycenter","justifyright","justifyfull","sub","sup","blockquote"],init:function(j,k){var l=this,m,i,n;l.editor=j;l.url=k;l.onResolveName=new e.util.Dispatcher(this);l.settings=m=h({theme_advanced_path:true,theme_advanced_toolbar_location:"bottom",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect",theme_advanced_buttons2:"bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code",theme_advanced_buttons3:"hr,removeformat,visualaid,|,sub,sup,|,charmap",theme_advanced_blockformats:"p,address,pre,h1,h2,h3,h4,h5,h6",theme_advanced_toolbar_align:"center",theme_advanced_fonts:"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats",theme_advanced_more_colors:1,theme_advanced_row_height:23,theme_advanced_resize_horizontal:1,theme_advanced_resizing_use_cookie:1,theme_advanced_font_sizes:"1,2,3,4,5,6,7",readonly:j.settings.readonly},j.settings);if(!m.font_size_style_values){m.font_size_style_values="8pt,10pt,12pt,14pt,18pt,24pt,36pt"}if(e.is(m.theme_advanced_font_sizes,"string")){m.font_size_style_values=e.explode(m.font_size_style_values);m.font_size_classes=e.explode(m.font_size_classes||"");n={};j.settings.theme_advanced_font_sizes=m.theme_advanced_font_sizes;f(j.getParam("theme_advanced_font_sizes","","hash"),function(q,p){var o;if(p==q&&q>=1&&q<=7){p=q+" ("+l.sizes[q-1]+"pt)";o=m.font_size_classes[q-1];q=m.font_size_style_values[q-1]||(l.sizes[q-1]+"pt")}if(/^\s*\./.test(q)){o=q.replace(/\./g,"")}n[p]=o?{"class":o}:{fontSize:q}});m.theme_advanced_font_sizes=n}if((i=m.theme_advanced_path_location)&&i!="none"){m.theme_advanced_statusbar_location=m.theme_advanced_path_location}if(m.theme_advanced_statusbar_location=="none"){m.theme_advanced_statusbar_location=0}j.onInit.add(function(){if(!j.settings.readonly){j.onNodeChange.add(l._nodeChanged,l)}if(j.settings.content_css!==false){j.dom.loadCSS(j.baseURI.toAbsolute("themes/advanced/skins/"+j.settings.skin+"/content.css"))}});j.onSetProgressState.add(function(q,o,r){var s,t=q.id,p;if(o){l.progressTimer=setTimeout(function(){s=q.getContainer();s=s.insertBefore(d.create("DIV",{style:"position:relative"}),s.firstChild);p=d.get(q.id+"_tbl");d.add(s,"div",{id:t+"_blocker","class":"mceBlocker",style:{width:p.clientWidth+2,height:p.clientHeight+2}});d.add(s,"div",{id:t+"_progress","class":"mceProgress",style:{left:p.clientWidth/2,top:p.clientHeight/2}})},r||0)}else{d.remove(t+"_blocker");d.remove(t+"_progress");clearTimeout(l.progressTimer)}});d.loadCSS(m.editor_css?j.documentBaseURI.toAbsolute(m.editor_css):k+"/skins/"+j.settings.skin+"/ui.css");if(m.skin_variant){d.loadCSS(k+"/skins/"+j.settings.skin+"/ui_"+m.skin_variant+".css")}},createControl:function(l,i){var j,k;if(k=i.createControl(l)){return k}switch(l){case"styleselect":return this._createStyleSelect();case"formatselect":return this._createBlockFormats();case"fontselect":return this._createFontSelect();case"fontsizeselect":return this._createFontSizeSelect();case"forecolor":return this._createForeColorMenu();case"backcolor":return this._createBackColorMenu()}if((j=this.controls[l])){return i.createButton(l,{title:"advanced."+j[0],cmd:j[1],ui:j[2],value:j[3]})}},execCommand:function(k,j,l){var i=this["_"+k];if(i){i.call(this,j,l);return true}return false},_importClasses:function(k){var i=this.editor,j=i.controlManager.get("styleselect");if(j.getLength()==0){f(i.dom.getClasses(),function(n,l){var m="style_"+l;i.formatter.register(m,{inline:"span",attributes:{"class":n["class"]},selector:"*"});j.add(n["class"],m)})}},_createStyleSelect:function(m){var k=this,i=k.editor,j=i.controlManager,l;l=j.createListBox("styleselect",{title:"advanced.style_select",onselect:function(o){var p,n=[];f(l.items,function(q){n.push(q.value)});i.focus();p=i.formatter.matchAll(n);if(p[0]==o){i.formatter.remove(o)}else{i.formatter.apply(o)}return false}});i.onInit.add(function(){var o=0,n=i.getParam("style_formats");if(n){f(n,function(p){var q,r=0;f(p,function(){r++});if(r>1){q=p.name=p.name||"style_"+(o++);i.formatter.register(q,p);l.add(p.title,q)}else{l.add(p.title)}})}else{f(i.getParam("theme_advanced_styles","","hash"),function(r,q){var p;if(r){p="style_"+(o++);i.formatter.register(p,{inline:"span",classes:r,selector:"*"});l.add(k.editor.translate(q),p)}})}});if(l.getLength()==0){l.onPostRender.add(function(o,p){if(!l.NativeListBox){b.add(p.id+"_text","focus",k._importClasses,k);b.add(p.id+"_text","mousedown",k._importClasses,k);b.add(p.id+"_open","focus",k._importClasses,k);b.add(p.id+"_open","mousedown",k._importClasses,k)}else{b.add(p.id,"focus",k._importClasses,k)}})}return l},_createFontSelect:function(){var k,j=this,i=j.editor;k=i.controlManager.createListBox("fontselect",{title:"advanced.fontdefault",onselect:function(l){i.execCommand("FontName",false,l);return false}});if(k){f(i.getParam("theme_advanced_fonts",j.settings.theme_advanced_fonts,"hash"),function(m,l){k.add(i.translate(l),m,{style:m.indexOf("dings")==-1?"font-family:"+m:""})})}return k},_createFontSizeSelect:function(){var m=this,k=m.editor,n,l=0,j=[];n=k.controlManager.createListBox("fontsizeselect",{title:"advanced.font_size",onselect:function(i){if(i["class"]){k.focus();k.formatter.toggle("fontsize_class",{value:i["class"]})}else{k.execCommand("FontSize",false,i.fontSize)}return false}});if(n){f(m.settings.theme_advanced_font_sizes,function(o,i){var p=o.fontSize;if(p>=1&&p<=7){p=m.sizes[parseInt(p)-1]+"pt"}n.add(i,o,{style:"font-size:"+p,"class":"mceFontSize"+(l++)+(" "+(o["class"]||""))})})}return n},_createBlockFormats:function(){var k,i={p:"advanced.paragraph",address:"advanced.address",pre:"advanced.pre",h1:"advanced.h1",h2:"advanced.h2",h3:"advanced.h3",h4:"advanced.h4",h5:"advanced.h5",h6:"advanced.h6",div:"advanced.div",blockquote:"advanced.blockquote",code:"advanced.code",dt:"advanced.dt",dd:"advanced.dd",samp:"advanced.samp"},j=this;k=j.editor.controlManager.createListBox("formatselect",{title:"advanced.block",cmd:"FormatBlock"});if(k){f(j.editor.getParam("theme_advanced_blockformats",j.settings.theme_advanced_blockformats,"hash"),function(m,l){k.add(j.editor.translate(l!=m?l:i[m]),m,{"class":"mce_formatPreview mce_"+m})})}return k},_createForeColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_text_colors){l.colors=i}if(k.theme_advanced_default_foreground_color){l.default_color=k.theme_advanced_default_foreground_color}l.title="advanced.forecolor_desc";l.cmd="ForeColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("forecolor",l);return m},_createBackColorMenu:function(){var m,j=this,k=j.settings,l={},i;if(k.theme_advanced_more_colors){l.more_colors_func=function(){j._mceColorPicker(0,{color:m.value,func:function(n){m.setColor(n)}})}}if(i=k.theme_advanced_background_colors){l.colors=i}if(k.theme_advanced_default_background_color){l.default_color=k.theme_advanced_default_background_color}l.title="advanced.backcolor_desc";l.cmd="HiliteColor";l.scope=this;m=j.editor.controlManager.createColorSplitButton("backcolor",l);return m},renderUI:function(k){var m,l,q,v=this,r=v.editor,w=v.settings,u,j,i;m=j=d.create("span",{id:r.id+"_parent","class":"mceEditor "+r.settings.skin+"Skin"+(w.skin_variant?" "+r.settings.skin+"Skin"+v._ufirst(w.skin_variant):"")});if(!d.boxModel){m=d.add(m,"div",{"class":"mceOldBoxModel"})}m=u=d.add(m,"table",{id:r.id+"_tbl","class":"mceLayout",cellSpacing:0,cellPadding:0});m=q=d.add(m,"tbody");switch((w.theme_advanced_layout_manager||"").toLowerCase()){case"rowlayout":l=v._rowLayout(w,q,k);break;case"customlayout":l=r.execCallback("theme_advanced_custom_layout",w,q,k,j);break;default:l=v._simpleLayout(w,q,k,j)}m=k.targetNode;i=d.stdMode?u.getElementsByTagName("tr"):u.rows;d.addClass(i[0],"mceFirst");d.addClass(i[i.length-1],"mceLast");f(d.select("tr",q),function(o){d.addClass(o.firstChild,"mceFirst");d.addClass(o.childNodes[o.childNodes.length-1],"mceLast")});if(d.get(w.theme_advanced_toolbar_container)){d.get(w.theme_advanced_toolbar_container).appendChild(j)}else{d.insertAfter(j,m)}b.add(r.id+"_path_row","click",function(n){n=n.target;if(n.nodeName=="A"){v._sel(n.className.replace(/^.*mcePath_([0-9]+).*$/,"$1"));return b.cancel(n)}});if(!r.getParam("accessibility_focus")){b.add(d.add(j,"a",{href:"#"},""),"focus",function(){tinyMCE.get(r.id).focus()})}if(w.theme_advanced_toolbar_location=="external"){k.deltaHeight=0}v.deltaHeight=k.deltaHeight;k.targetNode=null;return{iframeContainer:l,editorContainer:r.id+"_parent",sizeContainer:u,deltaHeight:k.deltaHeight}},getInfo:function(){return{longname:"Advanced theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:e.majorVersion+"."+e.minorVersion}},resizeBy:function(i,j){var k=d.get(this.editor.id+"_tbl");this.resizeTo(k.clientWidth+i,k.clientHeight+j)},resizeTo:function(i,l){var j=this.editor,k=this.settings,m=d.get(j.id+"_tbl"),n=d.get(j.id+"_ifr");i=Math.max(k.theme_advanced_resizing_min_width||100,i);l=Math.max(k.theme_advanced_resizing_min_height||100,l);i=Math.min(k.theme_advanced_resizing_max_width||65535,i);l=Math.min(k.theme_advanced_resizing_max_height||65535,l);d.setStyle(m,"height","");d.setStyle(n,"height",l);if(k.theme_advanced_resize_horizontal){d.setStyle(m,"width","");d.setStyle(n,"width",i);if(i"))}q.push(d.createHTML("a",{href:"#",accesskey:"q",title:r.getLang("advanced.toolbar_focus")},""));for(p=1;(y=A["theme_advanced_buttons"+p]);p++){m=j.createToolbar("toolbar"+p,{"class":"mceToolbarRow"+p});if(A["theme_advanced_buttons"+p+"_add"]){y+=","+A["theme_advanced_buttons"+p+"_add"]}if(A["theme_advanced_buttons"+p+"_add_before"]){y=A["theme_advanced_buttons"+p+"_add_before"]+","+y}z._addControls(y,m);q.push(m.renderHTML());k.deltaHeight-=A.theme_advanced_row_height}q.push(d.createHTML("a",{href:"#",accesskey:"z",title:r.getLang("advanced.toolbar_focus"),onfocus:"tinyMCE.getInstanceById('"+r.id+"').focus();"},""));d.setHTML(l,q.join(""))},_addStatusBar:function(m,j){var k,v=this,p=v.editor,w=v.settings,i,q,u,l;k=d.add(m,"tr");k=l=d.add(k,"td",{"class":"mceStatusbar"});k=d.add(k,"div",{id:p.id+"_path_row"},w.theme_advanced_path?p.translate("advanced.path")+": ":" ");d.add(k,"a",{href:"#",accesskey:"x"});if(w.theme_advanced_resizing){d.add(l,"a",{id:p.id+"_resize",href:"javascript:;",onclick:"return false;","class":"mceResize"});if(w.theme_advanced_resizing_use_cookie){p.onPostRender.add(function(){var n=a.getHash("TinyMCE_"+p.id+"_size"),r=d.get(p.id+"_tbl");if(!n){return}v.resizeTo(n.cw,n.ch)})}p.onPostRender.add(function(){b.add(p.id+"_resize","mousedown",function(D){var t,r,s,o,C,z,A,F,n,E,x;function y(G){n=A+(G.screenX-C);E=F+(G.screenY-z);v.resizeTo(n,E)}function B(G){b.remove(d.doc,"mousemove",t);b.remove(p.getDoc(),"mousemove",r);b.remove(d.doc,"mouseup",s);b.remove(p.getDoc(),"mouseup",o);if(w.theme_advanced_resizing_use_cookie){a.setHash("TinyMCE_"+p.id+"_size",{cw:n,ch:E})}}D.preventDefault();C=D.screenX;z=D.screenY;x=d.get(v.editor.id+"_ifr");A=n=x.clientWidth;F=E=x.clientHeight;t=b.add(d.doc,"mousemove",y);r=b.add(p.getDoc(),"mousemove",y);s=b.add(d.doc,"mouseup",B);o=b.add(p.getDoc(),"mouseup",B)})})}j.deltaHeight-=21;k=m=null},_nodeChanged:function(r,z,l,x,j){var C=this,i,y=0,B,u,D=C.settings,A,k,w,m,q;e.each(C.stateControls,function(n){z.setActive(n,r.queryCommandState(C.controls[n][1]))});function o(p){var s,n=j.parents,t=p;if(typeof(p)=="string"){t=function(v){return v.nodeName==p}}for(s=0;s= 1 && v <= 7) { + k = v + ' (' + t.sizes[v - 1] + 'pt)'; + cl = s.font_size_classes[v - 1]; + v = s.font_size_style_values[v - 1] || (t.sizes[v - 1] + 'pt'); + } + + if (/^\s*\./.test(v)) + cl = v.replace(/\./g, ''); + + o[k] = cl ? {'class' : cl} : {fontSize : v}; + }); + + s.theme_advanced_font_sizes = o; + } + + if ((v = s.theme_advanced_path_location) && v != 'none') + s.theme_advanced_statusbar_location = s.theme_advanced_path_location; + + if (s.theme_advanced_statusbar_location == 'none') + s.theme_advanced_statusbar_location = 0; + + // Init editor + ed.onInit.add(function() { + if (!ed.settings.readonly) + ed.onNodeChange.add(t._nodeChanged, t); + + if (ed.settings.content_css !== false) + ed.dom.loadCSS(ed.baseURI.toAbsolute("themes/advanced/skins/" + ed.settings.skin + "/content.css")); + }); + + ed.onSetProgressState.add(function(ed, b, ti) { + var co, id = ed.id, tb; + + if (b) { + t.progressTimer = setTimeout(function() { + co = ed.getContainer(); + co = co.insertBefore(DOM.create('DIV', {style : 'position:relative'}), co.firstChild); + tb = DOM.get(ed.id + '_tbl'); + + DOM.add(co, 'div', {id : id + '_blocker', 'class' : 'mceBlocker', style : {width : tb.clientWidth + 2, height : tb.clientHeight + 2}}); + DOM.add(co, 'div', {id : id + '_progress', 'class' : 'mceProgress', style : {left : tb.clientWidth / 2, top : tb.clientHeight / 2}}); + }, ti || 0); + } else { + DOM.remove(id + '_blocker'); + DOM.remove(id + '_progress'); + clearTimeout(t.progressTimer); + } + }); + + DOM.loadCSS(s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : url + "/skins/" + ed.settings.skin + "/ui.css"); + + if (s.skin_variant) + DOM.loadCSS(url + "/skins/" + ed.settings.skin + "/ui_" + s.skin_variant + ".css"); + }, + + createControl : function(n, cf) { + var cd, c; + + if (c = cf.createControl(n)) + return c; + + switch (n) { + case "styleselect": + return this._createStyleSelect(); + + case "formatselect": + return this._createBlockFormats(); + + case "fontselect": + return this._createFontSelect(); + + case "fontsizeselect": + return this._createFontSizeSelect(); + + case "forecolor": + return this._createForeColorMenu(); + + case "backcolor": + return this._createBackColorMenu(); + } + + if ((cd = this.controls[n])) + return cf.createButton(n, {title : "advanced." + cd[0], cmd : cd[1], ui : cd[2], value : cd[3]}); + }, + + execCommand : function(cmd, ui, val) { + var f = this['_' + cmd]; + + if (f) { + f.call(this, ui, val); + return true; + } + + return false; + }, + + _importClasses : function(e) { + var ed = this.editor, ctrl = ed.controlManager.get('styleselect'); + + if (ctrl.getLength() == 0) { + each(ed.dom.getClasses(), function(o, idx) { + var name = 'style_' + idx; + + ed.formatter.register(name, { + inline : 'span', + attributes : {'class' : o['class']}, + selector : '*' + }); + + ctrl.add(o['class'], name); + }); + } + }, + + _createStyleSelect : function(n) { + var t = this, ed = t.editor, ctrlMan = ed.controlManager, ctrl; + + // Setup style select box + ctrl = ctrlMan.createListBox('styleselect', { + title : 'advanced.style_select', + onselect : function(name) { + var matches, formatNames = []; + + each(ctrl.items, function(item) { + formatNames.push(item.value); + }); + + ed.focus(); + + // Toggle off the current format + matches = ed.formatter.matchAll(formatNames); + if (matches[0] == name) + ed.formatter.remove(name); + else + ed.formatter.apply(name); + + return false; // No auto select + } + }); + + // Handle specified format + ed.onInit.add(function() { + var counter = 0, formats = ed.getParam('style_formats'); + + if (formats) { + each(formats, function(fmt) { + var name, keys = 0; + + each(fmt, function() {keys++;}); + + if (keys > 1) { + name = fmt.name = fmt.name || 'style_' + (counter++); + ed.formatter.register(name, fmt); + ctrl.add(fmt.title, name); + } else + ctrl.add(fmt.title); + }); + } else { + each(ed.getParam('theme_advanced_styles', '', 'hash'), function(val, key) { + var name; + + if (val) { + name = 'style_' + (counter++); + + ed.formatter.register(name, { + inline : 'span', + classes : val, + selector : '*' + }); + + ctrl.add(t.editor.translate(key), name); + } + }); + } + }); + + // Auto import classes if the ctrl box is empty + if (ctrl.getLength() == 0) { + ctrl.onPostRender.add(function(ed, n) { + if (!ctrl.NativeListBox) { + Event.add(n.id + '_text', 'focus', t._importClasses, t); + Event.add(n.id + '_text', 'mousedown', t._importClasses, t); + Event.add(n.id + '_open', 'focus', t._importClasses, t); + Event.add(n.id + '_open', 'mousedown', t._importClasses, t); + } else + Event.add(n.id, 'focus', t._importClasses, t); + }); + } + + return ctrl; + }, + + _createFontSelect : function() { + var c, t = this, ed = t.editor; + + c = ed.controlManager.createListBox('fontselect', { + title : 'advanced.fontdefault', + onselect : function(v) { + ed.execCommand('FontName', false, v); + return false; // No auto select + } + }); + + if (c) { + each(ed.getParam('theme_advanced_fonts', t.settings.theme_advanced_fonts, 'hash'), function(v, k) { + c.add(ed.translate(k), v, {style : v.indexOf('dings') == -1 ? 'font-family:' + v : ''}); + }); + } + + return c; + }, + + _createFontSizeSelect : function() { + var t = this, ed = t.editor, c, i = 0, cl = []; + + c = ed.controlManager.createListBox('fontsizeselect', {title : 'advanced.font_size', onselect : function(v) { + if (v['class']) { + ed.focus(); + ed.formatter.toggle('fontsize_class', {value : v['class']}); + } else + ed.execCommand('FontSize', false, v.fontSize); + + return false; // No auto select + }}); + + if (c) { + each(t.settings.theme_advanced_font_sizes, function(v, k) { + var fz = v.fontSize; + + if (fz >= 1 && fz <= 7) + fz = t.sizes[parseInt(fz) - 1] + 'pt'; + + c.add(k, v, {'style' : 'font-size:' + fz, 'class' : 'mceFontSize' + (i++) + (' ' + (v['class'] || ''))}); + }); + } + + return c; + }, + + _createBlockFormats : function() { + var c, fmts = { + p : 'advanced.paragraph', + address : 'advanced.address', + pre : 'advanced.pre', + h1 : 'advanced.h1', + h2 : 'advanced.h2', + h3 : 'advanced.h3', + h4 : 'advanced.h4', + h5 : 'advanced.h5', + h6 : 'advanced.h6', + div : 'advanced.div', + blockquote : 'advanced.blockquote', + code : 'advanced.code', + dt : 'advanced.dt', + dd : 'advanced.dd', + samp : 'advanced.samp' + }, t = this; + + c = t.editor.controlManager.createListBox('formatselect', {title : 'advanced.block', cmd : 'FormatBlock'}); + if (c) { + each(t.editor.getParam('theme_advanced_blockformats', t.settings.theme_advanced_blockformats, 'hash'), function(v, k) { + c.add(t.editor.translate(k != v ? k : fmts[v]), v, {'class' : 'mce_formatPreview mce_' + v}); + }); + } + + return c; + }, + + _createForeColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_text_colors) + o.colors = v; + + if (s.theme_advanced_default_foreground_color) + o.default_color = s.theme_advanced_default_foreground_color; + + o.title = 'advanced.forecolor_desc'; + o.cmd = 'ForeColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('forecolor', o); + + return c; + }, + + _createBackColorMenu : function() { + var c, t = this, s = t.settings, o = {}, v; + + if (s.theme_advanced_more_colors) { + o.more_colors_func = function() { + t._mceColorPicker(0, { + color : c.value, + func : function(co) { + c.setColor(co); + } + }); + }; + } + + if (v = s.theme_advanced_background_colors) + o.colors = v; + + if (s.theme_advanced_default_background_color) + o.default_color = s.theme_advanced_default_background_color; + + o.title = 'advanced.backcolor_desc'; + o.cmd = 'HiliteColor'; + o.scope = this; + + c = t.editor.controlManager.createColorSplitButton('backcolor', o); + + return c; + }, + + renderUI : function(o) { + var n, ic, tb, t = this, ed = t.editor, s = t.settings, sc, p, nl; + + n = p = DOM.create('span', {id : ed.id + '_parent', 'class' : 'mceEditor ' + ed.settings.skin + 'Skin' + (s.skin_variant ? ' ' + ed.settings.skin + 'Skin' + t._ufirst(s.skin_variant) : '')}); + + if (!DOM.boxModel) + n = DOM.add(n, 'div', {'class' : 'mceOldBoxModel'}); + + n = sc = DOM.add(n, 'table', {id : ed.id + '_tbl', 'class' : 'mceLayout', cellSpacing : 0, cellPadding : 0}); + n = tb = DOM.add(n, 'tbody'); + + switch ((s.theme_advanced_layout_manager || '').toLowerCase()) { + case "rowlayout": + ic = t._rowLayout(s, tb, o); + break; + + case "customlayout": + ic = ed.execCallback("theme_advanced_custom_layout", s, tb, o, p); + break; + + default: + ic = t._simpleLayout(s, tb, o, p); + } + + n = o.targetNode; + + // Add classes to first and last TRs + nl = DOM.stdMode ? sc.getElementsByTagName('tr') : sc.rows; // Quick fix for IE 8 + DOM.addClass(nl[0], 'mceFirst'); + DOM.addClass(nl[nl.length - 1], 'mceLast'); + + // Add classes to first and last TDs + each(DOM.select('tr', tb), function(n) { + DOM.addClass(n.firstChild, 'mceFirst'); + DOM.addClass(n.childNodes[n.childNodes.length - 1], 'mceLast'); + }); + + if (DOM.get(s.theme_advanced_toolbar_container)) + DOM.get(s.theme_advanced_toolbar_container).appendChild(p); + else + DOM.insertAfter(p, n); + + Event.add(ed.id + '_path_row', 'click', function(e) { + e = e.target; + + if (e.nodeName == 'A') { + t._sel(e.className.replace(/^.*mcePath_([0-9]+).*$/, '$1')); + + return Event.cancel(e); + } + }); +/* + if (DOM.get(ed.id + '_path_row')) { + Event.add(ed.id + '_tbl', 'mouseover', function(e) { + var re; + + e = e.target; + + if (e.nodeName == 'SPAN' && DOM.hasClass(e.parentNode, 'mceButton')) { + re = DOM.get(ed.id + '_path_row'); + t.lastPath = re.innerHTML; + DOM.setHTML(re, e.parentNode.title); + } + }); + + Event.add(ed.id + '_tbl', 'mouseout', function(e) { + if (t.lastPath) { + DOM.setHTML(ed.id + '_path_row', t.lastPath); + t.lastPath = 0; + } + }); + } +*/ + + if (!ed.getParam('accessibility_focus')) + Event.add(DOM.add(p, 'a', {href : '#'}, ''), 'focus', function() {tinyMCE.get(ed.id).focus();}); + + if (s.theme_advanced_toolbar_location == 'external') + o.deltaHeight = 0; + + t.deltaHeight = o.deltaHeight; + o.targetNode = null; + + return { + iframeContainer : ic, + editorContainer : ed.id + '_parent', + sizeContainer : sc, + deltaHeight : o.deltaHeight + }; + }, + + getInfo : function() { + return { + longname : 'Advanced theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + }, + + resizeBy : function(dw, dh) { + var e = DOM.get(this.editor.id + '_tbl'); + + this.resizeTo(e.clientWidth + dw, e.clientHeight + dh); + }, + + resizeTo : function(w, h) { + var ed = this.editor, s = this.settings, e = DOM.get(ed.id + '_tbl'), ifr = DOM.get(ed.id + '_ifr'); + + // Boundery fix box + w = Math.max(s.theme_advanced_resizing_min_width || 100, w); + h = Math.max(s.theme_advanced_resizing_min_height || 100, h); + w = Math.min(s.theme_advanced_resizing_max_width || 0xFFFF, w); + h = Math.min(s.theme_advanced_resizing_max_height || 0xFFFF, h); + + // Resize iframe and container + DOM.setStyle(e, 'height', ''); + DOM.setStyle(ifr, 'height', h); + + if (s.theme_advanced_resize_horizontal) { + DOM.setStyle(e, 'width', ''); + DOM.setStyle(ifr, 'width', w); + + // Make sure that the size is never smaller than the over all ui + if (w < e.clientWidth) + DOM.setStyle(ifr, 'width', e.clientWidth); + } + }, + + destroy : function() { + var id = this.editor.id; + + Event.clear(id + '_resize'); + Event.clear(id + '_path_row'); + Event.clear(id + '_external_close'); + }, + + // Internal functions + + _simpleLayout : function(s, tb, o, p) { + var t = this, ed = t.editor, lo = s.theme_advanced_toolbar_location, sl = s.theme_advanced_statusbar_location, n, ic, etb, c; + + if (s.readonly) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + return ic; + } + + // Create toolbar container at top + if (lo == 'top') + t._addToolbars(tb, o); + + // Create external toolbar + if (lo == 'external') { + n = c = DOM.create('div', {style : 'position:relative'}); + n = DOM.add(n, 'div', {id : ed.id + '_external', 'class' : 'mceExternalToolbar'}); + DOM.add(n, 'a', {id : ed.id + '_external_close', href : 'javascript:;', 'class' : 'mceExternalClose'}); + n = DOM.add(n, 'table', {id : ed.id + '_tblext', cellSpacing : 0, cellPadding : 0}); + etb = DOM.add(n, 'tbody'); + + if (p.firstChild.className == 'mceOldBoxModel') + p.firstChild.appendChild(c); + else + p.insertBefore(c, p.firstChild); + + t._addToolbars(etb, o); + + ed.onMouseUp.add(function() { + var e = DOM.get(ed.id + '_external'); + DOM.show(e); + + DOM.hide(lastExtID); + + var f = Event.add(ed.id + '_external_close', 'click', function() { + DOM.hide(ed.id + '_external'); + Event.remove(ed.id + '_external_close', 'click', f); + }); + + DOM.show(e); + DOM.setStyle(e, 'top', 0 - DOM.getRect(ed.id + '_tblext').h - 1); + + // Fixes IE rendering bug + DOM.hide(e); + DOM.show(e); + e.style.filter = ''; + + lastExtID = ed.id + '_external'; + + e = null; + }); + } + + if (sl == 'top') + t._addStatusBar(tb, o); + + // Create iframe container + if (!s.theme_advanced_toolbar_container) { + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + } + + // Create toolbar container at bottom + if (lo == 'bottom') + t._addToolbars(tb, o); + + if (sl == 'bottom') + t._addStatusBar(tb, o); + + return ic; + }, + + _rowLayout : function(s, tb, o) { + var t = this, ed = t.editor, dc, da, cf = ed.controlManager, n, ic, to, a; + + dc = s.theme_advanced_containers_default_class || ''; + da = s.theme_advanced_containers_default_align || 'center'; + + each(explode(s.theme_advanced_containers || ''), function(c, i) { + var v = s['theme_advanced_container_' + c] || ''; + + switch (v.toLowerCase()) { + case 'mceeditor': + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(n, 'td', {'class' : 'mceIframeContainer'}); + break; + + case 'mceelementpath': + t._addStatusBar(tb, o); + break; + + default: + a = (s['theme_advanced_container_' + c + '_align'] || da).toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(tb, 'tr'), 'td', { + 'class' : 'mceToolbar ' + (s['theme_advanced_container_' + c + '_class'] || dc) + ' ' + a || da + }); + + to = cf.createToolbar("toolbar" + i); + t._addControls(v, to); + DOM.setHTML(n, to.renderHTML()); + o.deltaHeight -= s.theme_advanced_row_height; + } + }); + + return ic; + }, + + _addControls : function(v, tb) { + var t = this, s = t.settings, di, cf = t.editor.controlManager; + + if (s.theme_advanced_disable && !t._disabled) { + di = {}; + + each(explode(s.theme_advanced_disable), function(v) { + di[v] = 1; + }); + + t._disabled = di; + } else + di = t._disabled; + + each(explode(v), function(n) { + var c; + + if (di && di[n]) + return; + + // Compatiblity with 2.x + if (n == 'tablecontrols') { + each(["table","|","row_props","cell_props","|","row_before","row_after","delete_row","|","col_before","col_after","delete_col","|","split_cells","merge_cells"], function(n) { + n = t.createControl(n, cf); + + if (n) + tb.add(n); + }); + + return; + } + + c = t.createControl(n, cf); + + if (c) + tb.add(c); + }); + }, + + _addToolbars : function(c, o) { + var t = this, i, tb, ed = t.editor, s = t.settings, v, cf = ed.controlManager, di, n, h = [], a; + + a = s.theme_advanced_toolbar_align.toLowerCase(); + a = 'mce' + t._ufirst(a); + + n = DOM.add(DOM.add(c, 'tr'), 'td', {'class' : 'mceToolbar ' + a}); + + if (!ed.getParam('accessibility_focus')) + h.push(DOM.createHTML('a', {href : '#', onfocus : 'tinyMCE.get(\'' + ed.id + '\').focus();'}, '')); + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'q', title : ed.getLang("advanced.toolbar_focus")}, '')); + + // Create toolbar and add the controls + for (i=1; (v = s['theme_advanced_buttons' + i]); i++) { + tb = cf.createToolbar("toolbar" + i, {'class' : 'mceToolbarRow' + i}); + + if (s['theme_advanced_buttons' + i + '_add']) + v += ',' + s['theme_advanced_buttons' + i + '_add']; + + if (s['theme_advanced_buttons' + i + '_add_before']) + v = s['theme_advanced_buttons' + i + '_add_before'] + ',' + v; + + t._addControls(v, tb); + + //n.appendChild(n = tb.render()); + h.push(tb.renderHTML()); + + o.deltaHeight -= s.theme_advanced_row_height; + } + + h.push(DOM.createHTML('a', {href : '#', accesskey : 'z', title : ed.getLang("advanced.toolbar_focus"), onfocus : 'tinyMCE.getInstanceById(\'' + ed.id + '\').focus();'}, '')); + DOM.setHTML(n, h.join('')); + }, + + _addStatusBar : function(tb, o) { + var n, t = this, ed = t.editor, s = t.settings, r, mf, me, td; + + n = DOM.add(tb, 'tr'); + n = td = DOM.add(n, 'td', {'class' : 'mceStatusbar'}); + n = DOM.add(n, 'div', {id : ed.id + '_path_row'}, s.theme_advanced_path ? ed.translate('advanced.path') + ': ' : ' '); + DOM.add(n, 'a', {href : '#', accesskey : 'x'}); + + if (s.theme_advanced_resizing) { + DOM.add(td, 'a', {id : ed.id + '_resize', href : 'javascript:;', onclick : "return false;", 'class' : 'mceResize'}); + + if (s.theme_advanced_resizing_use_cookie) { + ed.onPostRender.add(function() { + var o = Cookie.getHash("TinyMCE_" + ed.id + "_size"), c = DOM.get(ed.id + '_tbl'); + + if (!o) + return; + + t.resizeTo(o.cw, o.ch); + }); + } + + ed.onPostRender.add(function() { + Event.add(ed.id + '_resize', 'mousedown', function(e) { + var mouseMoveHandler1, mouseMoveHandler2, + mouseUpHandler1, mouseUpHandler2, + startX, startY, startWidth, startHeight, width, height, ifrElm; + + function resizeOnMove(e) { + width = startWidth + (e.screenX - startX); + height = startHeight + (e.screenY - startY); + + t.resizeTo(width, height); + }; + + function endResize(e) { + // Stop listening + Event.remove(DOM.doc, 'mousemove', mouseMoveHandler1); + Event.remove(ed.getDoc(), 'mousemove', mouseMoveHandler2); + Event.remove(DOM.doc, 'mouseup', mouseUpHandler1); + Event.remove(ed.getDoc(), 'mouseup', mouseUpHandler2); + + // Store away the size + if (s.theme_advanced_resizing_use_cookie) { + Cookie.setHash("TinyMCE_" + ed.id + "_size", { + cw : width, + ch : height + }); + } + }; + + e.preventDefault(); + + // Get the current rect size + startX = e.screenX; + startY = e.screenY; + ifrElm = DOM.get(t.editor.id + '_ifr'); + startWidth = width = ifrElm.clientWidth; + startHeight = height = ifrElm.clientHeight; + + // Register envent handlers + mouseMoveHandler1 = Event.add(DOM.doc, 'mousemove', resizeOnMove); + mouseMoveHandler2 = Event.add(ed.getDoc(), 'mousemove', resizeOnMove); + mouseUpHandler1 = Event.add(DOM.doc, 'mouseup', endResize); + mouseUpHandler2 = Event.add(ed.getDoc(), 'mouseup', endResize); + }); + }); + } + + o.deltaHeight -= 21; + n = tb = null; + }, + + _nodeChanged : function(ed, cm, n, co, ob) { + var t = this, p, de = 0, v, c, s = t.settings, cl, fz, fn, formatNames, matches; + + tinymce.each(t.stateControls, function(c) { + cm.setActive(c, ed.queryCommandState(t.controls[c][1])); + }); + + function getParent(name) { + var i, parents = ob.parents, func = name; + + if (typeof(name) == 'string') { + func = function(node) { + return node.nodeName == name; + }; + } + + for (i = 0; i < parents.length; i++) { + if (func(parents[i])) + return parents[i]; + } + }; + + cm.setActive('visualaid', ed.hasVisual); + cm.setDisabled('undo', !ed.undoManager.hasUndo() && !ed.typing); + cm.setDisabled('redo', !ed.undoManager.hasRedo()); + cm.setDisabled('outdent', !ed.queryCommandState('Outdent')); + + p = getParent('A'); + if (c = cm.get('link')) { + if (!p || !p.name) { + c.setDisabled(!p && co); + c.setActive(!!p); + } + } + + if (c = cm.get('unlink')) { + c.setDisabled(!p && co); + c.setActive(!!p && !p.name); + } + + if (c = cm.get('anchor')) { + c.setActive(!!p && p.name); + } + + p = getParent('IMG'); + if (c = cm.get('image')) + c.setActive(!!p && n.className.indexOf('mceItem') == -1); + + if (c = cm.get('styleselect')) { + t._importClasses(); + + formatNames = []; + each(c.items, function(item) { + formatNames.push(item.value); + }); + + matches = ed.formatter.matchAll(formatNames); + c.select(matches[0]); + } + + if (c = cm.get('formatselect')) { + p = getParent(DOM.isBlock); + + if (p) + c.select(p.nodeName.toLowerCase()); + } + + // Find out current fontSize, fontFamily and fontClass + getParent(function(n) { + if (n.nodeName === 'SPAN') { + if (!cl && n.className) + cl = n.className; + + if (!fz && n.style.fontSize) + fz = n.style.fontSize; + + if (!fn && n.style.fontFamily) + fn = n.style.fontFamily.replace(/[\"\']+/g, '').replace(/^([^,]+).*/, '$1').toLowerCase(); + } + + return false; + }); + + if (c = cm.get('fontselect')) { + c.select(function(v) { + return v.replace(/^([^,]+).*/, '$1').toLowerCase() == fn; + }); + } + + // Select font size + if (c = cm.get('fontsizeselect')) { + // Use computed style + if (s.theme_advanced_runtime_fontsize && !fz && !cl) + fz = ed.dom.getStyle(n, 'fontSize', true); + + c.select(function(v) { + if (v.fontSize && v.fontSize === fz) + return true; + + if (v['class'] && v['class'] === cl) + return true; + }); + } + + if (s.theme_advanced_path && s.theme_advanced_statusbar_location) { + p = DOM.get(ed.id + '_path') || DOM.add(ed.id + '_path_row', 'span', {id : ed.id + '_path'}); + DOM.setHTML(p, ''); + + getParent(function(n) { + var na = n.nodeName.toLowerCase(), u, pi, ti = ''; + + /*if (n.getAttribute('_mce_bogus')) + return; +*/ + // Ignore non element and hidden elements + if (n.nodeType != 1 || n.nodeName === 'BR' || (DOM.hasClass(n, 'mceItemHidden') || DOM.hasClass(n, 'mceItemRemoved'))) + return; + + // Fake name + if (v = DOM.getAttrib(n, 'mce_name')) + na = v; + + // Handle prefix + if (tinymce.isIE && n.scopeName !== 'HTML') + na = n.scopeName + ':' + na; + + // Remove internal prefix + na = na.replace(/mce\:/g, ''); + + // Handle node name + switch (na) { + case 'b': + na = 'strong'; + break; + + case 'i': + na = 'em'; + break; + + case 'img': + if (v = DOM.getAttrib(n, 'src')) + ti += 'src: ' + v + ' '; + + break; + + case 'a': + if (v = DOM.getAttrib(n, 'name')) { + ti += 'name: ' + v + ' '; + na += '#' + v; + } + + if (v = DOM.getAttrib(n, 'href')) + ti += 'href: ' + v + ' '; + + break; + + case 'font': + if (v = DOM.getAttrib(n, 'face')) + ti += 'font: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'size')) + ti += 'size: ' + v + ' '; + + if (v = DOM.getAttrib(n, 'color')) + ti += 'color: ' + v + ' '; + + break; + + case 'span': + if (v = DOM.getAttrib(n, 'style')) + ti += 'style: ' + v + ' '; + + break; + } + + if (v = DOM.getAttrib(n, 'id')) + ti += 'id: ' + v + ' '; + + if (v = n.className) { + v = v.replace(/\b\s*(webkit|mce|Apple-)\w+\s*\b/g, '') + + if (v) { + ti += 'class: ' + v + ' '; + + if (DOM.isBlock(n) || na == 'img' || na == 'span') + na += '.' + v; + } + } + + na = na.replace(/(html:)/g, ''); + na = {name : na, node : n, title : ti}; + t.onResolveName.dispatch(t, na); + ti = na.title; + na = na.name; + + //u = "javascript:tinymce.EditorManager.get('" + ed.id + "').theme._sel('" + (de++) + "');"; + pi = DOM.create('a', {'href' : "javascript:;", onmousedown : "return false;", title : ti, 'class' : 'mcePath_' + (de++)}, na); + + if (p.hasChildNodes()) { + p.insertBefore(DOM.doc.createTextNode(' \u00bb '), p.firstChild); + p.insertBefore(pi, p.firstChild); + } else + p.appendChild(pi); + }, ed.getBody()); + } + }, + + // Commands gets called by execCommand + + _sel : function(v) { + this.editor.execCommand('mceSelectNodeDepth', false, v); + }, + + _mceInsertAnchor : function(ui, v) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/anchor.htm', + width : 320 + parseInt(ed.getLang('advanced.anchor_delta_width', 0)), + height : 90 + parseInt(ed.getLang('advanced.anchor_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceCharMap : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/charmap.htm', + width : 550 + parseInt(ed.getLang('advanced.charmap_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.charmap_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceHelp : function() { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/about.htm', + width : 480, + height : 380, + inline : true + }, { + theme_url : this.url + }); + }, + + _mceColorPicker : function(u, v) { + var ed = this.editor; + + v = v || {}; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/color_picker.htm', + width : 375 + parseInt(ed.getLang('advanced.colorpicker_delta_width', 0)), + height : 250 + parseInt(ed.getLang('advanced.colorpicker_delta_height', 0)), + close_previous : false, + inline : true + }, { + input_color : v.color, + func : v.func, + theme_url : this.url + }); + }, + + _mceCodeEditor : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/source_editor.htm', + width : parseInt(ed.getParam("theme_advanced_source_editor_width", 720)), + height : parseInt(ed.getParam("theme_advanced_source_editor_height", 580)), + inline : true, + resizable : true, + maximizable : true + }, { + theme_url : this.url + }); + }, + + _mceImage : function(ui, val) { + var ed = this.editor; + + // Internal image object like a flash placeholder + if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + return; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/image.htm', + width : 355 + parseInt(ed.getLang('advanced.image_delta_width', 0)), + height : 275 + parseInt(ed.getLang('advanced.image_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceLink : function(ui, val) { + var ed = this.editor; + + ed.windowManager.open({ + url : tinymce.baseURL + '/themes/advanced/link.htm', + width : 310 + parseInt(ed.getLang('advanced.link_delta_width', 0)), + height : 200 + parseInt(ed.getLang('advanced.link_delta_height', 0)), + inline : true + }, { + theme_url : this.url + }); + }, + + _mceNewDocument : function() { + var ed = this.editor; + + ed.windowManager.confirm('advanced.newdocument', function(s) { + if (s) + ed.execCommand('mceSetContent', false, ''); + }); + }, + + _mceForeColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.fgColor, + func : function(co) { + t.fgColor = co; + t.editor.execCommand('ForeColor', false, co); + } + }); + }, + + _mceBackColor : function() { + var t = this; + + this._mceColorPicker(0, { + color: t.bgColor, + func : function(co) { + t.bgColor = co; + t.editor.execCommand('HiliteColor', false, co); + } + }); + }, + + _ufirst : function(s) { + return s.substring(0, 1).toUpperCase() + s.substring(1); + } + }); + + tinymce.ThemeManager.add('advanced', tinymce.themes.AdvancedTheme); +}(tinymce)); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/advanced/image.htm b/sn_templates/tiny_mce/themes/advanced/image.htm new file mode 100644 index 0000000..98fd2cd --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/image.htm @@ -0,0 +1,80 @@ + + + + {#advanced_dlg.image_title} + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                + x +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/themes/advanced/img/colorpicker.jpg b/sn_templates/tiny_mce/themes/advanced/img/colorpicker.jpg new file mode 100644 index 0000000..b4c542d Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/img/colorpicker.jpg differ diff --git a/sn_templates/tiny_mce/themes/advanced/img/icons.gif b/sn_templates/tiny_mce/themes/advanced/img/icons.gif new file mode 100644 index 0000000..e46de53 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/img/icons.gif differ diff --git a/sn_templates/tiny_mce/themes/advanced/js/about.js b/sn_templates/tiny_mce/themes/advanced/js/about.js new file mode 100644 index 0000000..7fc8ba2 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/js/about.js @@ -0,0 +1,72 @@ +tinyMCEPopup.requireLangPack(); + +function init() { + var ed, tcont; + + tinyMCEPopup.resizeToInnerSize(); + ed = tinyMCEPopup.editor; + + // Give FF some time + window.setTimeout(insertHelpIFrame, 10); + + tcont = document.getElementById('plugintablecontainer'); + document.getElementById('plugins_tab').style.display = 'none'; + + var html = ""; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + html += ''; + + tinymce.each(ed.plugins, function(p, n) { + var info; + + if (!p.getInfo) + return; + + html += ''; + + info = p.getInfo(); + + if (info.infourl != null && info.infourl != '') + html += ''; + else + html += ''; + + if (info.authorurl != null && info.authorurl != '') + html += ''; + else + html += ''; + + html += ''; + html += ''; + + document.getElementById('plugins_tab').style.display = ''; + + }); + + html += ''; + html += '
                                                ' + ed.getLang('advanced_dlg.about_plugin') + '' + ed.getLang('advanced_dlg.about_author') + '' + ed.getLang('advanced_dlg.about_version') + '
                                                ' + info.longname + '' + info.longname + '' + info.author + '' + info.author + '' + info.version + '
                                                '; + + tcont.innerHTML = html; + + tinyMCEPopup.dom.get('version').innerHTML = tinymce.majorVersion + "." + tinymce.minorVersion; + tinyMCEPopup.dom.get('date').innerHTML = tinymce.releaseDate; +} + +function insertHelpIFrame() { + var html; + + if (tinyMCEPopup.getParam('docs_url')) { + html = ''; + document.getElementById('iframecontainer').innerHTML = html; + document.getElementById('help_tab').style.display = 'block'; + } +} + +tinyMCEPopup.onInit.add(init); diff --git a/sn_templates/tiny_mce/themes/advanced/js/anchor.js b/sn_templates/tiny_mce/themes/advanced/js/anchor.js new file mode 100644 index 0000000..d7a854e --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/js/anchor.js @@ -0,0 +1,37 @@ +tinyMCEPopup.requireLangPack(); + +var AnchorDialog = { + init : function(ed) { + var action, elm, f = document.forms[0]; + + this.editor = ed; + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + v = ed.dom.getAttrib(elm, 'name'); + + if (v) { + this.action = 'update'; + f.anchorName.value = v; + } + + f.insert.value = ed.getLang(elm ? 'update' : 'insert'); + }, + + update : function() { + var ed = this.editor, elm, name = document.forms[0].anchorName.value; + + tinyMCEPopup.restoreSelection(); + + if (this.action != 'update') + ed.selection.collapse(1); + + elm = ed.dom.getParent(ed.selection.getNode(), 'A'); + if (elm) + elm.name = name; + else + ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, '')); + + tinyMCEPopup.close(); + } +}; + +tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog); diff --git a/sn_templates/tiny_mce/themes/advanced/js/charmap.js b/sn_templates/tiny_mce/themes/advanced/js/charmap.js new file mode 100644 index 0000000..53a2683 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/js/charmap.js @@ -0,0 +1,335 @@ +/** + * charmap.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +tinyMCEPopup.requireLangPack(); + +var charmap = [ + [' ', ' ', true, 'no-break space'], + ['&', '&', true, 'ampersand'], + ['"', '"', true, 'quotation mark'], +// finance + ['¢', '¢', true, 'cent sign'], + ['€', '€', true, 'euro sign'], + ['£', '£', true, 'pound sign'], + ['¥', '¥', true, 'yen sign'], +// signs + ['©', '©', true, 'copyright sign'], + ['®', '®', true, 'registered sign'], + ['™', '™', true, 'trade mark sign'], + ['‰', '‰', true, 'per mille sign'], + ['µ', 'µ', true, 'micro sign'], + ['·', '·', true, 'middle dot'], + ['•', '•', true, 'bullet'], + ['…', '…', true, 'three dot leader'], + ['′', '′', true, 'minutes / feet'], + ['″', '″', true, 'seconds / inches'], + ['§', '§', true, 'section sign'], + ['¶', '¶', true, 'paragraph sign'], + ['ß', 'ß', true, 'sharp s / ess-zed'], +// quotations + ['‹', '‹', true, 'single left-pointing angle quotation mark'], + ['›', '›', true, 'single right-pointing angle quotation mark'], + ['«', '«', true, 'left pointing guillemet'], + ['»', '»', true, 'right pointing guillemet'], + ['‘', '‘', true, 'left single quotation mark'], + ['’', '’', true, 'right single quotation mark'], + ['“', '“', true, 'left double quotation mark'], + ['”', '”', true, 'right double quotation mark'], + ['‚', '‚', true, 'single low-9 quotation mark'], + ['„', '„', true, 'double low-9 quotation mark'], + ['<', '<', true, 'less-than sign'], + ['>', '>', true, 'greater-than sign'], + ['≤', '≤', true, 'less-than or equal to'], + ['≥', '≥', true, 'greater-than or equal to'], + ['–', '–', true, 'en dash'], + ['—', '—', true, 'em dash'], + ['¯', '¯', true, 'macron'], + ['‾', '‾', true, 'overline'], + ['¤', '¤', true, 'currency sign'], + ['¦', '¦', true, 'broken bar'], + ['¨', '¨', true, 'diaeresis'], + ['¡', '¡', true, 'inverted exclamation mark'], + ['¿', '¿', true, 'turned question mark'], + ['ˆ', 'ˆ', true, 'circumflex accent'], + ['˜', '˜', true, 'small tilde'], + ['°', '°', true, 'degree sign'], + ['−', '−', true, 'minus sign'], + ['±', '±', true, 'plus-minus sign'], + ['÷', '÷', true, 'division sign'], + ['⁄', '⁄', true, 'fraction slash'], + ['×', '×', true, 'multiplication sign'], + ['¹', '¹', true, 'superscript one'], + ['²', '²', true, 'superscript two'], + ['³', '³', true, 'superscript three'], + ['¼', '¼', true, 'fraction one quarter'], + ['½', '½', true, 'fraction one half'], + ['¾', '¾', true, 'fraction three quarters'], +// math / logical + ['ƒ', 'ƒ', true, 'function / florin'], + ['∫', '∫', true, 'integral'], + ['∑', '∑', true, 'n-ary sumation'], + ['∞', '∞', true, 'infinity'], + ['√', '√', true, 'square root'], + ['∼', '∼', false,'similar to'], + ['≅', '≅', false,'approximately equal to'], + ['≈', '≈', true, 'almost equal to'], + ['≠', '≠', true, 'not equal to'], + ['≡', '≡', true, 'identical to'], + ['∈', '∈', false,'element of'], + ['∉', '∉', false,'not an element of'], + ['∋', '∋', false,'contains as member'], + ['∏', '∏', true, 'n-ary product'], + ['∧', '∧', false,'logical and'], + ['∨', '∨', false,'logical or'], + ['¬', '¬', true, 'not sign'], + ['∩', '∩', true, 'intersection'], + ['∪', '∪', false,'union'], + ['∂', '∂', true, 'partial differential'], + ['∀', '∀', false,'for all'], + ['∃', '∃', false,'there exists'], + ['∅', '∅', false,'diameter'], + ['∇', '∇', false,'backward difference'], + ['∗', '∗', false,'asterisk operator'], + ['∝', '∝', false,'proportional to'], + ['∠', '∠', false,'angle'], +// undefined + ['´', '´', true, 'acute accent'], + ['¸', '¸', true, 'cedilla'], + ['ª', 'ª', true, 'feminine ordinal indicator'], + ['º', 'º', true, 'masculine ordinal indicator'], + ['†', '†', true, 'dagger'], + ['‡', '‡', true, 'double dagger'], +// alphabetical special chars + ['À', 'À', true, 'A - grave'], + ['Á', 'Á', true, 'A - acute'], + ['Â', 'Â', true, 'A - circumflex'], + ['Ã', 'Ã', true, 'A - tilde'], + ['Ä', 'Ä', true, 'A - diaeresis'], + ['Å', 'Å', true, 'A - ring above'], + ['Æ', 'Æ', true, 'ligature AE'], + ['Ç', 'Ç', true, 'C - cedilla'], + ['È', 'È', true, 'E - grave'], + ['É', 'É', true, 'E - acute'], + ['Ê', 'Ê', true, 'E - circumflex'], + ['Ë', 'Ë', true, 'E - diaeresis'], + ['Ì', 'Ì', true, 'I - grave'], + ['Í', 'Í', true, 'I - acute'], + ['Î', 'Î', true, 'I - circumflex'], + ['Ï', 'Ï', true, 'I - diaeresis'], + ['Ð', 'Ð', true, 'ETH'], + ['Ñ', 'Ñ', true, 'N - tilde'], + ['Ò', 'Ò', true, 'O - grave'], + ['Ó', 'Ó', true, 'O - acute'], + ['Ô', 'Ô', true, 'O - circumflex'], + ['Õ', 'Õ', true, 'O - tilde'], + ['Ö', 'Ö', true, 'O - diaeresis'], + ['Ø', 'Ø', true, 'O - slash'], + ['Œ', 'Œ', true, 'ligature OE'], + ['Š', 'Š', true, 'S - caron'], + ['Ù', 'Ù', true, 'U - grave'], + ['Ú', 'Ú', true, 'U - acute'], + ['Û', 'Û', true, 'U - circumflex'], + ['Ü', 'Ü', true, 'U - diaeresis'], + ['Ý', 'Ý', true, 'Y - acute'], + ['Ÿ', 'Ÿ', true, 'Y - diaeresis'], + ['Þ', 'Þ', true, 'THORN'], + ['à', 'à', true, 'a - grave'], + ['á', 'á', true, 'a - acute'], + ['â', 'â', true, 'a - circumflex'], + ['ã', 'ã', true, 'a - tilde'], + ['ä', 'ä', true, 'a - diaeresis'], + ['å', 'å', true, 'a - ring above'], + ['æ', 'æ', true, 'ligature ae'], + ['ç', 'ç', true, 'c - cedilla'], + ['è', 'è', true, 'e - grave'], + ['é', 'é', true, 'e - acute'], + ['ê', 'ê', true, 'e - circumflex'], + ['ë', 'ë', true, 'e - diaeresis'], + ['ì', 'ì', true, 'i - grave'], + ['í', 'í', true, 'i - acute'], + ['î', 'î', true, 'i - circumflex'], + ['ï', 'ï', true, 'i - diaeresis'], + ['ð', 'ð', true, 'eth'], + ['ñ', 'ñ', true, 'n - tilde'], + ['ò', 'ò', true, 'o - grave'], + ['ó', 'ó', true, 'o - acute'], + ['ô', 'ô', true, 'o - circumflex'], + ['õ', 'õ', true, 'o - tilde'], + ['ö', 'ö', true, 'o - diaeresis'], + ['ø', 'ø', true, 'o slash'], + ['œ', 'œ', true, 'ligature oe'], + ['š', 'š', true, 's - caron'], + ['ù', 'ù', true, 'u - grave'], + ['ú', 'ú', true, 'u - acute'], + ['û', 'û', true, 'u - circumflex'], + ['ü', 'ü', true, 'u - diaeresis'], + ['ý', 'ý', true, 'y - acute'], + ['þ', 'þ', true, 'thorn'], + ['ÿ', 'ÿ', true, 'y - diaeresis'], + ['Α', 'Α', true, 'Alpha'], + ['Β', 'Β', true, 'Beta'], + ['Γ', 'Γ', true, 'Gamma'], + ['Δ', 'Δ', true, 'Delta'], + ['Ε', 'Ε', true, 'Epsilon'], + ['Ζ', 'Ζ', true, 'Zeta'], + ['Η', 'Η', true, 'Eta'], + ['Θ', 'Θ', true, 'Theta'], + ['Ι', 'Ι', true, 'Iota'], + ['Κ', 'Κ', true, 'Kappa'], + ['Λ', 'Λ', true, 'Lambda'], + ['Μ', 'Μ', true, 'Mu'], + ['Ν', 'Ν', true, 'Nu'], + ['Ξ', 'Ξ', true, 'Xi'], + ['Ο', 'Ο', true, 'Omicron'], + ['Π', 'Π', true, 'Pi'], + ['Ρ', 'Ρ', true, 'Rho'], + ['Σ', 'Σ', true, 'Sigma'], + ['Τ', 'Τ', true, 'Tau'], + ['Υ', 'Υ', true, 'Upsilon'], + ['Φ', 'Φ', true, 'Phi'], + ['Χ', 'Χ', true, 'Chi'], + ['Ψ', 'Ψ', true, 'Psi'], + ['Ω', 'Ω', true, 'Omega'], + ['α', 'α', true, 'alpha'], + ['β', 'β', true, 'beta'], + ['γ', 'γ', true, 'gamma'], + ['δ', 'δ', true, 'delta'], + ['ε', 'ε', true, 'epsilon'], + ['ζ', 'ζ', true, 'zeta'], + ['η', 'η', true, 'eta'], + ['θ', 'θ', true, 'theta'], + ['ι', 'ι', true, 'iota'], + ['κ', 'κ', true, 'kappa'], + ['λ', 'λ', true, 'lambda'], + ['μ', 'μ', true, 'mu'], + ['ν', 'ν', true, 'nu'], + ['ξ', 'ξ', true, 'xi'], + ['ο', 'ο', true, 'omicron'], + ['π', 'π', true, 'pi'], + ['ρ', 'ρ', true, 'rho'], + ['ς', 'ς', true, 'final sigma'], + ['σ', 'σ', true, 'sigma'], + ['τ', 'τ', true, 'tau'], + ['υ', 'υ', true, 'upsilon'], + ['φ', 'φ', true, 'phi'], + ['χ', 'χ', true, 'chi'], + ['ψ', 'ψ', true, 'psi'], + ['ω', 'ω', true, 'omega'], +// symbols + ['ℵ', 'ℵ', false,'alef symbol'], + ['ϖ', 'ϖ', false,'pi symbol'], + ['ℜ', 'ℜ', false,'real part symbol'], + ['ϑ','ϑ', false,'theta symbol'], + ['ϒ', 'ϒ', false,'upsilon - hook symbol'], + ['℘', '℘', false,'Weierstrass p'], + ['ℑ', 'ℑ', false,'imaginary part'], +// arrows + ['←', '←', true, 'leftwards arrow'], + ['↑', '↑', true, 'upwards arrow'], + ['→', '→', true, 'rightwards arrow'], + ['↓', '↓', true, 'downwards arrow'], + ['↔', '↔', true, 'left right arrow'], + ['↵', '↵', false,'carriage return'], + ['⇐', '⇐', false,'leftwards double arrow'], + ['⇑', '⇑', false,'upwards double arrow'], + ['⇒', '⇒', false,'rightwards double arrow'], + ['⇓', '⇓', false,'downwards double arrow'], + ['⇔', '⇔', false,'left right double arrow'], + ['∴', '∴', false,'therefore'], + ['⊂', '⊂', false,'subset of'], + ['⊃', '⊃', false,'superset of'], + ['⊄', '⊄', false,'not a subset of'], + ['⊆', '⊆', false,'subset of or equal to'], + ['⊇', '⊇', false,'superset of or equal to'], + ['⊕', '⊕', false,'circled plus'], + ['⊗', '⊗', false,'circled times'], + ['⊥', '⊥', false,'perpendicular'], + ['⋅', '⋅', false,'dot operator'], + ['⌈', '⌈', false,'left ceiling'], + ['⌉', '⌉', false,'right ceiling'], + ['⌊', '⌊', false,'left floor'], + ['⌋', '⌋', false,'right floor'], + ['⟨', '〈', false,'left-pointing angle bracket'], + ['⟩', '〉', false,'right-pointing angle bracket'], + ['◊', '◊', true,'lozenge'], + ['♠', '♠', false,'black spade suit'], + ['♣', '♣', true, 'black club suit'], + ['♥', '♥', true, 'black heart suit'], + ['♦', '♦', true, 'black diamond suit'], + [' ', ' ', false,'en space'], + [' ', ' ', false,'em space'], + [' ', ' ', false,'thin space'], + ['‌', '‌', false,'zero width non-joiner'], + ['‍', '‍', false,'zero width joiner'], + ['‎', '‎', false,'left-to-right mark'], + ['‏', '‏', false,'right-to-left mark'], + ['­', '­', false,'soft hyphen'] +]; + +tinyMCEPopup.onInit.add(function() { + tinyMCEPopup.dom.setHTML('charmapView', renderCharMapHTML()); +}); + +function renderCharMapHTML() { + var charsPerRow = 20, tdWidth=20, tdHeight=20, i; + var html = ''; + var cols=-1; + + for (i=0; i' + + '' + + charmap[i][1] + + ''; + if ((cols+1) % charsPerRow == 0) + html += ''; + } + } + + if (cols % charsPerRow > 0) { + var padd = charsPerRow - (cols % charsPerRow); + for (var i=0; i '; + } + + html += '
                                                '; + + return html; +} + +function insertChar(chr) { + tinyMCEPopup.execCommand('mceInsertContent', false, '&#' + chr + ';'); + + // Refocus in window + if (tinyMCEPopup.isWindow) + window.focus(); + + tinyMCEPopup.editor.focus(); + tinyMCEPopup.close(); +} + +function previewChar(codeA, codeB, codeN) { + var elmA = document.getElementById('codeA'); + var elmB = document.getElementById('codeB'); + var elmV = document.getElementById('codeV'); + var elmN = document.getElementById('codeN'); + + if (codeA=='#160;') { + elmV.innerHTML = '__'; + } else { + elmV.innerHTML = '&' + codeA; + } + + elmB.innerHTML = '&' + codeA; + elmA.innerHTML = '&' + codeB; + elmN.innerHTML = codeN; +} diff --git a/sn_templates/tiny_mce/themes/advanced/js/color_picker.js b/sn_templates/tiny_mce/themes/advanced/js/color_picker.js new file mode 100644 index 0000000..c1a65db --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/js/color_picker.js @@ -0,0 +1,253 @@ +tinyMCEPopup.requireLangPack(); + +var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false; + +var colors = [ + "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", + "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", + "#6600cc","#6600ff","#990000","#990033","#990066","#990099","#9900cc","#9900ff", + "#cc0000","#cc0033","#cc0066","#cc0099","#cc00cc","#cc00ff","#ff0000","#ff0033", + "#ff0066","#ff0099","#ff00cc","#ff00ff","#003300","#003333","#003366","#003399", + "#0033cc","#0033ff","#333300","#333333","#333366","#333399","#3333cc","#3333ff", + "#663300","#663333","#663366","#663399","#6633cc","#6633ff","#993300","#993333", + "#993366","#993399","#9933cc","#9933ff","#cc3300","#cc3333","#cc3366","#cc3399", + "#cc33cc","#cc33ff","#ff3300","#ff3333","#ff3366","#ff3399","#ff33cc","#ff33ff", + "#006600","#006633","#006666","#006699","#0066cc","#0066ff","#336600","#336633", + "#336666","#336699","#3366cc","#3366ff","#666600","#666633","#666666","#666699", + "#6666cc","#6666ff","#996600","#996633","#996666","#996699","#9966cc","#9966ff", + "#cc6600","#cc6633","#cc6666","#cc6699","#cc66cc","#cc66ff","#ff6600","#ff6633", + "#ff6666","#ff6699","#ff66cc","#ff66ff","#009900","#009933","#009966","#009999", + "#0099cc","#0099ff","#339900","#339933","#339966","#339999","#3399cc","#3399ff", + "#669900","#669933","#669966","#669999","#6699cc","#6699ff","#999900","#999933", + "#999966","#999999","#9999cc","#9999ff","#cc9900","#cc9933","#cc9966","#cc9999", + "#cc99cc","#cc99ff","#ff9900","#ff9933","#ff9966","#ff9999","#ff99cc","#ff99ff", + "#00cc00","#00cc33","#00cc66","#00cc99","#00cccc","#00ccff","#33cc00","#33cc33", + "#33cc66","#33cc99","#33cccc","#33ccff","#66cc00","#66cc33","#66cc66","#66cc99", + "#66cccc","#66ccff","#99cc00","#99cc33","#99cc66","#99cc99","#99cccc","#99ccff", + "#cccc00","#cccc33","#cccc66","#cccc99","#cccccc","#ccccff","#ffcc00","#ffcc33", + "#ffcc66","#ffcc99","#ffcccc","#ffccff","#00ff00","#00ff33","#00ff66","#00ff99", + "#00ffcc","#00ffff","#33ff00","#33ff33","#33ff66","#33ff99","#33ffcc","#33ffff", + "#66ff00","#66ff33","#66ff66","#66ff99","#66ffcc","#66ffff","#99ff00","#99ff33", + "#99ff66","#99ff99","#99ffcc","#99ffff","#ccff00","#ccff33","#ccff66","#ccff99", + "#ccffcc","#ccffff","#ffff00","#ffff33","#ffff66","#ffff99","#ffffcc","#ffffff" +]; + +var named = { + '#F0F8FF':'AliceBlue','#FAEBD7':'AntiqueWhite','#00FFFF':'Aqua','#7FFFD4':'Aquamarine','#F0FFFF':'Azure','#F5F5DC':'Beige', + '#FFE4C4':'Bisque','#000000':'Black','#FFEBCD':'BlanchedAlmond','#0000FF':'Blue','#8A2BE2':'BlueViolet','#A52A2A':'Brown', + '#DEB887':'BurlyWood','#5F9EA0':'CadetBlue','#7FFF00':'Chartreuse','#D2691E':'Chocolate','#FF7F50':'Coral','#6495ED':'CornflowerBlue', + '#FFF8DC':'Cornsilk','#DC143C':'Crimson','#00FFFF':'Cyan','#00008B':'DarkBlue','#008B8B':'DarkCyan','#B8860B':'DarkGoldenRod', + '#A9A9A9':'DarkGray','#A9A9A9':'DarkGrey','#006400':'DarkGreen','#BDB76B':'DarkKhaki','#8B008B':'DarkMagenta','#556B2F':'DarkOliveGreen', + '#FF8C00':'Darkorange','#9932CC':'DarkOrchid','#8B0000':'DarkRed','#E9967A':'DarkSalmon','#8FBC8F':'DarkSeaGreen','#483D8B':'DarkSlateBlue', + '#2F4F4F':'DarkSlateGray','#2F4F4F':'DarkSlateGrey','#00CED1':'DarkTurquoise','#9400D3':'DarkViolet','#FF1493':'DeepPink','#00BFFF':'DeepSkyBlue', + '#696969':'DimGray','#696969':'DimGrey','#1E90FF':'DodgerBlue','#B22222':'FireBrick','#FFFAF0':'FloralWhite','#228B22':'ForestGreen', + '#FF00FF':'Fuchsia','#DCDCDC':'Gainsboro','#F8F8FF':'GhostWhite','#FFD700':'Gold','#DAA520':'GoldenRod','#808080':'Gray','#808080':'Grey', + '#008000':'Green','#ADFF2F':'GreenYellow','#F0FFF0':'HoneyDew','#FF69B4':'HotPink','#CD5C5C':'IndianRed','#4B0082':'Indigo','#FFFFF0':'Ivory', + '#F0E68C':'Khaki','#E6E6FA':'Lavender','#FFF0F5':'LavenderBlush','#7CFC00':'LawnGreen','#FFFACD':'LemonChiffon','#ADD8E6':'LightBlue', + '#F08080':'LightCoral','#E0FFFF':'LightCyan','#FAFAD2':'LightGoldenRodYellow','#D3D3D3':'LightGray','#D3D3D3':'LightGrey','#90EE90':'LightGreen', + '#FFB6C1':'LightPink','#FFA07A':'LightSalmon','#20B2AA':'LightSeaGreen','#87CEFA':'LightSkyBlue','#778899':'LightSlateGray','#778899':'LightSlateGrey', + '#B0C4DE':'LightSteelBlue','#FFFFE0':'LightYellow','#00FF00':'Lime','#32CD32':'LimeGreen','#FAF0E6':'Linen','#FF00FF':'Magenta','#800000':'Maroon', + '#66CDAA':'MediumAquaMarine','#0000CD':'MediumBlue','#BA55D3':'MediumOrchid','#9370D8':'MediumPurple','#3CB371':'MediumSeaGreen','#7B68EE':'MediumSlateBlue', + '#00FA9A':'MediumSpringGreen','#48D1CC':'MediumTurquoise','#C71585':'MediumVioletRed','#191970':'MidnightBlue','#F5FFFA':'MintCream','#FFE4E1':'MistyRose','#FFE4B5':'Moccasin', + '#FFDEAD':'NavajoWhite','#000080':'Navy','#FDF5E6':'OldLace','#808000':'Olive','#6B8E23':'OliveDrab','#FFA500':'Orange','#FF4500':'OrangeRed','#DA70D6':'Orchid', + '#EEE8AA':'PaleGoldenRod','#98FB98':'PaleGreen','#AFEEEE':'PaleTurquoise','#D87093':'PaleVioletRed','#FFEFD5':'PapayaWhip','#FFDAB9':'PeachPuff', + '#CD853F':'Peru','#FFC0CB':'Pink','#DDA0DD':'Plum','#B0E0E6':'PowderBlue','#800080':'Purple','#FF0000':'Red','#BC8F8F':'RosyBrown','#4169E1':'RoyalBlue', + '#8B4513':'SaddleBrown','#FA8072':'Salmon','#F4A460':'SandyBrown','#2E8B57':'SeaGreen','#FFF5EE':'SeaShell','#A0522D':'Sienna','#C0C0C0':'Silver', + '#87CEEB':'SkyBlue','#6A5ACD':'SlateBlue','#708090':'SlateGray','#708090':'SlateGrey','#FFFAFA':'Snow','#00FF7F':'SpringGreen', + '#4682B4':'SteelBlue','#D2B48C':'Tan','#008080':'Teal','#D8BFD8':'Thistle','#FF6347':'Tomato','#40E0D0':'Turquoise','#EE82EE':'Violet', + '#F5DEB3':'Wheat','#FFFFFF':'White','#F5F5F5':'WhiteSmoke','#FFFF00':'Yellow','#9ACD32':'YellowGreen' +}; + +function init() { + var inputColor = convertRGBToHex(tinyMCEPopup.getWindowArg('input_color')); + + tinyMCEPopup.resizeToInnerSize(); + + generatePicker(); + + if (inputColor) { + changeFinalColor(inputColor); + + col = convertHexToRGB(inputColor); + + if (col) + updateLight(col.r, col.g, col.b); + } +} + +function insertAction() { + var color = document.getElementById("color").value, f = tinyMCEPopup.getWindowArg('func'); + + tinyMCEPopup.restoreSelection(); + + if (f) + f(color); + + tinyMCEPopup.close(); +} + +function showColor(color, name) { + if (name) + document.getElementById("colorname").innerHTML = name; + + document.getElementById("preview").style.backgroundColor = color; + document.getElementById("color").value = color.toLowerCase(); +} + +function convertRGBToHex(col) { + var re = new RegExp("rgb\\s*\\(\\s*([0-9]+).*,\\s*([0-9]+).*,\\s*([0-9]+).*\\)", "gi"); + + if (!col) + return col; + + var rgb = col.replace(re, "$1,$2,$3").split(','); + if (rgb.length == 3) { + r = parseInt(rgb[0]).toString(16); + g = parseInt(rgb[1]).toString(16); + b = parseInt(rgb[2]).toString(16); + + r = r.length == 1 ? '0' + r : r; + g = g.length == 1 ? '0' + g : g; + b = b.length == 1 ? '0' + b : b; + + return "#" + r + g + b; + } + + return col; +} + +function convertHexToRGB(col) { + if (col.indexOf('#') != -1) { + col = col.replace(new RegExp('[^0-9A-F]', 'gi'), ''); + + r = parseInt(col.substring(0, 2), 16); + g = parseInt(col.substring(2, 4), 16); + b = parseInt(col.substring(4, 6), 16); + + return {r : r, g : g, b : b}; + } + + return null; +} + +function generatePicker() { + var el = document.getElementById('light'), h = '', i; + + for (i = 0; i < detail; i++){ + h += '
                                                '; + } + + el.innerHTML = h; +} + +function generateWebColors() { + var el = document.getElementById('webcolors'), h = '', i; + + if (el.className == 'generated') + return; + + h += '' + + ''; + + for (i=0; i' + + '' + + ''; + if ((i+1) % 18 == 0) + h += ''; + } + + h += '
                                                '; + + el.innerHTML = h; + el.className = 'generated'; +} + +function generateNamedColors() { + var el = document.getElementById('namedcolors'), h = '', n, v, i = 0; + + if (el.className == 'generated') + return; + + for (n in named) { + v = named[n]; + h += '' + } + + el.innerHTML = h; + el.className = 'generated'; +} + +function dechex(n) { + return strhex.charAt(Math.floor(n / 16)) + strhex.charAt(n % 16); +} + +function computeColor(e) { + var x, y, partWidth, partDetail, imHeight, r, g, b, coef, i, finalCoef, finalR, finalG, finalB; + + x = e.offsetX ? e.offsetX : (e.target ? e.clientX - e.target.x : 0); + y = e.offsetY ? e.offsetY : (e.target ? e.clientY - e.target.y : 0); + + partWidth = document.getElementById('colors').width / 6; + partDetail = detail / 2; + imHeight = document.getElementById('colors').height; + + r = (x >= 0)*(x < partWidth)*255 + (x >= partWidth)*(x < 2*partWidth)*(2*255 - x * 255 / partWidth) + (x >= 4*partWidth)*(x < 5*partWidth)*(-4*255 + x * 255 / partWidth) + (x >= 5*partWidth)*(x < 6*partWidth)*255; + g = (x >= 0)*(x < partWidth)*(x * 255 / partWidth) + (x >= partWidth)*(x < 3*partWidth)*255 + (x >= 3*partWidth)*(x < 4*partWidth)*(4*255 - x * 255 / partWidth); + b = (x >= 2*partWidth)*(x < 3*partWidth)*(-2*255 + x * 255 / partWidth) + (x >= 3*partWidth)*(x < 5*partWidth)*255 + (x >= 5*partWidth)*(x < 6*partWidth)*(6*255 - x * 255 / partWidth); + + coef = (imHeight - y) / imHeight; + r = 128 + (r - 128) * coef; + g = 128 + (g - 128) * coef; + b = 128 + (b - 128) * coef; + + changeFinalColor('#' + dechex(r) + dechex(g) + dechex(b)); + updateLight(r, g, b); +} + +function updateLight(r, g, b) { + var i, partDetail = detail / 2, finalCoef, finalR, finalG, finalB, color; + + for (i=0; i=0) && (i'); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('srcbrowsercontainer').innerHTML = getBrowserHTML('srcbrowser','src','image','theme_advanced_image'); + if (isVisible('srcbrowser')) + document.getElementById('src').style.width = '180px'; + + e = ed.selection.getNode(); + + this.fillFileList('image_list', 'tinyMCEImageList'); + + if (e.nodeName == 'IMG') { + f.src.value = ed.dom.getAttrib(e, 'src'); + f.alt.value = ed.dom.getAttrib(e, 'alt'); + f.border.value = this.getAttrib(e, 'border'); + f.vspace.value = this.getAttrib(e, 'vspace'); + f.hspace.value = this.getAttrib(e, 'hspace'); + f.width.value = ed.dom.getAttrib(e, 'width'); + f.height.value = ed.dom.getAttrib(e, 'height'); + f.insert.value = ed.getLang('update'); + this.styleVal = ed.dom.getAttrib(e, 'style'); + selectByValue(f, 'image_list', f.src.value); + selectByValue(f, 'align', this.getAttrib(e, 'align')); + this.updateStyle(); + } + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + update : function() { + var f = document.forms[0], nl = f.elements, ed = tinyMCEPopup.editor, args = {}, el; + + tinyMCEPopup.restoreSelection(); + + if (f.src.value === '') { + if (ed.selection.getNode().nodeName == 'IMG') { + ed.dom.remove(ed.selection.getNode()); + ed.execCommand('mceRepaint'); + } + + tinyMCEPopup.close(); + return; + } + + if (!ed.settings.inline_styles) { + args = tinymce.extend(args, { + vspace : nl.vspace.value, + hspace : nl.hspace.value, + border : nl.border.value, + align : getSelectValue(f, 'align') + }); + } else + args.style = this.styleVal; + + tinymce.extend(args, { + src : f.src.value, + alt : f.alt.value, + width : f.width.value, + height : f.height.value + }); + + el = ed.selection.getNode(); + + if (el && el.nodeName == 'IMG') { + ed.dom.setAttribs(el, args); + } else { + ed.execCommand('mceInsertContent', false, '', {skip_undo : 1}); + ed.dom.setAttribs('__mce_tmp', args); + ed.dom.setAttrib('__mce_tmp', 'id', ''); + ed.undoManager.add(); + } + + tinyMCEPopup.close(); + }, + + updateStyle : function() { + var dom = tinyMCEPopup.dom, st, v, f = document.forms[0]; + + if (tinyMCEPopup.editor.settings.inline_styles) { + st = tinyMCEPopup.dom.parseStyle(this.styleVal); + + // Handle align + v = getSelectValue(f, 'align'); + if (v) { + if (v == 'left' || v == 'right') { + st['float'] = v; + delete st['vertical-align']; + } else { + st['vertical-align'] = v; + delete st['float']; + } + } else { + delete st['float']; + delete st['vertical-align']; + } + + // Handle border + v = f.border.value; + if (v || v == '0') { + if (v == '0') + st['border'] = '0'; + else + st['border'] = v + 'px solid black'; + } else + delete st['border']; + + // Handle hspace + v = f.hspace.value; + if (v) { + delete st['margin']; + st['margin-left'] = v + 'px'; + st['margin-right'] = v + 'px'; + } else { + delete st['margin-left']; + delete st['margin-right']; + } + + // Handle vspace + v = f.vspace.value; + if (v) { + delete st['margin']; + st['margin-top'] = v + 'px'; + st['margin-bottom'] = v + 'px'; + } else { + delete st['margin-top']; + delete st['margin-bottom']; + } + + // Merge + st = tinyMCEPopup.dom.parseStyle(dom.serializeStyle(st), 'img'); + this.styleVal = dom.serializeStyle(st, 'img'); + } + }, + + getAttrib : function(e, at) { + var ed = tinyMCEPopup.editor, dom = ed.dom, v, v2; + + if (ed.settings.inline_styles) { + switch (at) { + case 'align': + if (v = dom.getStyle(e, 'float')) + return v; + + if (v = dom.getStyle(e, 'vertical-align')) + return v; + + break; + + case 'hspace': + v = dom.getStyle(e, 'margin-left') + v2 = dom.getStyle(e, 'margin-right'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'vspace': + v = dom.getStyle(e, 'margin-top') + v2 = dom.getStyle(e, 'margin-bottom'); + if (v && v == v2) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + + case 'border': + v = 0; + + tinymce.each(['top', 'right', 'bottom', 'left'], function(sv) { + sv = dom.getStyle(e, 'border-' + sv + '-width'); + + // False or not the same as prev + if (!sv || (sv != v && v !== 0)) { + v = 0; + return false; + } + + if (sv) + v = sv; + }); + + if (v) + return parseInt(v.replace(/[^0-9]/g, '')); + + break; + } + } + + if (v = dom.getAttrib(e, at)) + return v; + + return ''; + }, + + resetImageData : function() { + var f = document.forms[0]; + + f.width.value = f.height.value = ""; + }, + + updateImageData : function() { + var f = document.forms[0], t = ImageDialog; + + if (f.width.value == "") + f.width.value = t.preloadImg.width; + + if (f.height.value == "") + f.height.value = t.preloadImg.height; + }, + + getImageData : function() { + var f = document.forms[0]; + + this.preloadImg = new Image(); + this.preloadImg.onload = this.updateImageData; + this.preloadImg.onerror = this.resetImageData; + this.preloadImg.src = tinyMCEPopup.editor.documentBaseURI.toAbsolute(f.src.value); + } +}; + +ImageDialog.preInit(); +tinyMCEPopup.onInit.add(ImageDialog.init, ImageDialog); diff --git a/sn_templates/tiny_mce/themes/advanced/js/link.js b/sn_templates/tiny_mce/themes/advanced/js/link.js new file mode 100644 index 0000000..73b9f59 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/js/link.js @@ -0,0 +1,156 @@ +tinyMCEPopup.requireLangPack(); + +var LinkDialog = { + preInit : function() { + var url; + + if (url = tinyMCEPopup.getParam("external_link_list_url")) + document.write(''); + }, + + init : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor; + + // Setup browse button + document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser', 'href', 'file', 'theme_advanced_link'); + if (isVisible('hrefbrowser')) + document.getElementById('href').style.width = '180px'; + + this.fillClassList('class_list'); + this.fillFileList('link_list', 'tinyMCELinkList'); + this.fillTargetList('target_list'); + + if (e = ed.dom.getParent(ed.selection.getNode(), 'A')) { + f.href.value = ed.dom.getAttrib(e, 'href'); + f.linktitle.value = ed.dom.getAttrib(e, 'title'); + f.insert.value = ed.getLang('update'); + selectByValue(f, 'link_list', f.href.value); + selectByValue(f, 'target_list', ed.dom.getAttrib(e, 'target')); + selectByValue(f, 'class_list', ed.dom.getAttrib(e, 'class')); + } + }, + + update : function() { + var f = document.forms[0], ed = tinyMCEPopup.editor, e, b; + + tinyMCEPopup.restoreSelection(); + e = ed.dom.getParent(ed.selection.getNode(), 'A'); + + // Remove element if there is no href + if (!f.href.value) { + if (e) { + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + b = ed.selection.getBookmark(); + ed.dom.remove(e, 1); + ed.selection.moveToBookmark(b); + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + return; + } + } + + tinyMCEPopup.execCommand("mceBeginUndoLevel"); + + // Create new anchor elements + if (e == null) { + ed.getDoc().execCommand("unlink", false, null); + tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1}); + + tinymce.each(ed.dom.select("a"), function(n) { + if (ed.dom.getAttrib(n, 'href') == '#mce_temp_url#') { + e = n; + + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + }); + } else { + ed.dom.setAttribs(e, { + href : f.href.value, + title : f.linktitle.value, + target : f.target_list ? getSelectValue(f, "target_list") : null, + 'class' : f.class_list ? getSelectValue(f, "class_list") : null + }); + } + + // Don't move caret if selection was image + if (e.childNodes.length != 1 || e.firstChild.nodeName != 'IMG') { + ed.focus(); + ed.selection.select(e); + ed.selection.collapse(0); + tinyMCEPopup.storeSelection(); + } + + tinyMCEPopup.execCommand("mceEndUndoLevel"); + tinyMCEPopup.close(); + }, + + checkPrefix : function(n) { + if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_email'))) + n.value = 'mailto:' + n.value; + + if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advanced_dlg.link_is_external'))) + n.value = 'http://' + n.value; + }, + + fillFileList : function(id, l) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + l = window[l]; + + if (l && l.length > 0) { + lst.options[lst.options.length] = new Option('', ''); + + tinymce.each(l, function(o) { + lst.options[lst.options.length] = new Option(o[0], o[1]); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillClassList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v, cl; + + if (v = tinyMCEPopup.getParam('theme_advanced_styles')) { + cl = []; + + tinymce.each(v.split(';'), function(v) { + var p = v.split('='); + + cl.push({'title' : p[0], 'class' : p[1]}); + }); + } else + cl = tinyMCEPopup.editor.dom.getClasses(); + + if (cl.length > 0) { + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + + tinymce.each(cl, function(o) { + lst.options[lst.options.length] = new Option(o.title || o['class'], o['class']); + }); + } else + dom.remove(dom.getParent(id, 'tr')); + }, + + fillTargetList : function(id) { + var dom = tinyMCEPopup.dom, lst = dom.get(id), v; + + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('not_set'), ''); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_same'), '_self'); + lst.options[lst.options.length] = new Option(tinyMCEPopup.getLang('advanced_dlg.link_target_blank'), '_blank'); + + if (v = tinyMCEPopup.getParam('theme_advanced_link_targets')) { + tinymce.each(v.split(','), function(v) { + v = v.split('='); + lst.options[lst.options.length] = new Option(v[0], v[1]); + }); + } + } +}; + +LinkDialog.preInit(); +tinyMCEPopup.onInit.add(LinkDialog.init, LinkDialog); diff --git a/sn_templates/tiny_mce/themes/advanced/js/source_editor.js b/sn_templates/tiny_mce/themes/advanced/js/source_editor.js new file mode 100644 index 0000000..81063ec --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/js/source_editor.js @@ -0,0 +1,62 @@ +tinyMCEPopup.requireLangPack(); +tinyMCEPopup.onInit.add(onLoadInit); + +function saveContent() { + tinyMCEPopup.editor.setContent(document.getElementById('htmlSource').value, {source_view : true}); + tinyMCEPopup.close(); +} + +function onLoadInit() { + tinyMCEPopup.resizeToInnerSize(); + + // Remove Gecko spellchecking + if (tinymce.isGecko) + document.body.spellcheck = tinyMCEPopup.editor.getParam("gecko_spellcheck"); + + document.getElementById('htmlSource').value = tinyMCEPopup.editor.getContent({source_view : true}); + + if (tinyMCEPopup.editor.getParam("theme_advanced_source_editor_wrap", true)) { + setWrap('soft'); + document.getElementById('wraped').checked = true; + } + + resizeInputs(); +} + +function setWrap(val) { + var v, n, s = document.getElementById('htmlSource'); + + s.wrap = val; + + if (!tinymce.isIE) { + v = s.value; + n = s.cloneNode(false); + n.setAttribute("wrap", val); + s.parentNode.replaceChild(n, s); + n.value = v; + } +} + +function toggleWordWrap(elm) { + if (elm.checked) + setWrap('soft'); + else + setWrap('off'); +} + +var wHeight=0, wWidth=0, owHeight=0, owWidth=0; + +function resizeInputs() { + var el = document.getElementById('htmlSource'); + + if (!tinymce.isIE) { + wHeight = self.innerHeight - 65; + wWidth = self.innerWidth - 16; + } else { + wHeight = document.body.clientHeight - 70; + wWidth = document.body.clientWidth - 16; + } + + el.style.height = Math.abs(wHeight) + 'px'; + el.style.width = Math.abs(wWidth) + 'px'; +} diff --git a/sn_templates/tiny_mce/themes/advanced/langs/de.js b/sn_templates/tiny_mce/themes/advanced/langs/de.js new file mode 100644 index 0000000..a38c45e --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/langs/de.js @@ -0,0 +1,63 @@ +tinyMCE.addI18n('de.advanced',{ +style_select:"Format", +font_size:"Schriftgr\u00F6\u00DFe", +fontdefault:"Schriftart", +block:"Vorlage", +paragraph:"Absatz", +div:"Zusammenh\u00E4ngender Bereich", +address:"Adresse", +pre:"Rohdaten", +h1:"\u00DCberschrift 1", +h2:"\u00DCberschrift 2", +h3:"\u00DCberschrift 3", +h4:"\u00DCberschrift 4", +h5:"\u00DCberschrift 5", +h6:"\u00DCberschrift 6", +blockquote:"Zitatblock", +code:"Code", +samp:"Beispiel", +dt:"Definitionsbegriff", +dd:"Definitionsbeschreibung", +bold_desc:"Fett (Strg+B)", +italic_desc:"Kursiv (Strg+I)", +underline_desc:"Unterstrichen (Strg+U)", +striketrough_desc:"Durchgestrichen", +justifyleft_desc:"Linksb\u00FCndig", +justifycenter_desc:"Zentriert", +justifyright_desc:"Rechtsb\u00FCndig", +justifyfull_desc:"Blocksatz", +bullist_desc:"Unsortierte Liste", +numlist_desc:"Sortierte Liste", +outdent_desc:"Ausr\u00FCcken", +indent_desc:"Einr\u00FCcken", +undo_desc:"R\u00FCckg\u00E4ngig (Strg+Z)", +redo_desc:"Wiederholen (Strg+Y)", +link_desc:"Link einf\u00FCgen/ver\u00E4ndern", +unlink_desc:"Link entfernen", +image_desc:"Bild einf\u00FCgen/ver\u00E4ndern", +cleanup_desc:"Quellcode aufr\u00E4umen", +code_desc:"HTML-Quellcode bearbeiten", +sub_desc:"Tiefgestellt", +sup_desc:"Hochgestellt", +hr_desc:"Trennlinie einf\u00FCgen", +removeformat_desc:"Formatierungen zur\u00FCcksetzen", +custom1_desc:"Benutzerdefinierte Beschreibung", +forecolor_desc:"Textfarbe", +backcolor_desc:"Hintergrundfarbe", +charmap_desc:"Sonderzeichen einf\u00FCgen", +visualaid_desc:"Hilfslinien und unsichtbare Elemente ein-/ausblenden", +anchor_desc:"Anker einf\u00FCgen/ver\u00E4ndern", +cut_desc:"Ausschneiden", +copy_desc:"Kopieren", +paste_desc:"Einf\u00FCgen", +image_props_desc:"Bildeigenschaften", +newdocument_desc:"Neues Dokument", +help_desc:"Hilfe", +blockquote_desc:"Zitatblock", +clipboard_msg:"Kopieren, Ausschneiden und Einf\u00FCgen sind im Mozilla Firefox nicht m\u00F6glich.\r\nWollen Sie mehr \u00FCber dieses Problem erfahren?", +path:"Pfad", +newdocument:"Wollen Sie wirklich den ganzen Inhalt l\u00F6schen?", +toolbar_focus:"Zur Werkzeugleiste springen: Alt+Q; Zum Editor springen: Alt-Z; Zum Elementpfad springen: Alt-X", +more_colors:"Weitere Farben", +anchor_delta_width:"13" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/advanced/langs/de_dlg.js b/sn_templates/tiny_mce/themes/advanced/langs/de_dlg.js new file mode 100644 index 0000000..18a429b --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/langs/de_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('de.advanced_dlg',{ +about_title:"\u00DCber TinyMCE", +about_general:"\u00DCber", +about_help:"Hilfe", +about_license:"Lizenzbedingungen", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Urheber", +about_version:"Version", +about_loaded:"Geladene Plugins", +anchor_title:"Anker einf\u00FCgen/ver\u00E4ndern", +anchor_name:"Name des Ankers", +code_title:"HTML-Quellcode bearbeiten", +code_wordwrap:"Automatischer Zeilenumbruch", +colorpicker_title:"Farbe", +colorpicker_picker_tab:"Farbwahl", +colorpicker_picker_title:"Farbwahl", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Farbpalette", +colorpicker_named_tab:"Benannte Farben", +colorpicker_named_title:"Benannte Farben", +colorpicker_color:"Farbe:", +colorpicker_name:"Name:", +charmap_title:"Sonderzeichen", +image_title:"Bild einf\u00FCgen/bearbeiten", +image_src:"Adresse", +image_alt:"Alternativtext", +image_list:"Bilderliste", +image_border:"Rahmen", +image_dimensions:"Abmessungen", +image_vspace:"Vertikaler Abstand", +image_hspace:"Horizontaler Abstand", +image_align:"Ausrichtung", +image_align_baseline:"Zeile", +image_align_top:"Oben", +image_align_middle:"Mittig", +image_align_bottom:"Unten", +image_align_texttop:"Oben im Text", +image_align_textbottom:"Unten im Text", +image_align_left:"Links", +image_align_right:"Rechts", +link_title:"Link einf\u00FCgen/bearbeiten", +link_url:"Adresse", +link_target:"Fenster", +link_target_same:"Im selben Fenster \u00F6ffnen", +link_target_blank:"Neues Fenster \u00F6ffnen", +link_titlefield:"Titel", +link_is_email:"Diese Adresse scheint eine E-Mail-Adresse zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"mailto:\" voranstellen?", +link_is_external:"Diese Adresse scheint ein externer Link zu sein. M\u00F6chten Sie das dazu ben\u00F6tigte \"http://\" voranstellen?", +link_list:"Linkliste" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/advanced/langs/en.js b/sn_templates/tiny_mce/themes/advanced/langs/en.js new file mode 100644 index 0000000..52989e3 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/langs/en.js @@ -0,0 +1,62 @@ +tinyMCE.addI18n('en.advanced',{ +style_select:"Styles", +font_size:"Font size", +fontdefault:"Font family", +block:"Format", +paragraph:"Paragraph", +div:"Div", +address:"Address", +pre:"Preformatted", +h1:"Heading 1", +h2:"Heading 2", +h3:"Heading 3", +h4:"Heading 4", +h5:"Heading 5", +h6:"Heading 6", +blockquote:"Blockquote", +code:"Code", +samp:"Code sample", +dt:"Definition term ", +dd:"Definition description", +bold_desc:"Bold (Ctrl+B)", +italic_desc:"Italic (Ctrl+I)", +underline_desc:"Underline (Ctrl+U)", +striketrough_desc:"Strikethrough", +justifyleft_desc:"Align left", +justifycenter_desc:"Align center", +justifyright_desc:"Align right", +justifyfull_desc:"Align full", +bullist_desc:"Unordered list", +numlist_desc:"Ordered list", +outdent_desc:"Outdent", +indent_desc:"Indent", +undo_desc:"Undo (Ctrl+Z)", +redo_desc:"Redo (Ctrl+Y)", +link_desc:"Insert/edit link", +unlink_desc:"Unlink", +image_desc:"Insert/edit image", +cleanup_desc:"Cleanup messy code", +code_desc:"Edit HTML Source", +sub_desc:"Subscript", +sup_desc:"Superscript", +hr_desc:"Insert horizontal ruler", +removeformat_desc:"Remove formatting", +custom1_desc:"Your custom description here", +forecolor_desc:"Select text color", +backcolor_desc:"Select background color", +charmap_desc:"Insert custom character", +visualaid_desc:"Toggle guidelines/invisible elements", +anchor_desc:"Insert/edit anchor", +cut_desc:"Cut", +copy_desc:"Copy", +paste_desc:"Paste", +image_props_desc:"Image properties", +newdocument_desc:"New document", +help_desc:"Help", +blockquote_desc:"Blockquote", +clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Firefox.\r\nDo you want more information about this issue?", +path:"Path", +newdocument:"Are you sure you want clear all contents?", +toolbar_focus:"Jump to tool buttons - Alt+Q, Jump to editor - Alt-Z, Jump to element path - Alt-X", +more_colors:"More colors" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/advanced/langs/en_dlg.js b/sn_templates/tiny_mce/themes/advanced/langs/en_dlg.js new file mode 100644 index 0000000..80e4941 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/langs/en_dlg.js @@ -0,0 +1,51 @@ +tinyMCE.addI18n('en.advanced_dlg',{ +about_title:"About TinyMCE", +about_general:"About", +about_help:"Help", +about_license:"License", +about_plugins:"Plugins", +about_plugin:"Plugin", +about_author:"Author", +about_version:"Version", +about_loaded:"Loaded plugins", +anchor_title:"Insert/edit anchor", +anchor_name:"Anchor name", +code_title:"HTML Source Editor", +code_wordwrap:"Word wrap", +colorpicker_title:"Select a color", +colorpicker_picker_tab:"Picker", +colorpicker_picker_title:"Color picker", +colorpicker_palette_tab:"Palette", +colorpicker_palette_title:"Palette colors", +colorpicker_named_tab:"Named", +colorpicker_named_title:"Named colors", +colorpicker_color:"Color:", +colorpicker_name:"Name:", +charmap_title:"Select custom character", +image_title:"Insert/edit image", +image_src:"Image URL", +image_alt:"Image description", +image_list:"Image list", +image_border:"Border", +image_dimensions:"Dimensions", +image_vspace:"Vertical space", +image_hspace:"Horizontal space", +image_align:"Alignment", +image_align_baseline:"Baseline", +image_align_top:"Top", +image_align_middle:"Middle", +image_align_bottom:"Bottom", +image_align_texttop:"Text top", +image_align_textbottom:"Text bottom", +image_align_left:"Left", +image_align_right:"Right", +link_title:"Insert/edit link", +link_url:"Link URL", +link_target:"Target", +link_target_same:"Open link in the same window", +link_target_blank:"Open link in a new window", +link_titlefield:"Title", +link_is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", +link_is_external:"The URL you entered seems to external link, do you want to add the required http:// prefix?", +link_list:"Link list" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/advanced/link.htm b/sn_templates/tiny_mce/themes/advanced/link.htm new file mode 100644 index 0000000..22627cc --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/link.htm @@ -0,0 +1,58 @@ + + + + {#advanced_dlg.link_title} + + + + + + + +
                                                + + +
                                                +
                                                + + + + + + + + + + + + + + + + + + + + + + +
                                                + + + + +
                                                 
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/content.css b/sn_templates/tiny_mce/themes/advanced/skins/default/content.css new file mode 100644 index 0000000..987c596 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/default/content.css @@ -0,0 +1,35 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(img/items.gif) no-repeat 0 0;} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/dialog.css b/sn_templates/tiny_mce/themes/advanced/skins/default/dialog.css new file mode 100644 index 0000000..1f5598c --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/default/dialog.css @@ -0,0 +1,117 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(img/buttons.png) 0 -52px} +#cancel {background:url(img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} +#colorpicker #picker_panel fieldset {margin:auto;width:325px;} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/img/buttons.png b/sn_templates/tiny_mce/themes/advanced/skins/default/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/default/img/buttons.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/img/items.gif b/sn_templates/tiny_mce/themes/advanced/skins/default/img/items.gif new file mode 100644 index 0000000..2eafd79 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/default/img/items.gif differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif b/sn_templates/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif new file mode 100644 index 0000000..85e31df Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/img/menu_check.gif b/sn_templates/tiny_mce/themes/advanced/skins/default/img/menu_check.gif new file mode 100644 index 0000000..adfdddc Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/default/img/menu_check.gif differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/img/progress.gif b/sn_templates/tiny_mce/themes/advanced/skins/default/img/progress.gif new file mode 100644 index 0000000..5bb90fd Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/default/img/progress.gif differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/img/tabs.gif b/sn_templates/tiny_mce/themes/advanced/skins/default/img/tabs.gif new file mode 100644 index 0000000..ce4be63 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/default/img/tabs.gif differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/default/ui.css b/sn_templates/tiny_mce/themes/advanced/skins/default/ui.css new file mode 100644 index 0000000..7f6cf5f --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/default/ui.css @@ -0,0 +1,213 @@ +/* Reset */ +.defaultSkin table, .defaultSkin tbody, .defaultSkin a, .defaultSkin img, .defaultSkin tr, .defaultSkin div, .defaultSkin td, .defaultSkin iframe, .defaultSkin span, .defaultSkin *, .defaultSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.defaultSkin a:hover, .defaultSkin a:link, .defaultSkin a:visited, .defaultSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.defaultSkin table td {vertical-align:middle} + +/* Containers */ +.defaultSkin table {direction:ltr; background:#F0F0EE} +.defaultSkin iframe {display:block; background:#FFF} +.defaultSkin .mceToolbar {height:26px} +.defaultSkin .mceLeft {text-align:left} +.defaultSkin .mceRight {text-align:right} + +/* External */ +.defaultSkin .mceExternalToolbar {position:absolute; border:1px solid #CCC; border-bottom:0; display:none;} +.defaultSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.defaultSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.defaultSkin table.mceLayout {border:0; border-left:1px solid #CCC; border-right:1px solid #CCC} +.defaultSkin table.mceLayout tr.mceFirst td {border-top:1px solid #CCC} +.defaultSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #CCC} +.defaultSkin table.mceToolbar, .defaultSkin tr.mceFirst .mceToolbar tr td, .defaultSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0;} +.defaultSkin td.mceToolbar {padding-top:1px; vertical-align:top} +.defaultSkin .mceIframeContainer {border-top:1px solid #CCC; border-bottom:1px solid #CCC} +.defaultSkin .mceStatusbar {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; display:block; height:20px} +.defaultSkin .mceStatusbar div {float:left; margin:2px} +.defaultSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.defaultSkin .mceStatusbar a:hover {text-decoration:underline} +.defaultSkin table.mceToolbar {margin-left:3px} +.defaultSkin span.mceIcon, .defaultSkin img.mceIcon {display:block; width:20px; height:20px} +.defaultSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.defaultSkin td.mceCenter {text-align:center;} +.defaultSkin td.mceCenter table {margin:0 auto; text-align:left;} +.defaultSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.defaultSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px; margin-right:1px} +.defaultSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0} +.defaultSkin a.mceButtonActive, .defaultSkin a.mceButtonSelected {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.defaultSkin .mceButtonLabeled {width:auto} +.defaultSkin .mceButtonLabeled span.mceIcon {float:left} +.defaultSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.defaultSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.defaultSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:2px 2px 0 4px} + +/* ListBox */ +.defaultSkin .mceListBox, .defaultSkin .mceListBox a {display:block} +.defaultSkin .mceListBox .mceText {padding-left:4px; width:70px; text-align:left; border:1px solid #CCC; border-right:0; background:#FFF; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.defaultSkin .mceListBox .mceOpen {width:9px; height:20px; background:url(../../img/icons.gif) -741px 0; margin-right:2px; border:1px solid #CCC;} +.defaultSkin table.mceListBoxEnabled:hover .mceText, .defaultSkin .mceListBoxHover .mceText, .defaultSkin .mceListBoxSelected .mceText {border:1px solid #A2ABC0; border-right:0; background:#FFF} +.defaultSkin table.mceListBoxEnabled:hover .mceOpen, .defaultSkin .mceListBoxHover .mceOpen, .defaultSkin .mceListBoxSelected .mceOpen {background-color:#FFF; border:1px solid #A2ABC0} +.defaultSkin .mceListBoxDisabled a.mceText {color:gray; background-color:transparent;} +.defaultSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.defaultSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +.defaultSkin .mceOldBoxModel .mceListBox .mceOpen {width:11px; height:22px;} +.defaultSkin select.mceNativeListBox {font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:7pt; background:#F0F0EE; border:1px solid gray; margin-right:2px;} + +/* SplitButton */ +.defaultSkin .mceSplitButton {width:32px; height:20px; direction:ltr} +.defaultSkin .mceSplitButton a, .defaultSkin .mceSplitButton span {height:20px; display:block} +.defaultSkin .mceSplitButton a.mceAction {width:20px; border:1px solid #F0F0EE; border-right:0;} +.defaultSkin .mceSplitButton span.mceAction {width:20px; background-image:url(../../img/icons.gif);} +.defaultSkin .mceSplitButton a.mceOpen {width:9px; background:url(../../img/icons.gif) -741px 0; border:1px solid #F0F0EE;} +.defaultSkin .mceSplitButton span.mceOpen {display:none} +.defaultSkin table.mceSplitButtonEnabled:hover a.mceAction, .defaultSkin .mceSplitButtonHover a.mceAction, .defaultSkin .mceSplitButtonSelected a.mceAction {border:1px solid #0A246A; border-right:0; background-color:#B2BBD0} +.defaultSkin table.mceSplitButtonEnabled:hover a.mceOpen, .defaultSkin .mceSplitButtonHover a.mceOpen, .defaultSkin .mceSplitButtonSelected a.mceOpen {background-color:#B2BBD0; border:1px solid #0A246A;} +.defaultSkin .mceSplitButtonDisabled .mceAction, .defaultSkin .mceSplitButtonDisabled a.mceOpen {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.defaultSkin .mceSplitButtonActive a.mceAction {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSkin .mceSplitButtonActive a.mceOpen {border-left:0;} + +/* ColorSplitButton */ +.defaultSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.defaultSkin .mceColorSplitMenu td {padding:2px} +.defaultSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.defaultSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.defaultSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.defaultSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.defaultSkin a.mceMoreColors:hover {border:1px solid #0A246A} +.defaultSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a} +.defaultSkin .mce_forecolor span.mceAction, .defaultSkin .mce_backcolor span.mceAction {overflow:hidden; height:16px} + +/* Menu */ +.defaultSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D4D0C8} +.defaultSkin .mceNoIcons span.mceIcon {width:0;} +.defaultSkin .mceNoIcons a .mceText {padding-left:10px} +.defaultSkin .mceMenu table {background:#FFF} +.defaultSkin .mceMenu a, .defaultSkin .mceMenu span, .defaultSkin .mceMenu {display:block} +.defaultSkin .mceMenu td {height:20px} +.defaultSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +.defaultSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.defaultSkin .mceMenu span.mceText, .defaultSkin .mceMenu .mcePreview {font-size:11px} +.defaultSkin .mceMenu pre.mceText {font-family:Monospace} +.defaultSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.defaultSkin .mceMenu .mceMenuItemEnabled a:hover, .defaultSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.defaultSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +.defaultSkin .mceMenuItemTitle a {border:0; background:#EEE; border-bottom:1px solid #DDD} +.defaultSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.defaultSkin .mceMenuItemDisabled .mceText {color:#888} +.defaultSkin .mceMenuItemSelected .mceIcon {background:url(img/menu_check.gif)} +.defaultSkin .mceNoIcons .mceMenuItemSelected a {background:url(img/menu_arrow.gif) no-repeat -6px center} +.defaultSkin .mceMenu span.mceMenuLine {display:none} +.defaultSkin .mceMenuItemSub a {background:url(img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.defaultSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=50)'; filter:alpha(opacity=50); background:#FFF} +.defaultSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.defaultSkin .mce_formatPreview a {font-size:10px} +.defaultSkin .mce_p span.mceText {} +.defaultSkin .mce_address span.mceText {font-style:italic} +.defaultSkin .mce_pre span.mceText {font-family:monospace} +.defaultSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.defaultSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.defaultSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.defaultSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.defaultSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.defaultSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.defaultSkin span.mce_bold {background-position:0 0} +.defaultSkin span.mce_italic {background-position:-60px 0} +.defaultSkin span.mce_underline {background-position:-140px 0} +.defaultSkin span.mce_strikethrough {background-position:-120px 0} +.defaultSkin span.mce_undo {background-position:-160px 0} +.defaultSkin span.mce_redo {background-position:-100px 0} +.defaultSkin span.mce_cleanup {background-position:-40px 0} +.defaultSkin span.mce_bullist {background-position:-20px 0} +.defaultSkin span.mce_numlist {background-position:-80px 0} +.defaultSkin span.mce_justifyleft {background-position:-460px 0} +.defaultSkin span.mce_justifyright {background-position:-480px 0} +.defaultSkin span.mce_justifycenter {background-position:-420px 0} +.defaultSkin span.mce_justifyfull {background-position:-440px 0} +.defaultSkin span.mce_anchor {background-position:-200px 0} +.defaultSkin span.mce_indent {background-position:-400px 0} +.defaultSkin span.mce_outdent {background-position:-540px 0} +.defaultSkin span.mce_link {background-position:-500px 0} +.defaultSkin span.mce_unlink {background-position:-640px 0} +.defaultSkin span.mce_sub {background-position:-600px 0} +.defaultSkin span.mce_sup {background-position:-620px 0} +.defaultSkin span.mce_removeformat {background-position:-580px 0} +.defaultSkin span.mce_newdocument {background-position:-520px 0} +.defaultSkin span.mce_image {background-position:-380px 0} +.defaultSkin span.mce_help {background-position:-340px 0} +.defaultSkin span.mce_code {background-position:-260px 0} +.defaultSkin span.mce_hr {background-position:-360px 0} +.defaultSkin span.mce_visualaid {background-position:-660px 0} +.defaultSkin span.mce_charmap {background-position:-240px 0} +.defaultSkin span.mce_paste {background-position:-560px 0} +.defaultSkin span.mce_copy {background-position:-700px 0} +.defaultSkin span.mce_cut {background-position:-680px 0} +.defaultSkin span.mce_blockquote {background-position:-220px 0} +.defaultSkin .mce_forecolor span.mceAction {background-position:-720px 0} +.defaultSkin .mce_backcolor span.mceAction {background-position:-760px 0} +.defaultSkin span.mce_forecolorpicker {background-position:-720px 0} +.defaultSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.defaultSkin span.mce_advhr {background-position:-0px -20px} +.defaultSkin span.mce_ltr {background-position:-20px -20px} +.defaultSkin span.mce_rtl {background-position:-40px -20px} +.defaultSkin span.mce_emotions {background-position:-60px -20px} +.defaultSkin span.mce_fullpage {background-position:-80px -20px} +.defaultSkin span.mce_fullscreen {background-position:-100px -20px} +.defaultSkin span.mce_iespell {background-position:-120px -20px} +.defaultSkin span.mce_insertdate {background-position:-140px -20px} +.defaultSkin span.mce_inserttime {background-position:-160px -20px} +.defaultSkin span.mce_absolute {background-position:-180px -20px} +.defaultSkin span.mce_backward {background-position:-200px -20px} +.defaultSkin span.mce_forward {background-position:-220px -20px} +.defaultSkin span.mce_insert_layer {background-position:-240px -20px} +.defaultSkin span.mce_insertlayer {background-position:-260px -20px} +.defaultSkin span.mce_movebackward {background-position:-280px -20px} +.defaultSkin span.mce_moveforward {background-position:-300px -20px} +.defaultSkin span.mce_media {background-position:-320px -20px} +.defaultSkin span.mce_nonbreaking {background-position:-340px -20px} +.defaultSkin span.mce_pastetext {background-position:-360px -20px} +.defaultSkin span.mce_pasteword {background-position:-380px -20px} +.defaultSkin span.mce_selectall {background-position:-400px -20px} +.defaultSkin span.mce_preview {background-position:-420px -20px} +.defaultSkin span.mce_print {background-position:-440px -20px} +.defaultSkin span.mce_cancel {background-position:-460px -20px} +.defaultSkin span.mce_save {background-position:-480px -20px} +.defaultSkin span.mce_replace {background-position:-500px -20px} +.defaultSkin span.mce_search {background-position:-520px -20px} +.defaultSkin span.mce_styleprops {background-position:-560px -20px} +.defaultSkin span.mce_table {background-position:-580px -20px} +.defaultSkin span.mce_cell_props {background-position:-600px -20px} +.defaultSkin span.mce_delete_table {background-position:-620px -20px} +.defaultSkin span.mce_delete_col {background-position:-640px -20px} +.defaultSkin span.mce_delete_row {background-position:-660px -20px} +.defaultSkin span.mce_col_after {background-position:-680px -20px} +.defaultSkin span.mce_col_before {background-position:-700px -20px} +.defaultSkin span.mce_row_after {background-position:-720px -20px} +.defaultSkin span.mce_row_before {background-position:-740px -20px} +.defaultSkin span.mce_merge_cells {background-position:-760px -20px} +.defaultSkin span.mce_table_props {background-position:-980px -20px} +.defaultSkin span.mce_row_props {background-position:-780px -20px} +.defaultSkin span.mce_split_cells {background-position:-800px -20px} +.defaultSkin span.mce_template {background-position:-820px -20px} +.defaultSkin span.mce_visualchars {background-position:-840px -20px} +.defaultSkin span.mce_abbr {background-position:-860px -20px} +.defaultSkin span.mce_acronym {background-position:-880px -20px} +.defaultSkin span.mce_attribs {background-position:-900px -20px} +.defaultSkin span.mce_cite {background-position:-920px -20px} +.defaultSkin span.mce_del {background-position:-940px -20px} +.defaultSkin span.mce_ins {background-position:-960px -20px} +.defaultSkin span.mce_pagebreak {background-position:0 -40px} +.defaultSkin span.mce_restoredraft {background-position:-20px -40px} +.defaultSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/content.css b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/content.css new file mode 100644 index 0000000..3cf289e --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/content.css @@ -0,0 +1,35 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {display:inline-block; width:11px !important; height:11px !important; background:url(../default/img/items.gif) no-repeat 0 0;} +td.mceSelected, th.mceSelected {background-color:#3399ff !important} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr {border-bottom:1px dashed #CCC; cursor:help} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} + +img:-moz-broken {-moz-force-broken-image-icon:1; width:24px; height:24px} +font[face=mceinline] {font-family:inherit !important} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/dialog.css b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/dialog.css new file mode 100644 index 0000000..3b0760a --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/dialog.css @@ -0,0 +1,116 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(../default/img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +float:left; +} + +#insert {background:url(../default/img/buttons.png) 0 -52px} +#cancel {background:url(../default/img/buttons.png) 0 0; float:right} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png new file mode 100644 index 0000000..12cfb41 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui.css b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui.css new file mode 100644 index 0000000..52f5760 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.o2k7Skin table, .o2k7Skin tbody, .o2k7Skin a, .o2k7Skin img, .o2k7Skin tr, .o2k7Skin div, .o2k7Skin td, .o2k7Skin iframe, .o2k7Skin span, .o2k7Skin *, .o2k7Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.o2k7Skin a:hover, .o2k7Skin a:link, .o2k7Skin a:visited, .o2k7Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.o2k7Skin table td {vertical-align:middle} + +/* Containers */ +.o2k7Skin table {background:#E5EFFD} +.o2k7Skin iframe {display:block; background:#FFF} +.o2k7Skin .mceToolbar {height:26px} + +/* External */ +.o2k7Skin .mceExternalToolbar {position:absolute; border:1px solid #ABC6DD; border-bottom:0; display:none} +.o2k7Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.o2k7Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.o2k7Skin table.mceLayout {border:0; border-left:1px solid #ABC6DD; border-right:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceFirst td {border-top:1px solid #ABC6DD} +.o2k7Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #ABC6DD} +.o2k7Skin table.mceToolbar, .o2k7Skin tr.mceFirst .mceToolbar tr td, .o2k7Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.o2k7Skin .mceIframeContainer {border-top:1px solid #ABC6DD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.o2k7Skin .mceStatusbar div {float:left; padding:2px} +.o2k7Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.o2k7Skin .mceStatusbar a:hover {text-decoration:underline} +.o2k7Skin table.mceToolbar {margin-left:3px} +.o2k7Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.o2k7Skin .mceToolbar td.mceFirst span {margin:0} +.o2k7Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7Skin .mceToolbar .mceToolbarEndListBox span, .o2k7Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.o2k7Skin span.mceIcon, .o2k7Skin img.mceIcon {display:block; width:20px; height:20px} +.o2k7Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.o2k7Skin td.mceCenter {text-align:center;} +.o2k7Skin td.mceCenter table {margin:0 auto; text-align:left;} +.o2k7Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.o2k7Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7Skin a.mceButton span, .o2k7Skin a.mceButton img {margin-left:1px} +.o2k7Skin .mceOldBoxModel a.mceButton span, .o2k7Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.o2k7Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7Skin a.mceButtonActive, .o2k7Skin a.mceButtonSelected {background-position:0 -44px} +.o2k7Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceButtonLabeled {width:auto} +.o2k7Skin .mceButtonLabeled span.mceIcon {float:left} +.o2k7Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.o2k7Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.o2k7Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.o2k7Skin .mceListBox {margin-left:3px} +.o2k7Skin .mceListBox, .o2k7Skin .mceListBox a {display:block} +.o2k7Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.o2k7Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.o2k7Skin table.mceListBoxEnabled:hover .mceText, .o2k7Skin .mceListBoxHover .mceText, .o2k7Skin .mceListBoxSelected .mceText {background:#FFF} +.o2k7Skin table.mceListBoxEnabled:hover .mceOpen, .o2k7Skin .mceListBoxHover .mceOpen, .o2k7Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.o2k7Skin .mceListBoxDisabled .mceText {color:gray} +.o2k7Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.o2k7Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.o2k7Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.o2k7Skin .mceSplitButton, .o2k7Skin .mceSplitButton a, .o2k7Skin .mceSplitButton span {display:block; height:22px} +.o2k7Skin .mceSplitButton {background:url(img/button_bg.png)} +.o2k7Skin .mceSplitButton a.mceAction {width:22px} +.o2k7Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.o2k7Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.o2k7Skin .mceSplitButton span.mceOpen {display:none} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceAction, .o2k7Skin .mceSplitButtonHover a.mceAction, .o2k7Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.o2k7Skin table.mceSplitButtonEnabled:hover a.mceOpen, .o2k7Skin .mceSplitButtonHover a.mceOpen, .o2k7Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.o2k7Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.o2k7Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.o2k7Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.o2k7Skin .mceColorSplitMenu td {padding:2px} +.o2k7Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.o2k7Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.o2k7Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.o2k7Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.o2k7Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.o2k7Skin .mce_forecolor span.mceAction, .o2k7Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.o2k7Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #ABC6DD} +.o2k7Skin .mceNoIcons span.mceIcon {width:0;} +.o2k7Skin .mceNoIcons a .mceText {padding-left:10px} +.o2k7Skin .mceMenu table {background:#FFF} +.o2k7Skin .mceMenu a, .o2k7Skin .mceMenu span, .o2k7Skin .mceMenu {display:block} +.o2k7Skin .mceMenu td {height:20px} +.o2k7Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.o2k7Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.o2k7Skin .mceMenu span.mceText, .o2k7Skin .mceMenu .mcePreview {font-size:11px} +.o2k7Skin .mceMenu pre.mceText {font-family:Monospace} +.o2k7Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.o2k7Skin .mceMenu .mceMenuItemEnabled a:hover, .o2k7Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.o2k7Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.o2k7Skin .mceMenuItemTitle a {border:0; background:#E5EFFD; border-bottom:1px solid #ABC6DD} +.o2k7Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.o2k7Skin .mceMenuItemDisabled .mceText {color:#888} +.o2k7Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.o2k7Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.o2k7Skin .mceMenu span.mceMenuLine {display:none} +.o2k7Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.o2k7Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.o2k7Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.o2k7Skin .mce_formatPreview a {font-size:10px} +.o2k7Skin .mce_p span.mceText {} +.o2k7Skin .mce_address span.mceText {font-style:italic} +.o2k7Skin .mce_pre span.mceText {font-family:monospace} +.o2k7Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.o2k7Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.o2k7Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.o2k7Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.o2k7Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.o2k7Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.o2k7Skin span.mce_bold {background-position:0 0} +.o2k7Skin span.mce_italic {background-position:-60px 0} +.o2k7Skin span.mce_underline {background-position:-140px 0} +.o2k7Skin span.mce_strikethrough {background-position:-120px 0} +.o2k7Skin span.mce_undo {background-position:-160px 0} +.o2k7Skin span.mce_redo {background-position:-100px 0} +.o2k7Skin span.mce_cleanup {background-position:-40px 0} +.o2k7Skin span.mce_bullist {background-position:-20px 0} +.o2k7Skin span.mce_numlist {background-position:-80px 0} +.o2k7Skin span.mce_justifyleft {background-position:-460px 0} +.o2k7Skin span.mce_justifyright {background-position:-480px 0} +.o2k7Skin span.mce_justifycenter {background-position:-420px 0} +.o2k7Skin span.mce_justifyfull {background-position:-440px 0} +.o2k7Skin span.mce_anchor {background-position:-200px 0} +.o2k7Skin span.mce_indent {background-position:-400px 0} +.o2k7Skin span.mce_outdent {background-position:-540px 0} +.o2k7Skin span.mce_link {background-position:-500px 0} +.o2k7Skin span.mce_unlink {background-position:-640px 0} +.o2k7Skin span.mce_sub {background-position:-600px 0} +.o2k7Skin span.mce_sup {background-position:-620px 0} +.o2k7Skin span.mce_removeformat {background-position:-580px 0} +.o2k7Skin span.mce_newdocument {background-position:-520px 0} +.o2k7Skin span.mce_image {background-position:-380px 0} +.o2k7Skin span.mce_help {background-position:-340px 0} +.o2k7Skin span.mce_code {background-position:-260px 0} +.o2k7Skin span.mce_hr {background-position:-360px 0} +.o2k7Skin span.mce_visualaid {background-position:-660px 0} +.o2k7Skin span.mce_charmap {background-position:-240px 0} +.o2k7Skin span.mce_paste {background-position:-560px 0} +.o2k7Skin span.mce_copy {background-position:-700px 0} +.o2k7Skin span.mce_cut {background-position:-680px 0} +.o2k7Skin span.mce_blockquote {background-position:-220px 0} +.o2k7Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.o2k7Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.o2k7Skin span.mce_forecolorpicker {background-position:-720px 0} +.o2k7Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.o2k7Skin span.mce_advhr {background-position:-0px -20px} +.o2k7Skin span.mce_ltr {background-position:-20px -20px} +.o2k7Skin span.mce_rtl {background-position:-40px -20px} +.o2k7Skin span.mce_emotions {background-position:-60px -20px} +.o2k7Skin span.mce_fullpage {background-position:-80px -20px} +.o2k7Skin span.mce_fullscreen {background-position:-100px -20px} +.o2k7Skin span.mce_iespell {background-position:-120px -20px} +.o2k7Skin span.mce_insertdate {background-position:-140px -20px} +.o2k7Skin span.mce_inserttime {background-position:-160px -20px} +.o2k7Skin span.mce_absolute {background-position:-180px -20px} +.o2k7Skin span.mce_backward {background-position:-200px -20px} +.o2k7Skin span.mce_forward {background-position:-220px -20px} +.o2k7Skin span.mce_insert_layer {background-position:-240px -20px} +.o2k7Skin span.mce_insertlayer {background-position:-260px -20px} +.o2k7Skin span.mce_movebackward {background-position:-280px -20px} +.o2k7Skin span.mce_moveforward {background-position:-300px -20px} +.o2k7Skin span.mce_media {background-position:-320px -20px} +.o2k7Skin span.mce_nonbreaking {background-position:-340px -20px} +.o2k7Skin span.mce_pastetext {background-position:-360px -20px} +.o2k7Skin span.mce_pasteword {background-position:-380px -20px} +.o2k7Skin span.mce_selectall {background-position:-400px -20px} +.o2k7Skin span.mce_preview {background-position:-420px -20px} +.o2k7Skin span.mce_print {background-position:-440px -20px} +.o2k7Skin span.mce_cancel {background-position:-460px -20px} +.o2k7Skin span.mce_save {background-position:-480px -20px} +.o2k7Skin span.mce_replace {background-position:-500px -20px} +.o2k7Skin span.mce_search {background-position:-520px -20px} +.o2k7Skin span.mce_styleprops {background-position:-560px -20px} +.o2k7Skin span.mce_table {background-position:-580px -20px} +.o2k7Skin span.mce_cell_props {background-position:-600px -20px} +.o2k7Skin span.mce_delete_table {background-position:-620px -20px} +.o2k7Skin span.mce_delete_col {background-position:-640px -20px} +.o2k7Skin span.mce_delete_row {background-position:-660px -20px} +.o2k7Skin span.mce_col_after {background-position:-680px -20px} +.o2k7Skin span.mce_col_before {background-position:-700px -20px} +.o2k7Skin span.mce_row_after {background-position:-720px -20px} +.o2k7Skin span.mce_row_before {background-position:-740px -20px} +.o2k7Skin span.mce_merge_cells {background-position:-760px -20px} +.o2k7Skin span.mce_table_props {background-position:-980px -20px} +.o2k7Skin span.mce_row_props {background-position:-780px -20px} +.o2k7Skin span.mce_split_cells {background-position:-800px -20px} +.o2k7Skin span.mce_template {background-position:-820px -20px} +.o2k7Skin span.mce_visualchars {background-position:-840px -20px} +.o2k7Skin span.mce_abbr {background-position:-860px -20px} +.o2k7Skin span.mce_acronym {background-position:-880px -20px} +.o2k7Skin span.mce_attribs {background-position:-900px -20px} +.o2k7Skin span.mce_cite {background-position:-920px -20px} +.o2k7Skin span.mce_del {background-position:-940px -20px} +.o2k7Skin span.mce_ins {background-position:-960px -20px} +.o2k7Skin span.mce_pagebreak {background-position:0 -40px} +.o2k7Skin span.mce_restoredraft {background-position:-20px -40px} +.o2k7Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui_black.css b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui_black.css new file mode 100644 index 0000000..81dbfe4 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui_black.css @@ -0,0 +1,8 @@ +/* Black */ +.o2k7SkinBlack .mceToolbar .mceToolbarStart span, .o2k7SkinBlack .mceToolbar .mceToolbarEnd span, .o2k7SkinBlack .mceButton, .o2k7SkinBlack .mceSplitButton, .o2k7SkinBlack .mceSeparator, .o2k7SkinBlack .mceSplitButton a.mceOpen, .o2k7SkinBlack .mceListBox a.mceOpen {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack table, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack .mceMenuItemTitle span.mceText, .o2k7SkinBlack .mceStatusbar div, .o2k7SkinBlack .mceStatusbar span, .o2k7SkinBlack .mceStatusbar a {background:#535353; color:#FFF} +.o2k7SkinBlack table.mceListBoxEnabled .mceText, o2k7SkinBlack .mceListBox .mceText {background:#FFF; border:1px solid #CBCFD4; border-bottom-color:#989FA9; border-right:0} +.o2k7SkinBlack table.mceListBoxEnabled:hover .mceText, .o2k7SkinBlack .mceListBoxHover .mceText, .o2k7SkinBlack .mceListBoxSelected .mceText {background:#FFF; border:1px solid #FFBD69; border-right:0} +.o2k7SkinBlack .mceExternalToolbar, .o2k7SkinBlack .mceListBox .mceText, .o2k7SkinBlack div.mceMenu, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceFirst td, .o2k7SkinBlack table.mceLayout, .o2k7SkinBlack .mceMenuItemTitle a, .o2k7SkinBlack table.mceLayout tr.mceLast td, .o2k7SkinBlack .mceIframeContainer {border-color: #535353;} +.o2k7SkinBlack table.mceSplitButtonEnabled:hover a.mceAction, .o2k7SkinBlack .mceSplitButtonHover a.mceAction, .o2k7SkinBlack .mceSplitButtonSelected {background-image:url(img/button_bg_black.png)} +.o2k7SkinBlack .mceMenu .mceMenuItemEnabled a:hover, .o2k7SkinBlack .mceMenu .mceMenuItemActive {background-color:#FFE7A1} \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css new file mode 100644 index 0000000..e8ae844 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/o2k7/ui_silver.css @@ -0,0 +1,5 @@ +/* Silver */ +.o2k7SkinSilver .mceToolbar .mceToolbarStart span, .o2k7SkinSilver .mceButton, .o2k7SkinSilver .mceSplitButton, .o2k7SkinSilver .mceSeparator, .o2k7SkinSilver .mceSplitButton a.mceOpen, .o2k7SkinSilver .mceListBox a.mceOpen {background-image:url(img/button_bg_silver.png)} +.o2k7SkinSilver table, .o2k7SkinSilver .mceMenuItemTitle a {background:#eee} +.o2k7SkinSilver .mceListBox .mceText {background:#FFF} +.o2k7SkinSilver .mceExternalToolbar, .o2k7SkinSilver .mceListBox .mceText, .o2k7SkinSilver div.mceMenu, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceFirst td, .o2k7SkinSilver table.mceLayout, .o2k7SkinSilver .mceMenuItemTitle a, .o2k7SkinSilver table.mceLayout tr.mceLast td, .o2k7SkinSilver .mceIframeContainer {border-color: #bbb} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/content.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/content.css new file mode 100644 index 0000000..db9a169 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/content.css @@ -0,0 +1,42 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFF;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block; font-weight:bold;font-size:large} +blockquote{ background-color:#EFEFEF; padding:2px;} + +code{background-color:lightgray;} + +.snInfoBoxHead{font-weight:bold;color:black;display:block;} +.snInfoBox{display:block; border: solid #435E91 2px; padding:4px;background-color:#EFEFEF;color:#000;} + +h1 {color:#2267F4;} +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/dialog.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_games.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_games.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_kochen.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/button_bg_kochen.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/buttons.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/img/buttons.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet/ui.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/ui.css new file mode 100644 index 0000000..a366540 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +.Skin table, .Skin tbody, .Skin a, .Skin img, .Skin tr, .Skin div, .Skin td, .Skin iframe, .Skin span, .Skin *, .Skin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +.Skin a:hover, .Skin a:link, .Skin a:visited, .Skin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +.Skin table td {vertical-align:middle} + +/* Containers */ +.Skin table {background:#EFEFEF} +.Skin iframe {display:block; background:#FFF} +.Skin .mceToolbar {height:26px} + +/* External */ +.Skin .mceExternalToolbar {position:absolute; border:1px solid #435E91; border-bottom:0; display:none} +.Skin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +.Skin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +.Skin table.mceLayout {border:0; border-left:1px solid #435E91; border-right:1px solid #435E91} +.Skin table.mceLayout tr.mceFirst td {border-top:1px solid #435E91} +.Skin table.mceLayout tr.mceLast td {border-bottom:1px solid #435E91} +.Skin table.mceToolbar, .Skin tr.mceFirst .mceToolbar tr td, .Skin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +.Skin .mceIframeContainer {border-top:1px solid #435E91; border-bottom:1px solid #435E91} +.Skin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +.Skin .mceStatusbar div {float:left; padding:2px} +.Skin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +.Skin .mceStatusbar a:hover {text-decoration:underline} +.Skin table.mceToolbar {margin-left:3px} +.Skin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; margin-left:3px;} +.Skin .mceToolbar td.mceFirst span {margin:0} +.Skin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.Skin .mceToolbar .mceToolbarEndListBox span, .Skin .mceToolbar .mceToolbarStartListBox span {display:none} +.Skin span.mceIcon, .Skin img.mceIcon {display:block; width:20px; height:20px} +.Skin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +.Skin td.mceCenter {text-align:center;} +.Skin td.mceCenter table {margin:0 auto; text-align:left;} +.Skin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +.Skin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.Skin a.mceButton span, .Skin a.mceButton img {margin-left:1px} +.Skin .mceOldBoxModel a.mceButton span, .Skin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +.Skin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.Skin a.mceButtonActive, .Skin a.mceButtonSelected {background-position:0 -44px} +.Skin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.Skin .mceButtonLabeled {width:auto} +.Skin .mceButtonLabeled span.mceIcon {float:left} +.Skin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +.Skin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +.Skin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +.Skin .mceListBox {margin-left:3px} +.Skin .mceListBox, .Skin .mceListBox a {display:block} +.Skin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +.Skin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg.png) -66px 0} +.Skin table.mceListBoxEnabled:hover .mceText, .Skin .mceListBoxHover .mceText, .Skin .mceListBoxSelected .mceText {background:#FFF} +.Skin table.mceListBoxEnabled:hover .mceOpen, .Skin .mceListBoxHover .mceOpen, .Skin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +.Skin .mceListBoxDisabled .mceText {color:gray} +.Skin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +.Skin .mceOldBoxModel .mceListBox .mceText {height:22px} +.Skin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +.Skin .mceSplitButton, .Skin .mceSplitButton a, .Skin .mceSplitButton span {display:block; height:22px} +.Skin .mceSplitButton {background:url(img/button_bg.png)} +.Skin .mceSplitButton a.mceAction {width:22px} +.Skin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +.Skin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg.png) -44px 0} +.Skin .mceSplitButton span.mceOpen {display:none} +.Skin table.mceSplitButtonEnabled:hover a.mceAction, .Skin .mceSplitButtonHover a.mceAction, .Skin .mceSplitButtonSelected {background:url(img/button_bg.png) 0 -22px} +.Skin table.mceSplitButtonEnabled:hover a.mceOpen, .Skin .mceSplitButtonHover a.mceOpen, .Skin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +.Skin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +.Skin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +.Skin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +.Skin .mceColorSplitMenu td {padding:2px} +.Skin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +.Skin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +.Skin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +.Skin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +.Skin a.mceMoreColors:hover {border:1px solid #0A246A} +.Skin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +.Skin .mce_forecolor span.mceAction, .Skin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +.Skin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #435E91} +.Skin .mceNoIcons span.mceIcon {width:0;} +.Skin .mceNoIcons a .mceText {padding-left:10px} +.Skin .mceMenu table {background:#FFF} +.Skin .mceMenu a, .Skin .mceMenu span, .Skin .mceMenu {display:block} +.Skin .mceMenu td {height:20px} +.Skin .mceMenu a {position:relative;padding:3px 0 4px 0} +.Skin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +.Skin .mceMenu span.mceText, .Skin .mceMenu .mcePreview {font-size:11px} +.Skin .mceMenu pre.mceText {font-family:Monospace} +.Skin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +.Skin .mceMenu .mceMenuItemEnabled a:hover, .Skin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +.Skin td.mceMenuItemSeparator {background:#DDD; height:1px} +.Skin .mceMenuItemTitle a {border:0; background:#EFEFEF; border-bottom:1px solid #435E91} +.Skin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +.Skin .mceMenuItemDisabled .mceText {color:#888} +.Skin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +.Skin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +.Skin .mceMenu span.mceMenuLine {display:none} +.Skin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +.Skin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +.Skin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +.Skin .mce_formatPreview a {font-size:10px} +.Skin .mce_p span.mceText {} +.Skin .mce_address span.mceText {font-style:italic} +.Skin .mce_pre span.mceText {font-family:monospace} +.Skin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +.Skin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +.Skin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +.Skin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +.Skin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +.Skin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +.Skin span.mce_bold {background-position:0 0} +.Skin span.mce_italic {background-position:-60px 0} +.Skin span.mce_underline {background-position:-140px 0} +.Skin span.mce_strikethrough {background-position:-120px 0} +.Skin span.mce_undo {background-position:-160px 0} +.Skin span.mce_redo {background-position:-100px 0} +.Skin span.mce_cleanup {background-position:-40px 0} +.Skin span.mce_bullist {background-position:-20px 0} +.Skin span.mce_numlist {background-position:-80px 0} +.Skin span.mce_justifyleft {background-position:-460px 0} +.Skin span.mce_justifyright {background-position:-480px 0} +.Skin span.mce_justifycenter {background-position:-420px 0} +.Skin span.mce_justifyfull {background-position:-440px 0} +.Skin span.mce_anchor {background-position:-200px 0} +.Skin span.mce_indent {background-position:-400px 0} +.Skin span.mce_outdent {background-position:-540px 0} +.Skin span.mce_link {background-position:-500px 0} +.Skin span.mce_unlink {background-position:-640px 0} +.Skin span.mce_sub {background-position:-600px 0} +.Skin span.mce_sup {background-position:-620px 0} +.Skin span.mce_removeformat {background-position:-580px 0} +.Skin span.mce_newdocument {background-position:-520px 0} +.Skin span.mce_image {background-position:-380px 0} +.Skin span.mce_help {background-position:-340px 0} +.Skin span.mce_code {background-position:-260px 0} +.Skin span.mce_hr {background-position:-360px 0} +.Skin span.mce_visualaid {background-position:-660px 0} +.Skin span.mce_charmap {background-position:-240px 0} +.Skin span.mce_paste {background-position:-560px 0} +.Skin span.mce_copy {background-position:-700px 0} +.Skin span.mce_cut {background-position:-680px 0} +.Skin span.mce_blockquote {background-position:-220px 0} +.Skin .mce_forecolor span.mceAction {background-position:-720px 0} +.Skin .mce_backcolor span.mceAction {background-position:-760px 0} +.Skin span.mce_forecolorpicker {background-position:-720px 0} +.Skin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +.Skin span.mce_advhr {background-position:-0px -20px} +.Skin span.mce_ltr {background-position:-20px -20px} +.Skin span.mce_rtl {background-position:-40px -20px} +.Skin span.mce_emotions {background-position:-60px -20px} +.Skin span.mce_fullpage {background-position:-80px -20px} +.Skin span.mce_fullscreen {background-position:-100px -20px} +.Skin span.mce_iespell {background-position:-120px -20px} +.Skin span.mce_insertdate {background-position:-140px -20px} +.Skin span.mce_inserttime {background-position:-160px -20px} +.Skin span.mce_absolute {background-position:-180px -20px} +.Skin span.mce_backward {background-position:-200px -20px} +.Skin span.mce_forward {background-position:-220px -20px} +.Skin span.mce_insert_layer {background-position:-240px -20px} +.Skin span.mce_insertlayer {background-position:-260px -20px} +.Skin span.mce_movebackward {background-position:-280px -20px} +.Skin span.mce_moveforward {background-position:-300px -20px} +.Skin span.mce_media {background-position:-320px -20px} +.Skin span.mce_nonbreaking {background-position:-340px -20px} +.Skin span.mce_pastetext {background-position:-360px -20px} +.Skin span.mce_pasteword {background-position:-380px -20px} +.Skin span.mce_selectall {background-position:-400px -20px} +.Skin span.mce_preview {background-position:-420px -20px} +.Skin span.mce_print {background-position:-440px -20px} +.Skin span.mce_cancel {background-position:-460px -20px} +.Skin span.mce_save {background-position:-480px -20px} +.Skin span.mce_replace {background-position:-500px -20px} +.Skin span.mce_search {background-position:-520px -20px} +.Skin span.mce_styleprops {background-position:-560px -20px} +.Skin span.mce_table {background-position:-580px -20px} +.Skin span.mce_cell_props {background-position:-600px -20px} +.Skin span.mce_delete_table {background-position:-620px -20px} +.Skin span.mce_delete_col {background-position:-640px -20px} +.Skin span.mce_delete_row {background-position:-660px -20px} +.Skin span.mce_col_after {background-position:-680px -20px} +.Skin span.mce_col_before {background-position:-700px -20px} +.Skin span.mce_row_after {background-position:-720px -20px} +.Skin span.mce_row_before {background-position:-740px -20px} +.Skin span.mce_merge_cells {background-position:-760px -20px} +.Skin span.mce_table_props {background-position:-980px -20px} +.Skin span.mce_row_props {background-position:-780px -20px} +.Skin span.mce_split_cells {background-position:-800px -20px} +.Skin span.mce_template {background-position:-820px -20px} +.Skin span.mce_visualchars {background-position:-840px -20px} +.Skin span.mce_abbr {background-position:-860px -20px} +.Skin span.mce_acronym {background-position:-880px -20px} +.Skin span.mce_attribs {background-position:-900px -20px} +.Skin span.mce_cite {background-position:-920px -20px} +.Skin span.mce_del {background-position:-940px -20px} +.Skin span.mce_ins {background-position:-960px -20px} +.Skin span.mce_pagebreak {background-position:0 -40px} +.Skin span.mce_restoredraft {background-position:-20px -40px} +.Skin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/content.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/content.css new file mode 100644 index 0000000..0297591 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/content.css @@ -0,0 +1,43 @@ +body, td, pre {color:#A0A0A0; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#151515;} +body.mceForceColors {background:#151515; color:#A0A0A0;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block; font-weight:bold;font-size:large} +blockquote{ background-color:#444444; padding:2px;} + +code{background-color:lightgray;} + +.snInfoBoxHead{font-weight:bold;color:#FE9800;display:block;} +.snInfoBox{display:block;border: solid #A0A0A0 2px; padding:4px;background-color:#444;color:#A0A0A0;} + +h1{color:#6B8797;} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/dialog.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_games.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_games.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/button_bg_kochen.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/buttons.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/img/buttons.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/ui.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/ui.css new file mode 100644 index 0000000..d1951e2 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_games/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +._gamesSkin table, ._gamesSkin tbody, ._gamesSkin a, ._gamesSkin img, ._gamesSkin tr, ._gamesSkin div, ._gamesSkin td, ._gamesSkin iframe, ._gamesSkin span, ._gamesSkin *, ._gamesSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +._gamesSkin a:hover, ._gamesSkin a:link, ._gamesSkin a:visited, ._gamesSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +._gamesSkin table td {vertical-align:middle} + +/* Containers */ +._gamesSkin table {background:#212121} +._gamesSkin iframe {display:block; background:#FFF} +._gamesSkin .mceToolbar {height:26px} + +/* External */ +._gamesSkin .mceExternalToolbar {position:absolute; border:1px solid #444444; border-bottom:0; display:none} +._gamesSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +._gamesSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +._gamesSkin table.mceLayout {border:0; border-left:1px solid #444444; border-right:1px solid #444444} +._gamesSkin table.mceLayout tr.mceFirst td {border-top:1px solid #444444} +._gamesSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #444444} +._gamesSkin table.mceToolbar, ._gamesSkin tr.mceFirst .mceToolbar tr td, ._gamesSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +._gamesSkin .mceIframeContainer {border-top:1px solid #444444; border-bottom:1px solid #444444} +._gamesSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +._gamesSkin .mceStatusbar div {float:left; padding:2px} +._gamesSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +._gamesSkin .mceStatusbar a:hover {text-decoration:underline} +._gamesSkin table.mceToolbar {margin-left:3px} +._gamesSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg_games.png) -22px 0; width:1px; height:22px; margin-left:3px;} +._gamesSkin .mceToolbar td.mceFirst span {margin:0} +._gamesSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg_games.png) -22px 0; width:1px; height:22px} +._gamesSkin .mceToolbar .mceToolbarEndListBox span, ._gamesSkin .mceToolbar .mceToolbarStartListBox span {display:none} +._gamesSkin span.mceIcon, ._gamesSkin img.mceIcon {display:block; width:20px; height:20px} +._gamesSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +._gamesSkin td.mceCenter {text-align:center;} +._gamesSkin td.mceCenter table {margin:0 auto; text-align:left;} +._gamesSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +._gamesSkin .mceButton {display:block; background:url(img/button_bg_games.png); width:22px; height:22px} +._gamesSkin a.mceButton span, ._gamesSkin a.mceButton img {margin-left:1px} +._gamesSkin .mceOldBoxModel a.mceButton span, ._gamesSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +._gamesSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +._gamesSkin a.mceButtonActive, ._gamesSkin a.mceButtonSelected {background-position:0 -44px} +._gamesSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._gamesSkin .mceButtonLabeled {width:auto} +._gamesSkin .mceButtonLabeled span.mceIcon {float:left} +._gamesSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +._gamesSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +._gamesSkin .mceSeparator {display:block; background:url(img/button_bg_games.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +._gamesSkin .mceListBox {margin-left:3px} +._gamesSkin .mceListBox, ._gamesSkin .mceListBox a {display:block} +._gamesSkin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +._gamesSkin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg_games.png) -66px 0} +._gamesSkin table.mceListBoxEnabled:hover .mceText, ._gamesSkin .mceListBoxHover .mceText, ._gamesSkin .mceListBoxSelected .mceText {background:#FFF} +._gamesSkin table.mceListBoxEnabled:hover .mceOpen, ._gamesSkin .mceListBoxHover .mceOpen, ._gamesSkin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +._gamesSkin .mceListBoxDisabled .mceText {color:gray} +._gamesSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +._gamesSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +._gamesSkin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +._gamesSkin .mceSplitButton, ._gamesSkin .mceSplitButton a, ._gamesSkin .mceSplitButton span {display:block; height:22px} +._gamesSkin .mceSplitButton {background:url(img/button_bg_games.png)} +._gamesSkin .mceSplitButton a.mceAction {width:22px} +._gamesSkin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +._gamesSkin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg_games.png) -44px 0} +._gamesSkin .mceSplitButton span.mceOpen {display:none} +._gamesSkin table.mceSplitButtonEnabled:hover a.mceAction, ._gamesSkin .mceSplitButtonHover a.mceAction, ._gamesSkin .mceSplitButtonSelected {background:url(img/button_bg_games.png) 0 -22px} +._gamesSkin table.mceSplitButtonEnabled:hover a.mceOpen, ._gamesSkin .mceSplitButtonHover a.mceOpen, ._gamesSkin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +._gamesSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._gamesSkin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +._gamesSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +._gamesSkin .mceColorSplitMenu td {padding:2px} +._gamesSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +._gamesSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +._gamesSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +._gamesSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +._gamesSkin a.mceMoreColors:hover {border:1px solid #0A246A} +._gamesSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +._gamesSkin .mce_forecolor span.mceAction, ._gamesSkin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +._gamesSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #444444} +._gamesSkin .mceNoIcons span.mceIcon {width:0;} +._gamesSkin .mceNoIcons a .mceText {padding-left:10px} +._gamesSkin .mceMenu table {background:#FFF} +._gamesSkin .mceMenu a, ._gamesSkin .mceMenu span, ._gamesSkin .mceMenu {display:block} +._gamesSkin .mceMenu td {height:20px} +._gamesSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +._gamesSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +._gamesSkin .mceMenu span.mceText, ._gamesSkin .mceMenu .mcePreview {font-size:11px} +._gamesSkin .mceMenu pre.mceText {font-family:Monospace} +._gamesSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +._gamesSkin .mceMenu .mceMenuItemEnabled a:hover, ._gamesSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +._gamesSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +._gamesSkin .mceMenuItemTitle a {border:0; background:#212121; border-bottom:1px solid #444444} +._gamesSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +._gamesSkin .mceMenuItemDisabled .mceText {color:#888} +._gamesSkin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +._gamesSkin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +._gamesSkin .mceMenu span.mceMenuLine {display:none} +._gamesSkin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +._gamesSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +._gamesSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +._gamesSkin .mce_formatPreview a {font-size:10px} +._gamesSkin .mce_p span.mceText {} +._gamesSkin .mce_address span.mceText {font-style:italic} +._gamesSkin .mce_pre span.mceText {font-family:monospace} +._gamesSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +._gamesSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +._gamesSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +._gamesSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +._gamesSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +._gamesSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +._gamesSkin span.mce_bold {background-position:0 0} +._gamesSkin span.mce_italic {background-position:-60px 0} +._gamesSkin span.mce_underline {background-position:-140px 0} +._gamesSkin span.mce_strikethrough {background-position:-120px 0} +._gamesSkin span.mce_undo {background-position:-160px 0} +._gamesSkin span.mce_redo {background-position:-100px 0} +._gamesSkin span.mce_cleanup {background-position:-40px 0} +._gamesSkin span.mce_bullist {background-position:-20px 0} +._gamesSkin span.mce_numlist {background-position:-80px 0} +._gamesSkin span.mce_justifyleft {background-position:-460px 0} +._gamesSkin span.mce_justifyright {background-position:-480px 0} +._gamesSkin span.mce_justifycenter {background-position:-420px 0} +._gamesSkin span.mce_justifyfull {background-position:-440px 0} +._gamesSkin span.mce_anchor {background-position:-200px 0} +._gamesSkin span.mce_indent {background-position:-400px 0} +._gamesSkin span.mce_outdent {background-position:-540px 0} +._gamesSkin span.mce_link {background-position:-500px 0} +._gamesSkin span.mce_unlink {background-position:-640px 0} +._gamesSkin span.mce_sub {background-position:-600px 0} +._gamesSkin span.mce_sup {background-position:-620px 0} +._gamesSkin span.mce_removeformat {background-position:-580px 0} +._gamesSkin span.mce_newdocument {background-position:-520px 0} +._gamesSkin span.mce_image {background-position:-380px 0} +._gamesSkin span.mce_help {background-position:-340px 0} +._gamesSkin span.mce_code {background-position:-260px 0} +._gamesSkin span.mce_hr {background-position:-360px 0} +._gamesSkin span.mce_visualaid {background-position:-660px 0} +._gamesSkin span.mce_charmap {background-position:-240px 0} +._gamesSkin span.mce_paste {background-position:-560px 0} +._gamesSkin span.mce_copy {background-position:-700px 0} +._gamesSkin span.mce_cut {background-position:-680px 0} +._gamesSkin span.mce_blockquote {background-position:-220px 0} +._gamesSkin .mce_forecolor span.mceAction {background-position:-720px 0} +._gamesSkin .mce_backcolor span.mceAction {background-position:-760px 0} +._gamesSkin span.mce_forecolorpicker {background-position:-720px 0} +._gamesSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +._gamesSkin span.mce_advhr {background-position:-0px -20px} +._gamesSkin span.mce_ltr {background-position:-20px -20px} +._gamesSkin span.mce_rtl {background-position:-40px -20px} +._gamesSkin span.mce_emotions {background-position:-60px -20px} +._gamesSkin span.mce_fullpage {background-position:-80px -20px} +._gamesSkin span.mce_fullscreen {background-position:-100px -20px} +._gamesSkin span.mce_iespell {background-position:-120px -20px} +._gamesSkin span.mce_insertdate {background-position:-140px -20px} +._gamesSkin span.mce_inserttime {background-position:-160px -20px} +._gamesSkin span.mce_absolute {background-position:-180px -20px} +._gamesSkin span.mce_backward {background-position:-200px -20px} +._gamesSkin span.mce_forward {background-position:-220px -20px} +._gamesSkin span.mce_insert_layer {background-position:-240px -20px} +._gamesSkin span.mce_insertlayer {background-position:-260px -20px} +._gamesSkin span.mce_movebackward {background-position:-280px -20px} +._gamesSkin span.mce_moveforward {background-position:-300px -20px} +._gamesSkin span.mce_media {background-position:-320px -20px} +._gamesSkin span.mce_nonbreaking {background-position:-340px -20px} +._gamesSkin span.mce_pastetext {background-position:-360px -20px} +._gamesSkin span.mce_pasteword {background-position:-380px -20px} +._gamesSkin span.mce_selectall {background-position:-400px -20px} +._gamesSkin span.mce_preview {background-position:-420px -20px} +._gamesSkin span.mce_print {background-position:-440px -20px} +._gamesSkin span.mce_cancel {background-position:-460px -20px} +._gamesSkin span.mce_save {background-position:-480px -20px} +._gamesSkin span.mce_replace {background-position:-500px -20px} +._gamesSkin span.mce_search {background-position:-520px -20px} +._gamesSkin span.mce_styleprops {background-position:-560px -20px} +._gamesSkin span.mce_table {background-position:-580px -20px} +._gamesSkin span.mce_cell_props {background-position:-600px -20px} +._gamesSkin span.mce_delete_table {background-position:-620px -20px} +._gamesSkin span.mce_delete_col {background-position:-640px -20px} +._gamesSkin span.mce_delete_row {background-position:-660px -20px} +._gamesSkin span.mce_col_after {background-position:-680px -20px} +._gamesSkin span.mce_col_before {background-position:-700px -20px} +._gamesSkin span.mce_row_after {background-position:-720px -20px} +._gamesSkin span.mce_row_before {background-position:-740px -20px} +._gamesSkin span.mce_merge_cells {background-position:-760px -20px} +._gamesSkin span.mce_table_props {background-position:-980px -20px} +._gamesSkin span.mce_row_props {background-position:-780px -20px} +._gamesSkin span.mce_split_cells {background-position:-800px -20px} +._gamesSkin span.mce_template {background-position:-820px -20px} +._gamesSkin span.mce_visualchars {background-position:-840px -20px} +._gamesSkin span.mce_abbr {background-position:-860px -20px} +._gamesSkin span.mce_acronym {background-position:-880px -20px} +._gamesSkin span.mce_attribs {background-position:-900px -20px} +._gamesSkin span.mce_cite {background-position:-920px -20px} +._gamesSkin span.mce_del {background-position:-940px -20px} +._gamesSkin span.mce_ins {background-position:-960px -20px} +._gamesSkin span.mce_pagebreak {background-position:0 -40px} +._gamesSkin span.mce_restoredraft {background-position:-20px -40px} +._gamesSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/content.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/content.css new file mode 100644 index 0000000..024543a --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/content.css @@ -0,0 +1,43 @@ +body, td, pre {color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; margin:8px;} +body {background:#FFD5A1;} +body.mceForceColors {background:#FFF; color:#000;} +h1 {font-size: 2em} +h2 {font-size: 1.5em} +h3 {font-size: 1.17em} +h4 {font-size: 1em} +h5 {font-size: .83em} +h6 {font-size: .75em} +.mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} +a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} +img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} +img {border:0;} +table {cursor:default} +table td, table th {cursor:text} +ins {border-bottom:1px solid green; text-decoration: none; color:green} +del {color:red; text-decoration:line-through} +cite {border-bottom:1px dashed blue} +acronym {border-bottom:1px dotted #CCC; cursor:help} +abbr, html\:abbr {border-bottom:1px dashed #CCC; cursor:help} + + +blockquote:before{ content:"Zitat:"; display:block;font-weight:bold;font-size:large} +blockquote{ background-color:#FAB47E; padding:2px;} + +code{} + +.snInfoBoxHead{font-weight:bold;color:blue;display:block;} +.snInfoBox{display:block; border: solid black 2px; padding:4px;background-color:#FFE9CD;} + +h1{color:#6F741C;} + +/* IE */ +* html body { +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/dialog.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/dialog.css new file mode 100644 index 0000000..13b1d6a --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/dialog.css @@ -0,0 +1,115 @@ +/* Generic */ +body { +font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; +scrollbar-3dlight-color:#F0F0EE; +scrollbar-arrow-color:#676662; +scrollbar-base-color:#F0F0EE; +scrollbar-darkshadow-color:#DDDDDD; +scrollbar-face-color:#E0E0DD; +scrollbar-highlight-color:#F0F0EE; +scrollbar-shadow-color:#F0F0EE; +scrollbar-track-color:#F5F5F5; +background:#F0F0EE; +padding:0; +margin:8px 8px 0 8px; +} + +html {background:#F0F0EE;} +td {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +textarea {resize:none;outline:none;} +a:link, a:visited {color:black;} +a:hover {color:#2B6FB6;} +.nowrap {white-space: nowrap} + +/* Forms */ +fieldset {margin:0; padding:4px; border:1px solid #919B9C; font-family:Verdana, Arial; font-size:10px;} +legend {color:#2B6FB6; font-weight:bold;} +label.msg {display:none;} +label.invalid {color:#EE0000; display:inline;} +input.invalid {border:1px solid #EE0000;} +input {background:#FFF; border:1px solid #CCC;} +input, select, textarea {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} +input, select, textarea {border:1px solid #808080;} +input.radio {border:1px none #000000; background:transparent; vertical-align:middle;} +input.checkbox {border:1px none #000000; background:transparent; vertical-align:middle;} +.input_noborder {border:0;} + +/* Buttons */ +#insert, #cancel, input.button, .updateButton { +border:0; margin:0; padding:0; +font-weight:bold; +width:94px; height:26px; +background:url(img/buttons.png) 0 -26px; +cursor:pointer; +padding-bottom:2px; +} + +#insert {background:url(img/buttons.png) 0 -52px;} +#cancel {background:url(img/buttons.png) 0 0;} + +/* Browse */ +a.pickcolor, a.browse {text-decoration:none} +a.browse span {display:block; width:20px; height:18px; background:url(../../img/icons.gif) -860px 0; border:1px solid #FFF; margin-left:1px;} +.mceOldBoxModel a.browse span {width:22px; height:20px;} +a.browse:hover span {border:1px solid #0A246A; background-color:#B2BBD0;} +a.browse span.disabled {border:1px solid white; opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +a.browse:hover span.disabled {border:1px solid white; background-color:transparent;} +a.pickcolor span {display:block; width:20px; height:16px; background:url(../../img/icons.gif) -840px 0; margin-left:2px;} +.mceOldBoxModel a.pickcolor span {width:21px; height:17px;} +a.pickcolor:hover span {background-color:#B2BBD0;} +a.pickcolor:hover span.disabled {} + +/* Charmap */ +table.charmap {border:1px solid #AAA; text-align:center} +td.charmap, #charmap a {width:18px; height:18px; color:#000; border:1px solid #AAA; text-align:center; font-size:12px; vertical-align:middle; line-height: 18px;} +#charmap a {display:block; color:#000; text-decoration:none; border:0} +#charmap a:hover {background:#CCC;color:#2B6FB6} +#charmap #codeN {font-size:10px; font-family:Arial,Helvetica,sans-serif; text-align:center} +#charmap #codeV {font-size:40px; height:80px; border:1px solid #AAA; text-align:center} + +/* Source */ +.wordWrapCode {vertical-align:middle; border:1px none #000000; background:transparent;} +.mceActionPanel {margin-top:5px;} + +/* Tabs classes */ +.tabs {width:100%; height:18px; line-height:normal; background:url(../default/img/tabs.gif) repeat-x 0 -72px;} +.tabs ul {margin:0; padding:0; list-style:none;} +.tabs li {float:left; background:url(../default/img/tabs.gif) no-repeat 0 0; margin:0 2px 0 0; padding:0 0 0 10px; line-height:17px; height:18px; display:block;} +.tabs li.current {background:url(../default/img/tabs.gif) no-repeat 0 -18px; margin-right:2px;} +.tabs span {float:left; display:block; background:url(../default/img/tabs.gif) no-repeat right -36px; padding:0px 10px 0 0;} +.tabs .current span {background:url(../default/img/tabs.gif) no-repeat right -54px;} +.tabs a {text-decoration:none; font-family:Verdana, Arial; font-size:10px;} +.tabs a:link, .tabs a:visited, .tabs a:hover {color:black;} + +/* Panels */ +.panel_wrapper div.panel {display:none;} +.panel_wrapper div.current {display:block; width:100%; height:300px; overflow:visible;} +.panel_wrapper {border:1px solid #919B9C; border-top:0px; padding:10px; padding-top:5px; clear:both; background:white;} + +/* Columns */ +.column {float:left;} +.properties {width:100%;} +.properties .column1 {} +.properties .column2 {text-align:left;} + +/* Titles */ +h1, h2, h3, h4 {color:#2B6FB6; margin:0; padding:0; padding-top:5px;} +h3 {font-size:14px;} +.title {font-size:12px; font-weight:bold; color:#2B6FB6;} + +/* Dialog specific */ +#link .panel_wrapper, #link div.current {height:125px;} +#image .panel_wrapper, #image div.current {height:200px;} +#plugintable thead {font-weight:bold; background:#DDD;} +#plugintable, #about #plugintable td {border:1px solid #919B9C;} +#plugintable {width:96%; margin-top:10px;} +#pluginscontainer {height:290px; overflow:auto;} +#colorpicker #preview {float:right; width:50px; height:14px;line-height:1px; border:1px solid black; margin-left:5px;} +#colorpicker #colors {float:left; border:1px solid gray; cursor:crosshair;} +#colorpicker #light {border:1px solid gray; margin-left:5px; float:left;width:15px; height:150px; cursor:crosshair;} +#colorpicker #light div {overflow:hidden;} +#colorpicker #previewblock {float:right; padding-left:10px; height:20px;} +#colorpicker .panel_wrapper div.current {height:175px;} +#colorpicker #namedcolors {width:150px;} +#colorpicker #namedcolors a {display:block; float:left; width:10px; height:10px; margin:1px 1px 0 0; overflow:hidden;} +#colorpicker #colornamecontainer {margin-top:5px;} diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg.png new file mode 100644 index 0000000..bd5d255 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png new file mode 100644 index 0000000..8996c74 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_games.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png new file mode 100644 index 0000000..4e7d0ef Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/button_bg_kochen.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/buttons.png b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/buttons.png new file mode 100644 index 0000000..7dd5841 Binary files /dev/null and b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/img/buttons.png differ diff --git a/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/ui.css b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/ui.css new file mode 100644 index 0000000..b69ec56 --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/skins/supportnet_kochen/ui.css @@ -0,0 +1,215 @@ +/* Reset */ +._kochenSkin table, ._kochenSkin tbody, ._kochenSkin a, ._kochenSkin img, ._kochenSkin tr, ._kochenSkin div, ._kochenSkin td, ._kochenSkin iframe, ._kochenSkin span, ._kochenSkin *, ._kochenSkin .mceText {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000; vertical-align:baseline; width:auto; border-collapse:separate; text-align:left} +._kochenSkin a:hover, ._kochenSkin a:link, ._kochenSkin a:visited, ._kochenSkin a:active {text-decoration:none; font-weight:normal; cursor:default; color:#000} +._kochenSkin table td {vertical-align:middle} + +/* Containers */ +._kochenSkin table {background:#FFE9CD} +._kochenSkin iframe {display:block; background:#FFF} +._kochenSkin .mceToolbar {height:26px} + +/* External */ +._kochenSkin .mceExternalToolbar {position:absolute; border:1px solid #D54510; border-bottom:0; display:none} +._kochenSkin .mceExternalToolbar td.mceToolbar {padding-right:13px;} +._kochenSkin .mceExternalClose {position:absolute; top:3px; right:3px; width:7px; height:7px; background:url(../../img/icons.gif) -820px 0} + +/* Layout */ +._kochenSkin table.mceLayout {border:0; border-left:1px solid #D54510; border-right:1px solid #D54510} +._kochenSkin table.mceLayout tr.mceFirst td {border-top:1px solid #D54510} +._kochenSkin table.mceLayout tr.mceLast td {border-bottom:1px solid #D54510} +._kochenSkin table.mceToolbar, ._kochenSkin tr.mceFirst .mceToolbar tr td, ._kochenSkin tr.mceLast .mceToolbar tr td {border:0; margin:0; padding:0} +._kochenSkin .mceIframeContainer {border-top:1px solid #D54510; border-bottom:1px solid #D54510} +._kochenSkin .mceStatusbar {display:block; font-family:'MS Sans Serif',sans-serif,Verdana,Arial; font-size:9pt; line-height:16px; overflow:visible; color:#000; height:20px} +._kochenSkin .mceStatusbar div {float:left; padding:2px} +._kochenSkin .mceStatusbar a.mceResize {display:block; float:right; background:url(../../img/icons.gif) -800px 0; width:20px; height:20px; cursor:se-resize; outline:0} +._kochenSkin .mceStatusbar a:hover {text-decoration:underline} +._kochenSkin table.mceToolbar {margin-left:3px} +._kochenSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg_kochen.png) -22px 0; width:1px; height:22px; margin-left:3px;} +._kochenSkin .mceToolbar td.mceFirst span {margin:0} +._kochenSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg_kochen.png) -22px 0; width:1px; height:22px} +._kochenSkin .mceToolbar .mceToolbarEndListBox span, ._kochenSkin .mceToolbar .mceToolbarStartListBox span {display:none} +._kochenSkin span.mceIcon, ._kochenSkin img.mceIcon {display:block; width:20px; height:20px} +._kochenSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} +._kochenSkin td.mceCenter {text-align:center;} +._kochenSkin td.mceCenter table {margin:0 auto; text-align:left;} +._kochenSkin td.mceRight table {margin:0 0 0 auto;} + +/* Button */ +._kochenSkin .mceButton {display:block; background:url(img/button_bg_kochen.png); width:22px; height:22px} +._kochenSkin a.mceButton span, ._kochenSkin a.mceButton img {margin-left:1px} +._kochenSkin .mceOldBoxModel a.mceButton span, ._kochenSkin .mceOldBoxModel a.mceButton img {margin:0 0 0 1px} +._kochenSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +._kochenSkin a.mceButtonActive, ._kochenSkin a.mceButtonSelected {background-position:0 -44px} +._kochenSkin .mceButtonDisabled .mceIcon {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._kochenSkin .mceButtonLabeled {width:auto} +._kochenSkin .mceButtonLabeled span.mceIcon {float:left} +._kochenSkin span.mceButtonLabel {display:block; font-size:10px; padding:4px 6px 0 22px; font-family:Tahoma,Verdana,Arial,Helvetica} +._kochenSkin .mceButtonDisabled .mceButtonLabel {color:#888} + +/* Separator */ +._kochenSkin .mceSeparator {display:block; background:url(img/button_bg_kochen.png) -22px 0; width:5px; height:22px} + +/* ListBox */ +._kochenSkin .mceListBox {margin-left:3px} +._kochenSkin .mceListBox, ._kochenSkin .mceListBox a {display:block} +._kochenSkin .mceListBox .mceText {padding-left:4px; text-align:left; width:70px; border:1px solid #b3c7e1; border-right:0; background:#eaf2fb; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; height:20px; line-height:20px; overflow:hidden} +._kochenSkin .mceListBox .mceOpen {width:14px; height:22px; background:url(img/button_bg_kochen.png) -66px 0} +._kochenSkin table.mceListBoxEnabled:hover .mceText, ._kochenSkin .mceListBoxHover .mceText, ._kochenSkin .mceListBoxSelected .mceText {background:#FFF} +._kochenSkin table.mceListBoxEnabled:hover .mceOpen, ._kochenSkin .mceListBoxHover .mceOpen, ._kochenSkin .mceListBoxSelected .mceOpen {background-position:-66px -22px} +._kochenSkin .mceListBoxDisabled .mceText {color:gray} +._kochenSkin .mceListBoxMenu {overflow:auto; overflow-x:hidden} +._kochenSkin .mceOldBoxModel .mceListBox .mceText {height:22px} +._kochenSkin select.mceListBox {font-family:Tahoma,Verdana,Arial,Helvetica; font-size:12px; border:1px solid #b3c7e1; background:#FFF;} + +/* SplitButton */ +._kochenSkin .mceSplitButton, ._kochenSkin .mceSplitButton a, ._kochenSkin .mceSplitButton span {display:block; height:22px} +._kochenSkin .mceSplitButton {background:url(img/button_bg_kochen.png)} +._kochenSkin .mceSplitButton a.mceAction {width:22px} +._kochenSkin .mceSplitButton span.mceAction {width:22px; background-image:url(../../img/icons.gif)} +._kochenSkin .mceSplitButton a.mceOpen {width:10px; background:url(img/button_bg_kochen.png) -44px 0} +._kochenSkin .mceSplitButton span.mceOpen {display:none} +._kochenSkin table.mceSplitButtonEnabled:hover a.mceAction, ._kochenSkin .mceSplitButtonHover a.mceAction, ._kochenSkin .mceSplitButtonSelected {background:url(img/button_bg_kochen.png) 0 -22px} +._kochenSkin table.mceSplitButtonEnabled:hover a.mceOpen, ._kochenSkin .mceSplitButtonHover a.mceOpen, ._kochenSkin .mceSplitButtonSelected a.mceOpen {background-position:-44px -44px} +._kochenSkin .mceSplitButtonDisabled .mceAction {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} +._kochenSkin .mceSplitButtonActive {background-position:0 -44px} + +/* ColorSplitButton */ +._kochenSkin div.mceColorSplitMenu table {background:#FFF; border:1px solid gray} +._kochenSkin .mceColorSplitMenu td {padding:2px} +._kochenSkin .mceColorSplitMenu a {display:block; width:9px; height:9px; overflow:hidden; border:1px solid #808080} +._kochenSkin .mceColorSplitMenu td.mceMoreColors {padding:1px 3px 1px 1px} +._kochenSkin .mceColorSplitMenu a.mceMoreColors {width:100%; height:auto; text-align:center; font-family:Tahoma,Verdana,Arial,Helvetica; font-size:11px; line-height:20px; border:1px solid #FFF} +._kochenSkin .mceColorSplitMenu a.mceMoreColors:hover {border:1px solid #0A246A; background-color:#B6BDD2} +._kochenSkin a.mceMoreColors:hover {border:1px solid #0A246A} +._kochenSkin .mceColorPreview {margin-left:2px; width:16px; height:4px; overflow:hidden; background:#9a9b9a;overflow:hidden} +._kochenSkin .mce_forecolor span.mceAction, ._kochenSkin .mce_backcolor span.mceAction {height:15px;overflow:hidden} + +/* Menu */ +._kochenSkin .mceMenu {position:absolute; left:0; top:0; z-index:1000; border:1px solid #D54510} +._kochenSkin .mceNoIcons span.mceIcon {width:0;} +._kochenSkin .mceNoIcons a .mceText {padding-left:10px} +._kochenSkin .mceMenu table {background:#FFF} +._kochenSkin .mceMenu a, ._kochenSkin .mceMenu span, ._kochenSkin .mceMenu {display:block} +._kochenSkin .mceMenu td {height:20px} +._kochenSkin .mceMenu a {position:relative;padding:3px 0 4px 0} +._kochenSkin .mceMenu .mceText {position:relative; display:block; font-family:Tahoma,Verdana,Arial,Helvetica; color:#000; cursor:default; margin:0; padding:0 25px 0 25px; display:block} +._kochenSkin .mceMenu span.mceText, ._kochenSkin .mceMenu .mcePreview {font-size:11px} +._kochenSkin .mceMenu pre.mceText {font-family:Monospace} +._kochenSkin .mceMenu .mceIcon {position:absolute; top:0; left:0; width:22px;} +._kochenSkin .mceMenu .mceMenuItemEnabled a:hover, ._kochenSkin .mceMenu .mceMenuItemActive {background-color:#dbecf3} +._kochenSkin td.mceMenuItemSeparator {background:#DDD; height:1px} +._kochenSkin .mceMenuItemTitle a {border:0; background:#FFE9CD; border-bottom:1px solid #D54510} +._kochenSkin .mceMenuItemTitle span.mceText {color:#000; font-weight:bold; padding-left:4px} +._kochenSkin .mceMenuItemDisabled .mceText {color:#888} +._kochenSkin .mceMenuItemSelected .mceIcon {background:url(../default/img/menu_check.gif)} +._kochenSkin .mceNoIcons .mceMenuItemSelected a {background:url(../default/img/menu_arrow.gif) no-repeat -6px center} +._kochenSkin .mceMenu span.mceMenuLine {display:none} +._kochenSkin .mceMenuItemSub a {background:url(../default/img/menu_arrow.gif) no-repeat top right;} + +/* Progress,Resize */ +._kochenSkin .mceBlocker {position:absolute; left:0; top:0; z-index:1000; opacity:0.5; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=50); background:#FFF} +._kochenSkin .mceProgress {position:absolute; left:0; top:0; z-index:1001; background:url(../default/img/progress.gif) no-repeat; width:32px; height:32px; margin:-16px 0 0 -16px} + +/* Formats */ +._kochenSkin .mce_formatPreview a {font-size:10px} +._kochenSkin .mce_p span.mceText {} +._kochenSkin .mce_address span.mceText {font-style:italic} +._kochenSkin .mce_pre span.mceText {font-family:monospace} +._kochenSkin .mce_h1 span.mceText {font-weight:bolder; font-size: 2em} +._kochenSkin .mce_h2 span.mceText {font-weight:bolder; font-size: 1.5em} +._kochenSkin .mce_h3 span.mceText {font-weight:bolder; font-size: 1.17em} +._kochenSkin .mce_h4 span.mceText {font-weight:bolder; font-size: 1em} +._kochenSkin .mce_h5 span.mceText {font-weight:bolder; font-size: .83em} +._kochenSkin .mce_h6 span.mceText {font-weight:bolder; font-size: .75em} + +/* Theme */ +._kochenSkin span.mce_bold {background-position:0 0} +._kochenSkin span.mce_italic {background-position:-60px 0} +._kochenSkin span.mce_underline {background-position:-140px 0} +._kochenSkin span.mce_strikethrough {background-position:-120px 0} +._kochenSkin span.mce_undo {background-position:-160px 0} +._kochenSkin span.mce_redo {background-position:-100px 0} +._kochenSkin span.mce_cleanup {background-position:-40px 0} +._kochenSkin span.mce_bullist {background-position:-20px 0} +._kochenSkin span.mce_numlist {background-position:-80px 0} +._kochenSkin span.mce_justifyleft {background-position:-460px 0} +._kochenSkin span.mce_justifyright {background-position:-480px 0} +._kochenSkin span.mce_justifycenter {background-position:-420px 0} +._kochenSkin span.mce_justifyfull {background-position:-440px 0} +._kochenSkin span.mce_anchor {background-position:-200px 0} +._kochenSkin span.mce_indent {background-position:-400px 0} +._kochenSkin span.mce_outdent {background-position:-540px 0} +._kochenSkin span.mce_link {background-position:-500px 0} +._kochenSkin span.mce_unlink {background-position:-640px 0} +._kochenSkin span.mce_sub {background-position:-600px 0} +._kochenSkin span.mce_sup {background-position:-620px 0} +._kochenSkin span.mce_removeformat {background-position:-580px 0} +._kochenSkin span.mce_newdocument {background-position:-520px 0} +._kochenSkin span.mce_image {background-position:-380px 0} +._kochenSkin span.mce_help {background-position:-340px 0} +._kochenSkin span.mce_code {background-position:-260px 0} +._kochenSkin span.mce_hr {background-position:-360px 0} +._kochenSkin span.mce_visualaid {background-position:-660px 0} +._kochenSkin span.mce_charmap {background-position:-240px 0} +._kochenSkin span.mce_paste {background-position:-560px 0} +._kochenSkin span.mce_copy {background-position:-700px 0} +._kochenSkin span.mce_cut {background-position:-680px 0} +._kochenSkin span.mce_blockquote {background-position:-220px 0} +._kochenSkin .mce_forecolor span.mceAction {background-position:-720px 0} +._kochenSkin .mce_backcolor span.mceAction {background-position:-760px 0} +._kochenSkin span.mce_forecolorpicker {background-position:-720px 0} +._kochenSkin span.mce_backcolorpicker {background-position:-760px 0} + +/* Plugins */ +._kochenSkin span.mce_advhr {background-position:-0px -20px} +._kochenSkin span.mce_ltr {background-position:-20px -20px} +._kochenSkin span.mce_rtl {background-position:-40px -20px} +._kochenSkin span.mce_emotions {background-position:-60px -20px} +._kochenSkin span.mce_fullpage {background-position:-80px -20px} +._kochenSkin span.mce_fullscreen {background-position:-100px -20px} +._kochenSkin span.mce_iespell {background-position:-120px -20px} +._kochenSkin span.mce_insertdate {background-position:-140px -20px} +._kochenSkin span.mce_inserttime {background-position:-160px -20px} +._kochenSkin span.mce_absolute {background-position:-180px -20px} +._kochenSkin span.mce_backward {background-position:-200px -20px} +._kochenSkin span.mce_forward {background-position:-220px -20px} +._kochenSkin span.mce_insert_layer {background-position:-240px -20px} +._kochenSkin span.mce_insertlayer {background-position:-260px -20px} +._kochenSkin span.mce_movebackward {background-position:-280px -20px} +._kochenSkin span.mce_moveforward {background-position:-300px -20px} +._kochenSkin span.mce_media {background-position:-320px -20px} +._kochenSkin span.mce_nonbreaking {background-position:-340px -20px} +._kochenSkin span.mce_pastetext {background-position:-360px -20px} +._kochenSkin span.mce_pasteword {background-position:-380px -20px} +._kochenSkin span.mce_selectall {background-position:-400px -20px} +._kochenSkin span.mce_preview {background-position:-420px -20px} +._kochenSkin span.mce_print {background-position:-440px -20px} +._kochenSkin span.mce_cancel {background-position:-460px -20px} +._kochenSkin span.mce_save {background-position:-480px -20px} +._kochenSkin span.mce_replace {background-position:-500px -20px} +._kochenSkin span.mce_search {background-position:-520px -20px} +._kochenSkin span.mce_styleprops {background-position:-560px -20px} +._kochenSkin span.mce_table {background-position:-580px -20px} +._kochenSkin span.mce_cell_props {background-position:-600px -20px} +._kochenSkin span.mce_delete_table {background-position:-620px -20px} +._kochenSkin span.mce_delete_col {background-position:-640px -20px} +._kochenSkin span.mce_delete_row {background-position:-660px -20px} +._kochenSkin span.mce_col_after {background-position:-680px -20px} +._kochenSkin span.mce_col_before {background-position:-700px -20px} +._kochenSkin span.mce_row_after {background-position:-720px -20px} +._kochenSkin span.mce_row_before {background-position:-740px -20px} +._kochenSkin span.mce_merge_cells {background-position:-760px -20px} +._kochenSkin span.mce_table_props {background-position:-980px -20px} +._kochenSkin span.mce_row_props {background-position:-780px -20px} +._kochenSkin span.mce_split_cells {background-position:-800px -20px} +._kochenSkin span.mce_template {background-position:-820px -20px} +._kochenSkin span.mce_visualchars {background-position:-840px -20px} +._kochenSkin span.mce_abbr {background-position:-860px -20px} +._kochenSkin span.mce_acronym {background-position:-880px -20px} +._kochenSkin span.mce_attribs {background-position:-900px -20px} +._kochenSkin span.mce_cite {background-position:-920px -20px} +._kochenSkin span.mce_del {background-position:-940px -20px} +._kochenSkin span.mce_ins {background-position:-960px -20px} +._kochenSkin span.mce_pagebreak {background-position:0 -40px} +._kochenSkin span.mce_restoredraft {background-position:-20px -40px} +._kochenSkin span.mce_spellchecker {background-position:-540px -20px} diff --git a/sn_templates/tiny_mce/themes/advanced/source_editor.htm b/sn_templates/tiny_mce/themes/advanced/source_editor.htm new file mode 100644 index 0000000..78033fd --- /dev/null +++ b/sn_templates/tiny_mce/themes/advanced/source_editor.htm @@ -0,0 +1,25 @@ + + + {#advanced_dlg.code_title} + + + + +
                                                +
                                                {#advanced_dlg.code_title}
                                                + +
                                                + +
                                                + +
                                                + + + +
                                                + + +
                                                +
                                                + + diff --git a/sn_templates/tiny_mce/themes/simple/editor_template.js b/sn_templates/tiny_mce/themes/simple/editor_template.js new file mode 100644 index 0000000..ed89abc --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/editor_template.js @@ -0,0 +1 @@ +(function(){var a=tinymce.DOM;tinymce.ThemeManager.requireLangPack("simple");tinymce.create("tinymce.themes.SimpleTheme",{init:function(c,d){var e=this,b=["Bold","Italic","Underline","Strikethrough","InsertUnorderedList","InsertOrderedList"],f=c.settings;e.editor=c;c.onInit.add(function(){c.onNodeChange.add(function(h,g){tinymce.each(b,function(i){g.get(i.toLowerCase()).setActive(h.queryCommandState(i))})});c.dom.loadCSS(d+"/skins/"+f.skin+"/content.css")});a.loadCSS((f.editor_css?c.documentBaseURI.toAbsolute(f.editor_css):"")||d+"/skins/"+f.skin+"/ui.css")},renderUI:function(h){var e=this,i=h.targetNode,b,c,d=e.editor,f=d.controlManager,g;i=a.insertAfter(a.create("span",{id:d.id+"_container","class":"mceEditor "+d.settings.skin+"SimpleSkin"}),i);i=g=a.add(i,"table",{cellPadding:0,cellSpacing:0,"class":"mceLayout"});i=c=a.add(i,"tbody");i=a.add(c,"tr");i=b=a.add(a.add(i,"td"),"div",{"class":"mceIframeContainer"});i=a.add(a.add(c,"tr",{"class":"last"}),"td",{"class":"mceToolbar mceLast",align:"center"});c=e.toolbar=f.createToolbar("tools1");c.add(f.createButton("bold",{title:"simple.bold_desc",cmd:"Bold"}));c.add(f.createButton("italic",{title:"simple.italic_desc",cmd:"Italic"}));c.add(f.createButton("underline",{title:"simple.underline_desc",cmd:"Underline"}));c.add(f.createButton("strikethrough",{title:"simple.striketrough_desc",cmd:"Strikethrough"}));c.add(f.createSeparator());c.add(f.createButton("undo",{title:"simple.undo_desc",cmd:"Undo"}));c.add(f.createButton("redo",{title:"simple.redo_desc",cmd:"Redo"}));c.add(f.createSeparator());c.add(f.createButton("cleanup",{title:"simple.cleanup_desc",cmd:"mceCleanup"}));c.add(f.createSeparator());c.add(f.createButton("insertunorderedlist",{title:"simple.bullist_desc",cmd:"InsertUnorderedList"}));c.add(f.createButton("insertorderedlist",{title:"simple.numlist_desc",cmd:"InsertOrderedList"}));c.renderTo(i);return{iframeContainer:b,editorContainer:d.id+"_container",sizeContainer:g,deltaHeight:-20}},getInfo:function(){return{longname:"Simple theme",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.ThemeManager.add("simple",tinymce.themes.SimpleTheme)})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/simple/editor_template_src.js b/sn_templates/tiny_mce/themes/simple/editor_template_src.js new file mode 100644 index 0000000..ec9e963 --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/editor_template_src.js @@ -0,0 +1,85 @@ +/** + * editor_template_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +(function() { + var DOM = tinymce.DOM; + + // Tell it to load theme specific language pack(s) + tinymce.ThemeManager.requireLangPack('simple'); + + tinymce.create('tinymce.themes.SimpleTheme', { + init : function(ed, url) { + var t = this, states = ['Bold', 'Italic', 'Underline', 'Strikethrough', 'InsertUnorderedList', 'InsertOrderedList'], s = ed.settings; + + t.editor = ed; + + ed.onInit.add(function() { + ed.onNodeChange.add(function(ed, cm) { + tinymce.each(states, function(c) { + cm.get(c.toLowerCase()).setActive(ed.queryCommandState(c)); + }); + }); + + ed.dom.loadCSS(url + "/skins/" + s.skin + "/content.css"); + }); + + DOM.loadCSS((s.editor_css ? ed.documentBaseURI.toAbsolute(s.editor_css) : '') || url + "/skins/" + s.skin + "/ui.css"); + }, + + renderUI : function(o) { + var t = this, n = o.targetNode, ic, tb, ed = t.editor, cf = ed.controlManager, sc; + + n = DOM.insertAfter(DOM.create('span', {id : ed.id + '_container', 'class' : 'mceEditor ' + ed.settings.skin + 'SimpleSkin'}), n); + n = sc = DOM.add(n, 'table', {cellPadding : 0, cellSpacing : 0, 'class' : 'mceLayout'}); + n = tb = DOM.add(n, 'tbody'); + + // Create iframe container + n = DOM.add(tb, 'tr'); + n = ic = DOM.add(DOM.add(n, 'td'), 'div', {'class' : 'mceIframeContainer'}); + + // Create toolbar container + n = DOM.add(DOM.add(tb, 'tr', {'class' : 'last'}), 'td', {'class' : 'mceToolbar mceLast', align : 'center'}); + + // Create toolbar + tb = t.toolbar = cf.createToolbar("tools1"); + tb.add(cf.createButton('bold', {title : 'simple.bold_desc', cmd : 'Bold'})); + tb.add(cf.createButton('italic', {title : 'simple.italic_desc', cmd : 'Italic'})); + tb.add(cf.createButton('underline', {title : 'simple.underline_desc', cmd : 'Underline'})); + tb.add(cf.createButton('strikethrough', {title : 'simple.striketrough_desc', cmd : 'Strikethrough'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('undo', {title : 'simple.undo_desc', cmd : 'Undo'})); + tb.add(cf.createButton('redo', {title : 'simple.redo_desc', cmd : 'Redo'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('cleanup', {title : 'simple.cleanup_desc', cmd : 'mceCleanup'})); + tb.add(cf.createSeparator()); + tb.add(cf.createButton('insertunorderedlist', {title : 'simple.bullist_desc', cmd : 'InsertUnorderedList'})); + tb.add(cf.createButton('insertorderedlist', {title : 'simple.numlist_desc', cmd : 'InsertOrderedList'})); + tb.renderTo(n); + + return { + iframeContainer : ic, + editorContainer : ed.id + '_container', + sizeContainer : sc, + deltaHeight : -20 + }; + }, + + getInfo : function() { + return { + longname : 'Simple theme', + author : 'Moxiecode Systems AB', + authorurl : 'http://tinymce.moxiecode.com', + version : tinymce.majorVersion + "." + tinymce.minorVersion + } + } + }); + + tinymce.ThemeManager.add('simple', tinymce.themes.SimpleTheme); +})(); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/simple/img/icons.gif b/sn_templates/tiny_mce/themes/simple/img/icons.gif new file mode 100644 index 0000000..16af141 Binary files /dev/null and b/sn_templates/tiny_mce/themes/simple/img/icons.gif differ diff --git a/sn_templates/tiny_mce/themes/simple/langs/de.js b/sn_templates/tiny_mce/themes/simple/langs/de.js new file mode 100644 index 0000000..ce0a376 --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/langs/de.js @@ -0,0 +1,11 @@ +tinyMCE.addI18n('de.simple',{ +bold_desc:"Fett (Strg+B)", +italic_desc:"Kursiv (Strg+I)", +underline_desc:"Unterstrichen (Strg+U)", +striketrough_desc:"Durchgestrichen", +bullist_desc:"Aufz\u00E4hlung", +numlist_desc:"Nummerierung", +undo_desc:"R\u00FCckg\u00E4ngig (Strg+Z)", +redo_desc:"Wiederholen (Strg+Y)", +cleanup_desc:"Quellcode s\u00E4ubern" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/simple/langs/en.js b/sn_templates/tiny_mce/themes/simple/langs/en.js new file mode 100644 index 0000000..6f09531 --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/langs/en.js @@ -0,0 +1,11 @@ +tinyMCE.addI18n('en.simple',{ +bold_desc:"Bold (Ctrl+B)", +italic_desc:"Italic (Ctrl+I)", +underline_desc:"Underline (Ctrl+U)", +striketrough_desc:"Strikethrough", +bullist_desc:"Unordered list", +numlist_desc:"Ordered list", +undo_desc:"Undo (Ctrl+Z)", +redo_desc:"Redo (Ctrl+Y)", +cleanup_desc:"Cleanup messy code" +}); \ No newline at end of file diff --git a/sn_templates/tiny_mce/themes/simple/skins/default/content.css b/sn_templates/tiny_mce/themes/simple/skins/default/content.css new file mode 100644 index 0000000..783b170 --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/skins/default/content.css @@ -0,0 +1,25 @@ +body, td, pre { + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 10px; +} + +body { + background-color: #FFFFFF; +} + +.mceVisualAid { + border: 1px dashed #BBBBBB; +} + +/* MSIE specific */ + +* html body { + scrollbar-3dlight-color: #F0F0EE; + scrollbar-arrow-color: #676662; + scrollbar-base-color: #F0F0EE; + scrollbar-darkshadow-color: #DDDDDD; + scrollbar-face-color: #E0E0DD; + scrollbar-highlight-color: #F0F0EE; + scrollbar-shadow-color: #F0F0EE; + scrollbar-track-color: #F5F5F5; +} diff --git a/sn_templates/tiny_mce/themes/simple/skins/default/ui.css b/sn_templates/tiny_mce/themes/simple/skins/default/ui.css new file mode 100644 index 0000000..32feae6 --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/skins/default/ui.css @@ -0,0 +1,32 @@ +/* Reset */ +.defaultSimpleSkin table, .defaultSimpleSkin tbody, .defaultSimpleSkin a, .defaultSimpleSkin img, .defaultSimpleSkin tr, .defaultSimpleSkin div, .defaultSimpleSkin td, .defaultSimpleSkin iframe, .defaultSimpleSkin span, .defaultSimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000} + +/* Containers */ +.defaultSimpleSkin {position:relative} +.defaultSimpleSkin table.mceLayout {background:#F0F0EE; border:1px solid #CCC;} +.defaultSimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #CCC;} +.defaultSimpleSkin .mceToolbar {height:24px;} + +/* Layout */ +.defaultSimpleSkin span.mceIcon, .defaultSimpleSkin img.mceIcon {display:block; width:20px; height:20px} +.defaultSimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} + +/* Button */ +.defaultSimpleSkin .mceButton {display:block; border:1px solid #F0F0EE; width:20px; height:20px} +.defaultSimpleSkin a.mceButtonEnabled:hover {border:1px solid #0A246A; background-color:#B2BBD0} +.defaultSimpleSkin a.mceButtonActive {border:1px solid #0A246A; background-color:#C2CBE0} +.defaultSimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} + +/* Separator */ +.defaultSimpleSkin .mceSeparator {display:block; background:url(../../img/icons.gif) -180px 0; width:2px; height:20px; margin:0 2px 0 4px} + +/* Theme */ +.defaultSimpleSkin span.mce_bold {background-position:0 0} +.defaultSimpleSkin span.mce_italic {background-position:-60px 0} +.defaultSimpleSkin span.mce_underline {background-position:-140px 0} +.defaultSimpleSkin span.mce_strikethrough {background-position:-120px 0} +.defaultSimpleSkin span.mce_undo {background-position:-160px 0} +.defaultSimpleSkin span.mce_redo {background-position:-100px 0} +.defaultSimpleSkin span.mce_cleanup {background-position:-40px 0} +.defaultSimpleSkin span.mce_insertunorderedlist {background-position:-20px 0} +.defaultSimpleSkin span.mce_insertorderedlist {background-position:-80px 0} diff --git a/sn_templates/tiny_mce/themes/simple/skins/o2k7/content.css b/sn_templates/tiny_mce/themes/simple/skins/o2k7/content.css new file mode 100644 index 0000000..e10558f --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/skins/o2k7/content.css @@ -0,0 +1,17 @@ +body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} + +body {background: #FFF;} +.mceVisualAid {border: 1px dashed #BBB;} + +/* IE */ + +* html body { +scrollbar-3dlight-color: #F0F0EE; +scrollbar-arrow-color: #676662; +scrollbar-base-color: #F0F0EE; +scrollbar-darkshadow-color: #DDDDDD; +scrollbar-face-color: #E0E0DD; +scrollbar-highlight-color: #F0F0EE; +scrollbar-shadow-color: #F0F0EE; +scrollbar-track-color: #F5F5F5; +} diff --git a/sn_templates/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png b/sn_templates/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png new file mode 100644 index 0000000..527e349 Binary files /dev/null and b/sn_templates/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png differ diff --git a/sn_templates/tiny_mce/themes/simple/skins/o2k7/ui.css b/sn_templates/tiny_mce/themes/simple/skins/o2k7/ui.css new file mode 100644 index 0000000..021d650 --- /dev/null +++ b/sn_templates/tiny_mce/themes/simple/skins/o2k7/ui.css @@ -0,0 +1,35 @@ +/* Reset */ +.o2k7SimpleSkin table, .o2k7SimpleSkin tbody, .o2k7SimpleSkin a, .o2k7SimpleSkin img, .o2k7SimpleSkin tr, .o2k7SimpleSkin div, .o2k7SimpleSkin td, .o2k7SimpleSkin iframe, .o2k7SimpleSkin span, .o2k7SimpleSkin * {border:0; margin:0; padding:0; background:transparent; white-space:nowrap; text-decoration:none; font-weight:normal; cursor:default; color:#000} + +/* Containers */ +.o2k7SimpleSkin {position:relative} +.o2k7SimpleSkin table.mceLayout {background:#E5EFFD; border:1px solid #ABC6DD;} +.o2k7SimpleSkin iframe {display:block; background:#FFF; border-bottom:1px solid #ABC6DD;} +.o2k7SimpleSkin .mceToolbar {height:26px;} + +/* Layout */ +.o2k7SimpleSkin .mceToolbar .mceToolbarStart span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px; } +.o2k7SimpleSkin .mceToolbar .mceToolbarEnd span {display:block; background:url(img/button_bg.png) -22px 0; width:1px; height:22px} +.o2k7SimpleSkin span.mceIcon, .o2k7SimpleSkin img.mceIcon {display:block; width:20px; height:20px} +.o2k7SimpleSkin .mceIcon {background:url(../../img/icons.gif) no-repeat 20px 20px} + +/* Button */ +.o2k7SimpleSkin .mceButton {display:block; background:url(img/button_bg.png); width:22px; height:22px} +.o2k7SimpleSkin a.mceButton span, .o2k7SimpleSkin a.mceButton img {margin:1px 0 0 1px} +.o2k7SimpleSkin a.mceButtonEnabled:hover {background-color:#B2BBD0; background-position:0 -22px} +.o2k7SimpleSkin a.mceButtonActive {background-position:0 -44px} +.o2k7SimpleSkin .mceButtonDisabled span {opacity:0.3; -ms-filter:'alpha(opacity=30)'; filter:alpha(opacity=30)} + +/* Separator */ +.o2k7SimpleSkin .mceSeparator {display:block; background:url(img/button_bg.png) -22px 0; width:5px; height:22px} + +/* Theme */ +.o2k7SimpleSkin span.mce_bold {background-position:0 0} +.o2k7SimpleSkin span.mce_italic {background-position:-60px 0} +.o2k7SimpleSkin span.mce_underline {background-position:-140px 0} +.o2k7SimpleSkin span.mce_strikethrough {background-position:-120px 0} +.o2k7SimpleSkin span.mce_undo {background-position:-160px 0} +.o2k7SimpleSkin span.mce_redo {background-position:-100px 0} +.o2k7SimpleSkin span.mce_cleanup {background-position:-40px 0} +.o2k7SimpleSkin span.mce_insertunorderedlist {background-position:-20px 0} +.o2k7SimpleSkin span.mce_insertorderedlist {background-position:-80px 0} diff --git a/sn_templates/tiny_mce/tiny_mce.js b/sn_templates/tiny_mce/tiny_mce.js new file mode 100644 index 0000000..963ad2f --- /dev/null +++ b/sn_templates/tiny_mce/tiny_mce.js @@ -0,0 +1 @@ +(function(c){var a=/^\s*|\s*$/g,d;var b={majorVersion:"3",minorVersion:"3.6",releaseDate:"2010-05-20",_init:function(){var r=this,o=document,m=navigator,f=m.userAgent,l,e,k,j,h,q;r.isOpera=c.opera&&opera.buildNumber;r.isWebKit=/WebKit/.test(f);r.isIE=!r.isWebKit&&!r.isOpera&&(/MSIE/gi).test(f)&&(/Explorer/gi).test(m.appName);r.isIE6=r.isIE&&/MSIE [56]/.test(f);r.isGecko=!r.isWebKit&&/Gecko/.test(f);r.isMac=f.indexOf("Mac")!=-1;r.isAir=/adobeair/i.test(f);r.isIDevice=/(iPad|iPhone)/.test(f);if(c.tinyMCEPreInit){r.suffix=tinyMCEPreInit.suffix;r.baseURL=tinyMCEPreInit.base;r.query=tinyMCEPreInit.query;return}r.suffix="";e=o.getElementsByTagName("base");for(l=0;l=c.length){for(e=0,b=g.length;e=c.length||g[e]!=c[e]){f=e+1;break}}}if(g.length=g.length||g[e]!=c[e]){f=e+1;break}}}if(f==1){return h}for(e=0,b=g.length-(f-1);e=0;c--){if(f[c].length==0||f[c]=="."){continue}if(f[c]==".."){b++;continue}if(b>0){b--;continue}h.push(f[c])}c=e.length-b;if(c<=0){g=h.reverse().join("/")}else{g=e.slice(0,c).join("/")+"/"+h.reverse().join("/")}if(g.indexOf("/")!==0){g="/"+g}if(d&&g.lastIndexOf("/")!==g.length-1){g+=d}return g},getURI:function(d){var c,b=this;if(!b.source||d){c="";if(!d){if(b.protocol){c+=b.protocol+"://"}if(b.userInfo){c+=b.userInfo+"@"}if(b.host){c+=b.host}if(b.port){c+=":"+b.port}}if(b.path){c+=b.path}if(b.query){c+="?"+b.query}if(b.anchor){c+="#"+b.anchor}b.source=c}return b.source}})})();(function(){var a=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(d){var b=this.get(d),c;if(b){a(b.split("&"),function(e){e=e.split("=");c=c||{};c[unescape(e[0])]=unescape(e[1])})}return c},setHash:function(j,b,g,f,i,c){var h="";a(b,function(e,d){h+=(!h?"":"&")+escape(d)+"="+escape(e)});this.set(j,h,g,f,i,c)},get:function(i){var h=document.cookie,g,f=i+"=",d;if(!h){return}d=h.indexOf("; "+f);if(d==-1){d=h.indexOf(f);if(d!=0){return null}}else{d+=2}g=h.indexOf(";",d);if(g==-1){g=h.length}return unescape(h.substring(d+f.length,g))},set:function(i,b,g,f,h,c){document.cookie=i+"="+escape(b)+((g)?"; expires="+g.toGMTString():"")+((f)?"; path="+escape(f):"")+((h)?"; domain="+h:"")+((c)?"; secure":"")},remove:function(e,b){var c=new Date();c.setTime(c.getTime()-1000);this.set(e,"",c,b,c)}})})();tinymce.create("static tinymce.util.JSON",{serialize:function(e){var c,a,d=tinymce.util.JSON.serialize,b;if(e==null){return"null"}b=typeof e;if(b=="string"){a="\bb\tt\nn\ff\rr\"\"''\\\\";return'"'+e.replace(/([\u0080-\uFFFF\x00-\x1f\"])/g,function(g,f){c=a.indexOf(f);if(c+1){return"\\"+a.charAt(c+1)}g=f.charCodeAt().toString(16);return"\\u"+"0000".substring(g.length)+g})+'"'}if(b=="object"){if(e.hasOwnProperty&&e instanceof Array){for(c=0,a="[";c0?",":"")+d(e[c])}return a+"]"}a="{";for(c in e){a+=typeof e[c]!="function"?(a.length>1?',"':'"')+c+'":'+d(e[c]):""}return a+"}"}return""+e},parse:function(s){try{return eval("("+s+")")}catch(ex){}}});tinymce.create("static tinymce.util.XHR",{send:function(g){var a,e,b=window,h=0;g.scope=g.scope||this;g.success_scope=g.success_scope||g.scope;g.error_scope=g.error_scope||g.scope;g.async=g.async===false?false:true;g.data=g.data||"";function d(i){a=0;try{a=new ActiveXObject(i)}catch(c){}return a}a=b.XMLHttpRequest?new XMLHttpRequest():d("Microsoft.XMLHTTP")||d("Msxml2.XMLHTTP");if(a){if(a.overrideMimeType){a.overrideMimeType(g.content_type)}a.open(g.type||(g.data?"POST":"GET"),g.url,g.async);if(g.content_type){a.setRequestHeader("Content-Type",g.content_type)}a.setRequestHeader("X-Requested-With","XMLHttpRequest");a.send(g.data);function f(){if(!g.async||a.readyState==4||h++>10000){if(g.success&&h<10000&&a.status==200){g.success.call(g.success_scope,""+a.responseText,a,g)}else{if(g.error){g.error.call(g.error_scope,h>10000?"TIMED_OUT":"GENERAL",a,g)}}a=null}else{b.setTimeout(f,10)}}if(!g.async){return f()}e=b.setTimeout(f,10)}}});(function(){var c=tinymce.extend,b=tinymce.util.JSON,a=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(d){this.settings=c({},d);this.count=0},send:function(f){var e=f.error,d=f.success;f=c(this.settings,f);f.success=function(h,g){h=b.parse(h);if(typeof(h)=="undefined"){h={error:"JSON Parse error."}}if(h.error){e.call(f.error_scope||f.scope,h.error,g)}else{d.call(f.success_scope||f.scope,h.result)}};f.error=function(h,g){e.call(f.error_scope||f.scope,h,g)};f.data=b.serialize({id:f.id||"c"+(this.count++),method:f.method,params:f.params});f.content_type="application/json";a.send(f)},"static":{sendRPC:function(d){return new tinymce.util.JSONRequest().send(d)}}})}());(function(m){var k=m.each,j=m.is,i=m.isWebKit,d=m.isIE,a=/^(H[1-6R]|P|DIV|ADDRESS|PRE|FORM|T(ABLE|BODY|HEAD|FOOT|H|R|D)|LI|OL|UL|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|NOSCRIPT|MENU|ISINDEX|SAMP)$/,e=g("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),f=g("src,href,style,coords,shape"),c={"&":"&",'"':""","<":"<",">":">"},n=/[<>&\"]/g,b=/^([a-z0-9],?)+$/i,h=/<(\w+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)(\s*\/?)>/g,l=/(\w+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g;function g(q){var p={},o;q=q.split(",");for(o=q.length;o>=0;o--){p[q[o]]=1}return p}m.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,props:{"for":"htmlFor","class":"className",className:"className",checked:"checked",disabled:"disabled",maxlength:"maxLength",readonly:"readOnly",selected:"selected",value:"value",id:"id",name:"name",type:"type"},DOMUtils:function(u,q){var p=this,o;p.doc=u;p.win=window;p.files={};p.cssFlicker=false;p.counter=0;p.boxModel=!m.isIE||u.compatMode=="CSS1Compat";p.stdMode=u.documentMode===8;p.settings=q=m.extend({keep_values:false,hex_colors:1,process_html:1},q);if(m.isIE6){try{u.execCommand("BackgroundImageCache",false,true)}catch(r){p.cssFlicker=true}}if(q.valid_styles){p._styles={};k(q.valid_styles,function(t,s){p._styles[s]=m.explode(t)})}m.addUnload(p.destroy,p)},getRoot:function(){var o=this,p=o.settings;return(p&&o.get(p.root_element))||o.doc.body},getViewPort:function(p){var q,o;p=!p?this.win:p;q=p.document;o=this.boxModel?q.documentElement:q.body;return{x:p.pageXOffset||o.scrollLeft,y:p.pageYOffset||o.scrollTop,w:p.innerWidth||o.clientWidth,h:p.innerHeight||o.clientHeight}},getRect:function(s){var r,o=this,q;s=o.get(s);r=o.getPos(s);q=o.getSize(s);return{x:r.x,y:r.y,w:q.w,h:q.h}},getSize:function(r){var p=this,o,q;r=p.get(r);o=p.getStyle(r,"width");q=p.getStyle(r,"height");if(o.indexOf("px")===-1){o=0}if(q.indexOf("px")===-1){q=0}return{w:parseInt(o)||r.offsetWidth||r.clientWidth,h:parseInt(q)||r.offsetHeight||r.clientHeight}},getParent:function(q,p,o){return this.getParents(q,p,o,false)},getParents:function(z,v,s,y){var q=this,p,u=q.settings,x=[];z=q.get(z);y=y===undefined;if(u.strict_root){s=s||q.getRoot()}if(j(v,"string")){p=v;if(v==="*"){v=function(o){return o.nodeType==1}}else{v=function(o){return q.is(o,p)}}}while(z){if(z==s||!z.nodeType||z.nodeType===9){break}if(!v||v(z)){if(y){x.push(z)}else{return z}}z=z.parentNode}return y?x:null},get:function(o){var p;if(o&&this.doc&&typeof(o)=="string"){p=o;o=this.doc.getElementById(o);if(o&&o.id!==p){return this.doc.getElementsByName(p)[1]}}return o},getNext:function(p,o){return this._findSib(p,o,"nextSibling")},getPrev:function(p,o){return this._findSib(p,o,"previousSibling")},select:function(q,p){var o=this;return m.dom.Sizzle(q,o.get(p)||o.get(o.settings.root_element)||o.doc,[])},is:function(q,o){var p;if(q.length===undefined){if(o==="*"){return q.nodeType==1}if(b.test(o)){o=o.toLowerCase().split(/,/);q=q.nodeName.toLowerCase();for(p=o.length-1;p>=0;p--){if(o[p]==q){return true}}return false}}return m.dom.Sizzle.matches(o,q.nodeType?[q]:q).length>0},add:function(s,v,o,r,u){var q=this;return this.run(s,function(y){var x,t;x=j(v,"string")?q.doc.createElement(v):v;q.setAttribs(x,o);if(r){if(r.nodeType){x.appendChild(r)}else{q.setHTML(x,r)}}return !u?y.appendChild(x):x})},create:function(q,o,p){return this.add(this.doc.createElement(q),q,o,p,1)},createHTML:function(v,p,s){var u="",r=this,q;u+="<"+v;for(q in p){if(p.hasOwnProperty(q)){u+=" "+q+'="'+r.encode(p[q])+'"'}}if(m.is(s)){return u+">"+s+""}return u+" />"},remove:function(o,p){return this.run(o,function(r){var q,s;q=r.parentNode;if(!q){return null}if(p){while(s=r.firstChild){if(!m.isIE||s.nodeType!==3||s.nodeValue){q.insertBefore(s,r)}else{r.removeChild(s)}}}return q.removeChild(r)})},setStyle:function(r,o,p){var q=this;return q.run(r,function(v){var u,t;u=v.style;o=o.replace(/-(\D)/g,function(x,s){return s.toUpperCase()});if(q.pixelStyles.test(o)&&(m.is(p,"number")||/^[\-0-9\.]+$/.test(p))){p+="px"}switch(o){case"opacity":if(d){u.filter=p===""?"":"alpha(opacity="+(p*100)+")";if(!r.currentStyle||!r.currentStyle.hasLayout){u.display="inline-block"}}u[o]=u["-moz-opacity"]=u["-khtml-opacity"]=p||"";break;case"float":d?u.styleFloat=p:u.cssFloat=p;break;default:u[o]=p||""}if(q.settings.update_styles){q.setAttrib(v,"_mce_style")}})},getStyle:function(r,o,q){r=this.get(r);if(!r){return false}if(this.doc.defaultView&&q){o=o.replace(/[A-Z]/g,function(s){return"-"+s});try{return this.doc.defaultView.getComputedStyle(r,null).getPropertyValue(o)}catch(p){return null}}o=o.replace(/-(\D)/g,function(t,s){return s.toUpperCase()});if(o=="float"){o=d?"styleFloat":"cssFloat"}if(r.currentStyle&&q){return r.currentStyle[o]}return r.style[o]},setStyles:function(u,v){var q=this,r=q.settings,p;p=r.update_styles;r.update_styles=0;k(v,function(o,s){q.setStyle(u,s,o)});r.update_styles=p;if(r.update_styles){q.setAttrib(u,r.cssText)}},setAttrib:function(q,r,o){var p=this;if(!q||!r){return}if(p.settings.strict){r=r.toLowerCase()}return this.run(q,function(u){var t=p.settings;switch(r){case"style":if(!j(o,"string")){k(o,function(s,x){p.setStyle(u,x,s)});return}if(t.keep_values){if(o&&!p._isRes(o)){u.setAttribute("_mce_style",o,2)}else{u.removeAttribute("_mce_style",2)}}u.style.cssText=o;break;case"class":u.className=o||"";break;case"src":case"href":if(t.keep_values){if(t.url_converter){o=t.url_converter.call(t.url_converter_scope||p,o,r,u)}p.setAttrib(u,"_mce_"+r,o,2)}break;case"shape":u.setAttribute("_mce_style",o);break}if(j(o)&&o!==null&&o.length!==0){u.setAttribute(r,""+o,2)}else{u.removeAttribute(r,2)}})},setAttribs:function(q,r){var p=this;return this.run(q,function(o){k(r,function(s,t){p.setAttrib(o,t,s)})})},getAttrib:function(r,s,q){var o,p=this;r=p.get(r);if(!r||r.nodeType!==1){return false}if(!j(q)){q=""}if(/^(src|href|style|coords|shape)$/.test(s)){o=r.getAttribute("_mce_"+s);if(o){return o}}if(d&&p.props[s]){o=r[p.props[s]];o=o&&o.nodeValue?o.nodeValue:o}if(!o){o=r.getAttribute(s,2)}if(/^(checked|compact|declare|defer|disabled|ismap|multiple|nohref|noshade|nowrap|readonly|selected)$/.test(s)){if(r[p.props[s]]===true&&o===""){return s}return o?s:""}if(r.nodeName==="FORM"&&r.getAttributeNode(s)){return r.getAttributeNode(s).nodeValue}if(s==="style"){o=o||r.style.cssText;if(o){o=p.serializeStyle(p.parseStyle(o),r.nodeName);if(p.settings.keep_values&&!p._isRes(o)){r.setAttribute("_mce_style",o)}}}if(i&&s==="class"&&o){o=o.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(d){switch(s){case"rowspan":case"colspan":if(o===1){o=""}break;case"size":if(o==="+0"||o===20||o===0){o=""}break;case"width":case"height":case"vspace":case"checked":case"disabled":case"readonly":if(o===0){o=""}break;case"hspace":if(o===-1){o=""}break;case"maxlength":case"tabindex":if(o===32768||o===2147483647||o==="32768"){o=""}break;case"multiple":case"compact":case"noshade":case"nowrap":if(o===65535){return s}return q;case"shape":o=o.toLowerCase();break;default:if(s.indexOf("on")===0&&o){o=(""+o).replace(/^function\s+\w+\(\)\s+\{\s+(.*)\s+\}$/,"$1")}}}return(o!==undefined&&o!==null&&o!=="")?""+o:q},getPos:function(A,s){var p=this,o=0,z=0,u,v=p.doc,q;A=p.get(A);s=s||v.body;if(A){if(d&&!p.stdMode){A=A.getBoundingClientRect();u=p.boxModel?v.documentElement:v.body;o=p.getStyle(p.select("html")[0],"borderWidth");o=(o=="medium"||p.boxModel&&!p.isIE6)&&2||o;A.top+=p.win.self!=p.win.top?2:0;return{x:A.left+u.scrollLeft-o,y:A.top+u.scrollTop-o}}q=A;while(q&&q!=s&&q.nodeType){o+=q.offsetLeft||0;z+=q.offsetTop||0;q=q.offsetParent}q=A.parentNode;while(q&&q!=s&&q.nodeType){o-=q.scrollLeft||0;z-=q.scrollTop||0;q=q.parentNode}}return{x:o,y:z}},parseStyle:function(r){var u=this,v=u.settings,x={};if(!r){return x}function p(D,A,C){var z,B,o,y;z=x[D+"-top"+A];if(!z){return}B=x[D+"-right"+A];if(z!=B){return}o=x[D+"-bottom"+A];if(B!=o){return}y=x[D+"-left"+A];if(o!=y){return}x[C]=y;delete x[D+"-top"+A];delete x[D+"-right"+A];delete x[D+"-bottom"+A];delete x[D+"-left"+A]}function q(y,s,o,A){var z;z=x[s];if(!z){return}z=x[o];if(!z){return}z=x[A];if(!z){return}x[y]=x[s]+" "+x[o]+" "+x[A];delete x[s];delete x[o];delete x[A]}r=r.replace(/&(#?[a-z0-9]+);/g,"&$1_MCE_SEMI_");k(r.split(";"),function(s){var o,t=[];if(s){s=s.replace(/_MCE_SEMI_/g,";");s=s.replace(/url\([^\)]+\)/g,function(y){t.push(y);return"url("+t.length+")"});s=s.split(":");o=m.trim(s[1]);o=o.replace(/url\(([^\)]+)\)/g,function(z,y){return t[parseInt(y)-1]});o=o.replace(/rgb\([^\)]+\)/g,function(y){return u.toHex(y)});if(v.url_converter){o=o.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g,function(y,z){return"url("+v.url_converter.call(v.url_converter_scope||u,u.decode(z),"style",null)+")"})}x[m.trim(s[0]).toLowerCase()]=o}});p("border","","border");p("border","-width","border-width");p("border","-color","border-color");p("border","-style","border-style");p("padding","","padding");p("margin","","margin");q("border","border-width","border-style","border-color");if(d){if(x.border=="medium none"){x.border=""}}return x},serializeStyle:function(v,p){var q=this,r="";function u(s,o){if(o&&s){if(o.indexOf("-")===0){return}switch(o){case"font-weight":if(s==700){s="bold"}break;case"color":case"background-color":s=s.toLowerCase();break}r+=(r?" ":"")+o+": "+s+";"}}if(p&&q._styles){k(q._styles["*"],function(o){u(v[o],o)});k(q._styles[p.toLowerCase()],function(o){u(v[o],o)})}else{k(v,u)}return r},loadCSS:function(o){var q=this,r=q.doc,p;if(!o){o=""}p=q.select("head")[0];k(o.split(","),function(s){var t;if(q.files[s]){return}q.files[s]=true;t=q.create("link",{rel:"stylesheet",href:m._addVer(s)});if(d&&r.documentMode){t.onload=function(){r.recalc();t.onload=null}}p.appendChild(t)})},addClass:function(o,p){return this.run(o,function(q){var r;if(!p){return 0}if(this.hasClass(q,p)){return q.className}r=this.removeClass(q,p);return q.className=(r!=""?(r+" "):"")+p})},removeClass:function(q,r){var o=this,p;return o.run(q,function(t){var s;if(o.hasClass(t,r)){if(!p){p=new RegExp("(^|\\s+)"+r+"(\\s+|$)","g")}s=t.className.replace(p," ");s=m.trim(s!=" "?s:"");t.className=s;if(!s){t.removeAttribute("class");t.removeAttribute("className")}return s}return t.className})},hasClass:function(p,o){p=this.get(p);if(!p||!o){return false}return(" "+p.className+" ").indexOf(" "+o+" ")!==-1},show:function(o){return this.setStyle(o,"display","block")},hide:function(o){return this.setStyle(o,"display","none")},isHidden:function(o){o=this.get(o);return !o||o.style.display=="none"||this.getStyle(o,"display")=="none"},uniqueId:function(o){return(!o?"mce_":o)+(this.counter++)},setHTML:function(q,p){var o=this;return this.run(q,function(v){var r,t,s,z,u,r;p=o.processHTML(p);if(d){function y(){while(v.firstChild){v.firstChild.removeNode()}try{v.innerHTML="
                                                "+p;v.removeChild(v.firstChild)}catch(x){r=o.create("div");r.innerHTML="
                                                "+p;k(r.childNodes,function(B,A){if(A){v.appendChild(B)}})}}if(o.settings.fix_ie_paragraphs){p=p.replace(/

                                                <\/p>|]+)><\/p>|/gi,' 

                                                ')}y();if(o.settings.fix_ie_paragraphs){s=v.getElementsByTagName("p");for(t=s.length-1,r=0;t>=0;t--){z=s[t];if(!z.hasChildNodes()){if(!z._mce_keep){r=1;break}z.removeAttribute("_mce_keep")}}}if(r){p=p.replace(/

                                                ]+)>|

                                                /ig,'

                                                ');p=p.replace(/<\/p>/gi,"
                                                ");y();if(o.settings.fix_ie_paragraphs){s=v.getElementsByTagName("DIV");for(t=s.length-1;t>=0;t--){z=s[t];if(z._mce_tmp){u=o.doc.createElement("p");z.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi,function(A,x){var B;if(x!=="_mce_tmp"){B=z.getAttribute(x);if(!B&&x==="class"){B=z.className}u.setAttribute(x,B)}});for(r=0;r]+)\/>|/gi,"");if(q.keep_values){if(/)/g,"\n");t=t.replace(/^[\r\n]*|[\r\n]*$/g,"");t=t.replace(/^\s*(\/\/\s*|\]\]>|-->|\]\]-->)\s*$/g,"");return t}r=r.replace(/]+|)>([\s\S]*?)<\/script>/gi,function(s,x,t){if(!x){x=' type="text/javascript"'}x=x.replace(/src=\"([^\"]+)\"?/i,function(y,z){if(q.url_converter){z=p.encode(q.url_converter.call(q.url_converter_scope||p,p.decode(z),"src","script"))}return'_mce_src="'+z+'"'});if(m.trim(t)){v.push(o(t));t=""}return""+t+""});r=r.replace(/]+|)>([\s\S]*?)<\/style>/gi,function(s,x,t){if(t){v.push(o(t));t=""}return""+t+""});r=r.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(s,x,t){return""})}r=r.replace(//g,"");function u(s){return s.replace(h,function(y,z,x,t){return"<"+z+x.replace(l,function(B,A,E,D,C){var F;A=A.toLowerCase();E=E||D||C||"";if(e[A]){if(E==="false"||E==="0"){return}return A+'="'+A+'"'}if(f[A]&&x.indexOf("_mce_"+A)==-1){F=p.decode(E);if(q.url_converter&&(A=="src"||A=="href")){F=q.url_converter.call(q.url_converter_scope||p,F,A,z)}if(A=="style"){F=p.serializeStyle(p.parseStyle(F),A)}return A+'="'+E+'" _mce_'+A+'="'+p.encode(F)+'"'}return B})+t+">"})}r=u(r);r=r.replace(/MCE_SCRIPT:([0-9]+)/g,function(t,s){return v[s]})}return r},getOuterHTML:function(o){var p;o=this.get(o);if(!o){return null}if(o.outerHTML!==undefined){return o.outerHTML}p=(o.ownerDocument||this.doc).createElement("body");p.appendChild(o.cloneNode(true));return p.innerHTML},setOuterHTML:function(r,p,s){var o=this;function q(u,t,x){var y,v;v=x.createElement("body");v.innerHTML=t;y=v.lastChild;while(y){o.insertAfter(y.cloneNode(true),u);y=y.previousSibling}o.remove(u)}return this.run(r,function(u){u=o.get(u);if(u.nodeType==1){s=s||u.ownerDocument||o.doc;if(d){try{if(d&&u.nodeType==1){u.outerHTML=p}else{q(u,p,s)}}catch(t){q(u,p,s)}}else{q(u,p,s)}}})},decode:function(p){var q,r,o;if(/&[\w#]+;/.test(p)){q=this.doc.createElement("div");q.innerHTML=p;r=q.firstChild;o="";if(r){do{o+=r.nodeValue}while(r=r.nextSibling)}return o||p}return p},encode:function(o){return(""+o).replace(n,function(p){return c[p]})},insertAfter:function(o,p){p=this.get(p);return this.run(o,function(r){var q,s;q=p.parentNode;s=p.nextSibling;if(s){q.insertBefore(r,s)}else{q.appendChild(r)}return r})},isBlock:function(o){if(o.nodeType&&o.nodeType!==1){return false}o=o.nodeName||o;return a.test(o)},replace:function(s,r,p){var q=this;if(j(r,"array")){s=s.cloneNode(true)}return q.run(r,function(t){if(p){k(m.grep(t.childNodes),function(o){s.appendChild(o)})}return t.parentNode.replaceChild(s,t)})},rename:function(r,o){var q=this,p;if(r.nodeName!=o.toUpperCase()){p=q.create(o);k(q.getAttribs(r),function(s){q.setAttrib(p,s.nodeName,q.getAttrib(r,s.nodeName))});q.replace(p,r,1)}return p||r},findCommonAncestor:function(q,o){var r=q,p;while(r){p=o;while(p&&r!=p){p=p.parentNode}if(r==p){break}r=r.parentNode}if(!r&&q.ownerDocument){return q.ownerDocument.documentElement}return r},toHex:function(o){var q=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(o);function p(r){r=parseInt(r).toString(16);return r.length>1?r:"0"+r}if(q){o="#"+p(q[1])+p(q[2])+p(q[3]);return o}return o},getClasses:function(){var s=this,o=[],r,u={},v=s.settings.class_filter,q;if(s.classes){return s.classes}function x(t){k(t.imports,function(y){x(y)});k(t.cssRules||t.rules,function(y){switch(y.type||1){case 1:if(y.selectorText){k(y.selectorText.split(","),function(z){z=z.replace(/^\s*|\s*$|^\s\./g,"");if(/\.mce/.test(z)||!/\.[\w\-]+$/.test(z)){return}q=z;z=z.replace(/.*\.([a-z0-9_\-]+).*/i,"$1");if(v&&!(z=v(z,q))){return}if(!u[z]){o.push({"class":z});u[z]=1}})}break;case 3:x(y.styleSheet);break}})}try{k(s.doc.styleSheets,x)}catch(p){}if(o.length>0){s.classes=o}return o},run:function(u,r,q){var p=this,v;if(p.doc&&typeof(u)==="string"){u=p.get(u)}if(!u){return false}q=q||this;if(!u.nodeType&&(u.length||u.length===0)){v=[];k(u,function(s,o){if(s){if(typeof(s)=="string"){s=p.doc.getElementById(s)}v.push(r.call(q,s,o))}});return v}return r.call(q,u)},getAttribs:function(q){var p;q=this.get(q);if(!q){return[]}if(d){p=[];if(q.nodeName=="OBJECT"){return q.attributes}if(q.nodeName==="OPTION"&&this.getAttrib(q,"selected")){p.push({specified:1,nodeName:"selected"})}q.cloneNode(false).outerHTML.replace(/<\/?[\w:\-]+ ?|=[\"][^\"]+\"|=\'[^\']+\'|=[\w\-]+|>/gi,"").replace(/[\w:\-]+/gi,function(o){p.push({specified:1,nodeName:o})});return p}return q.attributes},destroy:function(p){var o=this;if(o.events){o.events.destroy()}o.win=o.doc=o.root=o.events=null;if(!p){m.removeUnload(o.destroy)}},createRng:function(){var o=this.doc;return o.createRange?o.createRange():new m.dom.Range(this)},nodeIndex:function(s,t){var o=0,q,r,p;if(s){for(q=s.nodeType,s=s.previousSibling,r=s;s;s=s.previousSibling){p=s.nodeType;if(t&&p==3){if(p==q||!s.nodeValue.length){continue}}o++;q=p}}return o},split:function(u,s,y){var z=this,o=z.createRng(),v,q,x;function p(A){var t,r=A.childNodes;if(A.nodeType==1&&A.getAttribute("_mce_type")=="bookmark"){return}for(t=r.length-1;t>=0;t--){p(r[t])}if(A.nodeType!=9){if(A.nodeType==3&&A.nodeValue.length>0){return}if(A.nodeType==1){r=A.childNodes;if(r.length==1&&r[0]&&r[0].nodeType==1&&r[0].getAttribute("_mce_type")=="bookmark"){A.parentNode.insertBefore(r[0],A)}if(r.length||/^(br|hr|input|img)$/i.test(A.nodeName)){return}}z.remove(A)}return A}if(u&&s){o.setStart(u.parentNode,z.nodeIndex(u));o.setEnd(s.parentNode,z.nodeIndex(s));v=o.extractContents();o=z.createRng();o.setStart(s.parentNode,z.nodeIndex(s)+1);o.setEnd(u.parentNode,z.nodeIndex(u)+1);q=o.extractContents();x=u.parentNode;x.insertBefore(p(v),u);if(y){x.replaceChild(y,s)}else{x.insertBefore(s,u)}x.insertBefore(p(q),u);z.remove(u);return y||s}},bind:function(s,o,r,q){var p=this;if(!p.events){p.events=new m.dom.EventUtils()}return p.events.add(s,o,r,q||this)},unbind:function(r,o,q){var p=this;if(!p.events){p.events=new m.dom.EventUtils()}return p.events.remove(r,o,q)},_findSib:function(r,o,p){var q=this,s=o;if(r){if(j(s,"string")){s=function(t){return q.is(t,o)}}for(r=r[p];r;r=r[p]){if(s(r)){return r}}}return null},_isRes:function(o){return/^(top|left|bottom|right|width|height)/i.test(o)||/;\s*(top|left|bottom|right|width|height)/i.test(o)}});m.DOM=new m.dom.DOMUtils(document,{process_html:0})})(tinymce);(function(a){function b(c){var N=this,e=c.doc,S=0,E=1,j=2,D=true,R=false,U="startOffset",h="startContainer",P="endContainer",z="endOffset",k=tinymce.extend,n=c.nodeIndex;k(N,{startContainer:e,startOffset:0,endContainer:e,endOffset:0,collapsed:D,commonAncestorContainer:e,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:q,setEnd:s,setStartBefore:g,setStartAfter:I,setEndBefore:J,setEndAfter:u,collapse:A,selectNode:x,selectNodeContents:F,compareBoundaryPoints:v,deleteContents:p,extractContents:H,cloneContents:d,insertNode:C,surroundContents:M,cloneRange:K});function q(V,t){B(D,V,t)}function s(V,t){B(R,V,t)}function g(t){q(t.parentNode,n(t))}function I(t){q(t.parentNode,n(t)+1)}function J(t){s(t.parentNode,n(t))}function u(t){s(t.parentNode,n(t)+1)}function A(t){if(t){N[P]=N[h];N[z]=N[U]}else{N[h]=N[P];N[U]=N[z]}N.collapsed=D}function x(t){g(t);u(t)}function F(t){q(t,0);s(t,t.nodeType===1?t.childNodes.length:t.nodeValue.length)}function v(W,X){var Z=N[h],Y=N[U],V=N[P],t=N[z];if(W===0){return G(Z,Y,Z,Y)}if(W===1){return G(Z,Y,V,t)}if(W===2){return G(V,t,V,t)}if(W===3){return G(V,t,Z,Y)}}function p(){m(j)}function H(){return m(S)}function d(){return m(E)}function C(Y){var V=this[h],t=this[U],X,W;if((V.nodeType===3||V.nodeType===4)&&V.nodeValue){if(!t){V.parentNode.insertBefore(Y,V)}else{if(t>=V.nodeValue.length){c.insertAfter(Y,V)}else{X=V.splitText(t);V.parentNode.insertBefore(Y,X)}}}else{if(V.childNodes.length>0){W=V.childNodes[t]}if(W){V.insertBefore(Y,W)}else{V.appendChild(Y)}}}function M(V){var t=N.extractContents();N.insertNode(V);V.appendChild(t);N.selectNode(V)}function K(){return k(new b(c),{startContainer:N[h],startOffset:N[U],endContainer:N[P],endOffset:N[z],collapsed:N.collapsed,commonAncestorContainer:N.commonAncestorContainer})}function O(t,V){var W;if(t.nodeType==3){return t}if(V<0){return t}W=t.firstChild;while(W&&V>0){--V;W=W.nextSibling}if(W){return W}return t}function l(){return(N[h]==N[P]&&N[U]==N[z])}function G(X,Z,V,Y){var aa,W,t,ab,ad,ac;if(X==V){if(Z==Y){return 0}if(Z0){N.collapse(V)}}else{N.collapse(V)}N.collapsed=l();N.commonAncestorContainer=c.findCommonAncestor(N[h],N[P])}function m(ab){var aa,X=0,ad=0,V,Z,W,Y,t,ac;if(N[h]==N[P]){return f(ab)}for(aa=N[P],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[h]){return r(aa,ab)}++X}for(aa=N[h],V=aa.parentNode;V;aa=V,V=V.parentNode){if(V==N[P]){return T(aa,ab)}++ad}Z=ad-X;W=N[h];while(Z>0){W=W.parentNode;Z--}Y=N[P];while(Z<0){Y=Y.parentNode;Z++}for(t=W.parentNode,ac=Y.parentNode;t!=ac;t=t.parentNode,ac=ac.parentNode){W=t;Y=ac}return o(W,Y,ab)}function f(Z){var ab,Y,X,aa,t,W,V;if(Z!=j){ab=e.createDocumentFragment()}if(N[U]==N[z]){return ab}if(N[h].nodeType==3){Y=N[h].nodeValue;X=Y.substring(N[U],N[z]);if(Z!=E){N[h].deleteData(N[U],N[z]-N[U]);N.collapse(D)}if(Z==j){return}ab.appendChild(e.createTextNode(X));return ab}aa=O(N[h],N[U]);t=N[z]-N[U];while(t>0){W=aa.nextSibling;V=y(aa,Z);if(ab){ab.appendChild(V)}--t;aa=W}if(Z!=E){N.collapse(D)}return ab}function r(ab,Y){var aa,Z,V,t,X,W;if(Y!=j){aa=e.createDocumentFragment()}Z=i(ab,Y);if(aa){aa.appendChild(Z)}V=n(ab);t=V-N[U];if(t<=0){if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}Z=ab.previousSibling;while(t>0){X=Z.previousSibling;W=y(Z,Y);if(aa){aa.insertBefore(W,aa.firstChild)}--t;Z=X}if(Y!=E){N.setEndBefore(ab);N.collapse(R)}return aa}function T(Z,Y){var ab,V,aa,t,X,W;if(Y!=j){ab=e.createDocumentFragment()}aa=Q(Z,Y);if(ab){ab.appendChild(aa)}V=n(Z);++V;t=N[z]-V;aa=Z.nextSibling;while(t>0){X=aa.nextSibling;W=y(aa,Y);if(ab){ab.appendChild(W)}--t;aa=X}if(Y!=E){N.setStartAfter(Z);N.collapse(D)}return ab}function o(Z,t,ac){var W,ae,Y,aa,ab,V,ad,X;if(ac!=j){ae=e.createDocumentFragment()}W=Q(Z,ac);if(ae){ae.appendChild(W)}Y=Z.parentNode;aa=n(Z);ab=n(t);++aa;V=ab-aa;ad=Z.nextSibling;while(V>0){X=ad.nextSibling;W=y(ad,ac);if(ae){ae.appendChild(W)}ad=X;--V}W=i(t,ac);if(ae){ae.appendChild(W)}if(ac!=E){N.setStartAfter(Z);N.collapse(D)}return ae}function i(aa,ab){var W=O(N[P],N[z]-1),ac,Z,Y,t,V,X=W!=N[P];if(W==aa){return L(W,X,R,ab)}ac=W.parentNode;Z=L(ac,R,R,ab);while(ac){while(W){Y=W.previousSibling;t=L(W,X,R,ab);if(ab!=j){Z.insertBefore(t,Z.firstChild)}X=D;W=Y}if(ac==aa){return Z}W=ac.previousSibling;ac=ac.parentNode;V=L(ac,R,R,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function Q(aa,ab){var X=O(N[h],N[U]),Y=X!=N[h],ac,Z,W,t,V;if(X==aa){return L(X,Y,D,ab)}ac=X.parentNode;Z=L(ac,R,D,ab);while(ac){while(X){W=X.nextSibling;t=L(X,Y,D,ab);if(ab!=j){Z.appendChild(t)}Y=D;X=W}if(ac==aa){return Z}X=ac.nextSibling;ac=ac.parentNode;V=L(ac,R,D,ab);if(ab!=j){V.appendChild(Z)}Z=V}}function L(t,Y,ab,ac){var X,W,Z,V,aa;if(Y){return y(t,ac)}if(t.nodeType==3){X=t.nodeValue;if(ab){V=N[U];W=X.substring(V);Z=X.substring(0,V)}else{V=N[z];W=X.substring(0,V);Z=X.substring(V)}if(ac!=E){t.nodeValue=Z}if(ac==j){return}aa=t.cloneNode(R);aa.nodeValue=W;return aa}if(ac==j){return}return t.cloneNode(R)}function y(V,t){if(t!=j){return t==E?V.cloneNode(D):V}V.parentNode.removeChild(V)}}a.Range=b})(tinymce.dom);(function(){function a(g){var i=this,j="\uFEFF",e,h,d=g.dom,c=true,f=false;function b(){var n=g.getRng(),k=d.createRng(),m,o;m=n.item?n.item(0):n.parentElement();if(m.ownerDocument!=d.doc){return k}if(n.item||!m.hasChildNodes()){k.setStart(m.parentNode,d.nodeIndex(m));k.setEnd(k.startContainer,k.startOffset+1);return k}o=g.isCollapsed();function l(s){var u,q,t,p,A=0,x,y,z,r,v;r=n.duplicate();r.collapse(s);u=d.create("a");z=r.parentElement();z.appendChild(u);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){k[s?"setStartAfter":"setEndAfter"](z);d.remove(u);return}p=tinymce.grep(z.childNodes);x=p.length-1;while(A<=x){y=Math.floor((A+x)/2);z.insertBefore(u,p[y]);r.moveToElementText(u);v=n.compareEndPoints(s?"StartToStart":"EndToEnd",r);if(v>0){A=y+1}else{if(v<0){x=y-1}else{found=true;break}}}q=v>0||y==0?u.nextSibling:u.previousSibling;if(q.nodeType==1){d.remove(u);t=d.nodeIndex(q);q=q.parentNode;if(!s||y>0){t++}}else{if(v>0||y==0){r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=r.text.length}else{r.setEndPoint(s?"StartToStart":"EndToEnd",n);t=q.nodeValue.length-r.text.length}d.remove(u)}k[s?"setStart":"setEnd"](q,t)}l(true);if(!o){l()}return k}this.addRange=function(l){var t,A,z=g.dom.doc,r=z.body,u,n,y,o,s,k,p,q,x,m;this.destroy();y=l.startContainer;o=l.startOffset;s=l.endContainer;k=l.endOffset;t=r.createTextRange();if(y==z||s==z){t=r.createTextRange();t.collapse();t.select();return}if(y.nodeType==1&&y.hasChildNodes()){q=y.childNodes.length-1;if(o>q){x=1;y=y.childNodes[q]}else{y=y.childNodes[o]}if(y.nodeType==3){o=0}}if(s.nodeType==1&&s.hasChildNodes()){q=s.childNodes.length-1;if(k==0){m=1;s=s.childNodes[0]}else{s=s.childNodes[Math.min(q,k-1)];if(s.nodeType==3){k=s.nodeValue.length}}}if(y==s&&y.nodeType==1){if(/^(IMG|TABLE)$/.test(y.nodeName)&&o!=k){t=r.createControlRange();t.addElement(y)}else{t=r.createTextRange();if(!y.hasChildNodes()&&y.canHaveHTML){y.innerHTML=j}t.moveToElementText(y);if(y.innerHTML==j){t.collapse(c);y.removeChild(y.firstChild)}}if(o==k){t.collapse(k<=l.endContainer.childNodes.length-1)}t.select();t.scrollIntoView();return}t=r.createTextRange();p=z.createElement("span");p.innerHTML=" ";if(y.nodeType==3){if(x){d.insertAfter(p,y)}else{y.parentNode.insertBefore(p,y)}t.moveToElementText(p);p.parentNode.removeChild(p);t.move("character",o)}else{t.moveToElementText(y);if(x){t.collapse(f)}}if(y==s&&y.nodeType==3){try{t.moveEnd("character",k-o);t.select();t.scrollIntoView()}catch(v){}return}A=r.createTextRange();if(s.nodeType==3){s.parentNode.insertBefore(p,s);A.moveToElementText(p);p.parentNode.removeChild(p);A.move("character",k);t.setEndPoint("EndToStart",A)}else{A.moveToElementText(s);A.collapse(!!m);t.setEndPoint("EndToEnd",A)}t.select();t.scrollIntoView()};this.getRangeAt=function(){if(!e||!tinymce.dom.RangeUtils.compareRanges(h,g.getRng())){e=b();h=g.getRng()}try{e.startContainer.nextSibling}catch(k){e=b();h=null}return e};this.destroy=function(){h=e=null};if(g.dom.boxModel){(function(){var q=d.doc,l=q.body,n,o;q.documentElement.unselectable=c;function p(r,u){var s=l.createTextRange();try{s.moveToPoint(r,u)}catch(t){s=null}return s}function m(s){var r;if(s.button){r=p(s.x,s.y);if(r){if(r.compareEndPoints("StartToStart",o)>0){r.setEndPoint("StartToStart",o)}else{r.setEndPoint("EndToEnd",o)}r.select()}}else{k()}}function k(){d.unbind(q,"mouseup",k);d.unbind(q,"mousemove",m);n=0}d.bind(q,"mousedown",function(r){if(r.target.nodeName==="HTML"){if(n){k()}n=1;o=p(r.x,r.y);if(o){d.bind(q,"mouseup",k);d.bind(q,"mousemove",m);o.select()}}})})()}}tinymce.dom.TridentSelection=a})();(function(){var p=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,d=Object.prototype.toString,n=false;var b=function(E,t,B,v){B=B||[];var e=t=t||document;if(t.nodeType!==1&&t.nodeType!==9){return[]}if(!E||typeof E!=="string"){return B}var C=[],D,z,H,G,A,s,r=true,x=o(t);p.lastIndex=0;while((D=p.exec(E))!==null){C.push(D[1]);if(D[2]){s=RegExp.rightContext;break}}if(C.length>1&&j.exec(E)){if(C.length===2&&f.relative[C[0]]){z=g(C[0]+C[1],t)}else{z=f.relative[C[0]]?[t]:b(C.shift(),t);while(C.length){E=C.shift();if(f.relative[E]){E+=C.shift()}z=g(E,z)}}}else{if(!v&&C.length>1&&t.nodeType===9&&!x&&f.match.ID.test(C[0])&&!f.match.ID.test(C[C.length-1])){var I=b.find(C.shift(),t,x);t=I.expr?b.filter(I.expr,I.set)[0]:I.set[0]}if(t){var I=v?{expr:C.pop(),set:a(v)}:b.find(C.pop(),C.length===1&&(C[0]==="~"||C[0]==="+")&&t.parentNode?t.parentNode:t,x);z=I.expr?b.filter(I.expr,I.set):I.set;if(C.length>0){H=a(z)}else{r=false}while(C.length){var u=C.pop(),y=u;if(!f.relative[u]){u=""}else{y=C.pop()}if(y==null){y=t}f.relative[u](H,y,x)}}else{H=C=[]}}if(!H){H=z}if(!H){throw"Syntax error, unrecognized expression: "+(u||E)}if(d.call(H)==="[object Array]"){if(!r){B.push.apply(B,H)}else{if(t&&t.nodeType===1){for(var F=0;H[F]!=null;F++){if(H[F]&&(H[F]===true||H[F].nodeType===1&&h(t,H[F]))){B.push(z[F])}}}else{for(var F=0;H[F]!=null;F++){if(H[F]&&H[F].nodeType===1){B.push(z[F])}}}}}else{a(H,B)}if(s){b(s,e,B,v);b.uniqueSort(B)}return B};b.uniqueSort=function(r){if(c){n=false;r.sort(c);if(n){for(var e=1;e":function(x,r,y){var u=typeof r==="string";if(u&&!/\W/.test(r)){r=y?r:r.toUpperCase();for(var s=0,e=x.length;s=0)){if(!s){e.push(v)}}else{if(s){r[u]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(r,e){for(var s=0;e[s]===false;s++){}return e[s]&&o(e[s])?r[1]:r[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(r[1]+(r[2]||1))-0;e[3]=r[3]-0}e[0]=i++;return e},ATTR:function(u,r,s,e,v,x){var t=u[1].replace(/\\/g,"");if(!x&&f.attrMap[t]){u[1]=f.attrMap[t]}if(u[2]==="~="){u[4]=" "+u[4]+" "}return u},PSEUDO:function(u,r,s,e,v){if(u[1]==="not"){if(u[3].match(p).length>1||/^\w/.test(u[3])){u[3]=b(u[3],null,null,r)}else{var t=b.filter(u[3],r,s,true^v);if(!s){e.push.apply(e,t)}return false}}else{if(f.match.POS.test(u[0])||f.match.CHILD.test(u[0])){return true}}return u},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(s,r,e){return !!b(e[3],s).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(r,e){return e===0},last:function(s,r,e,t){return r===t.length-1},even:function(r,e){return e%2===0},odd:function(r,e){return e%2===1},lt:function(s,r,e){return re[3]-0},nth:function(s,r,e){return e[3]-0==r},eq:function(s,r,e){return e[3]-0==r}},filter:{PSEUDO:function(x,s,t,y){var r=s[1],u=f.filters[r];if(u){return u(x,t,s,y)}else{if(r==="contains"){return(x.textContent||x.innerText||"").indexOf(s[3])>=0}else{if(r==="not"){var v=s[3];for(var t=0,e=v.length;t=0)}}},ID:function(r,e){return r.nodeType===1&&r.getAttribute("id")===e},TAG:function(r,e){return(e==="*"&&r.nodeType===1)||r.nodeName===e},CLASS:function(r,e){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(v,t){var s=t[1],e=f.attrHandle[s]?f.attrHandle[s](v):v[s]!=null?v[s]:v.getAttribute(s),x=e+"",u=t[2],r=t[4];return e==null?u==="!=":u==="="?x===r:u==="*="?x.indexOf(r)>=0:u==="~="?(" "+x+" ").indexOf(r)>=0:!r?x&&e!==false:u==="!="?x!=r:u==="^="?x.indexOf(r)===0:u==="$="?x.substr(x.length-r.length)===r:u==="|="?x===r||x.substr(0,r.length+1)===r+"-":false},POS:function(u,r,s,v){var e=r[2],t=f.setFilters[e];if(t){return t(u,s,r,v)}}}};var j=f.match.POS;for(var l in f.match){f.match[l]=new RegExp(f.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var a=function(r,e){r=Array.prototype.slice.call(r);if(e){e.push.apply(e,r);return e}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(k){a=function(u,t){var r=t||[];if(d.call(u)==="[object Array]"){Array.prototype.push.apply(r,u)}else{if(typeof u.length==="number"){for(var s=0,e=u.length;s";var e=document.documentElement;e.insertBefore(r,e.firstChild);if(!!document.getElementById(s)){f.find.ID=function(u,v,x){if(typeof v.getElementById!=="undefined"&&!x){var t=v.getElementById(u[1]);return t?t.id===u[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===u[1]?[t]:undefined:[]}};f.filter.ID=function(v,t){var u=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&u&&u.nodeValue===t}}e.removeChild(r)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){f.find.TAG=function(r,v){var u=v.getElementsByTagName(r[1]);if(r[1]==="*"){var t=[];for(var s=0;u[s];s++){if(u[s].nodeType===1){t.push(u[s])}}u=t}return u}}e.innerHTML="";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){f.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var e=b,s=document.createElement("div");s.innerHTML="

                                                ";if(s.querySelectorAll&&s.querySelectorAll(".TEST").length===0){return}b=function(x,v,t,u){v=v||document;if(!u&&v.nodeType===9&&!o(v)){try{return a(v.querySelectorAll(x),t)}catch(y){}}return e(x,v,t,u)};for(var r in e){b[r]=e[r]}})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="
                                                ";if(e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}f.order.splice(1,0,"CLASS");f.find.CLASS=function(r,s,t){if(typeof s.getElementsByClassName!=="undefined"&&!t){return s.getElementsByClassName(r[1])}}})()}function m(r,x,v,B,y,A){var z=r=="previousSibling"&&!A;for(var t=0,s=B.length;t0){u=e;break}}}e=e[r]}B[t]=u}}}var h=document.compareDocumentPosition?function(r,e){return r.compareDocumentPosition(e)&16}:function(r,e){return r!==e&&(r.contains?r.contains(e):true)};var o=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&e.ownerDocument.documentElement.nodeName!=="HTML"};var g=function(e,y){var t=[],u="",v,s=y.nodeType?[y]:y;while((v=f.match.PSEUDO.exec(e))){u+=v[0];e=e.replace(f.match.PSEUDO,"")}e=f.relative[e]?e+"*":e;for(var x=0,r=s.length;x=0;h--){k=g[h];if(k.obj===l){j._remove(k.obj,k.name,k.cfunc);k.obj=k.cfunc=null;g.splice(h,1)}}}},cancel:function(g){if(!g){return false}this.stop(g);return this.prevent(g)},stop:function(g){if(g.stopPropagation){g.stopPropagation()}else{g.cancelBubble=true}return false},prevent:function(g){if(g.preventDefault){g.preventDefault()}else{g.returnValue=false}return false},destroy:function(){var g=this;f(g.events,function(j,h){g._remove(j.obj,j.name,j.cfunc);j.obj=j.cfunc=null});g.events=[];g=null},_add:function(h,i,g){if(h.attachEvent){h.attachEvent("on"+i,g)}else{if(h.addEventListener){h.addEventListener(i,g,false)}else{h["on"+i]=g}}},_remove:function(i,j,h){if(i){try{if(i.detachEvent){i.detachEvent("on"+j,h)}else{if(i.removeEventListener){i.removeEventListener(j,h,false)}else{i["on"+j]=null}}}catch(g){}}},_pageInit:function(h){var g=this;if(g.domLoaded){return}g.domLoaded=true;f(g.inits,function(i){i()});g.inits=[]},_wait:function(i){var g=this,h=i.document;if(i.tinyMCE_GZ&&tinyMCE_GZ.loaded){g.domLoaded=1;return}if(h.attachEvent){h.attachEvent("onreadystatechange",function(){if(h.readyState==="complete"){h.detachEvent("onreadystatechange",arguments.callee);g._pageInit(i)}});if(h.documentElement.doScroll&&i==i.top){(function(){if(g.domLoaded){return}try{h.documentElement.doScroll("left")}catch(j){setTimeout(arguments.callee,0);return}g._pageInit(i)})()}}else{if(h.addEventListener){g._add(i,"DOMContentLoaded",function(){g._pageInit(i)})}}g._add(i,"load",function(){g._pageInit(i)})},_stoppers:{preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}}});a=d.dom.Event=new d.dom.EventUtils();a._wait(window);d.addUnload(function(){a.destroy()})})(tinymce);(function(a){a.dom.Element=function(f,d){var b=this,e,c;b.settings=d=d||{};b.id=f;b.dom=e=d.dom||a.DOM;if(!a.isIE){c=e.get(b.id)}a.each(("getPos,getRect,getParent,add,setStyle,getStyle,setStyles,setAttrib,setAttribs,getAttrib,addClass,removeClass,hasClass,getOuterHTML,setOuterHTML,remove,show,hide,isHidden,setHTML,get").split(/,/),function(g){b[g]=function(){var h=[f],j;for(j=0;j_';if(j.startContainer==k&&j.endContainer==k){k.body.innerHTML=i}else{j.deleteContents();if(k.body.childNodes.length==0){k.body.innerHTML=i}else{j.insertNode(j.createContextualFragment(i))}}l=f.dom.get("__caret");j=k.createRange();j.setStartBefore(l);j.setEndBefore(l);f.setRng(j);f.dom.remove("__caret")}else{if(j.item){k.execCommand("Delete",false,null);j=f.getRng()}j.pasteHTML(i)}f.onSetContent.dispatch(f,g)},getStart:function(){var f=this,g=f.getRng(),h;if(g.duplicate||g.item){if(g.item){return g.item(0)}g=g.duplicate();g.collapse(1);h=g.parentElement();if(h&&h.nodeName=="BODY"){return h.firstChild||h}return h}else{h=g.startContainer;if(h.nodeType==1&&h.hasChildNodes()){h=h.childNodes[Math.min(h.childNodes.length-1,g.startOffset)]}if(h&&h.nodeType==3){return h.parentNode}return h}},getEnd:function(){var g=this,h=g.getRng(),i,f;if(h.duplicate||h.item){if(h.item){return h.item(0)}h=h.duplicate();h.collapse(0);i=h.parentElement();if(i&&i.nodeName=="BODY"){return i.lastChild||i}return i}else{i=h.endContainer;f=h.endOffset;if(i.nodeType==1&&i.hasChildNodes()){i=i.childNodes[f>0?f-1:f]}if(i&&i.nodeType==3){return i.parentNode}return i}},getBookmark:function(q,r){var u=this,m=u.dom,g,j,i,n,h,o,p,l="\uFEFF",s;function f(v,x){var t=0;d(m.select(v),function(z,y){if(z==x){t=y}});return t}if(q==2){function k(){var v=u.getRng(true),t=m.getRoot(),x={};function y(B,G){var A=B[G?"startContainer":"endContainer"],F=B[G?"startOffset":"endOffset"],z=[],C,E,D=0;if(A.nodeType==3){if(r){for(C=A.previousSibling;C&&C.nodeType==3;C=C.previousSibling){F+=C.nodeValue.length}}z.push(F)}else{E=A.childNodes;if(F>=E.length&&E.length){D=1;F=Math.max(0,E.length-1)}z.push(u.dom.nodeIndex(E[F],r)+D)}for(;A&&A!=t;A=A.parentNode){z.push(u.dom.nodeIndex(A,r))}return z}x.start=y(v,true);if(!u.isCollapsed()){x.end=y(v)}return x}return k()}if(q){return{rng:u.getRng()}}g=u.getRng();i=m.uniqueId();n=tinyMCE.activeEditor.selection.isCollapsed();s="overflow:hidden;line-height:0px";if(g.duplicate||g.item){if(!g.item){j=g.duplicate();g.collapse();g.pasteHTML(''+l+"");if(!n){j.collapse(false);j.pasteHTML(''+l+"")}}else{o=g.item(0);h=o.nodeName;return{name:h,index:f(h,o)}}}else{o=u.getNode();h=o.nodeName;if(h=="IMG"){return{name:h,index:f(h,o)}}j=g.cloneRange();if(!n){j.collapse(false);j.insertNode(m.create("span",{_mce_type:"bookmark",id:i+"_end",style:s},l))}g.collapse(true);g.insertNode(m.create("span",{_mce_type:"bookmark",id:i+"_start",style:s},l))}u.moveToBookmark({id:i,keep:1});return{id:i}},moveToBookmark:function(m){var q=this,l=q.dom,i,h,f,p,j,r,n,o;if(q.tridentSel){q.tridentSel.destroy()}if(m){if(m.start){f=l.createRng();p=l.getRoot();function g(x){var s=m[x?"start":"end"],t,u,v;if(s){for(u=p,t=s.length-1;t>=1;t--){u=u.childNodes[s[t]]}if(x){f.setStart(u,s[0])}else{f.setEnd(u,s[0])}}}g(true);g();q.setRng(f)}else{if(m.id){function k(z){var t=l.get(m.id+"_"+z),y,s,v,x,u=m.keep;if(t){y=t.parentNode;if(z=="start"){if(!u){s=l.nodeIndex(t)}else{y=t;s=1}j=r=y;n=o=s}else{if(!u){s=l.nodeIndex(t)}else{y=t;s=1}r=y;o=s}if(!u){x=t.previousSibling;v=t.nextSibling;d(c.grep(t.childNodes),function(A){if(A.nodeType==3){A.nodeValue=A.nodeValue.replace(/\uFEFF/g,"")}});while(t=l.get(m.id+"_"+z)){l.remove(t,1)}if(x&&v&&x.nodeType==v.nodeType&&x.nodeType==3){s=x.nodeValue.length;x.appendData(v.nodeValue);l.remove(v);if(z=="start"){j=r=x;n=o=s}else{r=x;o=s}}}}}k("start");k("end");f=l.createRng();f.setStart(j,n);f.setEnd(r,o);q.setRng(f)}else{if(m.name){q.select(l.select(m.name)[m.index])}else{if(m.rng){q.setRng(m.rng)}}}}}},select:function(k,j){var i=this,l=i.dom,g=l.createRng(),f;f=l.nodeIndex(k);g.setStart(k.parentNode,f);g.setEnd(k.parentNode,f+1);if(j){function h(m,o){var n=new c.dom.TreeWalker(m,m);do{if(m.nodeType==3&&c.trim(m.nodeValue).length!=0){if(o){g.setStart(m,0)}else{g.setEnd(m,m.nodeValue.length)}return}if(m.nodeName=="BR"){if(o){g.setStartBefore(m)}else{g.setEndBefore(m)}return}}while(m=(o?n.next():n.prev()))}h(k,1);h(k)}i.setRng(g);return k},isCollapsed:function(){var f=this,h=f.getRng(),g=f.getSel();if(!h||h.item){return false}if(h.compareEndPoints){return h.compareEndPoints("StartToEnd",h)===0}return !g||h.collapsed},collapse:function(f){var g=this,h=g.getRng(),i;if(h.item){i=h.item(0);h=this.win.document.body.createTextRange();h.moveToElementText(i)}h.collapse(!!f);g.setRng(h)},getSel:function(){var g=this,f=this.win;return f.getSelection?f.getSelection():f.document.selection},getRng:function(j){var g=this,h,i;if(j&&g.tridentSel){return g.tridentSel.getRangeAt(0)}try{if(h=g.getSel()){i=h.rangeCount>0?h.getRangeAt(0):(h.createRange?h.createRange():g.win.document.createRange())}}catch(f){}if(!i){i=g.win.document.createRange?g.win.document.createRange():g.win.document.body.createTextRange()}if(g.selectedRange&&g.explicitRange){if(i.compareBoundaryPoints(i.START_TO_START,g.selectedRange)===0&&i.compareBoundaryPoints(i.END_TO_END,g.selectedRange)===0){i=g.explicitRange}else{g.selectedRange=null;g.explicitRange=null}}return i},setRng:function(i){var h,g=this;if(!g.tridentSel){h=g.getSel();if(h){g.explicitRange=i;h.removeAllRanges();h.addRange(i);g.selectedRange=h.getRangeAt(0)}}else{if(i.cloneRange){g.tridentSel.addRange(i);return}try{i.select()}catch(f){}}},setNode:function(g){var f=this;f.setContent(f.dom.getOuterHTML(g));return g},getNode:function(){var g=this,f=g.getRng(),h=g.getSel(),i;if(f.setStart){if(!f){return g.dom.getRoot()}i=f.commonAncestorContainer;if(!f.collapsed){if(f.startContainer==f.endContainer){if(f.startOffset-f.endOffset<2){if(f.startContainer.hasChildNodes()){i=f.startContainer.childNodes[f.startOffset]}}}if(c.isWebKit&&h.anchorNode&&h.anchorNode.nodeType==1){return h.anchorNode.childNodes[h.anchorOffset]}}if(i&&i.nodeType==3){return i.parentNode}return i}return f.item?f.item(0):f.parentElement()},getSelectedBlocks:function(g,f){var i=this,j=i.dom,m,h,l,k=[];m=j.getParent(g||i.getStart(),j.isBlock);h=j.getParent(f||i.getEnd(),j.isBlock);if(m){k.push(m)}if(m&&h&&m!=h){l=m;while((l=l.nextSibling)&&l!=h){if(j.isBlock(l)){k.push(l)}}}if(h&&m!=h){k.push(h)}return k},destroy:function(g){var f=this;f.win=null;if(f.tridentSel){f.tridentSel.destroy()}if(!g){c.removeUnload(f.destroy)}}})})(tinymce);(function(a){a.create("tinymce.dom.XMLWriter",{node:null,XMLWriter:function(c){function b(){var e=document.implementation;if(!e||!e.createDocument){try{return new ActiveXObject("MSXML2.DOMDocument")}catch(d){}try{return new ActiveXObject("Microsoft.XmlDom")}catch(d){}}else{return e.createDocument("","",null)}}this.doc=b();this.valid=a.isOpera||a.isWebKit;this.reset()},reset:function(){var b=this,c=b.doc;if(c.firstChild){c.removeChild(c.firstChild)}b.node=c.appendChild(c.createElement("html"))},writeStartElement:function(c){var b=this;b.node=b.node.appendChild(b.doc.createElement(c))},writeAttribute:function(c,b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.setAttribute(c,b)},writeEndElement:function(){this.node=this.node.parentNode},writeFullEndElement:function(){var b=this,c=b.node;c.appendChild(b.doc.createTextNode(""));b.node=c.parentNode},writeText:function(b){if(this.valid){b=b.replace(/>/g,"%MCGT%")}this.node.appendChild(this.doc.createTextNode(b))},writeCDATA:function(b){this.node.appendChild(this.doc.createCDATASection(b))},writeComment:function(b){if(a.isIE){b=b.replace(/^\-|\-$/g," ")}this.node.appendChild(this.doc.createComment(b.replace(/\-\-/g," ")))},getContent:function(){var b;b=this.doc.xml||new XMLSerializer().serializeToString(this.doc);b=b.replace(/<\?[^?]+\?>||<\/html>||]+>/g,"");b=b.replace(/ ?\/>/g," />");if(this.valid){b=b.replace(/\%MCGT%/g,">")}return b}})})(tinymce);(function(a){a.create("tinymce.dom.StringWriter",{str:null,tags:null,count:0,settings:null,indent:null,StringWriter:function(b){this.settings=a.extend({indent_char:" ",indentation:0},b);this.reset()},reset:function(){this.indent="";this.str="";this.tags=[];this.count=0},writeStartElement:function(b){this._writeAttributesEnd();this.writeRaw("<"+b);this.tags.push(b);this.inAttr=true;this.count++;this.elementCount=this.count},writeAttribute:function(d,b){var c=this;c.writeRaw(" "+c.encode(d)+'="'+c.encode(b)+'"')},writeEndElement:function(){var b;if(this.tags.length>0){b=this.tags.pop();if(this._writeAttributesEnd(1)){this.writeRaw("")}if(this.settings.indentation>0){this.writeRaw("\n")}}},writeFullEndElement:function(){if(this.tags.length>0){this._writeAttributesEnd();this.writeRaw("");if(this.settings.indentation>0){this.writeRaw("\n")}}},writeText:function(b){this._writeAttributesEnd();this.writeRaw(this.encode(b));this.count++},writeCDATA:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeComment:function(b){this._writeAttributesEnd();this.writeRaw("");this.count++},writeRaw:function(b){this.str+=b},encode:function(b){return b.replace(/[<>&"]/g,function(c){switch(c){case"<":return"<";case">":return">";case"&":return"&";case'"':return"""}return c})},getContent:function(){return this.str},_writeAttributesEnd:function(b){if(!this.inAttr){return}this.inAttr=false;if(b&&this.elementCount==this.count){this.writeRaw(" />");return false}this.writeRaw(">");return true}})})(tinymce);(function(e){var g=e.extend,f=e.each,b=e.util.Dispatcher,d=e.isIE,a=e.isGecko;function c(h){return h.replace(/([?+*])/g,".$1")}e.create("tinymce.dom.Serializer",{Serializer:function(j){var i=this;i.key=0;i.onPreProcess=new b(i);i.onPostProcess=new b(i);try{i.writer=new e.dom.XMLWriter()}catch(h){i.writer=new e.dom.StringWriter()}i.settings=j=g({dom:e.DOM,valid_nodes:0,node_filter:0,attr_filter:0,invalid_attrs:/^(_mce_|_moz_|sizset|sizcache)/,closed:/^(br|hr|input|meta|img|link|param|area)$/,entity_encoding:"named",entities:"160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro",valid_elements:"*[*]",extended_valid_elements:0,invalid_elements:0,fix_table_elements:1,fix_list_elements:true,fix_content_duplication:true,convert_fonts_to_spans:false,font_size_classes:0,apply_source_formatting:0,indent_mode:"simple",indent_char:"\t",indent_levels:1,remove_linebreaks:1,remove_redundant_brs:1,element_format:"xhtml"},j);i.dom=j.dom;i.schema=j.schema;if(j.entity_encoding=="named"&&!j.entities){j.entity_encoding="raw"}if(j.remove_redundant_brs){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/(
                                                \s*)+<\/(p|h[1-6]|div|li)>/gi,function(n,m,o){if(/^
                                                \s*<\//.test(n)){return""}return n})})}if(j.element_format=="html"){i.onPostProcess.add(function(k,l){l.content=l.content.replace(/<([^>]+) \/>/g,"<$1>")})}if(j.fix_list_elements){i.onPreProcess.add(function(v,s){var l,z,y=["ol","ul"],u,t,q,k=/^(OL|UL)$/,A;function m(r,x){var o=x.split(","),p;while((r=r.previousSibling)!=null){for(p=0;p=1767){f(i.dom.select("p table",l.node).reverse(),function(p){var o=i.dom.getParent(p.parentNode,"table,p");if(o.nodeName!="TABLE"){try{i.dom.split(o,p)}catch(m){}}})}})}},setEntities:function(o){var n=this,j,m,h={},k;if(n.entityLookup){return}j=o.split(",");for(m=0;m1){f(q[1].split("|"),function(u){var p={},t;k=k||[];u=u.replace(/::/g,"~");u=/^([!\-])?([\w*.?~_\-]+|)([=:<])?(.+)?$/.exec(u);u[2]=u[2].replace(/~/g,":");if(u[1]=="!"){r=r||[];r.push(u[2])}if(u[1]=="-"){for(t=0;t=1767)){p=j.createHTMLDocument("");f(r.nodeName=="BODY"?r.childNodes:[r],function(h){p.body.appendChild(p.importNode(h,true))});if(r.nodeName!="BODY"){r=p.body.firstChild}else{r=p.body}i=k.dom.doc;k.dom.doc=p}k.key=""+(parseInt(k.key)+1);if(!q.no_events){q.node=r;k.onPreProcess.dispatch(k,q)}k.writer.reset();k._info=q;k._serializeNode(r,q.getInner);q.content=k.writer.getContent();if(i){k.dom.doc=i}if(!q.no_events){k.onPostProcess.dispatch(k,q)}k._postProcess(q);q.node=null;return e.trim(q.content)},_postProcess:function(n){var i=this,k=i.settings,j=n.content,m=[],l;if(n.format=="html"){l=i._protect({content:j,patterns:[{pattern:/(]*>)(.*?)(<\/script>)/g},{pattern:/(]*>)(.*?)(<\/noscript>)/g},{pattern:/(]*>)(.*?)(<\/style>)/g},{pattern:/(]*>)(.*?)(<\/pre>)/g,encode:1},{pattern:/()/g}]});j=l.content;if(k.entity_encoding!=="raw"){j=i._encode(j)}if(!n.set){j=j.replace(/

                                                \s+<\/p>|]+)>\s+<\/p>/g,k.entity_encoding=="numeric"?" 

                                                ":" 

                                                ");if(k.remove_linebreaks){j=j.replace(/\r?\n|\r/g," ");j=j.replace(/(<[^>]+>)\s+/g,"$1 ");j=j.replace(/\s+(<\/[^>]+>)/g," $1");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object) ([^>]+)>\s+/g,"<$1 $2>");j=j.replace(/<(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>\s+/g,"<$1>");j=j.replace(/\s+<\/(p|h[1-6]|blockquote|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>/g,"")}if(k.apply_source_formatting&&k.indent_mode=="simple"){j=j.replace(/<(\/?)(ul|hr|table|meta|link|tbody|tr|object|body|head|html|map)(|[^>]+)>\s*/g,"\n<$1$2$3>\n");j=j.replace(/\s*<(p|h[1-6]|blockquote|div|title|style|pre|script|td|li|area)(|[^>]+)>/g,"\n<$1$2>");j=j.replace(/<\/(p|h[1-6]|blockquote|div|title|style|pre|script|td|li)>\s*/g,"\n");j=j.replace(/\n\n/g,"\n")}}j=i._unprotect(j,l);j=j.replace(//g,"");if(k.entity_encoding=="raw"){j=j.replace(/

                                                 <\/p>|]+)> <\/p>/g,"\u00a0

                                                ")}j=j.replace(/]+|)>([\s\S]*?)<\/noscript>/g,function(h,p,o){return""+i.dom.decode(o.replace(//g,""))+""})}n.content=j},_serializeNode:function(D,I){var z=this,A=z.settings,x=z.writer,q,j,u,F,E,H,B,h,y,k,r,C,p,m,G,o;if(!A.node_filter||A.node_filter(D)){switch(D.nodeType){case 1:if(D.hasAttribute?D.hasAttribute("_mce_bogus"):D.getAttribute("_mce_bogus")){return}p=G=false;q=D.hasChildNodes();k=D.getAttribute("_mce_name")||D.nodeName.toLowerCase();o=D.getAttribute("_mce_type");if(o){if(!z._info.cleanup){p=true;return}else{G=1}}if(d){if(D.scopeName!=="HTML"&&D.scopeName!=="html"){k=D.scopeName+":"+k}}if(k.indexOf("mce:")===0){k=k.substring(4)}if(!G){if(!z.validElementsRE||!z.validElementsRE.test(k)||(z.invalidElementsRE&&z.invalidElementsRE.test(k))||I){p=true;break}}if(d){if(A.fix_content_duplication){if(D._mce_serialized==z.key){return}D._mce_serialized=z.key}if(k.charAt(0)=="/"){k=k.substring(1)}}else{if(a){if(D.nodeName==="BR"&&D.getAttribute("type")=="_moz"){return}}}if(A.validate_children){if(z.elementName&&!z.schema.isValid(z.elementName,k)){p=true;break}z.elementName=k}r=z.findRule(k);if(!r){p=true;break}k=r.name||k;m=A.closed.test(k);if((!q&&r.noEmpty)||(d&&!k)){p=true;break}if(r.requiredAttribs){H=r.requiredAttribs;for(F=H.length-1;F>=0;F--){if(this.dom.getAttrib(D,H[F])!==""){break}}if(F==-1){p=true;break}}x.writeStartElement(k);if(r.attribs){for(F=0,B=r.attribs,E=B.length;F-1;F--){h=B[F];if(h.specified){H=h.nodeName.toLowerCase();if(A.invalid_attrs.test(H)||!r.validAttribsRE.test(H)){continue}C=z.findAttribRule(r,H);y=z._getAttrib(D,C,H);if(y!==null){x.writeAttribute(H,y)}}}}if(o&&G){x.writeAttribute("_mce_type",o)}if(k==="script"&&e.trim(D.innerHTML)){x.writeText("// ");x.writeCDATA(D.innerHTML.replace(/|<\[CDATA\[|\]\]>/g,""));q=false;break}if(r.padd){if(q&&(u=D.firstChild)&&u.nodeType===1&&D.childNodes.length===1){if(u.hasAttribute?u.hasAttribute("_mce_bogus"):u.getAttribute("_mce_bogus")){x.writeText("\u00a0")}}else{if(!q){x.writeText("\u00a0")}}}break;case 3:if(A.validate_children&&z.elementName&&!z.schema.isValid(z.elementName,"#text")){return}return x.writeText(D.nodeValue);case 4:return x.writeCDATA(D.nodeValue);case 8:return x.writeComment(D.nodeValue)}}else{if(D.nodeType==1){q=D.hasChildNodes()}}if(q&&!m){u=D.firstChild;while(u){z._serializeNode(u);z.elementName=k;u=u.nextSibling}}if(!p){if(!m){x.writeFullEndElement()}else{x.writeEndElement()}}},_protect:function(j){var i=this;j.items=j.items||[];function h(l){return l.replace(/[\r\n\\]/g,function(m){if(m==="\n"){return"\\n"}else{if(m==="\\"){return"\\\\"}}return"\\r"})}function k(l){return l.replace(/\\[\\rn]/g,function(m){if(m==="\\n"){return"\n"}else{if(m==="\\\\"){return"\\"}}return"\r"})}f(j.patterns,function(l){j.content=k(h(j.content).replace(l.pattern,function(n,o,m,p){m=k(m);if(l.encode){m=i._encode(m)}j.items.push(m);return o+""+p}))});return j},_unprotect:function(i,j){i=i.replace(/\"))}if(a&&j.ListBox){if(a.Button||a.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarEnd"},b.createHTML("span",null,""))}}if(b.stdMode){e+=''+j.renderHTML()+""}else{e+=""+j.renderHTML()+""}if(f&&j.ListBox){if(f.Button||f.SplitButton){e+=b.createHTML("td",{"class":"mceToolbarStart"},b.createHTML("span",null,""))}}}g="mceToolbarEnd";if(j.Button){g+=" mceToolbarEndButton"}else{if(j.SplitButton){g+=" mceToolbarEndSplitButton"}else{if(j.ListBox){g+=" mceToolbarEndListBox"}}}e+=b.createHTML("td",{"class":g},b.createHTML("span",null,""));return b.createHTML("table",{id:l.id,"class":"mceToolbar"+(m["class"]?" "+m["class"]:""),cellpadding:"0",cellspacing:"0",align:l.settings.align||""},""+e+"")}});(function(b){var a=b.util.Dispatcher,c=b.each;b.create("tinymce.AddOnManager",{items:[],urls:{},lookup:{},onAdd:new a(this),get:function(d){return this.lookup[d]},requireLangPack:function(e){var d=b.settings;if(d&&d.language){b.ScriptLoader.add(this.urls[e]+"/langs/"+d.language+".js")}},add:function(e,d){this.items.push(d);this.lookup[e]=d;this.onAdd.dispatch(this,e,d);return d},load:function(h,e,d,g){var f=this;if(f.urls[h]){return}if(e.indexOf("/")!=0&&e.indexOf("://")==-1){e=b.baseURL+"/"+e}f.urls[h]=e.substring(0,e.lastIndexOf("/"));b.ScriptLoader.add(e,d,g)}});b.PluginManager=new b.AddOnManager();b.ThemeManager=new b.AddOnManager()}(tinymce));(function(j){var g=j.each,d=j.extend,k=j.DOM,i=j.dom.Event,f=j.ThemeManager,b=j.PluginManager,e=j.explode,h=j.util.Dispatcher,a,c=0;j.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(j.documentBaseURL)){j.documentBaseURL+="/"}j.baseURL=new j.util.URI(j.documentBaseURL).toAbsolute(j.baseURL);j.baseURI=new j.util.URI(j.baseURL);j.onBeforeUnload=new h(j);i.add(window,"beforeunload",function(l){j.onBeforeUnload.dispatch(j,l)});j.onAddEditor=new h(j);j.onRemoveEditor=new h(j);j.EditorManager=d(j,{editors:[],i18n:{},activeEditor:null,init:function(q){var n=this,p,l=j.ScriptLoader,u,o=[],m;function r(x,y,t){var v=x[y];if(!v){return}if(j.is(v,"string")){t=v.replace(/\.\w+$/,"");t=t?j.resolve(t):0;v=j.resolve(v)}return v.apply(t||this,Array.prototype.slice.call(arguments,2))}q=d({theme:"simple",language:"en"},q);n.settings=q;i.add(document,"init",function(){var s,v;r(q,"onpageload");switch(q.mode){case"exact":s=q.elements||"";if(s.length>0){g(e(s),function(x){if(k.get(x)){m=new j.Editor(x,q);o.push(m);m.render(1)}else{g(document.forms,function(y){g(y.elements,function(z){if(z.name===x){x="mce_editor_"+c++;k.setAttrib(z,"id",x);m=new j.Editor(x,q);o.push(m);m.render(1)}})})}})}break;case"textareas":case"specific_textareas":function t(y,x){return x.constructor===RegExp?x.test(y.className):k.hasClass(y,x)}g(k.select("textarea"),function(x){if(q.editor_deselector&&t(x,q.editor_deselector)){return}if(!q.editor_selector||t(x,q.editor_selector)){u=k.get(x.name);if(!x.id&&!u){x.id=x.name}if(!x.id||n.get(x.id)){x.id=k.uniqueId()}m=new j.Editor(x.id,q);o.push(m);m.render(1)}});break}if(q.oninit){s=v=0;g(o,function(x){v++;if(!x.initialized){x.onInit.add(function(){s++;if(s==v){r(q,"oninit")}})}else{s++}if(s==v){r(q,"oninit")}})}})},get:function(l){if(l===a){return this.editors}return this.editors[l]},getInstanceById:function(l){return this.get(l)},add:function(m){var l=this,n=l.editors;n[m.id]=m;n.push(m);l._setActive(m);l.onAddEditor.dispatch(l,m);return m},remove:function(n){var m=this,l,o=m.editors;if(!o[n.id]){return null}delete o[n.id];for(l=0;l':"",visual_table_class:"mceItemTable",visual:1,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",valid_elements:"@[id|class|style|title|dir';if(F.document_base_url!=m.documentBaseURL){E.iframeHTML+=''}E.iframeHTML+='';if(m.relaxedDomain){E.iframeHTML+=''; + + bi = s.body_id || 'tinymce'; + if (bi.indexOf('=') != -1) { + bi = t.getParam('body_id', '', 'hash'); + bi = bi[t.id] || bi; + } + + bc = s.body_class || ''; + if (bc.indexOf('=') != -1) { + bc = t.getParam('body_class', '', 'hash'); + bc = bc[t.id] || ''; + } + + t.iframeHTML += ''; + + // Domain relaxing enabled, then set document domain + if (tinymce.relaxedDomain) { + // We need to write the contents here in IE since multiple writes messes up refresh button and back button + if (isIE || (tinymce.isOpera && parseFloat(opera.version()) >= 9.5)) + u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";var ed = window.parent.tinyMCE.get("' + t.id + '");document.write(ed.iframeHTML);document.close();ed.setupIframe();})()'; + else if (tinymce.isOpera) + u = 'javascript:(function(){document.open();document.domain="' + document.domain + '";document.close();ed.setupIframe();})()'; + } + + // Create iframe + n = DOM.add(o.iframeContainer, 'iframe', { + id : t.id + "_ifr", + src : u || 'javascript:""', // Workaround for HTTPS warning in IE6/7 + frameBorder : '0', + style : { + width : '100%', + height : h + } + }); + + t.contentAreaContainer = o.iframeContainer; + DOM.get(o.editorContainer).style.display = t.orgDisplay; + DOM.get(t.id).style.display = 'none'; + + if (!isIE || !tinymce.relaxedDomain) + t.setupIframe(); + + e = n = o = null; // Cleanup + }, + + setupIframe : function() { + var t = this, s = t.settings, e = DOM.get(t.id), d = t.getDoc(), h, b; + + // Setup iframe body + if (!isIE || !tinymce.relaxedDomain) { + d.open(); + d.write(t.iframeHTML); + d.close(); + } + + // Design mode needs to be added here Ctrl+A will fail otherwise + if (!isIE) { + try { + if (!s.readonly) + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } + } + + // IE needs to use contentEditable or it will display non secure items for HTTPS + if (isIE) { + // It will not steal focus if we hide it while setting contentEditable + b = t.getBody(); + DOM.hide(b); + + if (!s.readonly) + b.contentEditable = true; + + DOM.show(b); + } + + t.dom = new tinymce.dom.DOMUtils(t.getDoc(), { + keep_values : true, + url_converter : t.convertURL, + url_converter_scope : t, + hex_colors : s.force_hex_style_colors, + class_filter : s.class_filter, + update_styles : 1, + fix_ie_paragraphs : 1, + valid_styles : s.valid_styles + }); + + t.schema = new tinymce.dom.Schema(); + + t.serializer = new tinymce.dom.Serializer(extend(s, { + valid_elements : s.verify_html === false ? '*[*]' : s.valid_elements, + dom : t.dom, + schema : t.schema + })); + + t.selection = new tinymce.dom.Selection(t.dom, t.getWin(), t.serializer); + + t.formatter = new tinymce.Formatter(this); + + // Register default formats + t.formatter.register({ + alignleft : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}}, + {selector : 'img,table', styles : {'float' : 'left'}} + ], + + aligncenter : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}}, + {selector : 'img', styles : {display : 'block', marginLeft : 'auto', marginRight : 'auto'}}, + {selector : 'table', styles : {marginLeft : 'auto', marginRight : 'auto'}} + ], + + alignright : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}}, + {selector : 'img,table', styles : {'float' : 'right'}} + ], + + alignfull : [ + {selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'justify'}} + ], + + bold : [ + {inline : 'strong'}, + {inline : 'span', styles : {fontWeight : 'bold'}}, + {inline : 'b'} + ], + + italic : [ + {inline : 'em'}, + {inline : 'span', styles : {fontStyle : 'italic'}}, + {inline : 'i'} + ], + + underline : [ + {inline : 'span', styles : {textDecoration : 'underline'}, exact : true}, + {inline : 'u'} + ], + + strikethrough : [ + {inline : 'span', styles : {textDecoration : 'line-through'}, exact : true}, + {inline : 'u'} + ], + + forecolor : {inline : 'span', styles : {color : '%value'}}, + hilitecolor : {inline : 'span', styles : {backgroundColor : '%value'}}, + fontname : {inline : 'span', styles : {fontFamily : '%value'}}, + fontsize : {inline : 'span', styles : {fontSize : '%value'}}, + fontsize_class : {inline : 'span', attributes : {'class' : '%value'}}, + blockquote : {block : 'blockquote', wrapper : 1, remove : 'all'}, + + removeformat : [ + {selector : 'b,strong,em,i,font,u,strike', remove : 'all', split : true, expand : false, block_expand : true, deep : true}, + {selector : 'span', attributes : ['style', 'class'], remove : 'empty', split : true, expand : false, deep : true}, + {selector : '*', attributes : ['style', 'class'], split : false, expand : false, deep : true} + ] + }); + + // Register default block formats + each('p h1 h2 h3 h4 h5 h6 div address pre div code dt dd samp'.split(/\s/), function(name) { + t.formatter.register(name, {block : name, remove : 'all'}); + }); + + // Register user defined formats + t.formatter.register(t.settings.formats); + + t.undoManager = new tinymce.UndoManager(t); + + // Pass through + t.undoManager.onAdd.add(function(um, l) { + if (!l.initial) + return t.onChange.dispatch(t, l, um); + }); + + t.undoManager.onUndo.add(function(um, l) { + return t.onUndo.dispatch(t, l, um); + }); + + t.undoManager.onRedo.add(function(um, l) { + return t.onRedo.dispatch(t, l, um); + }); + + t.forceBlocks = new tinymce.ForceBlocks(t, { + forced_root_block : s.forced_root_block + }); + + t.editorCommands = new tinymce.EditorCommands(t); + + // Pass through + t.serializer.onPreProcess.add(function(se, o) { + return t.onPreProcess.dispatch(t, o, se); + }); + + t.serializer.onPostProcess.add(function(se, o) { + return t.onPostProcess.dispatch(t, o, se); + }); + + t.onPreInit.dispatch(t); + + if (!s.gecko_spellcheck) + t.getBody().spellcheck = 0; + + if (!s.readonly) + t._addEvents(); + + t.controlManager.onPostRender.dispatch(t, t.controlManager); + t.onPostRender.dispatch(t); + + if (s.directionality) + t.getBody().dir = s.directionality; + + if (s.nowrap) + t.getBody().style.whiteSpace = "nowrap"; + + if (s.custom_elements) { + function handleCustom(ed, o) { + each(explode(s.custom_elements), function(v) { + var n; + + if (v.indexOf('~') === 0) { + v = v.substring(1); + n = 'span'; + } else + n = 'div'; + + o.content = o.content.replace(new RegExp('<(' + v + ')([^>]*)>', 'g'), '<' + n + ' _mce_name="$1"$2>'); + o.content = o.content.replace(new RegExp('', 'g'), ''); + }); + }; + + t.onBeforeSetContent.add(handleCustom); + t.onPostProcess.add(function(ed, o) { + if (o.set) + handleCustom(ed, o); + }); + } + + if (s.handle_node_change_callback) { + t.onNodeChange.add(function(ed, cm, n) { + t.execCallback('handle_node_change_callback', t.id, n, -1, -1, true, t.selection.isCollapsed()); + }); + } + + if (s.save_callback) { + t.onSaveContent.add(function(ed, o) { + var h = t.execCallback('save_callback', t.id, o.content, t.getBody()); + + if (h) + o.content = h; + }); + } + + if (s.onchange_callback) { + t.onChange.add(function(ed, l) { + t.execCallback('onchange_callback', t, l); + }); + } + + if (s.convert_newlines_to_brs) { + t.onBeforeSetContent.add(function(ed, o) { + if (o.initial) + o.content = o.content.replace(/\r?\n/g, '
                                                '); + }); + } + + if (s.fix_nesting && isIE) { + t.onBeforeSetContent.add(function(ed, o) { + o.content = t._fixNesting(o.content); + }); + } + + if (s.preformatted) { + t.onPostProcess.add(function(ed, o) { + o.content = o.content.replace(/^\s*/, ''); + o.content = o.content.replace(/<\/pre>\s*$/, ''); + + if (o.set) + o.content = '
                                                ' + o.content + '
                                                '; + }); + } + + if (s.verify_css_classes) { + t.serializer.attribValueFilter = function(n, v) { + var s, cl; + + if (n == 'class') { + // Build regexp for classes + if (!t.classesRE) { + cl = t.dom.getClasses(); + + if (cl.length > 0) { + s = ''; + + each (cl, function(o) { + s += (s ? '|' : '') + o['class']; + }); + + t.classesRE = new RegExp('(' + s + ')', 'gi'); + } + } + + return !t.classesRE || /(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(v) || t.classesRE.test(v) ? v : ''; + } + + return v; + }; + } + + if (s.cleanup_callback) { + t.onBeforeSetContent.add(function(ed, o) { + o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o); + }); + + t.onPreProcess.add(function(ed, o) { + if (o.set) + t.execCallback('cleanup_callback', 'insert_to_editor_dom', o.node, o); + + if (o.get) + t.execCallback('cleanup_callback', 'get_from_editor_dom', o.node, o); + }); + + t.onPostProcess.add(function(ed, o) { + if (o.set) + o.content = t.execCallback('cleanup_callback', 'insert_to_editor', o.content, o); + + if (o.get) + o.content = t.execCallback('cleanup_callback', 'get_from_editor', o.content, o); + }); + } + + if (s.save_callback) { + t.onGetContent.add(function(ed, o) { + if (o.save) + o.content = t.execCallback('save_callback', t.id, o.content, t.getBody()); + }); + } + + if (s.handle_event_callback) { + t.onEvent.add(function(ed, e, o) { + if (t.execCallback('handle_event_callback', e, ed, o) === false) + Event.cancel(e); + }); + } + + // Add visual aids when new contents is added + t.onSetContent.add(function() { + t.addVisual(t.getBody()); + }); + + // Remove empty contents + if (s.padd_empty_editor) { + t.onPostProcess.add(function(ed, o) { + o.content = o.content.replace(/^(]*>( | |\s|\u00a0|)<\/p>[\r\n]*|
                                                [\r\n]*)$/, ''); + }); + } + + if (isGecko) { + // Fix gecko link bug, when a link is placed at the end of block elements there is + // no way to move the caret behind the link. This fix adds a bogus br element after the link + function fixLinks(ed, o) { + each(ed.dom.select('a'), function(n) { + var pn = n.parentNode; + + if (ed.dom.isBlock(pn) && pn.lastChild === n) + ed.dom.add(pn, 'br', {'_mce_bogus' : 1}); + }); + }; + + t.onExecCommand.add(function(ed, cmd) { + if (cmd === 'CreateLink') + fixLinks(ed); + }); + + t.onSetContent.add(t.selection.onSetContent.add(fixLinks)); + + if (!s.readonly) { + try { + // Design mode must be set here once again to fix a bug where + // Ctrl+A/Delete/Backspace didn't work if the editor was added using mceAddControl then removed then added again + d.designMode = 'Off'; + d.designMode = 'On'; + } catch (ex) { + // Will fail on Gecko if the editor is placed in an hidden container element + // The design mode will be set ones the editor is focused + } + } + } + + // A small timeout was needed since firefox will remove. Bug: #1838304 + setTimeout(function () { + if (t.removed) + return; + + t.load({initial : true, format : (s.cleanup_on_startup ? 'html' : 'raw')}); + t.startContent = t.getContent({format : 'raw'}); + t.initialized = true; + + t.onInit.dispatch(t); + t.execCallback('setupcontent_callback', t.id, t.getBody(), t.getDoc()); + t.execCallback('init_instance_callback', t); + t.focus(true); + t.nodeChanged({initial : 1}); + + // Load specified content CSS last + if (s.content_css) { + tinymce.each(explode(s.content_css), function(u) { + t.dom.loadCSS(t.documentBaseURI.toAbsolute(u)); + }); + } + + // Handle auto focus + if (s.auto_focus) { + setTimeout(function () { + var ed = tinymce.get(s.auto_focus); + + ed.selection.select(ed.getBody(), 1); + ed.selection.collapse(1); + ed.getWin().focus(); + }, 100); + } + }, 1); + + e = null; + }, + + + focus : function(sf) { + var oed, t = this, ce = t.settings.content_editable, ieRng, controlElm, doc = t.getDoc(); + + if (!sf) { + // Get selected control element + ieRng = t.selection.getRng(); + if (ieRng.item) { + controlElm = ieRng.item(0); + } + + // Is not content editable + if (!ce) + t.getWin().focus(); + + // Restore selected control element + // This is needed when for example an image is selected within a + // layer a call to focus will then remove the control selection + if (controlElm && controlElm.ownerDocument == doc) { + ieRng = doc.body.createControlRange(); + ieRng.addElement(controlElm); + ieRng.select(); + } + + } + + if (tinymce.activeEditor != t) { + if ((oed = tinymce.activeEditor) != null) + oed.onDeactivate.dispatch(oed, t); + + t.onActivate.dispatch(t, oed); + } + + tinymce._setActive(t); + }, + + execCallback : function(n) { + var t = this, f = t.settings[n], s; + + if (!f) + return; + + // Look through lookup + if (t.callbackLookup && (s = t.callbackLookup[n])) { + f = s.func; + s = s.scope; + } + + if (is(f, 'string')) { + s = f.replace(/\.\w+$/, ''); + s = s ? tinymce.resolve(s) : 0; + f = tinymce.resolve(f); + t.callbackLookup = t.callbackLookup || {}; + t.callbackLookup[n] = {func : f, scope : s}; + } + + return f.apply(s || t, Array.prototype.slice.call(arguments, 1)); + }, + + translate : function(s) { + var c = this.settings.language || 'en', i18n = tinymce.i18n; + + if (!s) + return ''; + + return i18n[c + '.' + s] || s.replace(/{\#([^}]+)\}/g, function(a, b) { + return i18n[c + '.' + b] || '{#' + b + '}'; + }); + }, + + getLang : function(n, dv) { + return tinymce.i18n[(this.settings.language || 'en') + '.' + n] || (is(dv) ? dv : '{#' + n + '}'); + }, + + getParam : function(n, dv, ty) { + var tr = tinymce.trim, v = is(this.settings[n]) ? this.settings[n] : dv, o; + + if (ty === 'hash') { + o = {}; + + if (is(v, 'string')) { + each(v.indexOf('=') > 0 ? v.split(/[;,](?![^=;,]*(?:[;,]|$))/) : v.split(','), function(v) { + v = v.split('='); + + if (v.length > 1) + o[tr(v[0])] = tr(v[1]); + else + o[tr(v[0])] = tr(v); + }); + } else + o = v; + + return o; + } + + return v; + }, + + nodeChanged : function(o) { + var t = this, s = t.selection, n = (isIE ? s.getNode() : s.getStart()) || t.getBody(); + + // Fix for bug #1896577 it seems that this can not be fired while the editor is loading + if (t.initialized) { + o = o || {}; + n = isIE && n.ownerDocument != t.getDoc() ? t.getBody() : n; // Fix for IE initial state + + // Get parents and add them to object + o.parents = []; + t.dom.getParent(n, function(node) { + if (node.nodeName == 'BODY') + return true; + + o.parents.push(node); + }); + + t.onNodeChange.dispatch( + t, + o ? o.controlManager || t.controlManager : t.controlManager, + n, + s.isCollapsed(), + o + ); + } + }, + + addButton : function(n, s) { + var t = this; + + t.buttons = t.buttons || {}; + t.buttons[n] = s; + }, + + addCommand : function(n, f, s) { + this.execCommands[n] = {func : f, scope : s || this}; + }, + + addQueryStateHandler : function(n, f, s) { + this.queryStateCommands[n] = {func : f, scope : s || this}; + }, + + addQueryValueHandler : function(n, f, s) { + this.queryValueCommands[n] = {func : f, scope : s || this}; + }, + + addShortcut : function(pa, desc, cmd_func, sc) { + var t = this, c; + + if (!t.settings.custom_shortcuts) + return false; + + t.shortcuts = t.shortcuts || {}; + + if (is(cmd_func, 'string')) { + c = cmd_func; + + cmd_func = function() { + t.execCommand(c, false, null); + }; + } + + if (is(cmd_func, 'object')) { + c = cmd_func; + + cmd_func = function() { + t.execCommand(c[0], c[1], c[2]); + }; + } + + each(explode(pa), function(pa) { + var o = { + func : cmd_func, + scope : sc || this, + desc : desc, + alt : false, + ctrl : false, + shift : false + }; + + each(explode(pa, '+'), function(v) { + switch (v) { + case 'alt': + case 'ctrl': + case 'shift': + o[v] = true; + break; + + default: + o.charCode = v.charCodeAt(0); + o.keyCode = v.toUpperCase().charCodeAt(0); + } + }); + + t.shortcuts[(o.ctrl ? 'ctrl' : '') + ',' + (o.alt ? 'alt' : '') + ',' + (o.shift ? 'shift' : '') + ',' + o.keyCode] = o; + }); + + return true; + }, + + execCommand : function(cmd, ui, val, a) { + var t = this, s = 0, o, st; + + if (!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(cmd) && (!a || !a.skip_focus)) + t.focus(); + + o = {}; + t.onBeforeExecCommand.dispatch(t, cmd, ui, val, o); + if (o.terminate) + return false; + + // Command callback + if (t.execCallback('execcommand_callback', t.id, t.selection.getNode(), cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Registred commands + if (o = t.execCommands[cmd]) { + st = o.func.call(o.scope, ui, val); + + // Fall through on true + if (st !== true) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return st; + } + } + + // Plugin commands + each(t.plugins, function(p) { + if (p.execCommand && p.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + s = 1; + return false; + } + }); + + if (s) + return true; + + // Theme commands + if (t.theme && t.theme.execCommand && t.theme.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Execute global commands + if (tinymce.GlobalCommands.execCommand(t, cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Editor commands + if (t.editorCommands.execCommand(cmd, ui, val)) { + t.onExecCommand.dispatch(t, cmd, ui, val, a); + return true; + } + + // Browser commands + t.getDoc().execCommand(cmd, ui, val); + t.onExecCommand.dispatch(t, cmd, ui, val, a); + }, + + queryCommandState : function(cmd) { + var t = this, o, s; + + // Is hidden then return undefined + if (t._isHidden()) + return; + + // Registred commands + if (o = t.queryStateCommands[cmd]) { + s = o.func.call(o.scope); + + // Fall though on true + if (s !== true) + return s; + } + + // Registred commands + o = t.editorCommands.queryCommandState(cmd); + if (o !== -1) + return o; + + // Browser commands + try { + return this.getDoc().queryCommandState(cmd); + } catch (ex) { + // Fails sometimes see bug: 1896577 + } + }, + + queryCommandValue : function(c) { + var t = this, o, s; + + // Is hidden then return undefined + if (t._isHidden()) + return; + + // Registred commands + if (o = t.queryValueCommands[c]) { + s = o.func.call(o.scope); + + // Fall though on true + if (s !== true) + return s; + } + + // Registred commands + o = t.editorCommands.queryCommandValue(c); + if (is(o)) + return o; + + // Browser commands + try { + return this.getDoc().queryCommandValue(c); + } catch (ex) { + // Fails sometimes see bug: 1896577 + } + }, + + show : function() { + var t = this; + + DOM.show(t.getContainer()); + DOM.hide(t.id); + t.load(); + }, + + hide : function() { + var t = this, d = t.getDoc(); + + // Fixed bug where IE has a blinking cursor left from the editor + if (isIE && d) + d.execCommand('SelectAll'); + + // We must save before we hide so Safari doesn't crash + t.save(); + DOM.hide(t.getContainer()); + DOM.setStyle(t.id, 'display', t.orgDisplay); + }, + + isHidden : function() { + return !DOM.isHidden(this.id); + }, + + setProgressState : function(b, ti, o) { + this.onSetProgressState.dispatch(this, b, ti, o); + + return b; + }, + + load : function(o) { + var t = this, e = t.getElement(), h; + + if (e) { + o = o || {}; + o.load = true; + + // Double encode existing entities in the value + h = t.setContent(is(e.value) ? e.value : e.innerHTML, o); + o.element = e; + + if (!o.no_events) + t.onLoadContent.dispatch(t, o); + + o.element = e = null; + + return h; + } + }, + + save : function(o) { + var t = this, e = t.getElement(), h, f; + + if (!e || !t.initialized) + return; + + o = o || {}; + o.save = true; + + // Add undo level will trigger onchange event + if (!o.no_events) { + t.undoManager.typing = 0; + t.undoManager.add(); + } + + o.element = e; + h = o.content = t.getContent(o); + + if (!o.no_events) + t.onSaveContent.dispatch(t, o); + + h = o.content; + + if (!/TEXTAREA|INPUT/i.test(e.nodeName)) { + e.innerHTML = h; + + // Update hidden form element + if (f = DOM.getParent(t.id, 'form')) { + each(f.elements, function(e) { + if (e.name == t.id) { + e.value = h; + return false; + } + }); + } + } else + e.value = h; + + o.element = e = null; + + return h; + }, + + setContent : function(h, o) { + var t = this; + + o = o || {}; + o.format = o.format || 'html'; + o.set = true; + o.content = h; + + if (!o.no_events) + t.onBeforeSetContent.dispatch(t, o); + + // Padd empty content in Gecko and Safari. Commands will otherwise fail on the content + // It will also be impossible to place the caret in the editor unless there is a BR element present + if (!tinymce.isIE && (h.length === 0 || /^\s+$/.test(h))) { + o.content = t.dom.setHTML(t.getBody(), '
                                                '); + o.format = 'raw'; + } + + o.content = t.dom.setHTML(t.getBody(), tinymce.trim(o.content)); + + if (o.format != 'raw' && t.settings.cleanup) { + o.getInner = true; + o.content = t.dom.setHTML(t.getBody(), t.serializer.serialize(t.getBody(), o)); + } + + if (!o.no_events) + t.onSetContent.dispatch(t, o); + + return o.content; + }, + + getContent : function(o) { + var t = this, h; + + o = o || {}; + o.format = o.format || 'html'; + o.get = true; + + if (!o.no_events) + t.onBeforeGetContent.dispatch(t, o); + + if (o.format != 'raw' && t.settings.cleanup) { + o.getInner = true; + h = t.serializer.serialize(t.getBody(), o); + } else + h = t.getBody().innerHTML; + + h = h.replace(/^\s*|\s*$/g, ''); + o.content = h; + + if (!o.no_events) + t.onGetContent.dispatch(t, o); + + return o.content; + }, + + isDirty : function() { + var t = this; + + return tinymce.trim(t.startContent) != tinymce.trim(t.getContent({format : 'raw', no_events : 1})) && !t.isNotDirty; + }, + + getContainer : function() { + var t = this; + + if (!t.container) + t.container = DOM.get(t.editorContainer || t.id + '_parent'); + + return t.container; + }, + + getContentAreaContainer : function() { + return this.contentAreaContainer; + }, + + getElement : function() { + return DOM.get(this.settings.content_element || this.id); + }, + + getWin : function() { + var t = this, e; + + if (!t.contentWindow) { + e = DOM.get(t.id + "_ifr"); + + if (e) + t.contentWindow = e.contentWindow; + } + + return t.contentWindow; + }, + + getDoc : function() { + var t = this, w; + + if (!t.contentDocument) { + w = t.getWin(); + + if (w) + t.contentDocument = w.document; + } + + return t.contentDocument; + }, + + getBody : function() { + return this.bodyElement || this.getDoc().body; + }, + + convertURL : function(u, n, e) { + var t = this, s = t.settings; + + // Use callback instead + if (s.urlconverter_callback) + return t.execCallback('urlconverter_callback', u, e, true, n); + + // Don't convert link href since thats the CSS files that gets loaded into the editor also skip local file URLs + if (!s.convert_urls || (e && e.nodeName == 'LINK') || u.indexOf('file:') === 0) + return u; + + // Convert to relative + if (s.relative_urls) + return t.documentBaseURI.toRelative(u); + + // Convert to absolute + u = t.documentBaseURI.toAbsolute(u, s.remove_script_host); + + return u; + }, + + addVisual : function(e) { + var t = this, s = t.settings; + + e = e || t.getBody(); + + if (!is(t.hasVisual)) + t.hasVisual = s.visual; + + each(t.dom.select('table,a', e), function(e) { + var v; + + switch (e.nodeName) { + case 'TABLE': + v = t.dom.getAttrib(e, 'border'); + + if (!v || v == '0') { + if (t.hasVisual) + t.dom.addClass(e, s.visual_table_class); + else + t.dom.removeClass(e, s.visual_table_class); + } + + return; + + case 'A': + v = t.dom.getAttrib(e, 'name'); + + if (v) { + if (t.hasVisual) + t.dom.addClass(e, 'mceItemAnchor'); + else + t.dom.removeClass(e, 'mceItemAnchor'); + } + + return; + } + }); + + t.onVisualAid.dispatch(t, e, t.hasVisual); + }, + + remove : function() { + var t = this, e = t.getContainer(); + + t.removed = 1; // Cancels post remove event execution + t.hide(); + + t.execCallback('remove_instance_callback', t); + t.onRemove.dispatch(t); + + // Clear all execCommand listeners this is required to avoid errors if the editor was removed inside another command + t.onExecCommand.listeners = []; + + tinymce.remove(t); + DOM.remove(e); + }, + + destroy : function(s) { + var t = this; + + // One time is enough + if (t.destroyed) + return; + + if (!s) { + tinymce.removeUnload(t.destroy); + tinyMCE.onBeforeUnload.remove(t._beforeUnload); + + // Manual destroy + if (t.theme && t.theme.destroy) + t.theme.destroy(); + + // Destroy controls, selection and dom + t.controlManager.destroy(); + t.selection.destroy(); + t.dom.destroy(); + + // Remove all events + + // Don't clear the window or document if content editable + // is enabled since other instances might still be present + if (!t.settings.content_editable) { + Event.clear(t.getWin()); + Event.clear(t.getDoc()); + } + + Event.clear(t.getBody()); + Event.clear(t.formElement); + } + + if (t.formElement) { + t.formElement.submit = t.formElement._mceOldSubmit; + t.formElement._mceOldSubmit = null; + } + + t.contentAreaContainer = t.formElement = t.container = t.settings.content_element = t.bodyElement = t.contentDocument = t.contentWindow = null; + + if (t.selection) + t.selection = t.selection.win = t.selection.dom = t.selection.dom.doc = null; + + t.destroyed = 1; + }, + + // Internal functions + + _addEvents : function() { + // 'focus', 'blur', 'dblclick', 'beforedeactivate', submit, reset + var t = this, i, s = t.settings, lo = { + mouseup : 'onMouseUp', + mousedown : 'onMouseDown', + click : 'onClick', + keyup : 'onKeyUp', + keydown : 'onKeyDown', + keypress : 'onKeyPress', + submit : 'onSubmit', + reset : 'onReset', + contextmenu : 'onContextMenu', + dblclick : 'onDblClick', + paste : 'onPaste' // Doesn't work in all browsers yet + }; + + function eventHandler(e, o) { + var ty = e.type; + + // Don't fire events when it's removed + if (t.removed) + return; + + // Generic event handler + if (t.onEvent.dispatch(t, e, o) !== false) { + // Specific event handler + t[lo[e.fakeType || e.type]].dispatch(t, e, o); + } + }; + + // Add DOM events + each(lo, function(v, k) { + switch (k) { + case 'contextmenu': + if (tinymce.isOpera) { + // Fake contextmenu on Opera + t.dom.bind(t.getBody(), 'mousedown', function(e) { + if (e.ctrlKey) { + e.fakeType = 'contextmenu'; + eventHandler(e); + } + }); + } else + t.dom.bind(t.getBody(), k, eventHandler); + break; + + case 'paste': + t.dom.bind(t.getBody(), k, function(e) { + eventHandler(e); + }); + break; + + case 'submit': + case 'reset': + t.dom.bind(t.getElement().form || DOM.getParent(t.id, 'form'), k, eventHandler); + break; + + default: + t.dom.bind(s.content_editable ? t.getBody() : t.getDoc(), k, eventHandler); + } + }); + + t.dom.bind(s.content_editable ? t.getBody() : (isGecko ? t.getDoc() : t.getWin()), 'focus', function(e) { + t.focus(true); + }); + + + // Fixes bug where a specified document_base_uri could result in broken images + // This will also fix drag drop of images in Gecko + if (tinymce.isGecko) { + // Convert all images to absolute URLs +/* t.onSetContent.add(function(ed, o) { + each(ed.dom.select('img'), function(e) { + var v; + + if (v = e.getAttribute('_mce_src')) + e.src = t.documentBaseURI.toAbsolute(v); + }) + });*/ + + t.dom.bind(t.getDoc(), 'DOMNodeInserted', function(e) { + var v; + + e = e.target; + + if (e.nodeType === 1 && e.nodeName === 'IMG' && (v = e.getAttribute('_mce_src'))) + e.src = t.documentBaseURI.toAbsolute(v); + }); + } + + // Set various midas options in Gecko + if (isGecko) { + function setOpts() { + var t = this, d = t.getDoc(), s = t.settings; + + if (isGecko && !s.readonly) { + if (t._isHidden()) { + try { + if (!s.content_editable) + d.designMode = 'On'; + } catch (ex) { + // Fails if it's hidden + } + } + + try { + // Try new Gecko method + d.execCommand("styleWithCSS", 0, false); + } catch (ex) { + // Use old method + if (!t._isHidden()) + try {d.execCommand("useCSS", 0, true);} catch (ex) {} + } + + if (!s.table_inline_editing) + try {d.execCommand('enableInlineTableEditing', false, false);} catch (ex) {} + + if (!s.object_resizing) + try {d.execCommand('enableObjectResizing', false, false);} catch (ex) {} + } + }; + + t.onBeforeExecCommand.add(setOpts); + t.onMouseDown.add(setOpts); + } + + // Workaround for bug, http://bugs.webkit.org/show_bug.cgi?id=12250 + // WebKit can't even do simple things like selecting an image + // This also fixes so it's possible to select mceItemAnchors + if (tinymce.isWebKit) { + t.onClick.add(function(ed, e) { + e = e.target; + + // Needs tobe the setBaseAndExtend or it will fail to select floated images + if (e.nodeName == 'IMG' || (e.nodeName == 'A' && t.dom.hasClass(e, 'mceItemAnchor'))) + t.selection.getSel().setBaseAndExtent(e, 0, e, 1); + }); + } + + // Add node change handlers + t.onMouseUp.add(t.nodeChanged); + t.onClick.add(t.nodeChanged); + t.onKeyUp.add(function(ed, e) { + var c = e.keyCode; + + if ((c >= 33 && c <= 36) || (c >= 37 && c <= 40) || c == 13 || c == 45 || c == 46 || c == 8 || (tinymce.isMac && (c == 91 || c == 93)) || e.ctrlKey) + t.nodeChanged(); + }); + + // Add reset handler + t.onReset.add(function() { + t.setContent(t.startContent, {format : 'raw'}); + }); + + // Add shortcuts + if (s.custom_shortcuts) { + if (s.custom_undo_redo_keyboard_shortcuts) { + t.addShortcut('ctrl+z', t.getLang('undo_desc'), 'Undo'); + t.addShortcut('ctrl+y', t.getLang('redo_desc'), 'Redo'); + } + + // Add default shortcuts for gecko + t.addShortcut('ctrl+b', t.getLang('bold_desc'), 'Bold'); + t.addShortcut('ctrl+i', t.getLang('italic_desc'), 'Italic'); + t.addShortcut('ctrl+u', t.getLang('underline_desc'), 'Underline'); + + // BlockFormat shortcuts keys + for (i=1; i<=6; i++) + t.addShortcut('ctrl+' + i, '', ['FormatBlock', false, 'h' + i]); + + t.addShortcut('ctrl+7', '', ['FormatBlock', false, '

                                                ']); + t.addShortcut('ctrl+8', '', ['FormatBlock', false, '

                                                ']); + t.addShortcut('ctrl+9', '', ['FormatBlock', false, '
                                                ']); + + function find(e) { + var v = null; + + if (!e.altKey && !e.ctrlKey && !e.metaKey) + return v; + + each(t.shortcuts, function(o) { + if (tinymce.isMac && o.ctrl != e.metaKey) + return; + else if (!tinymce.isMac && o.ctrl != e.ctrlKey) + return; + + if (o.alt != e.altKey) + return; + + if (o.shift != e.shiftKey) + return; + + if (e.keyCode == o.keyCode || (e.charCode && e.charCode == o.charCode)) { + v = o; + return false; + } + }); + + return v; + }; + + t.onKeyUp.add(function(ed, e) { + var o = find(e); + + if (o) + return Event.cancel(e); + }); + + t.onKeyPress.add(function(ed, e) { + var o = find(e); + + if (o) + return Event.cancel(e); + }); + + t.onKeyDown.add(function(ed, e) { + var o = find(e); + + if (o) { + o.func.call(o.scope); + return Event.cancel(e); + } + }); + } + + if (tinymce.isIE) { + // Fix so resize will only update the width and height attributes not the styles of an image + // It will also block mceItemNoResize items + t.dom.bind(t.getDoc(), 'controlselect', function(e) { + var re = t.resizeInfo, cb; + + e = e.target; + + // Don't do this action for non image elements + if (e.nodeName !== 'IMG') + return; + + if (re) + t.dom.unbind(re.node, re.ev, re.cb); + + if (!t.dom.hasClass(e, 'mceItemNoResize')) { + ev = 'resizeend'; + cb = t.dom.bind(e, ev, function(e) { + var v; + + e = e.target; + + if (v = t.dom.getStyle(e, 'width')) { + t.dom.setAttrib(e, 'width', v.replace(/[^0-9%]+/g, '')); + t.dom.setStyle(e, 'width', ''); + } + + if (v = t.dom.getStyle(e, 'height')) { + t.dom.setAttrib(e, 'height', v.replace(/[^0-9%]+/g, '')); + t.dom.setStyle(e, 'height', ''); + } + }); + } else { + ev = 'resizestart'; + cb = t.dom.bind(e, 'resizestart', Event.cancel, Event); + } + + re = t.resizeInfo = { + node : e, + ev : ev, + cb : cb + }; + }); + + t.onKeyDown.add(function(ed, e) { + switch (e.keyCode) { + case 8: + // Fix IE control + backspace browser bug + if (t.selection.getRng().item) { + ed.dom.remove(t.selection.getRng().item(0)); + return Event.cancel(e); + } + } + }); + + /*if (t.dom.boxModel) { + t.getBody().style.height = '100%'; + + Event.add(t.getWin(), 'resize', function(e) { + var docElm = t.getDoc().documentElement; + + docElm.style.height = (docElm.offsetHeight - 10) + 'px'; + }); + }*/ + } + + if (tinymce.isOpera) { + t.onClick.add(function(ed, e) { + Event.prevent(e); + }); + } + + // Add custom undo/redo handlers + if (s.custom_undo_redo) { + function addUndo() { + t.undoManager.typing = 0; + t.undoManager.add(); + }; + + t.dom.bind(t.getDoc(), 'focusout', function(e) { + if (!t.removed && t.undoManager.typing) + addUndo(); + }); + + t.onKeyUp.add(function(ed, e) { + if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45 || e.ctrlKey) + addUndo(); + }); + + t.onKeyDown.add(function(ed, e) { + // Is caracter positon keys + if ((e.keyCode >= 33 && e.keyCode <= 36) || (e.keyCode >= 37 && e.keyCode <= 40) || e.keyCode == 13 || e.keyCode == 45) { + if (t.undoManager.typing) + addUndo(); + + return; + } + + if (!t.undoManager.typing) { + t.undoManager.add(); + t.undoManager.typing = 1; + } + }); + + t.onMouseDown.add(function() { + if (t.undoManager.typing) + addUndo(); + }); + } + }, + + _isHidden : function() { + var s; + + if (!isGecko) + return 0; + + // Weird, wheres that cursor selection? + s = this.selection.getSel(); + return (!s || !s.rangeCount || s.rangeCount == 0); + }, + + // Fix for bug #1867292 + _fixNesting : function(s) { + var d = [], i; + + s = s.replace(/<(\/)?([^\s>]+)[^>]*?>/g, function(a, b, c) { + var e; + + // Handle end element + if (b === '/') { + if (!d.length) + return ''; + + if (c !== d[d.length - 1].tag) { + for (i=d.length - 1; i>=0; i--) { + if (d[i].tag === c) { + d[i].close = 1; + break; + } + } + + return ''; + } else { + d.pop(); + + if (d.length && d[d.length - 1].close) { + a = a + ''; + d.pop(); + } + } + } else { + // Ignore these + if (/^(br|hr|input|meta|img|link|param)$/i.test(c)) + return a; + + // Ignore closed ones + if (/\/>$/.test(a)) + return a; + + d.push({tag : c}); // Push start element + } + + return a; + }); + + // End all open tags + for (i=d.length - 1; i>=0; i--) + s += ''; + + return s; + } + }); +})(tinymce); + +(function(tinymce) { + // Added for compression purposes + var each = tinymce.each, undefined, TRUE = true, FALSE = false; + + tinymce.EditorCommands = function(editor) { + var dom = editor.dom, + selection = editor.selection, + commands = {state: {}, exec : {}, value : {}}, + settings = editor.settings, + bookmark; + + function execCommand(command, ui, value) { + var func; + + command = command.toLowerCase(); + if (func = commands.exec[command]) { + func(command, ui, value); + return TRUE; + } + + return FALSE; + }; + + function queryCommandState(command) { + var func; + + command = command.toLowerCase(); + if (func = commands.state[command]) + return func(command); + + return -1; + }; + + function queryCommandValue(command) { + var func; + + command = command.toLowerCase(); + if (func = commands.value[command]) + return func(command); + + return FALSE; + }; + + function addCommands(command_list, type) { + type = type || 'exec'; + + each(command_list, function(callback, command) { + each(command.toLowerCase().split(','), function(command) { + commands[type][command] = callback; + }); + }); + }; + + // Expose public methods + tinymce.extend(this, { + execCommand : execCommand, + queryCommandState : queryCommandState, + queryCommandValue : queryCommandValue, + addCommands : addCommands + }); + + // Private methods + + function execNativeCommand(command, ui, value) { + if (ui === undefined) + ui = FALSE; + + if (value === undefined) + value = null; + + return editor.getDoc().execCommand(command, ui, value); + }; + + function isFormatMatch(name) { + return editor.formatter.match(name); + }; + + function toggleFormat(name, value) { + editor.formatter.toggle(name, value ? {value : value} : undefined); + }; + + function storeSelection(type) { + bookmark = selection.getBookmark(type); + }; + + function restoreSelection() { + selection.moveToBookmark(bookmark); + }; + + // Add execCommand overrides + addCommands({ + // Ignore these, added for compatibility + 'mceResetDesignMode,mceBeginUndoLevel' : function() {}, + + // Add undo manager logic + 'mceEndUndoLevel,mceAddUndoLevel' : function() { + editor.undoManager.add(); + }, + + 'Cut,Copy,Paste' : function(command) { + var doc = editor.getDoc(), failed; + + // Try executing the native command + try { + execNativeCommand(command); + } catch (ex) { + // Command failed + failed = TRUE; + } + + // Present alert message about clipboard access not being available + if (failed || !doc.queryCommandSupported(command)) { + if (tinymce.isGecko) { + editor.windowManager.confirm(editor.getLang('clipboard_msg'), function(state) { + if (state) + open('http://www.mozilla.org/editor/midasdemo/securityprefs.html', '_blank'); + }); + } else + editor.windowManager.alert(editor.getLang('clipboard_no_support')); + } + }, + + // Override unlink command + unlink : function(command) { + if (selection.isCollapsed()) + selection.select(selection.getNode()); + + execNativeCommand(command); + selection.collapse(FALSE); + }, + + // Override justify commands to use the text formatter engine + 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) { + var align = command.substring(7); + + // Remove all other alignments first + each('left,center,right,full'.split(','), function(name) { + if (align != name) + editor.formatter.remove('align' + name); + }); + + toggleFormat('align' + align); + }, + + // Override list commands to fix WebKit bug + 'InsertUnorderedList,InsertOrderedList' : function(command) { + var listElm, listParent; + + execNativeCommand(command); + + // WebKit produces lists within block elements so we need to split them + // we will replace the native list creation logic to custom logic later on + // TODO: Remove this when the list creation logic is removed + listElm = dom.getParent(selection.getNode(), 'ol,ul'); + if (listElm) { + listParent = listElm.parentNode; + + // If list is within a text block then split that block + if (/^(H[1-6]|P|ADDRESS|PRE)$/.test(listParent.nodeName)) { + storeSelection(); + dom.split(listParent, listElm); + restoreSelection(); + } + } + }, + + // Override commands to use the text formatter engine + 'Bold,Italic,Underline,Strikethrough' : function(command) { + toggleFormat(command); + }, + + // Override commands to use the text formatter engine + 'ForeColor,HiliteColor,FontName' : function(command, ui, value) { + toggleFormat(command, value); + }, + + FontSize : function(command, ui, value) { + var fontClasses, fontSizes; + + // Convert font size 1-7 to styles + if (value >= 1 && value <= 7) { + fontSizes = tinymce.explode(settings.font_size_style_values); + fontClasses = tinymce.explode(settings.font_size_classes); + + if (fontClasses) + value = fontClasses[value - 1] || value; + else + value = fontSizes[value - 1] || value; + } + + toggleFormat(command, value); + }, + + RemoveFormat : function(command) { + editor.formatter.remove(command); + }, + + mceBlockQuote : function(command) { + toggleFormat('blockquote'); + }, + + FormatBlock : function(command, ui, value) { + return toggleFormat(value); + }, + + mceCleanup : function() { + storeSelection(); + editor.setContent(editor.getContent({cleanup : TRUE}), {cleanup : TRUE}); + restoreSelection(); + }, + + mceRemoveNode : function(command, ui, value) { + var node = value || selection.getNode(); + + // Make sure that the body node isn't removed + if (node != editor.getBody()) { + storeSelection(); + editor.dom.remove(node, TRUE); + restoreSelection(); + } + }, + + mceSelectNodeDepth : function(command, ui, value) { + var counter = 0; + + dom.getParent(selection.getNode(), function(node) { + if (node.nodeType == 1 && counter++ == value) { + selection.select(node); + return FALSE; + } + }, editor.getBody()); + }, + + mceSelectNode : function(command, ui, value) { + selection.select(value); + }, + + mceInsertContent : function(command, ui, value) { + selection.setContent(value); + }, + + mceInsertRawHTML : function(command, ui, value) { + selection.setContent('tiny_mce_marker'); + editor.setContent(editor.getContent().replace(/tiny_mce_marker/g, value)); + }, + + mceSetContent : function(command, ui, value) { + editor.setContent(value); + }, + + 'Indent,Outdent' : function(command) { + var intentValue, indentUnit, value; + + // Setup indent level + intentValue = settings.indentation; + indentUnit = /[a-z%]+$/i.exec(intentValue); + intentValue = parseInt(intentValue); + + if (!queryCommandState('InsertUnorderedList') && !queryCommandState('InsertOrderedList')) { + each(selection.getSelectedBlocks(), function(element) { + if (command == 'outdent') { + value = Math.max(0, parseInt(element.style.paddingLeft || 0) - intentValue); + dom.setStyle(element, 'paddingLeft', value ? value + indentUnit : ''); + } else + dom.setStyle(element, 'paddingLeft', (parseInt(element.style.paddingLeft || 0) + intentValue) + indentUnit); + }); + } else + execNativeCommand(command); + }, + + mceRepaint : function() { + var bookmark; + + if (tinymce.isGecko) { + try { + storeSelection(TRUE); + + if (selection.getSel()) + selection.getSel().selectAllChildren(editor.getBody()); + + selection.collapse(TRUE); + restoreSelection(); + } catch (ex) { + // Ignore + } + } + }, + + mceToggleFormat : function(command, ui, value) { + editor.formatter.toggle(value); + }, + + InsertHorizontalRule : function() { + selection.setContent('
                                                '); + }, + + mceToggleVisualAid : function() { + editor.hasVisual = !editor.hasVisual; + editor.addVisual(); + }, + + mceReplaceContent : function(command, ui, value) { + selection.setContent(value.replace(/\{\$selection\}/g, selection.getContent({format : 'text'}))); + }, + + mceInsertLink : function(command, ui, value) { + var link = dom.getParent(selection.getNode(), 'a'); + + if (tinymce.is(value, 'string')) + value = {href : value}; + + if (!link) { + execNativeCommand('CreateLink', FALSE, 'javascript:mctmp(0);'); + each(dom.select('a[href=javascript:mctmp(0);]'), function(link) { + dom.setAttribs(link, value); + }); + } else { + if (value.href) + dom.setAttribs(link, value); + else + editor.dom.remove(link, TRUE); + } + }, + + selectAll : function() { + var root = dom.getRoot(); + var rng = dom.createRng(); + rng.setStart(root, 0); + rng.setEnd(root, root.childNodes.length); + editor.selection.setRng(rng); + } + }); + + // Add queryCommandState overrides + addCommands({ + // Override justify commands + 'JustifyLeft,JustifyCenter,JustifyRight,JustifyFull' : function(command) { + return isFormatMatch('align' + command.substring(7)); + }, + + 'Bold,Italic,Underline,Strikethrough' : function(command) { + return isFormatMatch(command); + }, + + mceBlockQuote : function() { + return isFormatMatch('blockquote'); + }, + + Outdent : function() { + var node; + + if (settings.inline_styles) { + if ((node = dom.getParent(selection.getStart(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0) + return TRUE; + + if ((node = dom.getParent(selection.getEnd(), dom.isBlock)) && parseInt(node.style.paddingLeft) > 0) + return TRUE; + } + + return queryCommandState('InsertUnorderedList') || queryCommandState('InsertOrderedList') || (!settings.inline_styles && !!dom.getParent(selection.getNode(), 'BLOCKQUOTE')); + }, + + 'InsertUnorderedList,InsertOrderedList' : function(command) { + return dom.getParent(selection.getNode(), command == 'insertunorderedlist' ? 'UL' : 'OL'); + } + }, 'state'); + + // Add queryCommandValue overrides + addCommands({ + 'FontSize,FontName' : function(command) { + var value = 0, parent; + + if (parent = dom.getParent(selection.getNode(), 'span')) { + if (command == 'fontsize') + value = parent.style.fontSize; + else + value = parent.style.fontFamily.replace(/, /g, ',').replace(/[\'\"]/g, '').toLowerCase(); + } + + return value; + } + }, 'value'); + + // Add undo manager logic + if (settings.custom_undo_redo) { + addCommands({ + Undo : function() { + editor.undoManager.undo(); + }, + + Redo : function() { + editor.undoManager.redo(); + } + }); + } + }; +})(tinymce); +(function(tinymce) { + var Dispatcher = tinymce.util.Dispatcher; + + tinymce.UndoManager = function(editor) { + var self, index = 0, data = []; + + function getContent() { + return tinymce.trim(editor.getContent({format : 'raw', no_events : 1})); + }; + + return self = { + typing : 0, + + onAdd : new Dispatcher(self), + onUndo : new Dispatcher(self), + onRedo : new Dispatcher(self), + + add : function(level) { + var i, settings = editor.settings, lastLevel; + + level = level || {}; + level.content = getContent(); + + // Add undo level if needed + lastLevel = data[index]; + if (lastLevel && lastLevel.content == level.content) { + if (index > 0 || data.length == 1) + return null; + } + + // Time to compress + if (settings.custom_undo_redo_levels) { + if (data.length > settings.custom_undo_redo_levels) { + for (i = 0; i < data.length - 1; i++) + data[i] = data[i + 1]; + + data.length--; + index = data.length; + } + } + + // Get a non intrusive normalized bookmark + level.bookmark = editor.selection.getBookmark(2, true); + + // Crop array if needed + if (index < data.length - 1) { + // Treat first level as initial + if (index == 0) + data = []; + else + data.length = index + 1; + } + + data.push(level); + index = data.length - 1; + + self.onAdd.dispatch(self, level); + editor.isNotDirty = 0; + + return level; + }, + + undo : function() { + var level, i; + + if (self.typing) { + self.add(); + self.typing = 0; + } + + if (index > 0) { + level = data[--index]; + + editor.setContent(level.content, {format : 'raw'}); + editor.selection.moveToBookmark(level.bookmark); + + self.onUndo.dispatch(self, level); + } + + return level; + }, + + redo : function() { + var level; + + if (index < data.length - 1) { + level = data[++index]; + + editor.setContent(level.content, {format : 'raw'}); + editor.selection.moveToBookmark(level.bookmark); + + self.onRedo.dispatch(self, level); + } + + return level; + }, + + clear : function() { + data = []; + index = self.typing = 0; + }, + + hasUndo : function() { + return index > 0 || self.typing; + }, + + hasRedo : function() { + return index < data.length - 1; + } + }; + }; +})(tinymce); + +(function(tinymce) { + // Shorten names + var Event = tinymce.dom.Event, + isIE = tinymce.isIE, + isGecko = tinymce.isGecko, + isOpera = tinymce.isOpera, + each = tinymce.each, + extend = tinymce.extend, + TRUE = true, + FALSE = false; + + // Checks if the selection/caret is at the end of the specified block element + function isAtEnd(rng, par) { + var rng2 = par.ownerDocument.createRange(); + + rng2.setStart(rng.endContainer, rng.endOffset); + rng2.setEndAfter(par); + + // Get number of characters to the right of the cursor if it's zero then we are at the end and need to merge the next block element + return rng2.cloneContents().textContent.length == 0; + }; + + function isEmpty(n) { + n = n.innerHTML; + + n = n.replace(/<(img|hr|table|input|select|textarea)[ \>]/gi, '-'); // Keep these convert them to - chars + n = n.replace(/<[^>]+>/g, ''); // Remove all tags + + return n.replace(/[ \u00a0\t\r\n]+/g, '') == ''; + }; + + function splitList(selection, dom, li) { + var listBlock, block; + + if (isEmpty(li)) { + listBlock = dom.getParent(li, 'ul,ol'); + + if (!dom.getParent(listBlock.parentNode, 'ul,ol')) { + dom.split(listBlock, li); + block = dom.create('p', 0, '
                                                '); + dom.replace(block, li); + selection.select(block, 1); + } + + return FALSE; + } + + return TRUE; + }; + + tinymce.create('tinymce.ForceBlocks', { + ForceBlocks : function(ed) { + var t = this, s = ed.settings, elm; + + t.editor = ed; + t.dom = ed.dom; + elm = (s.forced_root_block || 'p').toLowerCase(); + s.element = elm.toUpperCase(); + + ed.onPreInit.add(t.setup, t); + + t.reOpera = new RegExp('(\\u00a0| | )<\/' + elm + '>', 'gi'); + t.rePadd = new RegExp(']+)><\\\/p>|]+)\\\/>|]+)>\\s+<\\\/p>|

                                                <\\\/p>||

                                                \\s+<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR1 = new RegExp(']+)>[\\s\\u00a0]+<\\\/p>|

                                                [\\s\\u00a0]+<\\\/p>'.replace(/p/g, elm), 'gi'); + t.reNbsp2BR2 = new RegExp('<%p()([^>]+)>( | )<\\\/%p>|<%p>( | )<\\\/%p>'.replace(/%p/g, elm), 'gi'); + t.reBR2Nbsp = new RegExp(']+)>\\s*
                                                \\s*<\\\/p>|

                                                \\s*
                                                \\s*<\\\/p>'.replace(/p/g, elm), 'gi'); + + function padd(ed, o) { + if (isOpera) + o.content = o.content.replace(t.reOpera, ''); + + o.content = o.content.replace(t.rePadd, '<' + elm + '$1$2$3$4$5$6>\u00a0'); + + if (!isIE && !isOpera && o.set) { + // Use   instead of BR in padded paragraphs + o.content = o.content.replace(t.reNbsp2BR1, '<' + elm + '$1$2>
                                                '); + o.content = o.content.replace(t.reNbsp2BR2, '<' + elm + '$1$2>
                                                '); + } else + o.content = o.content.replace(t.reBR2Nbsp, '<' + elm + '$1$2>\u00a0'); + }; + + ed.onBeforeSetContent.add(padd); + ed.onPostProcess.add(padd); + + if (s.forced_root_block) { + ed.onInit.add(t.forceRoots, t); + ed.onSetContent.add(t.forceRoots, t); + ed.onBeforeGetContent.add(t.forceRoots, t); + } + }, + + setup : function() { + var t = this, ed = t.editor, s = ed.settings, dom = ed.dom, selection = ed.selection; + + // Force root blocks when typing and when getting output + if (s.forced_root_block) { + ed.onBeforeExecCommand.add(t.forceRoots, t); + ed.onKeyUp.add(t.forceRoots, t); + ed.onPreProcess.add(t.forceRoots, t); + } + + if (s.force_br_newlines) { + // Force IE to produce BRs on enter + if (isIE) { + ed.onKeyPress.add(function(ed, e) { + var n; + + if (e.keyCode == 13 && selection.getNode().nodeName != 'LI') { + selection.setContent('
                                                ', {format : 'raw'}); + n = dom.get('__'); + n.removeAttribute('id'); + selection.select(n); + selection.collapse(); + return Event.cancel(e); + } + }); + } + } + + if (!isIE && s.force_p_newlines) { + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && !e.shiftKey && !t.insertPara(e)) + Event.cancel(e); + }); + + if (isGecko) { + ed.onKeyDown.add(function(ed, e) { + if ((e.keyCode == 8 || e.keyCode == 46) && !e.shiftKey) + t.backspaceDelete(e, e.keyCode == 8); + }); + } + } + + // Workaround for missing shift+enter support, http://bugs.webkit.org/show_bug.cgi?id=16973 + if (tinymce.isWebKit) { + function insertBr(ed) { + var rng = selection.getRng(), br, div = dom.create('div', null, ' '), divYPos, vpHeight = dom.getViewPort(ed.getWin()).h; + + // Insert BR element + rng.insertNode(br = dom.create('br')); + + // Place caret after BR + rng.setStartAfter(br); + rng.setEndAfter(br); + selection.setRng(rng); + + // Could not place caret after BR then insert an nbsp entity and move the caret + if (selection.getSel().focusNode == br.previousSibling) { + selection.select(dom.insertAfter(dom.doc.createTextNode('\u00a0'), br)); + selection.collapse(TRUE); + } + + // Create a temporary DIV after the BR and get the position as it + // seems like getPos() returns 0 for text nodes and BR elements. + dom.insertAfter(div, br); + divYPos = dom.getPos(div).y; + dom.remove(div); + + // Scroll to new position, scrollIntoView can't be used due to bug: http://bugs.webkit.org/show_bug.cgi?id=16117 + if (divYPos > vpHeight) // It is not necessary to scroll if the DIV is inside the view port. + ed.getWin().scrollTo(0, divYPos); + }; + + ed.onKeyPress.add(function(ed, e) { + if (e.keyCode == 13 && (e.shiftKey || (s.force_br_newlines && !dom.getParent(selection.getNode(), 'h1,h2,h3,h4,h5,h6,ol,ul')))) { + insertBr(ed); + Event.cancel(e); + } + }); + } + + // Padd empty inline elements within block elements + // For example:

                                                becomes

                                                 

                                                + ed.onPreProcess.add(function(ed, o) { + each(dom.select('p,h1,h2,h3,h4,h5,h6,div', o.node), function(p) { + if (isEmpty(p)) { + each(dom.select('span,em,strong,b,i', o.node), function(n) { + if (!n.hasChildNodes()) { + n.appendChild(ed.getDoc().createTextNode('\u00a0')); + return FALSE; // Break the loop one padding is enough + } + }); + } + }); + }); + + // IE specific fixes + if (isIE) { + // Replaces IE:s auto generated paragraphs with the specified element name + if (s.element != 'P') { + ed.onKeyPress.add(function(ed, e) { + t.lastElm = selection.getNode().nodeName; + }); + + ed.onKeyUp.add(function(ed, e) { + var bl, n = selection.getNode(), b = ed.getBody(); + + if (b.childNodes.length === 1 && n.nodeName == 'P') { + n = dom.rename(n, s.element); + selection.select(n); + selection.collapse(); + ed.nodeChanged(); + } else if (e.keyCode == 13 && !e.shiftKey && t.lastElm != 'P') { + bl = dom.getParent(n, 'p'); + + if (bl) { + dom.rename(bl, s.element); + ed.nodeChanged(); + } + } + }); + } + } + }, + + find : function(n, t, s) { + var ed = this.editor, w = ed.getDoc().createTreeWalker(n, 4, null, FALSE), c = -1; + + while (n = w.nextNode()) { + c++; + + // Index by node + if (t == 0 && n == s) + return c; + + // Node by index + if (t == 1 && c == s) + return n; + } + + return -1; + }, + + forceRoots : function(ed, e) { + var t = this, ed = t.editor, b = ed.getBody(), d = ed.getDoc(), se = ed.selection, s = se.getSel(), r = se.getRng(), si = -2, ei, so, eo, tr, c = -0xFFFFFF; + var nx, bl, bp, sp, le, nl = b.childNodes, i, n, eid; + + // Fix for bug #1863847 + //if (e && e.keyCode == 13) + // return TRUE; + + // Wrap non blocks into blocks + for (i = nl.length - 1; i >= 0; i--) { + nx = nl[i]; + + // Ignore internal elements + if (nx.nodeType === 1 && nx.getAttribute('_mce_type')) { + bl = null; + continue; + } + + // Is text or non block element + if (nx.nodeType === 3 || (!t.dom.isBlock(nx) && nx.nodeType !== 8 && !/^(script|mce:script|style|mce:style)$/i.test(nx.nodeName))) { + if (!bl) { + // Create new block but ignore whitespace + if (nx.nodeType != 3 || /[^\s]/g.test(nx.nodeValue)) { + // Store selection + if (si == -2 && r) { + if (!isIE) { + // If selection is element then mark it + if (r.startContainer.nodeType == 1 && (n = r.startContainer.childNodes[r.startOffset]) && n.nodeType == 1) { + // Save the id of the selected element + eid = n.getAttribute("id"); + n.setAttribute("id", "__mce"); + } else { + // If element is inside body, might not be the case in contentEdiable mode + if (ed.dom.getParent(r.startContainer, function(e) {return e === b;})) { + so = r.startOffset; + eo = r.endOffset; + si = t.find(b, 0, r.startContainer); + ei = t.find(b, 0, r.endContainer); + } + } + } else { + // Force control range into text range + if (r.item) { + tr = d.body.createTextRange(); + tr.moveToElementText(r.item(0)); + r = tr; + } + + tr = d.body.createTextRange(); + tr.moveToElementText(b); + tr.collapse(1); + bp = tr.move('character', c) * -1; + + tr = r.duplicate(); + tr.collapse(1); + sp = tr.move('character', c) * -1; + + tr = r.duplicate(); + tr.collapse(0); + le = (tr.move('character', c) * -1) - sp; + + si = sp - bp; + ei = le; + } + } + + // Uses replaceChild instead of cloneNode since it removes selected attribute from option elements on IE + // See: http://support.microsoft.com/kb/829907 + bl = ed.dom.create(ed.settings.forced_root_block); + nx.parentNode.replaceChild(bl, nx); + bl.appendChild(nx); + } + } else { + if (bl.hasChildNodes()) + bl.insertBefore(nx, bl.firstChild); + else + bl.appendChild(nx); + } + } else + bl = null; // Time to create new block + } + + // Restore selection + if (si != -2) { + if (!isIE) { + bl = b.getElementsByTagName(ed.settings.element)[0]; + r = d.createRange(); + + // Select last location or generated block + if (si != -1) + r.setStart(t.find(b, 1, si), so); + else + r.setStart(bl, 0); + + // Select last location or generated block + if (ei != -1) + r.setEnd(t.find(b, 1, ei), eo); + else + r.setEnd(bl, 0); + + if (s) { + s.removeAllRanges(); + s.addRange(r); + } + } else { + try { + r = s.createRange(); + r.moveToElementText(b); + r.collapse(1); + r.moveStart('character', si); + r.moveEnd('character', ei); + r.select(); + } catch (ex) { + // Ignore + } + } + } else if (!isIE && (n = ed.dom.get('__mce'))) { + // Restore the id of the selected element + if (eid) + n.setAttribute('id', eid); + else + n.removeAttribute('id'); + + // Move caret before selected element + r = d.createRange(); + r.setStartBefore(n); + r.setEndBefore(n); + se.setRng(r); + } + }, + + getParentBlock : function(n) { + var d = this.dom; + + return d.getParent(n, d.isBlock); + }, + + insertPara : function(e) { + var t = this, ed = t.editor, dom = ed.dom, d = ed.getDoc(), se = ed.settings, s = ed.selection.getSel(), r = s.getRangeAt(0), b = d.body; + var rb, ra, dir, sn, so, en, eo, sb, eb, bn, bef, aft, sc, ec, n, vp = dom.getViewPort(ed.getWin()), y, ch, car; + + // If root blocks are forced then use Operas default behavior since it's really good +// Removed due to bug: #1853816 +// if (se.forced_root_block && isOpera) +// return TRUE; + + // Setup before range + rb = d.createRange(); + + // If is before the first block element and in body, then move it into first block element + rb.setStart(s.anchorNode, s.anchorOffset); + rb.collapse(TRUE); + + // Setup after range + ra = d.createRange(); + + // If is before the first block element and in body, then move it into first block element + ra.setStart(s.focusNode, s.focusOffset); + ra.collapse(TRUE); + + // Setup start/end points + dir = rb.compareBoundaryPoints(rb.START_TO_END, ra) < 0; + sn = dir ? s.anchorNode : s.focusNode; + so = dir ? s.anchorOffset : s.focusOffset; + en = dir ? s.focusNode : s.anchorNode; + eo = dir ? s.focusOffset : s.anchorOffset; + + // If selection is in empty table cell + if (sn === en && /^(TD|TH)$/.test(sn.nodeName)) { + if (sn.firstChild.nodeName == 'BR') + dom.remove(sn.firstChild); // Remove BR + + // Create two new block elements + if (sn.childNodes.length == 0) { + ed.dom.add(sn, se.element, null, '
                                                '); + aft = ed.dom.add(sn, se.element, null, '
                                                '); + } else { + n = sn.innerHTML; + sn.innerHTML = ''; + ed.dom.add(sn, se.element, null, n); + aft = ed.dom.add(sn, se.element, null, '
                                                '); + } + + // Move caret into the last one + r = d.createRange(); + r.selectNodeContents(aft); + r.collapse(1); + ed.selection.setRng(r); + + return FALSE; + } + + // If the caret is in an invalid location in FF we need to move it into the first block + if (sn == b && en == b && b.firstChild && ed.dom.isBlock(b.firstChild)) { + sn = en = sn.firstChild; + so = eo = 0; + rb = d.createRange(); + rb.setStart(sn, 0); + ra = d.createRange(); + ra.setStart(en, 0); + } + + // Never use body as start or end node + sn = sn.nodeName == "HTML" ? d.body : sn; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes + sn = sn.nodeName == "BODY" ? sn.firstChild : sn; + en = en.nodeName == "HTML" ? d.body : en; // Fix for Opera bug: https://bugs.opera.com/show_bug.cgi?id=273224&comments=yes + en = en.nodeName == "BODY" ? en.firstChild : en; + + // Get start and end blocks + sb = t.getParentBlock(sn); + eb = t.getParentBlock(en); + bn = sb ? sb.nodeName : se.element; // Get block name to create + + // Return inside list use default browser behavior + if (n = t.dom.getParent(sb, 'li,pre')) { + if (n.nodeName == 'LI') + return splitList(ed.selection, t.dom, n); + + return TRUE; + } + + // If caption or absolute layers then always generate new blocks within + if (sb && (sb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { + bn = se.element; + sb = null; + } + + // If caption or absolute layers then always generate new blocks within + if (eb && (eb.nodeName == 'CAPTION' || /absolute|relative|fixed/gi.test(dom.getStyle(sb, 'position', 1)))) { + bn = se.element; + eb = null; + } + + // Use P instead + if (/(TD|TABLE|TH|CAPTION)/.test(bn) || (sb && bn == "DIV" && /left|right/gi.test(dom.getStyle(sb, 'float', 1)))) { + bn = se.element; + sb = eb = null; + } + + // Setup new before and after blocks + bef = (sb && sb.nodeName == bn) ? sb.cloneNode(0) : ed.dom.create(bn); + aft = (eb && eb.nodeName == bn) ? eb.cloneNode(0) : ed.dom.create(bn); + + // Remove id from after clone + aft.removeAttribute('id'); + + // Is header and cursor is at the end, then force paragraph under + if (/^(H[1-6])$/.test(bn) && isAtEnd(r, sb)) + aft = ed.dom.create(se.element); + + // Find start chop node + n = sc = sn; + do { + if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName)) + break; + + sc = n; + } while ((n = n.previousSibling ? n.previousSibling : n.parentNode)); + + // Find end chop node + n = ec = en; + do { + if (n == b || n.nodeType == 9 || t.dom.isBlock(n) || /(TD|TABLE|TH|CAPTION)/.test(n.nodeName)) + break; + + ec = n; + } while ((n = n.nextSibling ? n.nextSibling : n.parentNode)); + + // Place first chop part into before block element + if (sc.nodeName == bn) + rb.setStart(sc, 0); + else + rb.setStartBefore(sc); + + rb.setEnd(sn, so); + bef.appendChild(rb.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari + + // Place secnd chop part within new block element + try { + ra.setEndAfter(ec); + } catch(ex) { + //console.debug(s.focusNode, s.focusOffset); + } + + ra.setStart(en, eo); + aft.appendChild(ra.cloneContents() || d.createTextNode('')); // Empty text node needed for Safari + + // Create range around everything + r = d.createRange(); + if (!sc.previousSibling && sc.parentNode.nodeName == bn) { + r.setStartBefore(sc.parentNode); + } else { + if (rb.startContainer.nodeName == bn && rb.startOffset == 0) + r.setStartBefore(rb.startContainer); + else + r.setStart(rb.startContainer, rb.startOffset); + } + + if (!ec.nextSibling && ec.parentNode.nodeName == bn) + r.setEndAfter(ec.parentNode); + else + r.setEnd(ra.endContainer, ra.endOffset); + + // Delete and replace it with new block elements + r.deleteContents(); + + if (isOpera) + ed.getWin().scrollTo(0, vp.y); + + // Never wrap blocks in blocks + if (bef.firstChild && bef.firstChild.nodeName == bn) + bef.innerHTML = bef.firstChild.innerHTML; + + if (aft.firstChild && aft.firstChild.nodeName == bn) + aft.innerHTML = aft.firstChild.innerHTML; + + // Padd empty blocks + if (isEmpty(bef)) + bef.innerHTML = '
                                                '; + + function appendStyles(e, en) { + var nl = [], nn, n, i; + + e.innerHTML = ''; + + // Make clones of style elements + if (se.keep_styles) { + n = en; + do { + // We only want style specific elements + if (/^(SPAN|STRONG|B|EM|I|FONT|STRIKE|U)$/.test(n.nodeName)) { + nn = n.cloneNode(FALSE); + dom.setAttrib(nn, 'id', ''); // Remove ID since it needs to be unique + nl.push(nn); + } + } while (n = n.parentNode); + } + + // Append style elements to aft + if (nl.length > 0) { + for (i = nl.length - 1, nn = e; i >= 0; i--) + nn = nn.appendChild(nl[i]); + + // Padd most inner style element + nl[0].innerHTML = isOpera ? ' ' : '
                                                '; // Extra space for Opera so that the caret can move there + return nl[0]; // Move caret to most inner element + } else + e.innerHTML = isOpera ? ' ' : '
                                                '; // Extra space for Opera so that the caret can move there + }; + + // Fill empty afterblook with current style + if (isEmpty(aft)) + car = appendStyles(aft, en); + + // Opera needs this one backwards for older versions + if (isOpera && parseFloat(opera.version()) < 9.5) { + r.insertNode(bef); + r.insertNode(aft); + } else { + r.insertNode(aft); + r.insertNode(bef); + } + + // Normalize + aft.normalize(); + bef.normalize(); + + function first(n) { + return d.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE).nextNode() || n; + }; + + // Move cursor and scroll into view + r = d.createRange(); + r.selectNodeContents(isGecko ? first(car || aft) : car || aft); + r.collapse(1); + s.removeAllRanges(); + s.addRange(r); + + // scrollIntoView seems to scroll the parent window in most browsers now including FF 3.0b4 so it's time to stop using it and do it our selfs + y = ed.dom.getPos(aft).y; + ch = aft.clientHeight; + + // Is element within viewport + if (y < vp.y || y + ch > vp.y + vp.h) { + ed.getWin().scrollTo(0, y < vp.y ? y : y - vp.h + 25); // Needs to be hardcoded to roughly one line of text if a huge text block is broken into two blocks + //console.debug('SCROLL!', 'vp.y: ' + vp.y, 'y' + y, 'vp.h' + vp.h, 'clientHeight' + aft.clientHeight, 'yyy: ' + (y < vp.y ? y : y - vp.h + aft.clientHeight)); + } + + return FALSE; + }, + + backspaceDelete : function(e, bs) { + var t = this, ed = t.editor, b = ed.getBody(), dom = ed.dom, n, se = ed.selection, r = se.getRng(), sc = r.startContainer, n, w, tn; + + // The caret sometimes gets stuck in Gecko if you delete empty paragraphs + // This workaround removes the element by hand and moves the caret to the previous element + if (sc && ed.dom.isBlock(sc) && !/^(TD|TH)$/.test(sc.nodeName) && bs) { + if (sc.childNodes.length == 0 || (sc.childNodes.length == 1 && sc.firstChild.nodeName == 'BR')) { + // Find previous block element + n = sc; + while ((n = n.previousSibling) && !ed.dom.isBlock(n)) ; + + if (n) { + if (sc != b.firstChild) { + // Find last text node + w = ed.dom.doc.createTreeWalker(n, NodeFilter.SHOW_TEXT, null, FALSE); + while (tn = w.nextNode()) + n = tn; + + // Place caret at the end of last text node + r = ed.getDoc().createRange(); + r.setStart(n, n.nodeValue ? n.nodeValue.length : 0); + r.setEnd(n, n.nodeValue ? n.nodeValue.length : 0); + se.setRng(r); + + // Remove the target container + ed.dom.remove(sc); + } + + return Event.cancel(e); + } + } + } + + // Gecko generates BR elements here and there, we don't like those so lets remove them + function handler(e) { + var pr; + + e = e.target; + + // A new BR was created in a block element, remove it + if (e && e.parentNode && e.nodeName == 'BR' && (n = t.getParentBlock(e))) { + pr = e.previousSibling; + + Event.remove(b, 'DOMNodeInserted', handler); + + // Is there whitespace at the end of the node before then we might need the pesky BR + // to place the caret at a correct location see bug: #2013943 + if (pr && pr.nodeType == 3 && /\s+$/.test(pr.nodeValue)) + return; + + // Only remove BR elements that got inserted in the middle of the text + if (e.previousSibling || e.nextSibling) + ed.dom.remove(e); + } + }; + + // Listen for new nodes + Event._add(b, 'DOMNodeInserted', handler); + + // Remove listener + window.setTimeout(function() { + Event._remove(b, 'DOMNodeInserted', handler); + }, 1); + } + }); +})(tinymce); + +(function(tinymce) { + // Shorten names + var DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, extend = tinymce.extend; + + tinymce.create('tinymce.ControlManager', { + ControlManager : function(ed, s) { + var t = this, i; + + s = s || {}; + t.editor = ed; + t.controls = {}; + t.onAdd = new tinymce.util.Dispatcher(t); + t.onPostRender = new tinymce.util.Dispatcher(t); + t.prefix = s.prefix || ed.id + '_'; + t._cls = {}; + + t.onPostRender.add(function() { + each(t.controls, function(c) { + c.postRender(); + }); + }); + }, + + get : function(id) { + return this.controls[this.prefix + id] || this.controls[id]; + }, + + setActive : function(id, s) { + var c = null; + + if (c = this.get(id)) + c.setActive(s); + + return c; + }, + + setDisabled : function(id, s) { + var c = null; + + if (c = this.get(id)) + c.setDisabled(s); + + return c; + }, + + add : function(c) { + var t = this; + + if (c) { + t.controls[c.id] = c; + t.onAdd.dispatch(c, t); + } + + return c; + }, + + createControl : function(n) { + var c, t = this, ed = t.editor; + + each(ed.plugins, function(p) { + if (p.createControl) { + c = p.createControl(n, t); + + if (c) + return false; + } + }); + + switch (n) { + case "|": + case "separator": + return t.createSeparator(); + } + + if (!c && ed.buttons && (c = ed.buttons[n])) + return t.createButton(n, c); + + return t.add(c); + }, + + createDropMenu : function(id, s, cc) { + var t = this, ed = t.editor, c, bm, v, cls; + + s = extend({ + 'class' : 'mceDropDown', + constrain : ed.settings.constrain_menus + }, s); + + s['class'] = s['class'] + ' ' + ed.getParam('skin') + 'Skin'; + if (v = ed.getParam('skin_variant')) + s['class'] += ' ' + ed.getParam('skin') + 'Skin' + v.substring(0, 1).toUpperCase() + v.substring(1); + + id = t.prefix + id; + cls = cc || t._cls.dropmenu || tinymce.ui.DropMenu; + c = t.controls[id] = new cls(id, s); + c.onAddItem.add(function(c, o) { + var s = o.settings; + + s.title = ed.getLang(s.title, s.title); + + if (!s.onclick) { + s.onclick = function(v) { + if (s.cmd) + ed.execCommand(s.cmd, s.ui || false, s.value); + }; + } + }); + + ed.onRemove.add(function() { + c.destroy(); + }); + + // Fix for bug #1897785, #1898007 + if (tinymce.isIE) { + c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + + bm = ed.selection.getBookmark(1); + }); + + c.onHideMenu.add(function() { + if (bm) { + ed.selection.moveToBookmark(bm); + bm = 0; + } + }); + } + + return t.add(c); + }, + + createListBox : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + + if (ed.settings.use_native_selects) + c = new tinymce.ui.NativeListBox(id, s); + else { + cls = cc || t._cls.listbox || tinymce.ui.ListBox; + c = new cls(id, s); + } + + t.controls[id] = c; + + // Fix focus problem in Safari + if (tinymce.isWebKit) { + c.onPostRender.add(function(c, n) { + // Store bookmark on mousedown + Event.add(n, 'mousedown', function() { + ed.bookmark = ed.selection.getBookmark(1); + }); + + // Restore on focus, since it might be lost + Event.add(n, 'focus', function() { + ed.selection.moveToBookmark(ed.bookmark); + ed.bookmark = null; + }); + }); + } + + if (c.hideMenu) + ed.onMouseDown.add(c.hideMenu, c); + + return t.add(c); + }, + + createButton : function(id, s, cc) { + var t = this, ed = t.editor, o, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.label = ed.translate(s.label); + s.scope = s.scope || ed; + + if (!s.onclick && !s.menu_button) { + s.onclick = function() { + ed.execCommand(s.cmd, s.ui || false, s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + unavailable_prefix : ed.getLang('unavailable', ''), + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + + if (s.menu_button) { + cls = cc || t._cls.menubutton || tinymce.ui.MenuButton; + c = new cls(id, s); + ed.onMouseDown.add(c.hideMenu, c); + } else { + cls = t._cls.button || tinymce.ui.Button; + c = new cls(id, s); + } + + return t.add(c); + }, + + createMenuButton : function(id, s, cc) { + s = s || {}; + s.menu_button = 1; + + return this.createButton(id, s, cc); + }, + + createSplitButton : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onclick) { + s.onclick = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + scope : s.scope, + control_manager : t + }, s); + + id = t.prefix + id; + cls = cc || t._cls.splitbutton || tinymce.ui.SplitButton; + c = t.add(new cls(id, s)); + ed.onMouseDown.add(c.hideMenu, c); + + return c; + }, + + createColorSplitButton : function(id, s, cc) { + var t = this, ed = t.editor, cmd, c, cls, bm; + + if (t.get(id)) + return null; + + s.title = ed.translate(s.title); + s.scope = s.scope || ed; + + if (!s.onclick) { + s.onclick = function(v) { + if (tinymce.isIE) + bm = ed.selection.getBookmark(1); + + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + if (!s.onselect) { + s.onselect = function(v) { + ed.execCommand(s.cmd, s.ui || false, v || s.value); + }; + } + + s = extend({ + title : s.title, + 'class' : 'mce_' + id, + 'menu_class' : ed.getParam('skin') + 'Skin', + scope : s.scope, + more_colors_title : ed.getLang('more_colors') + }, s); + + id = t.prefix + id; + cls = cc || t._cls.colorsplitbutton || tinymce.ui.ColorSplitButton; + c = new cls(id, s); + ed.onMouseDown.add(c.hideMenu, c); + + // Remove the menu element when the editor is removed + ed.onRemove.add(function() { + c.destroy(); + }); + + // Fix for bug #1897785, #1898007 + if (tinymce.isIE) { + c.onShowMenu.add(function() { + // IE 8 needs focus in order to store away a range with the current collapsed caret location + ed.focus(); + bm = ed.selection.getBookmark(1); + }); + + c.onHideMenu.add(function() { + if (bm) { + ed.selection.moveToBookmark(bm); + bm = 0; + } + }); + } + + return t.add(c); + }, + + createToolbar : function(id, s, cc) { + var c, t = this, cls; + + id = t.prefix + id; + cls = cc || t._cls.toolbar || tinymce.ui.Toolbar; + c = new cls(id, s); + + if (t.get(id)) + return null; + + return t.add(c); + }, + + createSeparator : function(cc) { + var cls = cc || this._cls.separator || tinymce.ui.Separator; + + return new cls(); + }, + + setControlType : function(n, c) { + return this._cls[n.toLowerCase()] = c; + }, + + destroy : function() { + each(this.controls, function(c) { + c.destroy(); + }); + + this.controls = null; + } + }); +})(tinymce); + +(function(tinymce) { + var Dispatcher = tinymce.util.Dispatcher, each = tinymce.each, isIE = tinymce.isIE, isOpera = tinymce.isOpera; + + tinymce.create('tinymce.WindowManager', { + WindowManager : function(ed) { + var t = this; + + t.editor = ed; + t.onOpen = new Dispatcher(t); + t.onClose = new Dispatcher(t); + t.params = {}; + t.features = {}; + }, + + open : function(s, p) { + var t = this, f = '', x, y, mo = t.editor.settings.dialog_type == 'modal', w, sw, sh, vp = tinymce.DOM.getViewPort(), u; + + // Default some options + s = s || {}; + p = p || {}; + sw = isOpera ? vp.w : screen.width; // Opera uses windows inside the Opera window + sh = isOpera ? vp.h : screen.height; + s.name = s.name || 'mc_' + new Date().getTime(); + s.width = parseInt(s.width || 320); + s.height = parseInt(s.height || 240); + s.resizable = true; + s.left = s.left || parseInt(sw / 2.0) - (s.width / 2.0); + s.top = s.top || parseInt(sh / 2.0) - (s.height / 2.0); + p.inline = false; + p.mce_width = s.width; + p.mce_height = s.height; + p.mce_auto_focus = s.auto_focus; + + if (mo) { + if (isIE) { + s.center = true; + s.help = false; + s.dialogWidth = s.width + 'px'; + s.dialogHeight = s.height + 'px'; + s.scroll = s.scrollbars || false; + } + } + + // Build features string + each(s, function(v, k) { + if (tinymce.is(v, 'boolean')) + v = v ? 'yes' : 'no'; + + if (!/^(name|url)$/.test(k)) { + if (isIE && mo) + f += (f ? ';' : '') + k + ':' + v; + else + f += (f ? ',' : '') + k + '=' + v; + } + }); + + t.features = s; + t.params = p; + t.onOpen.dispatch(t, s, p); + + u = s.url || s.file; + u = tinymce._addVer(u); + + try { + if (isIE && mo) { + w = 1; + window.showModalDialog(u, window, f); + } else + w = window.open(u, s.name, f); + } catch (ex) { + // Ignore + } + + if (!w) + alert(t.editor.getLang('popup_blocked')); + }, + + close : function(w) { + w.close(); + this.onClose.dispatch(this); + }, + + createInstance : function(cl, a, b, c, d, e) { + var f = tinymce.resolve(cl); + + return new f(a, b, c, d, e); + }, + + confirm : function(t, cb, s, w) { + w = w || window; + + cb.call(s || this, w.confirm(this._decode(this.editor.getLang(t, t)))); + }, + + alert : function(tx, cb, s, w) { + var t = this; + + w = w || window; + w.alert(t._decode(t.editor.getLang(tx, tx))); + + if (cb) + cb.call(s || t); + }, + + resizeBy : function(dw, dh, win) { + win.resizeBy(dw, dh); + }, + + // Internal functions + + _decode : function(s) { + return tinymce.DOM.decode(s).replace(/\\n/g, '\n'); + } + }); +}(tinymce)); +(function(tinymce) { + function CommandManager() { + var execCommands = {}, queryStateCommands = {}, queryValueCommands = {}; + + function add(collection, cmd, func, scope) { + if (typeof(cmd) == 'string') + cmd = [cmd]; + + tinymce.each(cmd, function(cmd) { + collection[cmd.toLowerCase()] = {func : func, scope : scope}; + }); + }; + + tinymce.extend(this, { + add : function(cmd, func, scope) { + add(execCommands, cmd, func, scope); + }, + + addQueryStateHandler : function(cmd, func, scope) { + add(queryStateCommands, cmd, func, scope); + }, + + addQueryValueHandler : function(cmd, func, scope) { + add(queryValueCommands, cmd, func, scope); + }, + + execCommand : function(scope, cmd, ui, value, args) { + if (cmd = execCommands[cmd.toLowerCase()]) { + if (cmd.func.call(scope || cmd.scope, ui, value, args) !== false) + return true; + } + }, + + queryCommandValue : function() { + if (cmd = queryValueCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + }, + + queryCommandState : function() { + if (cmd = queryStateCommands[cmd.toLowerCase()]) + return cmd.func.call(scope || cmd.scope, ui, value, args); + } + }); + }; + + tinymce.GlobalCommands = new CommandManager(); +})(tinymce); +(function(tinymce) { + tinymce.Formatter = function(ed) { + var formats = {}, + each = tinymce.each, + dom = ed.dom, + selection = ed.selection, + TreeWalker = tinymce.dom.TreeWalker, + rangeUtils = new tinymce.dom.RangeUtils(dom), + isValid = ed.schema.isValid, + isBlock = dom.isBlock, + forcedRootBlock = ed.settings.forced_root_block, + nodeIndex = dom.nodeIndex, + INVISIBLE_CHAR = '\uFEFF', + MCE_ATTR_RE = /^(src|href|style)$/, + FALSE = false, + TRUE = true, + undefined, + pendingFormats = {apply : [], remove : []}; + + function isArray(obj) { + return obj instanceof Array; + }; + + function getParents(node, selector) { + return dom.getParents(node, selector, dom.getRoot()); + }; + + function isCaretNode(node) { + return node.nodeType === 1 && (node.face === 'mceinline' || node.style.fontFamily === 'mceinline'); + }; + + // Public functions + + function get(name) { + return name ? formats[name] : formats; + }; + + function register(name, format) { + if (name) { + if (typeof(name) !== 'string') { + each(name, function(format, name) { + register(name, format); + }); + } else { + // Force format into array and add it to internal collection + format = format.length ? format : [format]; + + each(format, function(format) { + // Set deep to false by default on selector formats this to avoid removing + // alignment on images inside paragraphs when alignment is changed on paragraphs + if (format.deep === undefined) + format.deep = !format.selector; + + // Default to true + if (format.split === undefined) + format.split = !format.selector || format.inline; + + // Default to true + if (format.remove === undefined && format.selector && !format.inline) + format.remove = 'none'; + + // Mark format as a mixed format inline + block level + if (format.selector && format.inline) { + format.mixed = true; + format.block_expand = true; + } + + // Split classes if needed + if (typeof(format.classes) === 'string') + format.classes = format.classes.split(/\s+/); + }); + + formats[name] = format; + } + } + }; + + function apply(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, rng, i; + + function moveStart(rng) { + var container = rng.startContainer, + offset = rng.startOffset, + walker, node; + + // Move startContainer/startOffset in to a suitable node + if (container.nodeType == 1 || container.nodeValue === "") { + container = container.nodeType == 1 ? container.childNodes[offset] : container; + walker = new TreeWalker(container, container.parentNode); + for (node = walker.current(); node; node = walker.next()) { + if (node.nodeType == 3 && !isBlock(node.parentNode) && !isWhiteSpaceNode(node)) { + rng.setStart(node, 0); + break; + } + } + } + + return rng; + }; + + function setElementFormat(elm, fmt) { + fmt = fmt || format; + + if (elm) { + each(fmt.styles, function(value, name) { + dom.setStyle(elm, name, replaceVars(value, vars)); + }); + + each(fmt.attributes, function(value, name) { + dom.setAttrib(elm, name, replaceVars(value, vars)); + }); + + each(fmt.classes, function(value) { + value = replaceVars(value, vars); + + if (!dom.hasClass(elm, value)) + dom.addClass(elm, value); + }); + } + }; + + function applyRngStyle(rng) { + var newWrappers = [], wrapName, wrapElm; + + // Setup wrapper element + wrapName = format.inline || format.block; + wrapElm = dom.create(wrapName); + setElementFormat(wrapElm); + + rangeUtils.walk(rng, function(nodes) { + var currentWrapElm; + + function process(node) { + var nodeName = node.nodeName.toLowerCase(), parentName = node.parentNode.nodeName.toLowerCase(), found; + + // Stop wrapping on br elements + if (isEq(nodeName, 'br')) { + currentWrapElm = 0; + + // Remove any br elements when we wrap things + if (format.block) + dom.remove(node); + + return; + } + + // If node is wrapper type + if (format.wrapper && matchNode(node, name, vars)) { + currentWrapElm = 0; + return; + } + + // Can we rename the block + if (format.block && !format.wrapper && isTextBlock(nodeName)) { + node = dom.rename(node, wrapName); + setElementFormat(node); + newWrappers.push(node); + currentWrapElm = 0; + return; + } + + // Handle selector patterns + if (format.selector) { + // Look for matching formats + each(formatList, function(format) { + if (dom.is(node, format.selector) && !isCaretNode(node)) { + setElementFormat(node, format); + found = true; + } + }); + + // Continue processing if a selector match wasn't found and a inline element is defined + if (!format.inline || found) { + currentWrapElm = 0; + return; + } + } + + // Is it valid to wrap this item + if (isValid(wrapName, nodeName) && isValid(parentName, wrapName)) { + // Start wrapping + if (!currentWrapElm) { + // Wrap the node + currentWrapElm = wrapElm.cloneNode(FALSE); + node.parentNode.insertBefore(currentWrapElm, node); + newWrappers.push(currentWrapElm); + } + + currentWrapElm.appendChild(node); + } else { + // Start a new wrapper for possible children + currentWrapElm = 0; + + each(tinymce.grep(node.childNodes), process); + + // End the last wrapper + currentWrapElm = 0; + } + }; + + // Process siblings from range + each(nodes, process); + }); + + // Cleanup + each(newWrappers, function(node) { + var childCount; + + function getChildCount(node) { + var count = 0; + + each(node.childNodes, function(node) { + if (!isWhiteSpaceNode(node) && !isBookmarkNode(node)) + count++; + }); + + return count; + }; + + function mergeStyles(node) { + var child, clone; + + each(node.childNodes, function(node) { + if (node.nodeType == 1 && !isBookmarkNode(node) && !isCaretNode(node)) { + child = node; + return FALSE; // break loop + } + }); + + // If child was found and of the same type as the current node + if (child && matchName(child, format)) { + clone = child.cloneNode(FALSE); + setElementFormat(clone); + + dom.replace(clone, node, TRUE); + dom.remove(child, 1); + } + + return clone || node; + }; + + childCount = getChildCount(node); + + // Remove empty nodes + if (childCount === 0) { + dom.remove(node, 1); + return; + } + + if (format.inline || format.wrapper) { + // Merges the current node with it's children of similar type to reduce the number of elements + if (!format.exact && childCount === 1) + node = mergeStyles(node); + + // Remove/merge children + each(formatList, function(format) { + // Merge all children of similar type will move styles from child to parent + // this: text + // will become: text + each(dom.select(format.inline, node), function(child) { + removeFormat(format, vars, child, format.exact ? child : null); + }); + }); + + // Remove child if direct parent is of same type + if (matchNode(node.parentNode, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + + // Look for parent with similar style format + if (format.merge_with_parents) { + dom.getParent(node.parentNode, function(parent) { + if (matchNode(parent, name, vars)) { + dom.remove(node, 1); + node = 0; + return TRUE; + } + }); + } + + // Merge next and previous siblings if they are similar texttext becomes texttext + if (node) { + node = mergeSiblings(getNonWhiteSpaceSibling(node), node); + node = mergeSiblings(node, getNonWhiteSpaceSibling(node, TRUE)); + } + } + }); + }; + + if (format) { + if (node) { + rng = dom.createRng(); + + rng.setStartBefore(node); + rng.setEndAfter(node); + + applyRngStyle(rng); + } else { + if (!selection.isCollapsed() || !format.inline) { + // Apply formatting to selection + bookmark = selection.getBookmark(); + applyRngStyle(expandRng(selection.getRng(TRUE), formatList)); + + selection.moveToBookmark(bookmark); + selection.setRng(moveStart(selection.getRng(TRUE))); + ed.nodeChanged(); + } else + performCaretAction('apply', name, vars); + } + } + }; + + function remove(name, vars, node) { + var formatList = get(name), format = formatList[0], bookmark, i, rng; + + // Merges the styles for each node + function process(node) { + var children, i, l; + + // Grab the children first since the nodelist might be changed + children = tinymce.grep(node.childNodes); + + // Process current node + for (i = 0, l = formatList.length; i < l; i++) { + if (removeFormat(formatList[i], vars, node, node)) + break; + } + + // Process the children + if (format.deep) { + for (i = 0, l = children.length; i < l; i++) + process(children[i]); + } + }; + + function findFormatRoot(container) { + var formatRoot; + + // Find format root + each(getParents(container.parentNode).reverse(), function(parent) { + var format; + + // Find format root element + if (!formatRoot && parent.id != '_start' && parent.id != '_end') { + // Is the node matching the format we are looking for + format = matchNode(parent, name, vars); + if (format && format.split !== false) + formatRoot = parent; + } + }); + + return formatRoot; + }; + + function wrapAndSplit(format_root, container, target, split) { + var parent, clone, lastClone, firstClone, i, formatRootParent; + + // Format root found then clone formats and split it + if (format_root) { + formatRootParent = format_root.parentNode; + + for (parent = container.parentNode; parent && parent != formatRootParent; parent = parent.parentNode) { + clone = parent.cloneNode(FALSE); + + for (i = 0; i < formatList.length; i++) { + if (removeFormat(formatList[i], vars, clone, clone)) { + clone = 0; + break; + } + } + + // Build wrapper node + if (clone) { + if (lastClone) + clone.appendChild(lastClone); + + if (!firstClone) + firstClone = clone; + + lastClone = clone; + } + } + + // Never split block elements if the format is mixed + if (split && (!format.mixed || !isBlock(format_root))) + container = dom.split(format_root, container); + + // Wrap container in cloned formats + if (lastClone) { + target.parentNode.insertBefore(lastClone, target); + firstClone.appendChild(target); + } + } + + return container; + }; + + function splitToFormatRoot(container) { + return wrapAndSplit(findFormatRoot(container), container, container, true); + }; + + function unwrap(start) { + var node = dom.get(start ? '_start' : '_end'), + out = node[start ? 'firstChild' : 'lastChild']; + + // If the end is placed within the start the result will be removed + // So this checks if the out node is a bookmark node if it is it + // checks for another more suitable node + if (isBookmarkNode(out)) + out = out[start ? 'firstChild' : 'lastChild']; + + dom.remove(node, true); + + return out; + }; + + function removeRngStyle(rng) { + var startContainer, endContainer; + + rng = expandRng(rng, formatList, TRUE); + + if (format.split) { + startContainer = getContainer(rng, TRUE); + endContainer = getContainer(rng); + + if (startContainer != endContainer) { + // Wrap start/end nodes in span element since these might be cloned/moved + startContainer = wrap(startContainer, 'span', {id : '_start', _mce_type : 'bookmark'}); + endContainer = wrap(endContainer, 'span', {id : '_end', _mce_type : 'bookmark'}); + + // Split start/end + splitToFormatRoot(startContainer); + splitToFormatRoot(endContainer); + + // Unwrap start/end to get real elements again + startContainer = unwrap(TRUE); + endContainer = unwrap(); + } else + startContainer = endContainer = splitToFormatRoot(startContainer); + + // Update range positions since they might have changed after the split operations + rng.startContainer = startContainer.parentNode; + rng.startOffset = nodeIndex(startContainer); + rng.endContainer = endContainer.parentNode; + rng.endOffset = nodeIndex(endContainer) + 1; + } + + // Remove items between start/end + rangeUtils.walk(rng, function(nodes) { + each(nodes, function(node) { + process(node); + }); + }); + }; + + // Handle node + if (node) { + rng = dom.createRng(); + rng.setStartBefore(node); + rng.setEndAfter(node); + removeRngStyle(rng); + return; + } + + if (!selection.isCollapsed() || !format.inline) { + bookmark = selection.getBookmark(); + removeRngStyle(selection.getRng(TRUE)); + selection.moveToBookmark(bookmark); + ed.nodeChanged(); + } else + performCaretAction('remove', name, vars); + }; + + function toggle(name, vars, node) { + if (match(name, vars, node)) + remove(name, vars, node); + else + apply(name, vars, node); + }; + + function matchNode(node, name, vars, similar) { + var formatList = get(name), format, i, classes; + + function matchItems(node, format, item_name) { + var key, value, items = format[item_name], i; + + // Check all items + if (items) { + // Non indexed object + if (items.length === undefined) { + for (key in items) { + if (items.hasOwnProperty(key)) { + if (item_name === 'attributes') + value = dom.getAttrib(node, key); + else + value = getStyle(node, key); + + if (similar && !value && !format.exact) + return; + + if ((!similar || format.exact) && !isEq(value, replaceVars(items[key], vars))) + return; + } + } + } else { + // Only one match needed for indexed arrays + for (i = 0; i < items.length; i++) { + if (item_name === 'attributes' ? dom.getAttrib(node, items[i]) : getStyle(node, items[i])) + return format; + } + } + } + + return format; + }; + + if (formatList && node) { + // Check each format in list + for (i = 0; i < formatList.length; i++) { + format = formatList[i]; + + // Name name, attributes, styles and classes + if (matchName(node, format) && matchItems(node, format, 'attributes') && matchItems(node, format, 'styles')) { + // Match classes + if (classes = format.classes) { + for (i = 0; i < classes.length; i++) { + if (!dom.hasClass(node, classes[i])) + return; + } + } + + return format; + } + } + } + }; + + function match(name, vars, node) { + var startNode, i; + + function matchParents(node) { + // Find first node with similar format settings + node = dom.getParent(node, function(node) { + return !!matchNode(node, name, vars, true); + }); + + // Do an exact check on the similar format element + return matchNode(node, name, vars); + }; + + // Check specified node + if (node) + return matchParents(node); + + // Check pending formats + if (selection.isCollapsed()) { + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + if (pendingFormats.apply[i].name == name) + return true; + } + + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + if (pendingFormats.remove[i].name == name) + return false; + } + + return matchParents(selection.getNode()); + } + + // Check selected node + node = selection.getNode(); + if (matchParents(node)) + return TRUE; + + // Check start node if it's different + startNode = selection.getStart(); + if (startNode != node) { + if (matchParents(startNode)) + return TRUE; + } + + return FALSE; + }; + + function matchAll(names, vars) { + var startElement, matchedFormatNames = [], checkedMap = {}, i, ni, name; + + // If the selection is collapsed then check pending formats + if (selection.isCollapsed()) { + for (ni = 0; ni < names.length; ni++) { + // If the name is to be removed, then stop it from being added + for (i = pendingFormats.remove.length - 1; i >= 0; i--) { + name = names[ni]; + + if (pendingFormats.remove[i].name == name) { + checkedMap[name] = true; + break; + } + } + } + + // If the format is to be applied + for (i = pendingFormats.apply.length - 1; i >= 0; i--) { + for (ni = 0; ni < names.length; ni++) { + name = names[ni]; + + if (!checkedMap[name] && pendingFormats.apply[i].name == name) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + } + } + + // Check start of selection for formats + startElement = selection.getStart(); + dom.getParent(startElement, function(node) { + var i, name; + + for (i = 0; i < names.length; i++) { + name = names[i]; + + if (!checkedMap[name] && matchNode(node, name, vars)) { + checkedMap[name] = true; + matchedFormatNames.push(name); + } + } + }); + + return matchedFormatNames; + }; + + function canApply(name) { + var formatList = get(name), startNode, parents, i, x, selector; + + if (formatList) { + startNode = selection.getStart(); + parents = getParents(startNode); + + for (x = formatList.length - 1; x >= 0; x--) { + selector = formatList[x].selector; + + // Format is not selector based, then always return TRUE + if (!selector) + return TRUE; + + for (i = parents.length - 1; i >= 0; i--) { + if (dom.is(parents[i], selector)) + return TRUE; + } + } + } + + return FALSE; + }; + + // Expose to public + tinymce.extend(this, { + get : get, + register : register, + apply : apply, + remove : remove, + toggle : toggle, + match : match, + matchAll : matchAll, + matchNode : matchNode, + canApply : canApply + }); + + // Private functions + + function matchName(node, format) { + // Check for inline match + if (isEq(node, format.inline)) + return TRUE; + + // Check for block match + if (isEq(node, format.block)) + return TRUE; + + // Check for selector match + if (format.selector) + return dom.is(node, format.selector); + }; + + function isEq(str1, str2) { + str1 = str1 || ''; + str2 = str2 || ''; + + str1 = '' + (str1.nodeName || str1); + str2 = '' + (str2.nodeName || str2); + + return str1.toLowerCase() == str2.toLowerCase(); + }; + + function getStyle(node, name) { + var styleVal = dom.getStyle(node, name); + + // Force the format to hex + if (name == 'color' || name == 'backgroundColor') + styleVal = dom.toHex(styleVal); + + // Opera will return bold as 700 + if (name == 'fontWeight' && styleVal == 700) + styleVal = 'bold'; + + return '' + styleVal; + }; + + function replaceVars(value, vars) { + if (typeof(value) != "string") + value = value(vars); + else if (vars) { + value = value.replace(/%(\w+)/g, function(str, name) { + return vars[name] || str; + }); + } + + return value; + }; + + function isWhiteSpaceNode(node) { + return node && node.nodeType === 3 && /^\s*$/.test(node.nodeValue); + }; + + function wrap(node, name, attrs) { + var wrapper = dom.create(name, attrs); + + node.parentNode.insertBefore(wrapper, node); + wrapper.appendChild(node); + + return wrapper; + }; + + function expandRng(rng, format, remove) { + var startContainer = rng.startContainer, + startOffset = rng.startOffset, + endContainer = rng.endContainer, + endOffset = rng.endOffset, sibling, lastIdx; + + // This function walks up the tree if there is no siblings before/after the node + function findParentContainer(container, child_name, sibling_name, root) { + var parent, child; + + root = root || dom.getRoot(); + + for (;;) { + // Check if we can move up are we at root level or body level + parent = container.parentNode; + + // Stop expanding on block elements or root depending on format + if (parent == root || (!format[0].block_expand && isBlock(parent))) + return container; + + for (sibling = parent[child_name]; sibling && sibling != container; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return container; + + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return container; + } + + container = container.parentNode; + } + + return container; + }; + + // If index based start position then resolve it + if (startContainer.nodeType == 1 && startContainer.hasChildNodes()) { + lastIdx = startContainer.childNodes.length - 1; + startContainer = startContainer.childNodes[startOffset > lastIdx ? lastIdx : startOffset]; + + if (startContainer.nodeType == 3) + startOffset = 0; + } + + // If index based end position then resolve it + if (endContainer.nodeType == 1 && endContainer.hasChildNodes()) { + lastIdx = endContainer.childNodes.length - 1; + endContainer = endContainer.childNodes[endOffset > lastIdx ? lastIdx : endOffset - 1]; + + if (endContainer.nodeType == 3) + endOffset = endContainer.nodeValue.length; + } + + // Exclude bookmark nodes if possible + if (isBookmarkNode(startContainer.parentNode)) + startContainer = startContainer.parentNode; + + if (isBookmarkNode(startContainer)) + startContainer = startContainer.nextSibling || startContainer; + + if (isBookmarkNode(endContainer.parentNode)) + endContainer = endContainer.parentNode; + + if (isBookmarkNode(endContainer)) + endContainer = endContainer.previousSibling || endContainer; + + // Move start/end point up the tree if the leaves are sharp and if we are in different containers + // Example * becomes !: !

                                                *texttext*

                                                ! + // This will reduce the number of wrapper elements that needs to be created + // Move start point up the tree + if (format[0].inline || format[0].block_expand) { + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + + // Expand start/end container to matching selector + if (format[0].selector && format[0].expand !== FALSE && !format[0].inline) { + function findSelectorEndPoint(container, sibling_name) { + var parents, i, y; + + if (container.nodeType == 3 && container.nodeValue.length == 0 && container[sibling_name]) + container = container[sibling_name]; + + parents = getParents(container); + for (i = 0; i < parents.length; i++) { + for (y = 0; y < format.length; y++) { + if (dom.is(parents[i], format[y].selector)) + return parents[i]; + } + } + + return container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findSelectorEndPoint(startContainer, 'previousSibling'); + endContainer = findSelectorEndPoint(endContainer, 'nextSibling'); + } + + // Expand start/end container to matching block element or text node + if (format[0].block || format[0].selector) { + function findBlockEndPoint(container, sibling_name, sibling_name2) { + var node; + + // Expand to block of similar type + if (!format[0].wrapper) + node = dom.getParent(container, format[0].block); + + // Expand to first wrappable block element or any block element + if (!node) + node = dom.getParent(container.nodeType == 3 ? container.parentNode : container, isBlock); + + // Exclude inner lists from wrapping + if (node && format[0].wrapper) + node = getParents(node, 'ul,ol').reverse()[0] || node; + + // Didn't find a block element look for first/last wrappable element + if (!node) { + node = container; + + while (node[sibling_name] && !isBlock(node[sibling_name])) { + node = node[sibling_name]; + + // Break on BR but include it will be removed later on + // we can't remove it now since we need to check if it can be wrapped + if (isEq(node, 'br')) + break; + } + } + + return node || container; + }; + + // Find new startContainer/endContainer if there is better one + startContainer = findBlockEndPoint(startContainer, 'previousSibling'); + endContainer = findBlockEndPoint(endContainer, 'nextSibling'); + + // Non block element then try to expand up the leaf + if (format[0].block) { + if (!isBlock(startContainer)) + startContainer = findParentContainer(startContainer, 'firstChild', 'nextSibling'); + + if (!isBlock(endContainer)) + endContainer = findParentContainer(endContainer, 'lastChild', 'previousSibling'); + } + } + + // Setup index for startContainer + if (startContainer.nodeType == 1) { + startOffset = nodeIndex(startContainer); + startContainer = startContainer.parentNode; + } + + // Setup index for endContainer + if (endContainer.nodeType == 1) { + endOffset = nodeIndex(endContainer) + 1; + endContainer = endContainer.parentNode; + } + + // Return new range like object + return { + startContainer : startContainer, + startOffset : startOffset, + endContainer : endContainer, + endOffset : endOffset + }; + } + + function removeFormat(format, vars, node, compare_node) { + var i, attrs, stylesModified; + + // Check if node matches format + if (!matchName(node, format)) + return FALSE; + + // Should we compare with format attribs and styles + if (format.remove != 'all') { + // Remove styles + each(format.styles, function(value, name) { + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(getStyle(compare_node, name), value)) + dom.setStyle(node, name, ''); + + stylesModified = 1; + }); + + // Remove style attribute if it's empty + if (stylesModified && dom.getAttrib(node, 'style') == '') { + node.removeAttribute('style'); + node.removeAttribute('_mce_style'); + } + + // Remove attributes + each(format.attributes, function(value, name) { + var valueOut; + + value = replaceVars(value, vars); + + // Indexed array + if (typeof(name) === 'number') { + name = value; + compare_node = 0; + } + + if (!compare_node || isEq(dom.getAttrib(compare_node, name), value)) { + // Keep internal classes + if (name == 'class') { + value = dom.getAttrib(node, name); + if (value) { + // Build new class value where everything is removed except the internal prefixed classes + valueOut = ''; + each(value.split(/\s+/), function(cls) { + if (/mce\w+/.test(cls)) + valueOut += (valueOut ? ' ' : '') + cls; + }); + + // We got some internal classes left + if (valueOut) { + dom.setAttrib(node, name, valueOut); + return; + } + } + } + + // IE6 has a bug where the attribute doesn't get removed correctly + if (name == "class") + node.removeAttribute('className'); + + // Remove mce prefixed attributes + if (MCE_ATTR_RE.test(name)) + node.removeAttribute('_mce_' + name); + + node.removeAttribute(name); + } + }); + + // Remove classes + each(format.classes, function(value) { + value = replaceVars(value, vars); + + if (!compare_node || dom.hasClass(compare_node, value)) + dom.removeClass(node, value); + }); + + // Check for non internal attributes + attrs = dom.getAttribs(node); + for (i = 0; i < attrs.length; i++) { + if (attrs[i].nodeName.indexOf('_') !== 0) + return FALSE; + } + } + + // Remove the inline child if it's empty for example or + if (format.remove != 'none') { + removeNode(node, format); + return TRUE; + } + }; + + function removeNode(node, format) { + var parentNode = node.parentNode, rootBlockElm; + + if (format.block) { + if (!forcedRootBlock) { + function find(node, next, inc) { + node = getNonWhiteSpaceSibling(node, next, inc); + + return !node || (node.nodeName == 'BR' || isBlock(node)); + }; + + // Append BR elements if needed before we remove the block + if (isBlock(node) && !isBlock(parentNode)) { + if (!find(node, FALSE) && !find(node.firstChild, TRUE, 1)) + node.insertBefore(dom.create('br'), node.firstChild); + + if (!find(node, TRUE) && !find(node.lastChild, FALSE, 1)) + node.appendChild(dom.create('br')); + } + } else { + // Wrap the block in a forcedRootBlock if we are at the root of document + if (parentNode == dom.getRoot()) { + if (!format.list_block || !isEq(node, format.list_block)) { + each(tinymce.grep(node.childNodes), function(node) { + if (isValid(forcedRootBlock, node.nodeName.toLowerCase())) { + if (!rootBlockElm) + rootBlockElm = wrap(node, forcedRootBlock); + else + rootBlockElm.appendChild(node); + } else + rootBlockElm = 0; + }); + } + } + } + } + + // Never remove nodes that isn't the specified inline element if a selector is specified too + if (format.selector && format.inline && !isEq(format.inline, node)) + return; + + dom.remove(node, 1); + }; + + function getNonWhiteSpaceSibling(node, next, inc) { + if (node) { + next = next ? 'nextSibling' : 'previousSibling'; + + for (node = inc ? node : node[next]; node; node = node[next]) { + if (node.nodeType == 1 || !isWhiteSpaceNode(node)) + return node; + } + } + }; + + function isBookmarkNode(node) { + return node && node.nodeType == 1 && node.getAttribute('_mce_type') == 'bookmark'; + }; + + function mergeSiblings(prev, next) { + var marker, sibling, tmpSibling; + + function compareElements(node1, node2) { + // Not the same name + if (node1.nodeName != node2.nodeName) + return FALSE; + + function getAttribs(node) { + var attribs = {}; + + each(dom.getAttribs(node), function(attr) { + var name = attr.nodeName.toLowerCase(); + + // Don't compare internal attributes or style + if (name.indexOf('_') !== 0 && name !== 'style') + attribs[name] = dom.getAttrib(node, name); + }); + + return attribs; + }; + + function compareObjects(obj1, obj2) { + var value, name; + + for (name in obj1) { + // Obj1 has item obj2 doesn't have + if (obj1.hasOwnProperty(name)) { + value = obj2[name]; + + // Obj2 doesn't have obj1 item + if (value === undefined) + return FALSE; + + // Obj2 item has a different value + if (obj1[name] != value) + return FALSE; + + // Delete similar value + delete obj2[name]; + } + } + + // Check if obj 2 has something obj 1 doesn't have + for (name in obj2) { + // Obj2 has item obj1 doesn't have + if (obj2.hasOwnProperty(name)) + return FALSE; + } + + return TRUE; + }; + + // Attribs are not the same + if (!compareObjects(getAttribs(node1), getAttribs(node2))) + return FALSE; + + // Styles are not the same + if (!compareObjects(dom.parseStyle(dom.getAttrib(node1, 'style')), dom.parseStyle(dom.getAttrib(node2, 'style')))) + return FALSE; + + return TRUE; + }; + + // Check if next/prev exists and that they are elements + if (prev && next) { + function findElementSibling(node, sibling_name) { + for (sibling = node; sibling; sibling = sibling[sibling_name]) { + if (sibling.nodeType == 3 && !isWhiteSpaceNode(sibling)) + return node; + + if (sibling.nodeType == 1 && !isBookmarkNode(sibling)) + return sibling; + } + + return node; + }; + + // If previous sibling is empty then jump over it + prev = findElementSibling(prev, 'previousSibling'); + next = findElementSibling(next, 'nextSibling'); + + // Compare next and previous nodes + if (compareElements(prev, next)) { + // Append nodes between + for (sibling = prev.nextSibling; sibling && sibling != next;) { + tmpSibling = sibling; + sibling = sibling.nextSibling; + prev.appendChild(tmpSibling); + } + + // Remove next node + dom.remove(next); + + // Move children into prev node + each(tinymce.grep(next.childNodes), function(node) { + prev.appendChild(node); + }); + + return prev; + } + } + + return next; + }; + + function isTextBlock(name) { + return /^(h[1-6]|p|div|pre|address|dl|dt|dd)$/.test(name); + }; + + function getContainer(rng, start) { + var container, offset, lastIdx; + + container = rng[start ? 'startContainer' : 'endContainer']; + offset = rng[start ? 'startOffset' : 'endOffset']; + + if (container.nodeType == 1) { + lastIdx = container.childNodes.length - 1; + + if (!start && offset) + offset--; + + container = container.childNodes[offset > lastIdx ? lastIdx : offset]; + } + + return container; + }; + + function performCaretAction(type, name, vars) { + var i, currentPendingFormats = pendingFormats[type], + otherPendingFormats = pendingFormats[type == 'apply' ? 'remove' : 'apply']; + + function hasPending() { + return pendingFormats.apply.length || pendingFormats.remove.length; + }; + + function resetPending() { + pendingFormats.apply = []; + pendingFormats.remove = []; + }; + + function perform(caret_node) { + // Apply pending formats + each(pendingFormats.apply.reverse(), function(item) { + apply(item.name, item.vars, caret_node); + }); + + // Remove pending formats + each(pendingFormats.remove.reverse(), function(item) { + remove(item.name, item.vars, caret_node); + }); + + dom.remove(caret_node, 1); + resetPending(); + }; + + // Check if it already exists then ignore it + for (i = currentPendingFormats.length - 1; i >= 0; i--) { + if (currentPendingFormats[i].name == name) + return; + } + + currentPendingFormats.push({name : name, vars : vars}); + + // Check if it's in the other type, then remove it + for (i = otherPendingFormats.length - 1; i >= 0; i--) { + if (otherPendingFormats[i].name == name) + otherPendingFormats.splice(i, 1); + } + + // Pending apply or remove formats + if (hasPending()) { + ed.getDoc().execCommand('FontName', false, 'mceinline'); + pendingFormats.lastRng = selection.getRng(); + + // IE will convert the current word + each(dom.select('font,span'), function(node) { + var bookmark; + + if (isCaretNode(node)) { + bookmark = selection.getBookmark(); + perform(node); + selection.moveToBookmark(bookmark); + ed.nodeChanged(); + } + }); + + // Only register listeners once if we need to + if (!pendingFormats.isListening && hasPending()) { + pendingFormats.isListening = true; + + each('onKeyDown,onKeyUp,onKeyPress,onMouseUp'.split(','), function(event) { + ed[event].addToTop(function(ed, e) { + // Do we have pending formats and is the selection moved has moved + if (hasPending() && !tinymce.dom.RangeUtils.compareRanges(pendingFormats.lastRng, selection.getRng())) { + each(dom.select('font,span'), function(node) { + var textNode, rng; + + // Look for marker + if (isCaretNode(node)) { + textNode = node.firstChild; + + perform(node); + + rng = dom.createRng(); + rng.setStart(textNode, textNode.nodeValue.length); + rng.setEnd(textNode, textNode.nodeValue.length); + selection.setRng(rng); + ed.nodeChanged(); + } + }); + + // Always unbind and clear pending styles on keyup + if (e.type == 'keyup' || e.type == 'mouseup') + resetPending(); + } + }); + }); + } + } + }; + }; +})(tinymce); + +tinymce.onAddEditor.add(function(tinymce, ed) { + var filters, fontSizes, dom, settings = ed.settings; + + if (settings.inline_styles) { + fontSizes = tinymce.explode(settings.font_size_style_values); + + function replaceWithSpan(node, styles) { + dom.replace(dom.create('span', { + style : styles + }), node, 1); + }; + + filters = { + font : function(dom, node) { + replaceWithSpan(node, { + backgroundColor : node.style.backgroundColor, + color : node.color, + fontFamily : node.face, + fontSize : fontSizes[parseInt(node.size) - 1] + }); + }, + + u : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'underline' + }); + }, + + strike : function(dom, node) { + replaceWithSpan(node, { + textDecoration : 'line-through' + }); + } + }; + + function convert(editor, params) { + dom = editor.dom; + + if (settings.convert_fonts_to_spans) { + tinymce.each(dom.select('font,u,strike', params.node), function(node) { + filters[node.nodeName.toLowerCase()](ed.dom, node); + }); + } + }; + + ed.onPreProcess.add(convert); + + ed.onInit.add(function() { + ed.selection.onSetContent.add(convert); + }); + } +}); + diff --git a/sn_templates/tiny_mce/utils/editable_selects.js b/sn_templates/tiny_mce/utils/editable_selects.js new file mode 100644 index 0000000..6cf1b16 --- /dev/null +++ b/sn_templates/tiny_mce/utils/editable_selects.js @@ -0,0 +1,70 @@ +/** + * editable_selects.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing + */ + +var TinyMCE_EditableSelects = { + editSelectElm : null, + + init : function() { + var nl = document.getElementsByTagName("select"), i, d = document, o; + + for (i=0; i'; + h += ' '; + + return h; +} + +function updateColor(img_id, form_element_id) { + document.getElementById(img_id).style.backgroundColor = document.forms[0].elements[form_element_id].value; +} + +function setBrowserDisabled(id, state) { + var img = document.getElementById(id); + var lnk = document.getElementById(id + "_link"); + + if (lnk) { + if (state) { + lnk.setAttribute("realhref", lnk.getAttribute("href")); + lnk.removeAttribute("href"); + tinyMCEPopup.dom.addClass(img, 'disabled'); + } else { + if (lnk.getAttribute("realhref")) + lnk.setAttribute("href", lnk.getAttribute("realhref")); + + tinyMCEPopup.dom.removeClass(img, 'disabled'); + } + } +} + +function getBrowserHTML(id, target_form_element, type, prefix) { + var option = prefix + "_" + type + "_browser_callback", cb, html; + + cb = tinyMCEPopup.getParam(option, tinyMCEPopup.getParam("file_browser_callback")); + + if (!cb) + return ""; + + html = ""; + html += ''; + html += ' '; + + return html; +} + +function openBrowser(img_id, target_form_element, type, option) { + var img = document.getElementById(img_id); + + if (img.className != "mceButtonDisabled") + tinyMCEPopup.openBrowser(target_form_element, type, option); +} + +function selectByValue(form_obj, field_name, value, add_custom, ignore_case) { + if (!form_obj || !form_obj.elements[field_name]) + return; + + var sel = form_obj.elements[field_name]; + + var found = false; + for (var i=0; i parseInt(v)) + st = this.mark(f, n); + } + } + + return st; + }, + + hasClass : function(n, c, d) { + return new RegExp('\\b' + c + (d ? '[0-9]+' : '') + '\\b', 'g').test(n.className); + }, + + getNum : function(n, c) { + c = n.className.match(new RegExp('\\b' + c + '([0-9]+)\\b', 'g'))[0]; + c = c.replace(/[^0-9]/g, ''); + + return c; + }, + + addClass : function(n, c, b) { + var o = this.removeClass(n, c); + n.className = b ? c + (o != '' ? (' ' + o) : '') : (o != '' ? (o + ' ') : '') + c; + }, + + removeClass : function(n, c) { + c = n.className.replace(new RegExp("(^|\\s+)" + c + "(\\s+|$)"), ' '); + return n.className = c != ' ' ? c : ''; + }, + + tags : function(f, s) { + return f.getElementsByTagName(s); + }, + + mark : function(f, n) { + var s = this.settings; + + this.addClass(n, s.invalid_cls); + this.markLabels(f, n, s.invalid_cls); + + return false; + }, + + markLabels : function(f, n, ic) { + var nl, i; + + nl = this.tags(f, "label"); + for (i=0; i + Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis + This software is released under the MIT License +*/ +var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write(" + + + + + +
                                                + + +
                                                +

                                                +
                                                + + + + +
                                                +
                                                + +

                                                + +
                                                +    +

                                                + +

                                                + + +   + edit  + IP:  + + + +

                                                +
                                                + + +
                                                + + + + +
                                                + + + + + +
                                                + + +
                                                + + + + + diff --git a/sn_templates/xx_admin_sessions.html b/sn_templates/xx_admin_sessions.html new file mode 100644 index 0000000..39e32d6 --- /dev/null +++ b/sn_templates/xx_admin_sessions.html @@ -0,0 +1,45 @@ + + + + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                +
                                                + Sortieren nach:Key + Nickname + IP + nur Members anzeigen + +
                                                +
                                                KeyNicknameIP#HitsLastpath
                                                + + +
                                                + diff --git a/sn_templates/xx_admin_user_content.html b/sn_templates/xx_admin_user_content.html new file mode 100644 index 0000000..8dbcb63 --- /dev/null +++ b/sn_templates/xx_admin_user_content.html @@ -0,0 +1,31 @@ + + + + +
                                                + + + +
                                                +

                                                Die User Artikel...

                                                + +
                                                + + +
                                                +

                                                Datum:

                                                +

                                                Type: :

                                                +

                                                Autor:

                                                +

                                                Titel:  Löschen

                                                +
                                                + + + + +
                                                + +
                                                + + +
                                                + diff --git a/sn_templates/xx_admin_user_image_votes.html b/sn_templates/xx_admin_user_image_votes.html new file mode 100644 index 0000000..09884c2 --- /dev/null +++ b/sn_templates/xx_admin_user_image_votes.html @@ -0,0 +1,38 @@ + + + + +
                                                + + + +
                                                +

                                                Neue Bilder: Bewertungen für:

                                                + +
                                                + + +
                                                + + +
                                                  +
                                                • von:
                                                • +
                                                • Datum:
                                                • +
                                                + +
                                                  +
                                                • Bewertung:
                                                • +
                                                + +
                                                + + +
                                                + +
                                                + + +
                                                + + + diff --git a/sn_templates/xx_admin_user_images.html b/sn_templates/xx_admin_user_images.html new file mode 100644 index 0000000..56dd5bb --- /dev/null +++ b/sn_templates/xx_admin_user_images.html @@ -0,0 +1,45 @@ + + + + +
                                                + + + +
                                                +

                                                Neu hochgeladene Bilder

                                                + +
                                                + + +
                                                +

                                                +
                                                  +
                                                • von:
                                                • +
                                                • Datum:
                                                • +
                                                • Quelle:
                                                • +
                                                + + + +
                                                  +
                                                • Gute Bewertungen:
                                                • +
                                                • Schlechte Bewertungen:
                                                • +
                                                + +
                                                + + +
                                                + +
                                                + + +
                                                + + + diff --git a/sn_templates/xx_admin_votings_overview.html b/sn_templates/xx_admin_votings_overview.html new file mode 100644 index 0000000..3aada2f --- /dev/null +++ b/sn_templates/xx_admin_votings_overview.html @@ -0,0 +1,53 @@ + + + + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sn_templates/xx_ajax_block.html b/sn_templates/xx_ajax_block.html new file mode 100644 index 0000000..c7f3170 --- /dev/null +++ b/sn_templates/xx_ajax_block.html @@ -0,0 +1 @@ +[{"Key":,"Comment":,"Link":}] \ No newline at end of file diff --git a/sn_templates/xx_ajax_form.html b/sn_templates/xx_ajax_form.html new file mode 100644 index 0000000..64e8243 --- /dev/null +++ b/sn_templates/xx_ajax_form.html @@ -0,0 +1,16 @@ + + + + + + + + +
                                                + + + + + + + \ No newline at end of file diff --git a/sn_templates/xx_ajax_link.html b/sn_templates/xx_ajax_link.html new file mode 100644 index 0000000..f4d8bd4 --- /dev/null +++ b/sn_templates/xx_ajax_link.html @@ -0,0 +1 @@ +[{"Key":,"Comment":,"Link":}] diff --git a/sn_templates/xx_ajax_list.html b/sn_templates/xx_ajax_list.html new file mode 100644 index 0000000..48da8b5 --- /dev/null +++ b/sn_templates/xx_ajax_list.html @@ -0,0 +1,24 @@ +{ +'url':'', + + +'video':[ + {'name':'','width':'','height':''} + ], + + + +'pic':{ + + '':{ + 'name':'', + 'width':'', + 'height':'', + 'size':'0', + 'subpic':[ + {'name':'','width':'','height':'','size':''} + ] + } + } + +} \ No newline at end of file diff --git a/sn_templates/xx_archive_index.html b/sn_templates/xx_archive_index.html new file mode 100644 index 0000000..d670585 --- /dev/null +++ b/sn_templates/xx_archive_index.html @@ -0,0 +1,19 @@ + + + + + + Index + + + + + + + + + + + + + diff --git a/sn_templates/xx_archive_list.html b/sn_templates/xx_archive_list.html new file mode 100644 index 0000000..9820b40 --- /dev/null +++ b/sn_templates/xx_archive_list.html @@ -0,0 +1,58 @@ + + + +

                                                + +
                                                +
                                                +
                                                + +
                                                +
                                                + + + + + + +
                                                + + + + + + + + + + Archiv + + + + + + + + + + + + + + + +
                                                > +
                                                Voter: , (ip: )
                                                + IP:  + Blockip + edit  + L�schen +
                                                + + + + + +
                                                +  von  vom +
                                                + +
                                                +


                                                +
                                                +

                                                +
                                                +
                                                Archiv
                                                Subject
                                                + + + +
                                                + [<<zurück]   + [weiter>>] +
                                                + + + + + + + diff --git a/sn_templates/xx_box_about.html b/sn_templates/xx_box_about.html new file mode 100644 index 0000000..609fb85 --- /dev/null +++ b/sn_templates/xx_box_about.html @@ -0,0 +1,25 @@ + +
                                                +

                                                Links

                                                + +
                                                + + + + +
                                                + +
                                                + + +
                                                + + diff --git a/sn_templates/xx_box_admin.html b/sn_templates/xx_box_admin.html new file mode 100644 index 0000000..07e34db --- /dev/null +++ b/sn_templates/xx_box_admin.html @@ -0,0 +1,50 @@ + + + + + + + + diff --git a/sn_templates/xx_box_comments.html b/sn_templates/xx_box_comments.html new file mode 100644 index 0000000..2e72582 --- /dev/null +++ b/sn_templates/xx_box_comments.html @@ -0,0 +1,51 @@ + + + + + +
                                                + [Zurück zum Artikel] +
                                                +
                                                + + + + +
                                                +

                                                Kommentare

                                                + +
                                                + + +
                                                + +

                                                Eintrag  von  vom  

                                                +
                                                +
                                                + + + + +

                                                + +
                                                + +
                                                + + + + + + + + + + + + + + + + + + diff --git a/sn_templates/xx_box_comments_link.html b/sn_templates/xx_box_comments_link.html new file mode 100644 index 0000000..726e0d4 --- /dev/null +++ b/sn_templates/xx_box_comments_link.html @@ -0,0 +1,11 @@ + + + + + +
                                                + [ lesen]  + [Kommentar schreiben] +
                                                +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_copyright.html b/sn_templates/xx_box_copyright.html new file mode 100644 index 0000000..c8a25ef --- /dev/null +++ b/sn_templates/xx_box_copyright.html @@ -0,0 +1,4 @@ +
                                                +Version: , Startzeit: 
                                                +
                                                + diff --git a/sn_templates/xx_box_faqs_categories.html b/sn_templates/xx_box_faqs_categories.html new file mode 100644 index 0000000..b3255c1 --- /dev/null +++ b/sn_templates/xx_box_faqs_categories.html @@ -0,0 +1,18 @@ + +
                                                +

                                                Tipp Kategorien

                                                +
                                                + + + +
                                                + +
                                                + diff --git a/sn_templates/xx_box_faqs_categories_choose.html b/sn_templates/xx_box_faqs_categories_choose.html new file mode 100644 index 0000000..48e8b5e --- /dev/null +++ b/sn_templates/xx_box_faqs_categories_choose.html @@ -0,0 +1,18 @@ + +
                                                +

                                                Bitte hier die Kategorie wählen

                                                +
                                                + +
                                                + + --> +
                                                  +
                                                • + + +
                                                + +
                                                + +
                                                + diff --git a/sn_templates/xx_box_faqs_dossier.html b/sn_templates/xx_box_faqs_dossier.html new file mode 100644 index 0000000..ab9b2f7 --- /dev/null +++ b/sn_templates/xx_box_faqs_dossier.html @@ -0,0 +1,15 @@ + +
                                                +

                                                Dossier:

                                                +
                                                + +
                                                + +
                                                >
                                                + +
                                                + +
                                                + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_faqs_dossier_overview.html b/sn_templates/xx_box_faqs_dossier_overview.html new file mode 100644 index 0000000..3a41e48 --- /dev/null +++ b/sn_templates/xx_box_faqs_dossier_overview.html @@ -0,0 +1,32 @@ + + +
                                                +

                                                Dossiers / Themengebiete

                                                +
                                                + + +
                                                +
                                                Dossiers
                                                + + +
                                                + + Windows 7 + Windows Vista + Windows XP + +
                                                + + + +
                                                + E-Bay + Amazon + Google +
                                                +
                                                + + +
                                                + +
                                                diff --git a/sn_templates/xx_box_forum_groups.html b/sn_templates/xx_box_forum_groups.html new file mode 100644 index 0000000..5ba3eb3 --- /dev/null +++ b/sn_templates/xx_box_forum_groups.html @@ -0,0 +1,54 @@ + + + + +
                                                +
                                                Top Gruppen
                                                + + + + + + + + + +
                                                Betriebsysteme
                                                + >Windows classik + >Linux + >BS-Sonstige + +
                                                Software
                                                + >Datenbanken + >Bildbearbeitung + >Audio/mp3/Video + >Security/Viren + >SW-Sonstige + +
                                                Hardware
                                                + >Mainboard/CPU + >Grafikkarten + >Peripherie + >Laptop/Notebook + >HW-Sonstiges + +
                                                Netzwerk
                                                + >Telefon,ISDN,Modem + >W-Lan + >NW-Sonstiges + +
                                                Programmierung
                                                + >PHP,ASP,Perl... + >Java,C++... + >Webseiten/HTML + +
                                                Sonstiges
                                                + >PC-Sonstiges + >Plauderecke + >SN Intern + + >Test + +
                                                + + diff --git a/sn_templates/xx_box_forum_overview.html b/sn_templates/xx_box_forum_overview.html new file mode 100644 index 0000000..fbe2004 --- /dev/null +++ b/sn_templates/xx_box_forum_overview.html @@ -0,0 +1,21 @@ +
                                                +

                                                +
                                                + + + +
                                                + + +

                                                +
                                                +    +

                                                +
                                                + + + + +
                                                + +
                                                diff --git a/sn_templates/xx_box_header_forum.html b/sn_templates/xx_box_header_forum.html new file mode 100644 index 0000000..5f4bcec --- /dev/null +++ b/sn_templates/xx_box_header_forum.html @@ -0,0 +1,8 @@ + + + +
                                                +

                                                Ich möchte eine Frage im Forum stellen

                                                +
                                                +
                                                + diff --git a/sn_templates/xx_box_header_groups.html b/sn_templates/xx_box_header_groups.html new file mode 100644 index 0000000..88127f3 --- /dev/null +++ b/sn_templates/xx_box_header_groups.html @@ -0,0 +1,7 @@ +
                                                +

                                                / Forum /

                                                +
                                                + <!--#sn_group4:dp_system:groupname--> +
                                                + +
                                                diff --git a/sn_templates/xx_box_header_home.html b/sn_templates/xx_box_header_home.html new file mode 100644 index 0000000..0b02746 --- /dev/null +++ b/sn_templates/xx_box_header_home.html @@ -0,0 +1,66 @@ + + + +
                                                +

                                                Top Tipps

                                                +
                                                + + + + + + +

                                                + --> + +
                                                +
                                                +
                                                + » mehr... +

                                                +
                                                + + + + +

                                                + --> +
                                                +
                                                +
                                                + » mehr... +

                                                + + + + +

                                                + --> +
                                                +
                                                +
                                                + » mehr... +

                                                + + +
                                                + +
                                                + +
                                                + + diff --git a/sn_templates/xx_box_header_sysmessage.html b/sn_templates/xx_box_header_sysmessage.html new file mode 100644 index 0000000..1c061ee --- /dev/null +++ b/sn_templates/xx_box_header_sysmessage.html @@ -0,0 +1,12 @@ + +
                                                +
                                                +
                                                + +
                                                + [Fenster schliessen]
                                                +
                                                +
                                                +
                                                + + diff --git a/sn_templates/xx_box_hint.html b/sn_templates/xx_box_hint.html new file mode 100644 index 0000000..b731cc5 --- /dev/null +++ b/sn_templates/xx_box_hint.html @@ -0,0 +1,6 @@ + + + + + + diff --git a/sn_templates/xx_box_ic1.html b/sn_templates/xx_box_ic1.html new file mode 100644 index 0000000..1e797ff --- /dev/null +++ b/sn_templates/xx_box_ic1.html @@ -0,0 +1,7 @@ + + +
                                                +

                                                + + +
                                                diff --git a/sn_templates/xx_box_ic2.html b/sn_templates/xx_box_ic2.html new file mode 100644 index 0000000..2b74839 --- /dev/null +++ b/sn_templates/xx_box_ic2.html @@ -0,0 +1,6 @@ + +
                                                +

                                                + + +
                                                diff --git a/sn_templates/xx_box_jump.html b/sn_templates/xx_box_jump.html new file mode 100644 index 0000000..d41d901 --- /dev/null +++ b/sn_templates/xx_box_jump.html @@ -0,0 +1,12 @@ + + + + + + +
                                                +    + + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_members_contacts.html b/sn_templates/xx_box_members_contacts.html new file mode 100644 index 0000000..34514a5 --- /dev/null +++ b/sn_templates/xx_box_members_contacts.html @@ -0,0 +1,20 @@ + + +
                                                +

                                                Kontakte

                                                +
                                                + + +
                                                + +
                                                + +
                                                + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_members_friends.html b/sn_templates/xx_box_members_friends.html new file mode 100644 index 0000000..1d5e2db --- /dev/null +++ b/sn_templates/xx_box_members_friends.html @@ -0,0 +1,40 @@ + +
                                                +

                                                Freunde & Besucher

                                                +
                                                +
                                                Freunde:
                                                + + + +
                                                +

                                                +
                                                + +


                                                +
                                                + +
                                                +
                                                + +
                                                Alle Freunde anzeigen
                                                + +


                                                Besucher:
                                                + + +
                                                +

                                                +
                                                + +

                                                ()

                                                +
                                                + +
                                                +
                                                + +
                                                Alle Besucher anzeigen
                                                + +
                                                + + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_members_invitations.html b/sn_templates/xx_box_members_invitations.html new file mode 100644 index 0000000..59965c0 --- /dev/null +++ b/sn_templates/xx_box_members_invitations.html @@ -0,0 +1,39 @@ + +
                                                +

                                                Einladungen

                                                +
                                                +
                                                + + +
                                                +

                                                +
                                                + +


                                                +
                                                + +
                                                +
                                                + +
                                                Alle empfangenen Einladungen anzeigen
                                                + +


                                                + + verschickte Einladungen:
                                                + +
                                                +

                                                +
                                                + +


                                                +
                                                + +
                                                +
                                                + +
                                                Alle verschickten Einladungen anzeigen
                                                + +
                                                + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_menu.html b/sn_templates/xx_box_menu.html new file mode 100644 index 0000000..71d571e --- /dev/null +++ b/sn_templates/xx_box_menu.html @@ -0,0 +1,12 @@ + + + + diff --git a/sn_templates/xx_box_navi_comments.html b/sn_templates/xx_box_navi_comments.html new file mode 100644 index 0000000..a251342 --- /dev/null +++ b/sn_templates/xx_box_navi_comments.html @@ -0,0 +1,24 @@ + + + + + + +
                                                +    + + +
                                                + + + + + + + +
                                                + [ lesen]  + [Kommentar schreiben] +
                                                +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_navigator.html b/sn_templates/xx_box_navigator.html new file mode 100644 index 0000000..3e8005a --- /dev/null +++ b/sn_templates/xx_box_navigator.html @@ -0,0 +1,9 @@ + + + + + \ No newline at end of file diff --git a/sn_templates/xx_box_news.html b/sn_templates/xx_box_news.html new file mode 100644 index 0000000..f4f58a9 --- /dev/null +++ b/sn_templates/xx_box_news.html @@ -0,0 +1,17 @@ + + +
                                                +

                                                News

                                                + +
                                                +
                                                + +
                                                []
                                                +
                                                + +
                                                +
                                                + + +
                                                + diff --git a/sn_templates/xx_box_news_teaser.html b/sn_templates/xx_box_news_teaser.html new file mode 100644 index 0000000..79b8a4a --- /dev/null +++ b/sn_templates/xx_box_news_teaser.html @@ -0,0 +1,14 @@ + +
                                                +

                                                News

                                                + +
                                                + + Ich bin die News TeaserBox! + +
                                                + + +
                                                + + diff --git a/sn_templates/xx_box_options_faqsthread.html b/sn_templates/xx_box_options_faqsthread.html new file mode 100644 index 0000000..13a44ad --- /dev/null +++ b/sn_templates/xx_box_options_faqsthread.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_guestbook.html b/sn_templates/xx_box_options_guestbook.html new file mode 100644 index 0000000..fe3f125 --- /dev/null +++ b/sn_templates/xx_box_options_guestbook.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_member_home.html b/sn_templates/xx_box_options_member_home.html new file mode 100644 index 0000000..1ad2e19 --- /dev/null +++ b/sn_templates/xx_box_options_member_home.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_member_main.html b/sn_templates/xx_box_options_member_main.html new file mode 100644 index 0000000..3f47320 --- /dev/null +++ b/sn_templates/xx_box_options_member_main.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_member_setup.html b/sn_templates/xx_box_options_member_setup.html new file mode 100644 index 0000000..b6d164c --- /dev/null +++ b/sn_templates/xx_box_options_member_setup.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_pager.html b/sn_templates/xx_box_options_pager.html new file mode 100644 index 0000000..76c255d --- /dev/null +++ b/sn_templates/xx_box_options_pager.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_pager_message.html b/sn_templates/xx_box_options_pager_message.html new file mode 100644 index 0000000..0638edd --- /dev/null +++ b/sn_templates/xx_box_options_pager_message.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_reply.html b/sn_templates/xx_box_options_reply.html new file mode 100644 index 0000000..3a8331d --- /dev/null +++ b/sn_templates/xx_box_options_reply.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_setup.html b/sn_templates/xx_box_options_setup.html new file mode 100644 index 0000000..106c93b --- /dev/null +++ b/sn_templates/xx_box_options_setup.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_thread.html b/sn_templates/xx_box_options_thread.html new file mode 100644 index 0000000..3c87e8a --- /dev/null +++ b/sn_templates/xx_box_options_thread.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_options_threadwatch.html b/sn_templates/xx_box_options_threadwatch.html new file mode 100644 index 0000000..8d6590a --- /dev/null +++ b/sn_templates/xx_box_options_threadwatch.html @@ -0,0 +1 @@ +Options \ No newline at end of file diff --git a/sn_templates/xx_box_post_comment.html b/sn_templates/xx_box_post_comment.html new file mode 100644 index 0000000..8e802b4 --- /dev/null +++ b/sn_templates/xx_box_post_comment.html @@ -0,0 +1,50 @@ + + + + + + + + + + + + + +
                                                + + + + + + + +

                                                + +

                                                + + +
                                                +

                                                +

                                                +

                                                +
                                                + +
                                                + + + + + + + + + + + + + + + + + diff --git a/sn_templates/xx_box_post_msg.html b/sn_templates/xx_box_post_msg.html new file mode 100644 index 0000000..373cf67 --- /dev/null +++ b/sn_templates/xx_box_post_msg.html @@ -0,0 +1,49 @@ + + + + + + + + + + + + +
                                                + + + + + + + + +

                                                + > + +

                                                + + +

                                                + Help
                                                + +

                                                + + +

                                                + Help
                                                + +

                                                + + + +
                                                +

                                                +

                                                +

                                                +
                                                + +
                                                + + diff --git a/sn_templates/xx_box_post_reply.html b/sn_templates/xx_box_post_reply.html new file mode 100644 index 0000000..608eace --- /dev/null +++ b/sn_templates/xx_box_post_reply.html @@ -0,0 +1,41 @@ + + + + + + + + + + + + +
                                                + + + + + + + +

                                                + > + +

                                                + +

                                                + +

                                                + + +
                                                +

                                                +

                                                +

                                                +
                                                + +
                                                + + + + diff --git a/sn_templates/xx_box_post_search.html b/sn_templates/xx_box_post_search.html new file mode 100644 index 0000000..5922cc4 --- /dev/null +++ b/sn_templates/xx_box_post_search.html @@ -0,0 +1,13 @@ + + + + + +
                                                + Suchbegriffe:
                                                + +   + +
                                                + + diff --git a/sn_templates/xx_box_post_search_options.html b/sn_templates/xx_box_post_search_options.html new file mode 100644 index 0000000..2ebdae6 --- /dev/null +++ b/sn_templates/xx_box_post_search_options.html @@ -0,0 +1,63 @@ + + +
                                                +

                                                + +
                                                + +
                                                + + + Welche Artikel sollen durchsucht werden?
                                                + + + />
                                                + />
                                                + + />
                                                + />
                                                + + + />
                                                + + /> + +

                                                + />
                                                + +

                                                + Gruppe
                                                + +

                                                + + + +
                                                + +
                                                + + +
                                                + + + diff --git a/sn_templates/xx_box_related.html b/sn_templates/xx_box_related.html new file mode 100644 index 0000000..2eb9519 --- /dev/null +++ b/sn_templates/xx_box_related.html @@ -0,0 +1,20 @@ + +
                                                +

                                                +
                                                + + +
                                                + + +

                                                +
                                                +    +

                                                +
                                                + + +
                                                + +
                                                + diff --git a/sn_templates/xx_box_related_faqs.html b/sn_templates/xx_box_related_faqs.html new file mode 100644 index 0000000..2b00d29 --- /dev/null +++ b/sn_templates/xx_box_related_faqs.html @@ -0,0 +1,19 @@ + +
                                                +

                                                +
                                                + +
                                                + +

                                                + +
                                                +    +

                                                +
                                                + +
                                                + +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_box_search_small.html b/sn_templates/xx_box_search_small.html new file mode 100644 index 0000000..60041b5 --- /dev/null +++ b/sn_templates/xx_box_search_small.html @@ -0,0 +1,9 @@ + + + +

                                                + Keyword
                                                +
                                                + +

                                                + \ No newline at end of file diff --git a/sn_templates/xx_box_template_center.html b/sn_templates/xx_box_template_center.html new file mode 100644 index 0000000..b26643f --- /dev/null +++ b/sn_templates/xx_box_template_center.html @@ -0,0 +1,7 @@ +
                                                +

                                                >

                                                +
                                                + +
                                                + +
                                                diff --git a/sn_templates/xx_box_top_news.html b/sn_templates/xx_box_top_news.html new file mode 100644 index 0000000..49c16c6 --- /dev/null +++ b/sn_templates/xx_box_top_news.html @@ -0,0 +1,23 @@ + + +
                                                +

                                                Top News

                                                + +
                                                +
                                                + + +
                                                +
                                                +
                                                + ...
                                                +
                                                + + +
                                                +
                                                + + +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_box_top_topics.html b/sn_templates/xx_box_top_topics.html new file mode 100644 index 0000000..182f126 --- /dev/null +++ b/sn_templates/xx_box_top_topics.html @@ -0,0 +1,22 @@ + +
                                                +

                                                Weitere Artikel

                                                + + + + +
                                                diff --git a/sn_templates/xx_box_user_content.html b/sn_templates/xx_box_user_content.html new file mode 100644 index 0000000..88c9316 --- /dev/null +++ b/sn_templates/xx_box_user_content.html @@ -0,0 +1,8 @@ +
                                                +

                                                Neue Einträge

                                                + + +
                                                \ No newline at end of file diff --git a/sn_templates/xx_box_user_info.html b/sn_templates/xx_box_user_info.html new file mode 100644 index 0000000..a1b3df3 --- /dev/null +++ b/sn_templates/xx_box_user_info.html @@ -0,0 +1,15 @@ + +
                                                + + + +
                                                +
                                                online
                                                +
                                                ()
                                                + +
                                                + +
                                                +
                                                + + diff --git a/sn_templates/xx_child.html b/sn_templates/xx_child.html new file mode 100644 index 0000000..ba199d9 --- /dev/null +++ b/sn_templates/xx_child.html @@ -0,0 +1,41 @@ + + + + + + Hilfe + + + + + + + + + + + + +
                                                + +
                                                + + +
                                                + + + +
                                                + +
                                                +
                                                + + + + + diff --git a/sn_templates/xx_dummy.html b/sn_templates/xx_dummy.html new file mode 100644 index 0000000..a4669cf --- /dev/null +++ b/sn_templates/xx_dummy.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/sn_templates/xx_faqs_admin_categories.html b/sn_templates/xx_faqs_admin_categories.html new file mode 100644 index 0000000..89a8165 --- /dev/null +++ b/sn_templates/xx_faqs_admin_categories.html @@ -0,0 +1,68 @@ + + + + +
                                                + + + + + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                 IDEltern-IDNameKeyBeschreibung
                                                X

                                                + + +

                                                XIDEltern-IDNameKeyBeschreibung
                                                Löschen 
                                                + + + + +
                                                + diff --git a/sn_templates/xx_faqs_admin_dossiers.html b/sn_templates/xx_faqs_admin_dossiers.html new file mode 100644 index 0000000..c0251f9 --- /dev/null +++ b/sn_templates/xx_faqs_admin_dossiers.html @@ -0,0 +1,128 @@ + + + + + +
                                                + + +
                                                +

                                                Dossier Editor

                                                + +
                                                + + + +
                                                + + + + + + + + + + + + + + + + + + + +
                                                Dossiertitelangelegt am

                                                + + +

                                                +
                                                + +
                                                + + + + + +
                                                +

                                                + + + + Titel: +

                                                +
                                                + + +
                                                + +
                                                + + + + +
                                                +

                                                Vorhandene Dossiers

                                                + +
                                                + + +
                                                +

                                                Datum:

                                                +

                                                Titel:  Löschen

                                                +
                                                + + +
                                                + +
                                                + + + + + + +
                                                +

                                                Tipps durchsuchen

                                                +
                                                + +
                                                + Suchbegriff:  +   +
                                                +

                                                + + + +
                                                + +
                                                + Tipp hinzuügen  +

                                                +    +
                                                +
                                                + + + + +
                                                + +
                                                + + +
                                                + + + + + + + + + + + + + diff --git a/sn_templates/xx_faqs_admin_teaser_box.html b/sn_templates/xx_faqs_admin_teaser_box.html new file mode 100644 index 0000000..b5ca00a --- /dev/null +++ b/sn_templates/xx_faqs_admin_teaser_box.html @@ -0,0 +1,124 @@ + + + + + +
                                                + + + +
                                                +

                                                Teaserbox Editor

                                                + +
                                                + + +
                                                + + + + + + + + + + + + + + + + + + + + + + +
                                                IDTitelDatum

                                                + + +

                                                + +
                                                + + +
                                                + +
                                                + + + + +
                                                +

                                                Vorhandene Teaserbox Einträge

                                                + +
                                                + + +
                                                +

                                                ID:  Löschen

                                                + Titel:

                                                + +

                                                Freischaltung am:

                                                +
                                                + + +
                                                + +
                                                + + + + + + + +
                                                +

                                                Tipps durchsuchen

                                                +
                                                + +
                                                + Suchbegriff:  +   +
                                                +

                                                + + +
                                                + + +
                                                + Tipp hinzuügen  + +

                                                +    +
                                                +
                                                + + + + + +
                                                + +
                                                + + + + +
                                                + + + + + + + + + + + + + diff --git a/sn_templates/xx_faqs_base.html b/sn_templates/xx_faqs_base.html new file mode 100644 index 0000000..26e56b4 --- /dev/null +++ b/sn_templates/xx_faqs_base.html @@ -0,0 +1,9 @@ + + + + +
                                                + +
                                                + + diff --git a/sn_templates/xx_faqs_categories.html b/sn_templates/xx_faqs_categories.html new file mode 100644 index 0000000..6998381 --- /dev/null +++ b/sn_templates/xx_faqs_categories.html @@ -0,0 +1,41 @@ + + + + +
                                                + + +
                                                + + + + +
                                                + + +
                                                +

                                                / Tipps und Anleitungen /

                                                +
                                                + + +
                                                + + +
                                                + +

                                                +    +
                                                +
                                                + + + + +
                                                + +
                                                + + +
                                                + + diff --git a/sn_templates/xx_faqs_overview.html b/sn_templates/xx_faqs_overview.html new file mode 100644 index 0000000..8d5a799 --- /dev/null +++ b/sn_templates/xx_faqs_overview.html @@ -0,0 +1,115 @@ + + + + + + + + + + \ No newline at end of file diff --git a/sn_templates/xx_faqs_preview.html b/sn_templates/xx_faqs_preview.html new file mode 100644 index 0000000..3da3bec --- /dev/null +++ b/sn_templates/xx_faqs_preview.html @@ -0,0 +1,21 @@ + + + + + +
                                                +
                                                +

                                                Vorschau

                                                +
                                                +

                                                + +

                                                + +

                                                + von 

                                                +
                                                +
                                                + +
                                                +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_faqs_show.html b/sn_templates/xx_faqs_show.html new file mode 100644 index 0000000..104a5c3 --- /dev/null +++ b/sn_templates/xx_faqs_show.html @@ -0,0 +1,70 @@ + + + + +
                                                + + +
                                                + + + + +
                                                + + + +
                                                +

                                                / Tipps und Anleitungen

                                                + +
                                                + + + + --> + +

                                                 

                                                + + + von  vom 

                                                + + + + + + + + + +
                                                + + +
                                                + + + + + + + + +
                                                +

                                                Ihre Frage

                                                + +
                                                + +

                                                Ich möchte eine Frage im Forum stellen

                                                + + + + +
                                                + + +
                                                + + +
                                                + + + diff --git a/sn_templates/xx_faqs_update.html b/sn_templates/xx_faqs_update.html new file mode 100644 index 0000000..43812f2 --- /dev/null +++ b/sn_templates/xx_faqs_update.html @@ -0,0 +1,132 @@ + + + + +
                                                + + + +
                                                + + + + +
                                                + + + + +
                                                +

                                                Tipp editieren

                                                + +
                                                + + + + + + +
                                                + + + + +

                                                +
                                                + +

                                                + + +

                                                + Flags: Public: 1, Gelöscht: 2, Adminbenachrichtigung: 4,
                                                Mailbenachrichtigung: 8, Problem gelöst: 16, Geschlossen: 32, Zustands-Flags werden addiert:
                                                +

                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                + Beachte: Das Datumsformat ist jjjj-mm-tt HH:MM:SS, also z.B: "2003-02-28 18:55:00"
                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +   + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + + + + + +
                                                + + + + + + +
                                                + + +
                                                + +
                                                + + + +
                                                + + diff --git a/sn_templates/xx_faqs_user_update.html b/sn_templates/xx_faqs_user_update.html new file mode 100644 index 0000000..c04f116 --- /dev/null +++ b/sn_templates/xx_faqs_user_update.html @@ -0,0 +1,103 @@ + + + + +
                                                + + +
                                                + + + + +
                                                + + + + +
                                                +

                                                Tipp einschicken / ändern

                                                + +
                                                + + + + + +
                                                + + + + + + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +   + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + +
                                                +

                                                + + + + +
                                                + + +
                                                + + +
                                                + +
                                                + + + + + +
                                                + + + + + + + + + + + + + + + + diff --git a/sn_templates/xx_forum_base.html b/sn_templates/xx_forum_base.html new file mode 100644 index 0000000..4247ff7 --- /dev/null +++ b/sn_templates/xx_forum_base.html @@ -0,0 +1,15 @@ + + + +
                                                + +
                                                + + + +
                                                + + + +
                                                + diff --git a/sn_templates/xx_forum_groups.html b/sn_templates/xx_forum_groups.html new file mode 100644 index 0000000..7d943cb --- /dev/null +++ b/sn_templates/xx_forum_groups.html @@ -0,0 +1,13 @@ + + + + +
                                                + + + + + +
                                                + + diff --git a/sn_templates/xx_forum_home.html b/sn_templates/xx_forum_home.html new file mode 100644 index 0000000..fda390a --- /dev/null +++ b/sn_templates/xx_forum_home.html @@ -0,0 +1,22 @@ + + + + +
                                                + + + + + + + + + + +
                                                + + + + + + diff --git a/sn_templates/xx_forum_overview.html b/sn_templates/xx_forum_overview.html new file mode 100644 index 0000000..e40a3da --- /dev/null +++ b/sn_templates/xx_forum_overview.html @@ -0,0 +1,20 @@ + + + + + + +
                                                + + + + + + + + + + +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_forum_preview.html b/sn_templates/xx_forum_preview.html new file mode 100644 index 0000000..5320eda --- /dev/null +++ b/sn_templates/xx_forum_preview.html @@ -0,0 +1,19 @@ + + + + + +
                                                +
                                                +

                                                Vorschau

                                                +
                                                +

                                                + +

                                                + von 

                                                +
                                                +
                                                + +
                                                +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_forum_query1.html b/sn_templates/xx_forum_query1.html new file mode 100644 index 0000000..3346c10 --- /dev/null +++ b/sn_templates/xx_forum_query1.html @@ -0,0 +1,42 @@ + + + + + + +
                                                + + + + + + + + --> + + + + +

                                                +
                                                + Hilfe +

                                                +

                                                + Hilfe
                                                + +

                                                +

                                                + Hilfe   +   +


                                                +

                                                + + + +
                                                + + + diff --git a/sn_templates/xx_forum_query2.html b/sn_templates/xx_forum_query2.html new file mode 100644 index 0000000..fc30194 --- /dev/null +++ b/sn_templates/xx_forum_query2.html @@ -0,0 +1,54 @@ + + + + + + + + + + +
                                                + + + + + + +
                                                + + + + + + +

                                                +
                                                + readonly>Hilfe +

                                                + +

                                                +
                                                + readonly>Hilfe
                                                + Angabe freiwillig, wird nicht veröffentlicht. +

                                                + +

                                                + Hilfe
                                                + > +

                                                +
                                                + +

                                                + > +

                                                + +
                                                +
                                                + + + +
                                                + + + diff --git a/sn_templates/xx_forum_query3.html b/sn_templates/xx_forum_query3.html new file mode 100644 index 0000000..261eeda --- /dev/null +++ b/sn_templates/xx_forum_query3.html @@ -0,0 +1,49 @@ + + + + + + + +
                                                + + + + + + +
                                                +

                                                +
                                                +

                                                + + Sie finden Ihre Frage unter diesem Link: "..de".

                                                + Ihre Anfrage ist jetztforum in der Gruppe "" veröffentlicht.

                                                + +

                                                +
                                                +

                                                +
                                                  +
                                                1. Klicken Sie auf diesen Link "..de" und fügen Sie diese Seite zu Ihren Favoriten hinzu. So können Sie jederzeit nach Antworten schauen indem Sie den Link in Ihren Favoriten anklicken.

                                                  +
                                                2. Wenn Sie die eMail-Benachrichtigung angeklickt haben bekommen Sie eine eMail mit einem Link zu Ihrer Frage wenn Antworten zu Ihrer Frage vorliegen
                                                  (bitte schauen Sie auch in Ihrem Spamverdachtsordner nach da diese automatisch generierten eMails gerne dort einsortiert werden).

                                                  + +
                                                3. Wenn Sie keine eMail-Benachrichtigung angeklickt haben, können Sie Ihre Anfrage über die Suche finden. Geben Sie dazu einfach Ihre Überschrift in das Suchfeld oben rechts ein und klicken dann auf "GO".
                                                  +

                                                + +

                                                +
                                                +

                                                + +
                                                  +
                                                1. Da das sehr gut besucht ist, kommen im Allgemeinen schon nach 10-20 Minuten Antworten, oft geht es auch noch schneller.

                                                  +
                                                2. Schauen Sie einfach ab und an vorbei, so können Sie auch schnell auf Nachfragen antworten. +
                                                + + + + +
                                                + + + + diff --git a/sn_templates/xx_forum_show.html b/sn_templates/xx_forum_show.html new file mode 100644 index 0000000..ab9fe3d --- /dev/null +++ b/sn_templates/xx_forum_show.html @@ -0,0 +1,69 @@ + + + + +
                                                + + + + + +
                                                +

                                                Fragevon  vom  

                                                + +
                                                + + +
                                                + +

                                                +
                                                >
                                                +

                                                Antwort schreiben
                                                +
                                                + + + + + + + +
                                                +

                                                Antwort  von  vom  

                                                + +
                                                >
                                                +
                                                + + + + + + + + +
                                                + + +
                                                + + + + + +
                                                + + + + + + + + + + \ No newline at end of file diff --git a/sn_templates/xx_forum_start.html b/sn_templates/xx_forum_start.html new file mode 100644 index 0000000..2ce2ee2 --- /dev/null +++ b/sn_templates/xx_forum_start.html @@ -0,0 +1,31 @@ + + + +
                                                + + + + + + +
                                                + + + + + +
                                                + + + + + + + +
                                                + + + + + + diff --git a/sn_templates/xx_forum_update.html b/sn_templates/xx_forum_update.html new file mode 100644 index 0000000..a7cfd15 --- /dev/null +++ b/sn_templates/xx_forum_update.html @@ -0,0 +1,111 @@ + + + + + + + + +
                                                + + +
                                                +

                                                Posting editieren

                                                +
                                                + + + + + +
                                                + + + +

                                                +
                                                + +

                                                + + +

                                                + Flags: Public: 1, Gelöscht: 2, Adminbenachrichtigung: 4,
                                                Mailbenachrichtigung: 8, Problem gelöst: 16, Geschlossen: 32, Zustands-Flags werden addiert:
                                                +

                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                + Beachte: Das Datumsformat ist jjjj-mm-tt HH:MM:SS, also z.B: "2003-02-28 18:55:00"
                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + + + +

                                                + +

                                                +
                                                + +

                                                + + + + + + + +
                                                + + + + + + +
                                                + + +
                                                + +
                                                + + + + + +
                                                + diff --git a/sn_templates/xx_forum_update_reply.html b/sn_templates/xx_forum_update_reply.html new file mode 100644 index 0000000..c0dc7d5 --- /dev/null +++ b/sn_templates/xx_forum_update_reply.html @@ -0,0 +1,97 @@ + + + + + + + +
                                                + + +
                                                +

                                                Antwort editieren

                                                +
                                                + + + + + +
                                                + + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                + Flags: Public: 1, Gelöscht: 2, Adminbenachrichtigung: 4,
                                                Mailbenachrichtigung: 8, Problem gelöst: 16, Geschlossen: 32, Zustands-Flags werden addiert:
                                                +

                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + + +

                                                + Beachte: Das Datumsformat ist jjjj-mm-tt HH:MM:SS, also z.B: "2003-02-28 18:55:00"
                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + + + +

                                                + +

                                                +
                                                + +

                                                + + + + + + +
                                                + +
                                                + +
                                                + +
                                                + diff --git a/sn_templates/xx_forum_user_update.html b/sn_templates/xx_forum_user_update.html new file mode 100644 index 0000000..f39bfbf --- /dev/null +++ b/sn_templates/xx_forum_user_update.html @@ -0,0 +1,56 @@ + + + + + + + + +
                                                + + +
                                                +

                                                Beitrag editieren

                                                +
                                                + + + + + +
                                                + + + --> + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + +

                                                +
                                                + +

                                                + + + + +
                                                + + +
                                                + +
                                                + + + + + +
                                                + diff --git a/sn_templates/xx_forum_user_update_reply.html b/sn_templates/xx_forum_user_update_reply.html new file mode 100644 index 0000000..3bf140d --- /dev/null +++ b/sn_templates/xx_forum_user_update_reply.html @@ -0,0 +1,56 @@ + + + + + + + + +
                                                + + +
                                                +

                                                Antwort editieren

                                                +
                                                + + + + + +
                                                + + + --> + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + +

                                                +
                                                + +

                                                + + + + +
                                                + + +
                                                + +
                                                + + + + + +
                                                + diff --git a/sn_templates/xx_main.html b/sn_templates/xx_main.html new file mode 100644 index 0000000..1842c2b --- /dev/null +++ b/sn_templates/xx_main.html @@ -0,0 +1,74 @@ + + + + + + + +<!--#sn_page:dp_system:navipage--><!--#sn_title:dp_system:pagetitle--> + + + + + + + + + + + + + + + + + +
                                                + + +
                                                + + + + + + + + +
                                                + + + + + + + + + + +
                                                + +
                                                + + + + + + + +
                                                + + + + + + diff --git a/sn_templates/xx_members_activate.html b/sn_templates/xx_members_activate.html new file mode 100644 index 0000000..7185755 --- /dev/null +++ b/sn_templates/xx_members_activate.html @@ -0,0 +1,58 @@ + + + + + + + + +
                                                + + + + + + +

                                                +
                                                +

                                                + +
                                                  +
                                                1. Ihr Passwort wurde Ihnen per eMail zugeschickt.

                                                  +
                                                2. Falls Sie nicht innerhalb von wenigen Minuten eine Aktivierungsmail +erhalten, schauen Sie bitte zuerst in Ihrem Spamordner nach, einige +Mailprovider stufen solche automatisch versendeten Aktivierungsmails als +Spam ein. + +Falls Sie keine Aktivierungsmail erhalten, schicken Sie bitte eine eMail mit +Ihrem Nickname an: graenzer@.de

                                                  +
                                                + + +
                                                + + +

                                                +
                                                +
                                                +

                                                +

                                                +
                                                +   +

                                                +

                                                +



                                                +

                                                +
                                                + + + + + +
                                                + + + + + + \ No newline at end of file diff --git a/sn_templates/xx_members_admin.html b/sn_templates/xx_members_admin.html new file mode 100644 index 0000000..afa9535 --- /dev/null +++ b/sn_templates/xx_members_admin.html @@ -0,0 +1,176 @@ + + + + + + + +
                                                + + + + + + + + +
                                                + + + +

                                                +
                                                + + +

                                                + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                +  Davon Gute:  + +

                                                + + +

                                                +
                                                +  Bonuspunkte:  + +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + +

                                                +
                                                + + +

                                                +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + +

                                                +
                                                + + +

                                                + +

                                                +  
                                                +   + + + +

                                                + +

                                                +
                                                + + +

                                                + + +

                                                +

                                                + + +

                                                +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + + +

                                                + +

                                                + + + + + + + + Add/Remove editor +
                                                + + + +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_members_base.html b/sn_templates/xx_members_base.html new file mode 100644 index 0000000..7a90b69 --- /dev/null +++ b/sn_templates/xx_members_base.html @@ -0,0 +1,19 @@ + + + + +
                                                + +
                                                + + + + + + + +
                                                + +
                                                + + diff --git a/sn_templates/xx_members_list.html b/sn_templates/xx_members_list.html new file mode 100644 index 0000000..c7cab6f --- /dev/null +++ b/sn_templates/xx_members_list.html @@ -0,0 +1,52 @@ + + + + + + + +
                                                + + +
                                                +

                                                +
                                                + + + + + +
                                                +

                                                +
                                                  +
                                                • Status:
                                                • +
                                                • Nickname:
                                                • +
                                                • Member seit:
                                                • +
                                                • Letzter Login:
                                                • +
                                                +
                                                  +
                                                • Bonus:
                                                • +
                                                • Fragen:
                                                • +
                                                • Antworten:
                                                • +
                                                • Gute Antworten:
                                                • +
                                                +
                                                  + +
                                                • Lösungen:
                                                • +
                                                • Votes:
                                                • +
                                                +
                                                + + + + + + +
                                                + +
                                                + +
                                                + + + \ No newline at end of file diff --git a/sn_templates/xx_members_login.html b/sn_templates/xx_members_login.html new file mode 100644 index 0000000..69d991e --- /dev/null +++ b/sn_templates/xx_members_login.html @@ -0,0 +1,70 @@ + + + + + + +
                                                +
                                                +

                                                Anmeldung

                                                +
                                                + +
                                                + +
                                                + +
                                                +

                                                Anmeldung / Login

                                                + +
                                                + + +
                                                + +
                                                + +
                                                + +
                                                + + +

                                                +

                                                + + +

                                                +

                                                + Wenn Sie noch kein Benutzerkonto haben können Sie sich hier registrieren.

                                                + Passwort vergessen?
                                                + + Eigene Daten ändern?
                                                + Logout (für Member, Cookie löschen)
                                                + +
                                                + +


                                                + + + + +
                                                +
                                                + +
                                                + +
                                                +
                                                + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sn_templates/xx_members_overview.html b/sn_templates/xx_members_overview.html new file mode 100644 index 0000000..8c0d654 --- /dev/null +++ b/sn_templates/xx_members_overview.html @@ -0,0 +1,92 @@ + + + + + + + +
                                                + + +
                                                +

                                                Mitgliederliste

                                                +
                                                + + + + +
                                                +
                                                + + + + +
                                                +
                                                + + + +
                                                +

                                                +
                                                  +
                                                • Status:
                                                • +
                                                • Nickname:
                                                • +
                                                • Member seit:
                                                • +
                                                • Letzter Login:
                                                • +
                                                +
                                                  +
                                                • Bonus:
                                                • +
                                                • Fragen:
                                                • +
                                                • Antworten:
                                                • +
                                                • Gute Antworten:
                                                • +
                                                +
                                                  + +
                                                • Lösungen:
                                                • +
                                                • Votes:
                                                • +
                                                +
                                                + + + + + + +
                                                + +
                                                + +
                                                + + + \ No newline at end of file diff --git a/sn_templates/xx_members_passwd.html b/sn_templates/xx_members_passwd.html new file mode 100644 index 0000000..6778fd4 --- /dev/null +++ b/sn_templates/xx_members_passwd.html @@ -0,0 +1,49 @@ + + + + + + + +
                                                + + + + + + +
                                                + + + + + + + + + + + + + + + + + + + + + + +
                                                  Bitte geben sie hier ein neues Passwort ein.
                                                Passwort:
                                                Wiederholung:
                                                + + +
                                                +
                                                + + + + +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_members_preview.html b/sn_templates/xx_members_preview.html new file mode 100644 index 0000000..ad4241e --- /dev/null +++ b/sn_templates/xx_members_preview.html @@ -0,0 +1,34 @@ + + + + + +
                                                +
                                                +

                                                Vorschau

                                                +
                                                + +
                                                + +
                                                Visitenkarte
                                                + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + + +
                                                +
                                                + +
                                                +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_members_preview_guestbook.html b/sn_templates/xx_members_preview_guestbook.html new file mode 100644 index 0000000..bcf1967 --- /dev/null +++ b/sn_templates/xx_members_preview_guestbook.html @@ -0,0 +1,19 @@ + + + + + +
                                                +
                                                +

                                                Vorschau

                                                +
                                                +

                                                Gästebucheintrag

                                                + +

                                                + von 

                                                +
                                                +
                                                + +
                                                +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_members_register.html b/sn_templates/xx_members_register.html new file mode 100644 index 0000000..e0af8fe --- /dev/null +++ b/sn_templates/xx_members_register.html @@ -0,0 +1,54 @@ + + + + + + + +
                                                +
                                                +

                                                Benutzerkonto

                                                +
                                                + + + +
                                                + +
                                                +

                                                Neues kostenloses Benutzerkonto erstellen

                                                + +
                                                + + +
                                                + +
                                                + +


                                                + Kann jetzt, oder später noch geändert werden.

                                                +
                                                + +
                                                + +

                                                +
                                                + An diese Adresse wird eine Aktivierungsmail mit Ihrem Passwort geschickt. Ihre E-Mail Adresse wird nicht veröffentlicht.

                                                + />  Ich stimme den Nutzungsbedinungen zu.

                                                + +

                                                +
                                                + Wenn Sie schon ein Benutzerkonto haben
                                                können Sie sich hier anmelden. +
                                                +
                                                + + +
                                                + +
                                                +
                                                + + + + + + diff --git a/sn_templates/xx_members_sendpass.html b/sn_templates/xx_members_sendpass.html new file mode 100644 index 0000000..0af257c --- /dev/null +++ b/sn_templates/xx_members_sendpass.html @@ -0,0 +1,82 @@ + + + + + + + +
                                                + + + + + + +
                                                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                +   +
                                                + + Passwort vergessen?
                                                + Bitte geben Sie hier Ihren Nutzernamen und ihre eMail-Adresse an, ihr Passwort wird Ihnen dann zugeschickt. +
                                                +
                                                +   +
                                                + Nutzername: + +   +
                                                + eMail-Adresse: + + +
                                                +
                                                +
                                                +

                                                +
                                                + +
                                                + + + + + +
                                                + + + diff --git a/sn_templates/xx_members_show_tab1.html b/sn_templates/xx_members_show_tab1.html new file mode 100644 index 0000000..f3f34ae --- /dev/null +++ b/sn_templates/xx_members_show_tab1.html @@ -0,0 +1,130 @@ + + + + + + +
                                                + + + +
                                                + + + + + +
                                                + + + + + + +
                                                +

                                                's ...

                                                +
                                                + + + + + + + +
                                                +
                                                Persönliche Informationen
                                                +

                                                + +
                                                + + +
                                                +
                                                Allgemeine Informationen
                                                +
                                                  +
                                                • Status:
                                                • +
                                                • Nickname:
                                                • +
                                                • Member seit:
                                                • +
                                                • Letzter Login:
                                                • +
                                                +
                                                  +
                                                • Bonus:
                                                • +
                                                • Fragen:
                                                • +
                                                • Antworten:
                                                • +
                                                • Gute Antworten:
                                                • +
                                                +
                                                  + +
                                                • Lösungen:
                                                • +
                                                • Votes:
                                                • +
                                                • Aufrufe:
                                                • +
                                                +
                                                + + + +
                                                +
                                                Visitenkarte
                                                + + +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + + + + + + + + +
                                                +
                                                Gästebuch
                                                + + +
                                                + +

                                                +
                                                + +

                                                + +
                                                + + + + +
                                                + + +
                                                + +
                                                + + + + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_members_show_tab2.html b/sn_templates/xx_members_show_tab2.html new file mode 100644 index 0000000..ffc5234 --- /dev/null +++ b/sn_templates/xx_members_show_tab2.html @@ -0,0 +1,52 @@ + + + + + + +
                                                + + + + + + + +
                                                +

                                                's ...

                                                +
                                                + + + + + +
                                                + +
                                                + +

                                                ...

                                                + +
                                                +
                                                + + + + +
                                                + +
                                                + + + +
                                                + + + \ No newline at end of file diff --git a/sn_templates/xx_members_show_tab3.html b/sn_templates/xx_members_show_tab3.html new file mode 100644 index 0000000..0fdec37 --- /dev/null +++ b/sn_templates/xx_members_show_tab3.html @@ -0,0 +1,85 @@ + + + + + + +
                                                + + + + +
                                                +

                                                's ...

                                                +
                                                + + + + +
                                                + + +
                                                Persönliche Daten
                                                + + +
                                                +

                                                Jeder kann Deinen richtigen Namen sehen

                                                +

                                                />

                                                +
                                                + + +
                                                +

                                                Jeder kann Deine richtige Adresse sehen

                                                +

                                                />

                                                +
                                                + +

                                                + +
                                                Benachrichtigungsoptionen
                                                + +
                                                +

                                                Automatische E-Mail Benachrichtigung bei Threads in denen man schreibt

                                                +

                                                />

                                                + +
                                                + + +
                                                +

                                                Automatische E-Mail Benachrichtigung bei neuen Freundesanfragen

                                                +

                                                />

                                                + +
                                                + +
                                                +

                                                Automatische E-Mail Benachrichtigung bei neuen PMs

                                                +

                                                />

                                                + +
                                                + + +
                                                +

                                                Automatische E-Mail Benachrichtigung bei Kommentaren auf Deine Tipps

                                                +

                                                />

                                                + +
                                                + +

                                                + +

                                                + +
                                                + +
                                                + + + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_members_update.html b/sn_templates/xx_members_update.html new file mode 100644 index 0000000..2f95367 --- /dev/null +++ b/sn_templates/xx_members_update.html @@ -0,0 +1,139 @@ + + + + + + + +
                                                + + +
                                                +

                                                Persönliche Daten

                                                +
                                                + + +
                                                + + + + + +

                                                +
                                                + +   + +

                                                + + +
                                                + + + +
                                                + + + +

                                                + Hinweis: Unter 'meine Einstellungen können Sie einstellen, welche Felder veröffentlicht werden. + +

                                                + +

                                                +
                                                + +   +

                                                + + +

                                                +
                                                + + +

                                                + +

                                                +
                                                + + +

                                                + +

                                                +
                                                + + +

                                                + + +

                                                +
                                                + + +

                                                + +

                                                +
                                                + + +

                                                + +

                                                +  
                                                +   + + + +

                                                + + +

                                                +
                                                + + +

                                                + + + + + +
                                                + + + +
                                                + +
                                                + + +
                                                + + + + + + + + + + + + + diff --git a/sn_templates/xx_members_update_home.html b/sn_templates/xx_members_update_home.html new file mode 100644 index 0000000..bb1b92f --- /dev/null +++ b/sn_templates/xx_members_update_home.html @@ -0,0 +1,73 @@ + + + + + + + +
                                                + + +
                                                +

                                                Meine Visitenkarte

                                                +
                                                + + + + +
                                                + + +

                                                + Hinweis: Unter 'meine Einstellungen' können Sie einstellen, welche Felder veröffentlicht werden. + +

                                                + + +

                                                +

                                                + + +

                                                +

                                                + + +

                                                +
                                                + + +

                                                + + + + + +
                                                + + + +
                                                + +
                                                + + +
                                                + + + + + + + + + + + + + diff --git a/sn_templates/xx_metatags_nocache.html b/sn_templates/xx_metatags_nocache.html new file mode 100644 index 0000000..31e59cb --- /dev/null +++ b/sn_templates/xx_metatags_nocache.html @@ -0,0 +1,3 @@ + + + diff --git a/sn_templates/xx_metatags_small.html b/sn_templates/xx_metatags_small.html new file mode 100644 index 0000000..e5a8e46 --- /dev/null +++ b/sn_templates/xx_metatags_small.html @@ -0,0 +1 @@ + diff --git a/sn_templates/xx_news_base.html b/sn_templates/xx_news_base.html new file mode 100644 index 0000000..7a2ec45 --- /dev/null +++ b/sn_templates/xx_news_base.html @@ -0,0 +1,9 @@ + + + + +
                                                + +
                                                + + diff --git a/sn_templates/xx_news_overview.html b/sn_templates/xx_news_overview.html new file mode 100644 index 0000000..3168544 --- /dev/null +++ b/sn_templates/xx_news_overview.html @@ -0,0 +1,34 @@ + + + + + +
                                                + + +
                                                +

                                                aktuelle News

                                                +
                                                + + +
                                                + + +
                                                + +

                                                +    +
                                                +
                                                + + + + +
                                                + +
                                                + + +
                                                + + diff --git a/sn_templates/xx_news_preview.html b/sn_templates/xx_news_preview.html new file mode 100644 index 0000000..3da3bec --- /dev/null +++ b/sn_templates/xx_news_preview.html @@ -0,0 +1,21 @@ + + + + + +
                                                +
                                                +

                                                Vorschau

                                                +
                                                +

                                                + +

                                                + +

                                                + von 

                                                +
                                                +
                                                + +
                                                +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_news_show.html b/sn_templates/xx_news_show.html new file mode 100644 index 0000000..fc647c0 --- /dev/null +++ b/sn_templates/xx_news_show.html @@ -0,0 +1,64 @@ + + + + + + +
                                                + + + +
                                                +

                                                / News

                                                + +
                                                + + + + --> + +

                                                 

                                                + + + von  vom 

                                                + + + + + + + + + +
                                                + + +
                                                + + + + + + + + +
                                                +

                                                Ihre Frage

                                                + +
                                                + +

                                                Ich möchte eine Frage im Forum stellen

                                                + + + + +
                                                + + +
                                                + + +
                                                + + + diff --git a/sn_templates/xx_news_update.html b/sn_templates/xx_news_update.html new file mode 100644 index 0000000..d7f1c02 --- /dev/null +++ b/sn_templates/xx_news_update.html @@ -0,0 +1,111 @@ + + + + + +
                                                + + + + +
                                                +

                                                News editieren

                                                + +
                                                + + + + + + +
                                                + + + +

                                                +
                                                + +

                                                + + +

                                                + Flags: Public: 1, Gelöscht: 2, Adminbenachrichtigung: 4,
                                                Mailbenachrichtigung: 8, Problem gelöst: 16, Geschlossen: 32, Zustands-Flags werden addiert:
                                                +

                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                + Beachte: Das Datumsformat ist jjjj-mm-tt HH:MM:SS, also z.B: "2003-02-28 18:55:00"
                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + + + + + +
                                                + + + + + + +
                                                + + +
                                                + +
                                                + + + +
                                                + + diff --git a/sn_templates/xx_news_user_update.html b/sn_templates/xx_news_user_update.html new file mode 100644 index 0000000..2cf2fe6 --- /dev/null +++ b/sn_templates/xx_news_user_update.html @@ -0,0 +1,84 @@ + + + + + +
                                                + + + + +
                                                +

                                                News einschicken / ändern

                                                + +
                                                + + + + + +
                                                + + + + + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + +

                                                +
                                                + +

                                                + + +
                                                +

                                                + + + + + +
                                                + + +
                                                + + +
                                                + +
                                                + + + + + +
                                                + + + + + + + + + + + + + + + + diff --git a/sn_templates/xx_pager_base.html b/sn_templates/xx_pager_base.html new file mode 100644 index 0000000..9cce0b5 --- /dev/null +++ b/sn_templates/xx_pager_base.html @@ -0,0 +1,9 @@ + + + +
                                                + +
                                                + + + diff --git a/sn_templates/xx_pager_create.html b/sn_templates/xx_pager_create.html new file mode 100644 index 0000000..a9f8d7c --- /dev/null +++ b/sn_templates/xx_pager_create.html @@ -0,0 +1,33 @@ + + + + +
                                                + + +
                                                +

                                                neuer Kontakt

                                                + +
                                                + +

                                                Nachricht verfassen

                                                + + + +
                                                + +
                                                +

                                                +
                                                +
                                                +
                                                +
                                                + +
                                                + +
                                                + +
                                                + + + diff --git a/sn_templates/xx_pager_overview.html b/sn_templates/xx_pager_overview.html new file mode 100644 index 0000000..9ad444f --- /dev/null +++ b/sn_templates/xx_pager_overview.html @@ -0,0 +1,55 @@ + + + + +
                                                + + + +
                                                +

                                                Private Nachrichten

                                                + + +
                                                + + +

                                                Kontakt:

                                                + + +
                                                +
                                                + +
                                                + +
                                                +
                                                + + + +
                                                + + + +

                                                Uhr

                                                + +
                                                +
                                                + +

                                                + + + + + +

                                                + + +
                                                + +
                                                + + + + +
                                                + \ No newline at end of file diff --git a/sn_templates/xx_rss_faqs.html b/sn_templates/xx_rss_faqs.html new file mode 100644 index 0000000..526080c --- /dev/null +++ b/sn_templates/xx_rss_faqs.html @@ -0,0 +1,19 @@ + + + Die Tipps und Tricks + Die Tipps und Tricks - die neuesten Artikel + /faqs + de-de + + 5 + + + <![CDATA[<!--#sn_msgsubject-->]]> + /faqsthread/ + ]]> + + /faqsthread/ + + + + diff --git a/sn_templates/xx_rss_forum.html b/sn_templates/xx_rss_forum.html new file mode 100644 index 0000000..ca259c2 --- /dev/null +++ b/sn_templates/xx_rss_forum.html @@ -0,0 +1,19 @@ + + + ComputerForum + ComputerForum - die neuesten Artikel + /forum + de-de + + 5 + + + <![CDATA[<!--#sn_msgsubject-->]]> + /threads/ + ]]> + + /threads/ + + + + diff --git a/sn_templates/xx_rss_groups.html b/sn_templates/xx_rss_groups.html new file mode 100644 index 0000000..5318865 --- /dev/null +++ b/sn_templates/xx_rss_groups.html @@ -0,0 +1,19 @@ + + + ComputerForum + ComputerForum - die neuesten Artikel + /forum + de-de + + 5 + + + <![CDATA[<!--#sn_msgsubject-->]]> + /threads/ + ]]> + + /threads/ + + + + diff --git a/sn_templates/xx_rss_news.html b/sn_templates/xx_rss_news.html new file mode 100644 index 0000000..d646ba8 --- /dev/null +++ b/sn_templates/xx_rss_news.html @@ -0,0 +1,19 @@ + + + ComputerNews + Die ComputerNews + /news + de-de + + 5 + + + <![CDATA[<!--#sn_msgsubject-->]]> + /newsthread/ + ]]> + + /newsthread/ + + + + diff --git a/sn_templates/xx_search_all.html b/sn_templates/xx_search_all.html new file mode 100644 index 0000000..84e5225 --- /dev/null +++ b/sn_templates/xx_search_all.html @@ -0,0 +1,56 @@ + + + +
                                                + + + + +
                                                + + + + + + + +
                                                + + + + + + + +
                                                +

                                                Die Suchergebnisse

                                                +
                                                + + + + + +
                                                + +

                                                + +
                                                +

                                                ...

                                                +    +

                                                +
                                                + + + + +
                                                + +
                                                + + + + +
                                                + + + diff --git a/sn_templates/xx_search_not_found.html b/sn_templates/xx_search_not_found.html new file mode 100644 index 0000000..cb9646a --- /dev/null +++ b/sn_templates/xx_search_not_found.html @@ -0,0 +1,23 @@ + + + + + + +
                                                + + + + + + Hinweis: Diese URL ist leider nicht mehr verfügbar. Vielleicht kann Ihnen die Profisuche weiterhelfen: + + + + + + +
                                                + + + diff --git a/sn_templates/xx_search_watch.html b/sn_templates/xx_search_watch.html new file mode 100644 index 0000000..a15df7c --- /dev/null +++ b/sn_templates/xx_search_watch.html @@ -0,0 +1,37 @@ + + + + + + +
                                                + + + +
                                                +

                                                meine Favoriten

                                                +
                                                + + +
                                                + + +

                                                +  Geändert
                                                +    +

                                                +
                                                + + + + + +
                                                + + + +
                                                + +
                                                + + diff --git a/sn_templates/xx_template.html b/sn_templates/xx_template.html new file mode 100644 index 0000000..667b85a --- /dev/null +++ b/sn_templates/xx_template.html @@ -0,0 +1,21 @@ + + + + + + + +
                                                + + + + + + + moo! + + + +
                                                + + \ No newline at end of file diff --git a/sn_templates/xx_threadmeta.html b/sn_templates/xx_threadmeta.html new file mode 100644 index 0000000..a2856d7 --- /dev/null +++ b/sn_templates/xx_threadmeta.html @@ -0,0 +1,3 @@ + + + diff --git a/sn_templates/xx_x_sky.html b/sn_templates/xx_x_sky.html new file mode 100644 index 0000000..b9a79f6 --- /dev/null +++ b/sn_templates/xx_x_sky.html @@ -0,0 +1,4 @@ + +
                                                + +
                                                diff --git a/sn_templates/xx_x_werbung.html b/sn_templates/xx_x_werbung.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sn_templates/xx_x_werbung.html @@ -0,0 +1 @@ + diff --git a/startserver.sh b/startserver.sh new file mode 100644 index 0000000..b8a1784 --- /dev/null +++ b/startserver.sh @@ -0,0 +1,15 @@ +#!/bin/sh + + +# create resources +ulimit -c unlimited +ulimit -n 2048 + +# kill old stuff +kill -9 `pidof server` +kill -9 `pidof -x restarter.sh` + +# run restarter +nohup ./restarter.sh & + + diff --git a/startserver_proxy.sh b/startserver_proxy.sh new file mode 100644 index 0000000..9030fc9 --- /dev/null +++ b/startserver_proxy.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# create resources +ulimit -c unlimited +ulimit -n 2048 + +# kill old stuff +kill -9 `pidof server` +kill -9 `pidof -x restarter_proxy.sh` + +# run restarter +nohup ./restarter_proxy.sh & + + + + diff --git a/stopserver.sh b/stopserver.sh new file mode 100644 index 0000000..2bd7fde --- /dev/null +++ b/stopserver.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +cd /home/snuser/sn_neu + +# create resources +ulimit -c unlimited +ulimit -n 2048 + +# kill old stuff +kill -9 `pidof server` +kill -9 `pidof -x restarter_proxy.sh` + diff --git a/supportware.cfg b/supportware.cfg new file mode 100644 index 0000000..f151813 --- /dev/null +++ b/supportware.cfg @@ -0,0 +1,85 @@ +// +// default configuration file +// + + + + +section:"main" +{ + max_connections=1200; + port=8088; + default_domain="sn_computer"; + default_templates="sn_templates"; + daemon=false; + watchdog=false; + timeout=60; + connectstring="users;localhost;chris;kpdrZ49$#"; + user="user"; + chroot="."; +} + + +section:"newpostings" +{ + select = "SELECT id_group, count(*) FROM {table}tr_msgmain + where sn_datecreated > '{sn_date}' + group by id_group"; +} + + +section:"users" +{ + + on_admin_insert = "insert into tr_user( sn_senderip,sn_nickname, sn_cryptopass, sn_firstname, sn_lastname, sn_city, sn_nickmail, + sn_firstmail, sn_datecreated, sn_datelastlogin ) values ( '{sn_senderip}', '{sn_nickname}', '{sn_cryptopass}', '{sn_firstname}', '{sn_lastname}', + '{sn_city}','{sn_firstmail}', '{sn_nickmail}', now(), now() )"; + + on_admin_remove = "delete from tr_user where id = '{id}'"; + + on_admin_update = "update tr_user set sn_firstname='{sn_firstname: }', sn_lastname='{sn_lastname: }', + sn_memberbonus='{sn_memberbonus}', sn_numquestions='{sn_numquestions}', sn_numanswers='{sn_numanswers}', flag_male='{flag_male}', + sn_numreasonable='{sn_numreasonable}', sn_numsolutions='{sn_numsolutions}', sn_numvotes='{sn_numvotes}', + sn_city='{sn_city: }', sn_nickname='{sn_nickname}', sn_nickmail='{sn_nickmail: }', sn_street='{sn_street}', sn_zipcode='{sn_zipcode}', + sn_icqs='{sn_icqs: }', sn_addressbook='{sn_addressbook: }', sn_homepagetext='{sn_homepagetext: }',sn_homepagelink='{sn_homepagelink: }', + sn_homepageimage='{sn_homepageimage: }', sn_googlechannel1='{sn_googlechannel1}', sn_googlechannel2='{sn_googlechannel2}' where id='{id}'"; + + on_update = "update tr_user set sn_firstname='{sn_firstname: }',sn_lastname='{sn_lastname: }', flag_male='{flag_male}', + sn_city='{sn_city: }', sn_nickmail='{sn_nickmail: }', sn_street='{sn_street}', sn_zipcode='{sn_zipcode}', + sn_icqs='{sn_icqs: }', sn_addressbook='{sn_addressbook: }' where id='{id}'"; + + on_update_home = "update tr_user set sn_homepagetext='{sn_homepagetext: }',sn_homepagelink='{sn_homepagelink: }', + sn_homepageimage='{sn_homepageimage: }' where id='{id}'"; + + adminblock = "update tr_user set sn_cryptopass='{sn_cryptopass}', sn_nickmail='{sn_nickmail}' where id='{id}'"; + + update_single1 = "update tr_user set {name}= {value} where id = '{id}'"; + update_single2 = "update tr_user set {name}='{value}' where id = '{id}'"; + + + select = "select id id_user, sn_nickname, sn_cryptopass, sn_nickmail, sn_addressbook, sn_googlechannel1, sn_googlechannel2, sn_itemsperpage, sn_mailalert, sn_properties from tr_user order by id"; + select_single = "select id id_user, sn_nickname, sn_cryptopass, sn_nickmail, sn_addressbook, sn_googlechannel1, sn_googlechannel2, sn_itemsperpage, sn_mailalert, sn_properties from tr_user where sn_nickname='{sn_nickname}'"; + + + pagermsg_xx = "insert into tr_pager_xx( id_sender, id_receiver, sn_nicksender, sn_nickreceiver, sn_datecreated, sn_msgbody ) + values( {id_sender}, {id_receiver}, '{sn_nicksender}', '{sn_nickreceiver}', now(), '{sn_msgbody}' )"; + + pagermsg_admin = "insert into tr_pager_admin( id_sender, id_parent, sn_nicksender, sn_datecreated, sn_msgbody ) + values( {id_sender}, {id}, '{sn_nicksender}', now(), '{sn_msgbody}' )"; + + + pagerclear = "delete from tr_pager where to_days(CURDATE()) - to_days(sn_datecreated) > 90"; + + score_inc1 = "update tr_user set sn_numsolutions=sn_numsolutions+1,sn_memberbonus=sn_memberbonus+{sn_memberbonus} where id = '{id}'"; + score_inc2 = "insert into tr_bonus values( {id_user}, {sn_memberbonus}, now() )"; + + change_nick = "update sn_computer.tr_msgmain set sn_nickname = '{newnick}' where id_user = '{id}'; + update sn_games.tr_msgmain set sn_nickname = '{newnick}' where id_user = '{id}'; + update sn_kochen.tr_msgmain set sn_nickname = '{newnick}' where id_user = '{id}'"; + + last_login = "select sn_datelastlogin from tr_user where id = '{id}'"; + + last_id = "select max(id) + 1 from tr_user"; + +} + diff --git a/supportware/.kdev4/supportware.kdev4 b/supportware/.kdev4/supportware.kdev4 new file mode 100644 index 0000000..aea425c --- /dev/null +++ b/supportware/.kdev4/supportware.kdev4 @@ -0,0 +1,2 @@ +[Buildset] +BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x16\x00s\x00u\x00p\x00p\x00o\x00r\x00t\x00w\x00a\x00r\x00e) diff --git a/supportware/AUTHORS b/supportware/AUTHORS new file mode 100644 index 0000000..8e57d1e --- /dev/null +++ b/supportware/AUTHORS @@ -0,0 +1 @@ +Christoph Holzheuer diff --git a/supportware/COPYING b/supportware/COPYING new file mode 100644 index 0000000..5b6e7c6 --- /dev/null +++ b/supportware/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/supportware/Doxyfile b/supportware/Doxyfile new file mode 100644 index 0000000..c3120af --- /dev/null +++ b/supportware/Doxyfile @@ -0,0 +1,323 @@ +# Doxyfile 1.5.7.1-KDevelop + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +DOXYFILE_ENCODING = UTF-8 +PROJECT_NAME = supportware +PROJECT_NUMBER = 0.1 +OUTPUT_DIRECTORY = +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = YES +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the +ALWAYS_DETAILED_SEC = NO +INLINE_INHERITED_MEMB = NO +FULL_PATH_NAMES = YES +STRIP_FROM_PATH = /home/chris/ +STRIP_FROM_INC_PATH = +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = NO +QT_AUTOBRIEF = NO +MULTILINE_CPP_IS_BRIEF = NO +INHERIT_DOCS = YES +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 8 +ALIASES = +OPTIMIZE_OUTPUT_FOR_C = NO +OPTIMIZE_OUTPUT_JAVA = NO +OPTIMIZE_FOR_FORTRAN = NO +OPTIMIZE_OUTPUT_VHDL = NO +EXTENSION_MAPPING = +BUILTIN_STL_SUPPORT = NO +CPP_CLI_SUPPORT = NO +SIP_SUPPORT = NO +IDL_PROPERTY_SUPPORT = YES +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES +TYPEDEF_HIDES_STRUCT = NO +SYMBOL_CACHE_SIZE = 0 +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- +EXTRACT_ALL = NO +EXTRACT_PRIVATE = NO +EXTRACT_STATIC = NO +EXTRACT_LOCAL_CLASSES = YES +EXTRACT_LOCAL_METHODS = NO +EXTRACT_ANON_NSPACES = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = NO +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = YES +SORT_BRIEF_DOCS = NO +SORT_GROUP_NAMES = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +ENABLED_SECTIONS = +MAX_INITIALIZER_LINES = 30 +SHOW_USED_FILES = YES +SHOW_DIRECTORIES = YES +SHOW_FILES = YES +SHOW_NAMESPACES = YES +FILE_VERSION_FILTER = +LAYOUT_FILE = +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +WARN_FORMAT = "$file:$line: $text" +WARN_LOGFILE = +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- +INPUT = /home/chris/projects/svn/supportnet/supportware +INPUT_ENCODING = UTF-8 +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.d \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.idl \ + *.odl \ + *.cs \ + *.php \ + *.php3 \ + *.inc \ + *.m \ + *.mm \ + *.dox \ + *.py \ + *.f90 \ + *.f \ + *.vhd \ + *.vhdl \ + *.C \ + *.CC \ + *.C++ \ + *.II \ + *.I++ \ + *.H \ + *.HH \ + *.H++ \ + *.CS \ + *.PHP \ + *.PHP3 \ + *.M \ + *.MM \ + *.PY \ + *.F90 \ + *.F \ + *.VHD \ + *.VHDL \ + *.C \ + *.H \ + *.tlh \ + *.diff \ + *.patch \ + *.moc \ + *.xpm \ + *.dox +RECURSIVE = yes +EXCLUDE = +EXCLUDE_SYMLINKS = NO +EXCLUDE_PATTERNS = +EXCLUDE_SYMBOLS = +EXAMPLE_PATH = +EXAMPLE_PATTERNS = * +EXAMPLE_RECURSIVE = NO +IMAGE_PATH = +INPUT_FILTER = +FILTER_PATTERNS = +FILTER_SOURCE_FILES = NO +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = YES +REFERENCES_RELATION = YES +REFERENCES_LINK_SOURCE = YES +USE_HTAGS = NO +VERBATIM_HEADERS = YES +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- +ALPHABETICAL_INDEX = NO +COLS_IN_ALPHA_INDEX = 5 +IGNORE_PREFIX = +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = html +HTML_FILE_EXTENSION = .html +HTML_HEADER = +HTML_FOOTER = +HTML_STYLESHEET = +HTML_ALIGN_MEMBERS = YES +HTML_DYNAMIC_SECTIONS = NO +GENERATE_DOCSET = NO +DOCSET_FEEDNAME = "Doxygen generated docs" +DOCSET_BUNDLE_ID = org.doxygen.Project +GENERATE_HTMLHELP = NO +CHM_FILE = +HHC_LOCATION = +GENERATE_CHI = NO +CHM_INDEX_ENCODING = +BINARY_TOC = NO +TOC_EXPAND = NO +GENERATE_QHP = NO +QCH_FILE = +QHP_NAMESPACE = +QHP_VIRTUAL_FOLDER = doc +QHP_CUSTOM_FILTER_NAME = +QHP_CUST_FILTER_ATTRS = +QHP_SECT_FILTER_ATTRS = +QHG_LOCATION = +DISABLE_INDEX = NO +ENUM_VALUES_PER_LINE = 4 +GENERATE_TREEVIEW = NONE +TREEVIEW_WIDTH = 250 +FORMULA_FONTSIZE = 10 +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- +GENERATE_LATEX = YES +LATEX_OUTPUT = latex +LATEX_CMD_NAME = latex +MAKEINDEX_CMD_NAME = makeindex +COMPACT_LATEX = NO +PAPER_TYPE = a4wide +EXTRA_PACKAGES = +LATEX_HEADER = +PDF_HYPERLINKS = NO +USE_PDFLATEX = NO +LATEX_BATCHMODE = NO +LATEX_HIDE_INDICES = NO +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- +GENERATE_RTF = NO +RTF_OUTPUT = rtf +COMPACT_RTF = NO +RTF_HYPERLINKS = NO +RTF_STYLESHEET_FILE = +RTF_EXTENSIONS_FILE = +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- +GENERATE_MAN = NO +MAN_OUTPUT = man +MAN_EXTENSION = .3 +MAN_LINKS = NO +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- +GENERATE_XML = yes +XML_OUTPUT = xml +XML_SCHEMA = +XML_DTD = +XML_PROGRAMLISTING = YES +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- +GENERATE_AUTOGEN_DEF = NO +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- +GENERATE_PERLMOD = NO +PERLMOD_LATEX = NO +PERLMOD_PRETTY = YES +PERLMOD_MAKEVAR_PREFIX = +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = NO +EXPAND_ONLY_PREDEF = NO +SEARCH_INCLUDES = YES +INCLUDE_PATH = +INCLUDE_FILE_PATTERNS = +PREDEFINED = +EXPAND_AS_DEFINED = +SKIP_FUNCTION_MACROS = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- +TAGFILES = +GENERATE_TAGFILE = supportware.tag +ALLEXTERNALS = NO +EXTERNAL_GROUPS = YES +PERL_PATH = /usr/bin/perl +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +MSCGEN_PATH = +HIDE_UNDOC_RELATIONS = YES +HAVE_DOT = NO +DOT_FONTNAME = FreeSans +DOT_FONTSIZE = 10 +DOT_FONTPATH = +CLASS_GRAPH = YES +COLLABORATION_GRAPH = YES +GROUP_GRAPHS = YES +UML_LOOK = NO +TEMPLATE_RELATIONS = NO +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = YES +CALL_GRAPH = NO +CALLER_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = png +DOT_PATH = +DOTFILE_DIRS = +DOT_GRAPH_MAX_NODES = 50 +MAX_DOT_GRAPH_DEPTH = 1000 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = YES +DOT_CLEANUP = YES +#--------------------------------------------------------------------------- +# Configuration::additions related to the search engine +#--------------------------------------------------------------------------- +SEARCHENGINE = NO diff --git a/supportware/INSTALL b/supportware/INSTALL new file mode 100644 index 0000000..02a4a07 --- /dev/null +++ b/supportware/INSTALL @@ -0,0 +1,167 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes a while. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Type `make install' to install the programs and any data files and + documentation. + + 4. You can remove the program binaries and object files from the + source code directory by typing `make clean'. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. + diff --git a/supportware/Makefile b/supportware/Makefile new file mode 100644 index 0000000..a92a9b4 --- /dev/null +++ b/supportware/Makefile @@ -0,0 +1,644 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile. Generated from Makefile.in by configure. + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + + +pkgdatadir = $(datadir)/supportware +pkglibdir = $(libdir)/supportware +pkgincludedir = $(includedir)/supportware +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = x86_64-unknown-linux-gnu +host_triplet = x86_64-unknown-linux-gnu +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + config.guess config.sub depcomp install-sh ltmain.sh missing \ + mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = ${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run aclocal-1.10 +AMTAR = ${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run tar +AR = ar +AUTOCONF = ${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run autoconf +AUTOHEADER = ${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run autoheader +AUTOMAKE = ${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run automake-1.10 +AWK = gawk +CC = gcc +CCDEPMODE = depmode=gcc3 +CFLAGS = -g -O2 +CPP = gcc -E +CPPFLAGS = +CXX = g++ +CXXCPP = g++ -E +CXXDEPMODE = depmode=gcc3 +CXXFLAGS = -g -O2 +CYGPATH_W = echo +DEFS = -DHAVE_CONFIG_H +DEPDIR = .deps +DSYMUTIL = +DUMPBIN = +ECHO_C = +ECHO_N = -n +ECHO_T = +EGREP = /usr/bin/grep -E +EXEEXT = +FGREP = /usr/bin/grep -F +GREP = /usr/bin/grep +INSTALL = /usr/bin/install -c +INSTALL_DATA = ${INSTALL} -m 644 +INSTALL_PROGRAM = ${INSTALL} +INSTALL_SCRIPT = ${INSTALL} +INSTALL_STRIP_PROGRAM = $(install_sh) -c -s +LD = /usr/bin/ld -m elf_x86_64 +LDFLAGS = +LIBOBJS = +LIBS = +LIBTOOL = $(SHELL) $(top_builddir)/libtool +LIPO = +LN_S = ln -s +LTLIBOBJS = +MAKEINFO = ${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run makeinfo +MKDIR_P = /usr/bin/mkdir -p +NM = /usr/bin/nm -B +NMEDIT = +OBJDUMP = objdump +OBJEXT = o +OTOOL = +OTOOL64 = +PACKAGE = supportware +PACKAGE_BUGREPORT = +PACKAGE_NAME = +PACKAGE_STRING = +PACKAGE_TARNAME = +PACKAGE_VERSION = +PATH_SEPARATOR = : +RANLIB = ranlib +SED = /usr/bin/sed +SET_MAKE = +SHELL = /bin/bash +STRIP = strip +VERSION = 0.1 +abs_builddir = /home/chris/sw.1.9.15x/supportware +abs_srcdir = /home/chris/sw.1.9.15x/supportware +abs_top_builddir = /home/chris/sw.1.9.15x/supportware +abs_top_srcdir = /home/chris/sw.1.9.15x/supportware +ac_ct_CC = gcc +ac_ct_CXX = g++ +ac_ct_DUMPBIN = +am__include = include +am__leading_dot = . +am__quote = +am__tar = ${AMTAR} chof - "$$tardir" +am__untar = ${AMTAR} xf - +bindir = ${exec_prefix}/bin +build = x86_64-unknown-linux-gnu +build_alias = +build_cpu = x86_64 +build_os = linux-gnu +build_vendor = unknown +builddir = . +datadir = ${datarootdir} +datarootdir = ${prefix}/share +docdir = ${datarootdir}/doc/${PACKAGE} +dvidir = ${docdir} +exec_prefix = ${prefix} +host = x86_64-unknown-linux-gnu +host_alias = +host_cpu = x86_64 +host_os = linux-gnu +host_vendor = unknown +htmldir = ${docdir} +includedir = ${prefix}/include +infodir = ${datarootdir}/info +install_sh = $(SHELL) /home/chris/sw.1.9.15x/supportware/install-sh +libdir = ${exec_prefix}/lib +libexecdir = ${exec_prefix}/libexec +localedir = ${datarootdir}/locale +localstatedir = ${prefix}/var +lt_ECHO = echo +mandir = ${datarootdir}/man +mkdir_p = /usr/bin/mkdir -p +oldincludedir = /usr/include +pdfdir = ${docdir} +prefix = /usr/local +program_transform_name = s,x,x, +psdir = ${docdir} +sbindir = ${exec_prefix}/sbin +sharedstatedir = ${prefix}/com +srcdir = . +sysconfdir = ${prefix}/etc +target_alias = +top_build_prefix = +top_builddir = . +top_srcdir = . + +# not a GNU package. You can remove this line, if +# have all needed files, that a GNU package needs +AUTOMAKE_OPTIONS = foreign 1.4 +SUBDIRS = src +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ + cd $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + cd $(top_srcdir) && $(AUTOHEADER) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d $(distdir) || mkdir $(distdir) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile config.h +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-exec-am: + +install-html: install-html-recursive + +install-info: install-info-recursive + +install-man: + +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ + dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ + distclean distclean-generic distclean-hdr distclean-libtool \ + distclean-tags distcleancheck distdir distuninstallcheck dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-recursive uninstall uninstall-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/supportware/Makefile.am b/supportware/Makefile.am new file mode 100644 index 0000000..02520f2 --- /dev/null +++ b/supportware/Makefile.am @@ -0,0 +1,5 @@ +# not a GNU package. You can remove this line, if +# have all needed files, that a GNU package needs +AUTOMAKE_OPTIONS = foreign 1.4 + +SUBDIRS = src diff --git a/supportware/Makefile.cvs b/supportware/Makefile.cvs new file mode 100644 index 0000000..d160702 --- /dev/null +++ b/supportware/Makefile.cvs @@ -0,0 +1,8 @@ +default: all + +all: + aclocal + autoheader + automake + autoconf + diff --git a/supportware/Makefile.in b/supportware/Makefile.in new file mode 100644 index 0000000..e5e2686 --- /dev/null +++ b/supportware/Makefile.in @@ -0,0 +1,644 @@ +# Makefile.in generated by automake 1.10.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = . +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + config.guess config.sub depcomp install-sh ltmain.sh missing \ + mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-dvi-recursive install-exec-recursive \ + install-html-recursive install-info-recursive \ + install-pdf-recursive install-ps-recursive install-recursive \ + installcheck-recursive installdirs-recursive pdf-recursive \ + ps-recursive uninstall-recursive +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ + distclean-recursive maintainer-clean-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AR = @AR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +CXXDEPMODE = @CXXDEPMODE@ +CXXFLAGS = @CXXFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +GREP = @GREP@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_CXX = @ac_ct_CXX@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +lt_ECHO = @lt_ECHO@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ + +# not a GNU package. You can remove this line, if +# have all needed files, that a GNU package needs +AUTOMAKE_OPTIONS = foreign 1.4 +SUBDIRS = src +all: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +.SUFFIXES: +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ + cd $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) + +config.h: stamp-h1 + @if test ! -f $@; then \ + rm -f stamp-h1; \ + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ + else :; fi + +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status + @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status config.h +$(srcdir)/config.h.in: $(am__configure_deps) + cd $(top_srcdir) && $(AUTOHEADER) + rm -f stamp-h1 + touch $@ + +distclean-hdr: + -rm -f config.h stamp-h1 + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +$(RECURSIVE_CLEAN_TARGETS): + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || eval $$failcom; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done +ctags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ + done + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ + include_option=--etags-include; \ + empty_fix=.; \ + else \ + include_option=--include; \ + empty_fix=; \ + fi; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test ! -f $$subdir/TAGS || \ + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi +ctags: CTAGS +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$tags$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$tags $$unique + +GTAGS: + here=`$(am__cd) $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d $(distdir) || mkdir $(distdir) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -d "$(distdir)/$$subdir" \ + || $(MKDIR_P) "$(distdir)/$$subdir" \ + || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ + am__remove_distdir=: \ + am__skip_length_check=: \ + distdir) \ + || exit 1; \ + fi; \ + done + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r $(distdir) +dist-gzip: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && cd $(distdir)/_build \ + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @cd $(distuninstallcheck_dir) \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' = . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-recursive +all-am: Makefile config.h +installdirs: installdirs-recursive +installdirs-am: +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -f Makefile +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags + +dvi: dvi-recursive + +dvi-am: + +html: html-recursive + +info: info-recursive + +info-am: + +install-data-am: + +install-dvi: install-dvi-recursive + +install-exec-am: + +install-html: install-html-recursive + +install-info: install-info-recursive + +install-man: + +install-pdf: install-pdf-recursive + +install-ps: install-ps-recursive + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-recursive + +pdf-am: + +ps: ps-recursive + +ps-am: + +uninstall-am: + +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ + install-strip + +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ + all all-am am--refresh check check-am clean clean-generic \ + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ + dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ + distclean distclean-generic distclean-hdr distclean-libtool \ + distclean-tags distcleancheck distdir distuninstallcheck dvi \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs installdirs-am \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags tags-recursive uninstall uninstall-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/supportware/NEWS b/supportware/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/supportware/README b/supportware/README new file mode 100644 index 0000000..e69de29 diff --git a/supportware/aclocal.m4 b/supportware/aclocal.m4 new file mode 100644 index 0000000..e314f96 --- /dev/null +++ b/supportware/aclocal.m4 @@ -0,0 +1,8826 @@ +# generated automatically by aclocal 1.10.1 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +m4_if(AC_AUTOCONF_VERSION, [2.63],, +[m4_warning([this file was generated for autoconf 2.63. +You have another version of autoconf. It may work, but is not guaranteed to. +If you have problems, you may need to regenerate the build system entirely. +To do so, use the procedure documented by the package, typically `autoreconf'.])]) + +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) + +# serial 56 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_defun([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl +_LT_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([["`\\]]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +_LT_CC_BASENAME([$compiler]) + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + _LT_PATH_MAGIC + fi + ;; +esac + +# Use C for the default configuration in the libtool script +LT_SUPPORTED_TAG([CC]) +_LT_LANG_C_CONFIG +_LT_LANG_DEFAULT_CONFIG +_LT_CONFIG_COMMANDS +])# _LT_SETUP + + +# _LT_PROG_LTMAIN +# --------------- +# Note that this code is called both from `configure', and `config.status' +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, +# `config.status' has no value for ac_aux_dir unless we are using Automake, +# so we pass a copy along to make sure it has a sensible value anyway. +m4_defun([_LT_PROG_LTMAIN], +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) +ltmain="$ac_aux_dir/ltmain.sh" +])# _LT_PROG_LTMAIN + + + +# So that we can recreate a full libtool script including additional +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS +# in macros and then make a single call at the end using the `libtool' +# label. + + +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) +# ---------------------------------------- +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL_INIT], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_INIT], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_INIT]) + + +# _LT_CONFIG_LIBTOOL([COMMANDS]) +# ------------------------------ +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. +m4_define([_LT_CONFIG_LIBTOOL], +[m4_ifval([$1], + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], + [$1 +])])]) + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) + + +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) +# ----------------------------------------------------- +m4_defun([_LT_CONFIG_SAVE_COMMANDS], +[_LT_CONFIG_LIBTOOL([$1]) +_LT_CONFIG_LIBTOOL_INIT([$2]) +]) + + +# _LT_FORMAT_COMMENT([COMMENT]) +# ----------------------------- +# Add leading comment marks to the start of each line, and a trailing +# full-stop to the whole comment if one is not present already. +m4_define([_LT_FORMAT_COMMENT], +[m4_ifval([$1], [ +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) +)]) + + + + + +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) +# ------------------------------------------------------------------- +# CONFIGNAME is the name given to the value in the libtool script. +# VARNAME is the (base) name used in the configure script. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on +# VARNAME. Any other value will be used directly. +m4_define([_LT_DECL], +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], + [m4_ifval([$1], [$1], [$2])]) + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) + m4_ifval([$4], + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) + lt_dict_add_subkey([lt_decl_dict], [$2], + [tagged?], [m4_ifval([$5], [yes], [no])])]) +]) + + +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) +# -------------------------------------------------------- +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) + + +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_tag_varnames], +[_lt_decl_filter([tagged?], [yes], $@)]) + + +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) +# --------------------------------------------------------- +m4_define([_lt_decl_filter], +[m4_case([$#], + [0], [m4_fatal([$0: too few arguments: $#])], + [1], [m4_fatal([$0: too few arguments: $#: $1])], + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], + [lt_dict_filter([lt_decl_dict], $@)])[]dnl +]) + + +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) +# -------------------------------------------------- +m4_define([lt_decl_quote_varnames], +[_lt_decl_filter([value], [1], $@)]) + + +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_dquote_varnames], +[_lt_decl_filter([value], [2], $@)]) + + +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) +# --------------------------------------------------- +m4_define([lt_decl_varnames_tagged], +[m4_assert([$# <= 2])dnl +_$0(m4_quote(m4_default([$1], [[, ]])), + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) +m4_define([_lt_decl_varnames_tagged], +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) + + +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) +# ------------------------------------------------ +m4_define([lt_decl_all_varnames], +[_$0(m4_quote(m4_default([$1], [[, ]])), + m4_if([$2], [], + m4_quote(lt_decl_varnames), + m4_quote(m4_shift($@))))[]dnl +]) +m4_define([_lt_decl_all_varnames], +[lt_join($@, lt_decl_varnames_tagged([$1], + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl +]) + + +# _LT_CONFIG_STATUS_DECLARE([VARNAME]) +# ------------------------------------ +# Quote a variable value, and forward it to `config.status' so that its +# declaration there will have the same value as in `configure'. VARNAME +# must have a single quote delimited value for this to work. +m4_define([_LT_CONFIG_STATUS_DECLARE], +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) + + +# _LT_CONFIG_STATUS_DECLARATIONS +# ------------------------------ +# We delimit libtool config variables with single quotes, so when +# we write them to config.status, we have to be sure to quote all +# embedded single quotes properly. In configure, this macro expands +# each variable declared with _LT_DECL (and _LT_TAGDECL) into: +# +# ='`$ECHO "X$" | $Xsed -e "$delay_single_quote_subst"`' +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAGS +# ---------------- +# Output comment and list of tags supported by the script +m4_defun([_LT_LIBTOOL_TAGS], +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl +available_tags="_LT_TAGS"dnl +]) + + +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) +# ----------------------------------- +# Extract the dictionary values for VARNAME (optionally with TAG) and +# expand to a commented shell variable setting: +# +# # Some comment about what VAR is for. +# visible_name=$lt_internal_name +m4_define([_LT_LIBTOOL_DECLARE], +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], + [description])))[]dnl +m4_pushdef([_libtool_name], + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), + [0], [_libtool_name=[$]$1], + [1], [_libtool_name=$lt_[]$1], + [2], [_libtool_name=$lt_[]$1], + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl +]) + + +# _LT_LIBTOOL_CONFIG_VARS +# ----------------------- +# Produce commented declarations of non-tagged libtool config variables +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG +# section) are produced by _LT_LIBTOOL_TAG_VARS. +m4_defun([_LT_LIBTOOL_CONFIG_VARS], +[m4_foreach([_lt_var], + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) + + +# _LT_LIBTOOL_TAG_VARS(TAG) +# ------------------------- +m4_define([_LT_LIBTOOL_TAG_VARS], +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) + + +# _LT_TAGVAR(VARNAME, [TAGNAME]) +# ------------------------------ +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) + + +# _LT_CONFIG_COMMANDS +# ------------------- +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of +# variables for single and double quote escaping we saved from calls +# to _LT_DECL, we can put quote escaped variables declarations +# into `config.status', and then the shell code to quote escape them in +# for loops in `config.status'. Finally, any additional code accumulated +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. +m4_defun([_LT_CONFIG_COMMANDS], +[AC_PROVIDE_IFELSE([LT_OUTPUT], + dnl If the libtool generation code has been placed in $CONFIG_LT, + dnl instead of duplicating it all over again into config.status, + dnl then we will have config.status run $CONFIG_LT later, so it + dnl needs to know what name is stored there: + [AC_CONFIG_COMMANDS([libtool], + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], + dnl If the libtool generation code is destined for config.status, + dnl expand the accumulated commands and init code now: + [AC_CONFIG_COMMANDS([libtool], + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) +])#_LT_CONFIG_COMMANDS + + +# Initialize. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], +[ + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +_LT_CONFIG_STATUS_DECLARATIONS +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# Quote evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_quote_varnames); do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in lt_decl_all_varnames([[ \ +]], lt_decl_dquote_varnames); do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[[\\\\\\\`\\"\\\$]]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Fix-up fallback echo if it was mangled by the above quoting rules. +case \$lt_ECHO in +*'\\\[$]0 --fallback-echo"')dnl " + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` + ;; +esac + +_LT_OUTPUT_LIBTOOL_INIT +]) + + +# LT_OUTPUT +# --------- +# This macro allows early generation of the libtool script (before +# AC_OUTPUT is called), incase it is used in configure for compilation +# tests. +AC_DEFUN([LT_OUTPUT], +[: ${CONFIG_LT=./config.lt} +AC_MSG_NOTICE([creating $CONFIG_LT]) +cat >"$CONFIG_LT" <<_LTEOF +#! $SHELL +# Generated by $as_me. +# Run this file to recreate a libtool stub with the current configuration. + +lt_cl_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AS_SHELL_SANITIZE +_AS_PREPARE + +exec AS_MESSAGE_FD>&1 +exec AS_MESSAGE_LOG_FD>>config.log +{ + echo + AS_BOX([Running $as_me.]) +} >&AS_MESSAGE_LOG_FD + +lt_cl_help="\ +\`$as_me' creates a local libtool stub from the current configuration, +for use in further configure time tests before the real libtool is +generated. + +Usage: $[0] [[OPTIONS]] + + -h, --help print this help, then exit + -V, --version print version number, then exit + -q, --quiet do not print progress messages + -d, --debug don't remove temporary files + +Report bugs to ." + +lt_cl_version="\ +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) +configured by $[0], generated by m4_PACKAGE_STRING. + +Copyright (C) 2008 Free Software Foundation, Inc. +This config.lt script is free software; the Free Software Foundation +gives unlimited permision to copy, distribute and modify it." + +while test $[#] != 0 +do + case $[1] in + --version | --v* | -V ) + echo "$lt_cl_version"; exit 0 ;; + --help | --h* | -h ) + echo "$lt_cl_help"; exit 0 ;; + --debug | --d* | -d ) + debug=: ;; + --quiet | --q* | --silent | --s* | -q ) + lt_cl_silent=: ;; + + -*) AC_MSG_ERROR([unrecognized option: $[1] +Try \`$[0] --help' for more information.]) ;; + + *) AC_MSG_ERROR([unrecognized argument: $[1] +Try \`$[0] --help' for more information.]) ;; + esac + shift +done + +if $lt_cl_silent; then + exec AS_MESSAGE_FD>/dev/null +fi +_LTEOF + +cat >>"$CONFIG_LT" <<_LTEOF +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT +_LTEOF + +cat >>"$CONFIG_LT" <<\_LTEOF +AC_MSG_NOTICE([creating $ofile]) +_LT_OUTPUT_LIBTOOL_COMMANDS +AS_EXIT(0) +_LTEOF +chmod +x "$CONFIG_LT" + +# configure is writing to config.log, but config.lt does its own redirection, +# appending to config.log, which fails on DOS, as config.log is still kept +# open by configure. Here we exec the FD to /dev/null, effectively closing +# config.log, so it can be properly (re)opened and appended to by config.lt. +if test "$no_create" != yes; then + lt_cl_success=: + test "$silent" = yes && + lt_config_lt_args="$lt_config_lt_args --quiet" + exec AS_MESSAGE_LOG_FD>/dev/null + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false + exec AS_MESSAGE_LOG_FD>>config.log + $lt_cl_success || AS_EXIT(1) +fi +])# LT_OUTPUT + + +# _LT_CONFIG(TAG) +# --------------- +# If TAG is the built-in tag, create an initial libtool script with a +# default configuration from the untagged config vars. Otherwise add code +# to config.status for appending the configuration named by TAG from the +# matching tagged config vars. +m4_defun([_LT_CONFIG], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_CONFIG_SAVE_COMMANDS([ + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl + m4_if(_LT_TAG, [C], [ + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +_LT_COPYING +_LT_LIBTOOL_TAGS + +# ### BEGIN LIBTOOL CONFIG +_LT_LIBTOOL_CONFIG_VARS +_LT_LIBTOOL_TAG_VARS +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + _LT_PROG_LTMAIN + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + _LT_PROG_XSI_SHELLFNS + + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +], +[cat <<_LT_EOF >> "$ofile" + +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded +dnl in a comment (ie after a #). +# ### BEGIN LIBTOOL TAG CONFIG: $1 +_LT_LIBTOOL_TAG_VARS(_LT_TAG) +# ### END LIBTOOL TAG CONFIG: $1 +_LT_EOF +])dnl /m4_if +], +[m4_if([$1], [], [ + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile'], []) +])dnl /_LT_CONFIG_SAVE_COMMANDS +])# _LT_CONFIG + + +# LT_SUPPORTED_TAG(TAG) +# --------------------- +# Trace this macro to discover what tags are supported by the libtool +# --tag option, using: +# autoconf --trace 'LT_SUPPORTED_TAG:$1' +AC_DEFUN([LT_SUPPORTED_TAG], []) + + +# C support is built-in for now +m4_define([_LT_LANG_C_enabled], []) +m4_define([_LT_TAGS], []) + + +# LT_LANG(LANG) +# ------------- +# Enable libtool support for the given language if not already enabled. +AC_DEFUN([LT_LANG], +[AC_BEFORE([$0], [LT_OUTPUT])dnl +m4_case([$1], + [C], [_LT_LANG(C)], + [C++], [_LT_LANG(CXX)], + [Java], [_LT_LANG(GCJ)], + [Fortran 77], [_LT_LANG(F77)], + [Fortran], [_LT_LANG(FC)], + [Windows Resource], [_LT_LANG(RC)], + [m4_ifdef([_LT_LANG_]$1[_CONFIG], + [_LT_LANG($1)], + [m4_fatal([$0: unsupported language: "$1"])])])dnl +])# LT_LANG + + +# _LT_LANG(LANGNAME) +# ------------------ +m4_defun([_LT_LANG], +[m4_ifdef([_LT_LANG_]$1[_enabled], [], + [LT_SUPPORTED_TAG([$1])dnl + m4_append([_LT_TAGS], [$1 ])dnl + m4_define([_LT_LANG_]$1[_enabled], [])dnl + _LT_LANG_$1_CONFIG($1)])dnl +])# _LT_LANG + + +# _LT_LANG_DEFAULT_CONFIG +# ----------------------- +m4_defun([_LT_LANG_DEFAULT_CONFIG], +[AC_PROVIDE_IFELSE([AC_PROG_CXX], + [LT_LANG(CXX)], + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) + +AC_PROVIDE_IFELSE([AC_PROG_F77], + [LT_LANG(F77)], + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) + +AC_PROVIDE_IFELSE([AC_PROG_FC], + [LT_LANG(FC)], + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) + +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal +dnl pulling things in needlessly. +AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [LT_LANG(GCJ)], + [AC_PROVIDE_IFELSE([LT_PROG_GCJ], + [LT_LANG(GCJ)], + [m4_ifdef([AC_PROG_GCJ], + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([A][M_PROG_GCJ], + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) + m4_ifdef([LT_PROG_GCJ], + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) + +AC_PROVIDE_IFELSE([LT_PROG_RC], + [LT_LANG(RC)], + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) +])# _LT_LANG_DEFAULT_CONFIG + +# Obsolete macros: +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_CXX], []) +dnl AC_DEFUN([AC_LIBTOOL_F77], []) +dnl AC_DEFUN([AC_LIBTOOL_FC], []) +dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) + + +# _LT_TAG_COMPILER +# ---------------- +m4_defun([_LT_TAG_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl + +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_TAG_COMPILER + + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +m4_defun([_LT_COMPILER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +m4_defun([_LT_LINKER_BOILERPLATE], +[m4_require([_LT_DECL_SED])dnl +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* +])# _LT_LINKER_BOILERPLATE + +# _LT_REQUIRED_DARWIN_CHECKS +# ------------------------- +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ + case $host_os in + rhapsody* | darwin*) + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) + AC_CHECK_TOOL([LIPO], [lipo], [:]) + AC_CHECK_TOOL([OTOOL], [otool], [:]) + AC_CHECK_TOOL([OTOOL64], [otool64], [:]) + _LT_DECL([], [DSYMUTIL], [1], + [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) + _LT_DECL([], [NMEDIT], [1], + [Tool to change global to local symbols on Mac OS X]) + _LT_DECL([], [LIPO], [1], + [Tool to manipulate fat objects and archives on Mac OS X]) + _LT_DECL([], [OTOOL], [1], + [ldd/readelf like tool for Mach-O binaries on Mac OS X]) + _LT_DECL([], [OTOOL64], [1], + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) + + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], + [lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&AS_MESSAGE_LOG_FD + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi]) + AC_CACHE_CHECK([for -exported_symbols_list linker flag], + [lt_cv_ld_exported_symbols_list], + [lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [lt_cv_ld_exported_symbols_list=yes], + [lt_cv_ld_exported_symbols_list=no]) + LDFLAGS="$save_LDFLAGS" + ]) + case $host_os in + rhapsody* | darwin1.[[012]]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[[012]]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac +]) + + +# _LT_DARWIN_LINKER_FEATURES +# -------------------------- +# Checks for linker and compiler features on darwin +m4_defun([_LT_DARWIN_LINKER_FEATURES], +[ + m4_require([_LT_REQUIRED_DARWIN_CHECKS]) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_automatic, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + m4_if([$1], [CXX], +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi +],[]) + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi +]) + +# _LT_SYS_MODULE_PATH_AIX +# ----------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +m4_defun([_LT_SYS_MODULE_PATH_AIX], +[m4_require([_LT_DECL_SED])dnl +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_SYS_MODULE_PATH_AIX + + +# _LT_SHELL_INIT(ARG) +# ------------------- +m4_define([_LT_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_SHELL_INIT + + +# _LT_PROG_ECHO_BACKSLASH +# ----------------------- +# Add some code to the start of the generated configure script which +# will find an echo command which doesn't interpret backslashes. +m4_defun([_LT_PROG_ECHO_BACKSLASH], +[_LT_SHELL_INIT([ +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$lt_ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` + ;; +esac + +ECHO=${lt_ECHO-echo} +if test "X[$]1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X[$]1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} +fi + +if test "X[$]1" = X--fallback-echo; then + # used as fallback echo + shift + cat <<_LT_EOF +[$]* +_LT_EOF + exit 0 +fi + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test -z "$lt_ECHO"; then + if test "X${echo_test_string+set}" != Xset; then + # find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if { echo_test_string=`eval $cmd`; } 2>/dev/null && + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null + then + break + fi + done + fi + + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : + else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$ECHO" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + ECHO='print -r' + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} + else + # Try using printf. + ECHO='printf %s\n' + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$CONFIG_SHELL [$]0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "[$]0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} + else + # Oops. We lost completely, so just stick with echo. + ECHO=echo + fi + fi + fi + fi + fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +lt_ECHO=$ECHO +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" +fi + +AC_SUBST(lt_ECHO) +]) +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) +_LT_DECL([], [ECHO], [1], + [An echo program that does not interpret backslashes]) +])# _LT_PROG_ECHO_BACKSLASH + + +# _LT_ENABLE_LOCK +# --------------- +m4_defun([_LT_ENABLE_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AS_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" +])# _LT_ENABLE_LOCK + + +# _LT_CMD_OLD_ARCHIVE +# ------------------- +m4_defun([_LT_CMD_OLD_ARCHIVE], +[AC_CHECK_TOOL(AR, ar, false) +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +_LT_DECL([], [AR], [1], [The archiver]) +_LT_DECL([], [AR_FLAGS], [1]) + +AC_CHECK_TOOL(STRIP, strip, :) +test -z "$STRIP" && STRIP=: +_LT_DECL([], [STRIP], [1], [A symbol stripping program]) + +AC_CHECK_TOOL(RANLIB, ranlib, :) +test -z "$RANLIB" && RANLIB=: +_LT_DECL([], [RANLIB], [1], + [Commands used to install an old-style archive]) + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi +_LT_DECL([], [old_postinstall_cmds], [2]) +_LT_DECL([], [old_postuninstall_cmds], [2]) +_LT_TAGDECL([], [old_archive_cmds], [2], + [Commands used to build an old-style archive]) +])# _LT_CMD_OLD_ARCHIVE + + +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([_LT_COMPILER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $RM conftest* +]) + +if test x"[$]$2" = xyes; then + m4_if([$5], , :, [$5]) +else + m4_if([$6], , :, [$6]) +fi +])# _LT_COMPILER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) + + +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------- +# Check whether the given linker option works +AC_DEFUN([_LT_LINKER_OPTION], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_SED])dnl +AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + m4_if([$4], , :, [$4]) +else + m4_if([$5], , :, [$5]) +fi +])# _LT_LINKER_OPTION + +# Old name: +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) + + +# LT_CMD_MAX_LEN +#--------------- +AC_DEFUN([LT_CMD_MAX_LEN], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ + = "XX$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +max_cmd_len=$lt_cv_sys_max_cmd_len +_LT_DECL([], [max_cmd_len], [0], + [What is the maximum length of a command?]) +])# LT_CMD_MAX_LEN + +# Old name: +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) + + +# _LT_HEADER_DLFCN +# ---------------- +m4_defun([_LT_HEADER_DLFCN], +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl +])# _LT_HEADER_DLFCN + + +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) +# ---------------------------------------------------------------- +m4_defun([_LT_TRY_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "$cross_compiling" = yes; then : + [$4] +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +[#line __oline__ "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +}] +_LT_EOF + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) $1 ;; + x$lt_dlneed_uscore) $2 ;; + x$lt_dlunknown|x*) $3 ;; + esac + else : + # compilation failed + $3 + fi +fi +rm -fr conftest* +])# _LT_TRY_DLOPEN_SELF + + +# LT_SYS_DLOPEN_SELF +# ------------------ +AC_DEFUN([LT_SYS_DLOPEN_SELF], +[m4_require([_LT_HEADER_DLFCN])dnl +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ]) + ;; + + *) + AC_CHECK_FUNC([shl_load], + [lt_cv_dlopen="shl_load"], + [AC_CHECK_LIB([dld], [shl_load], + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], + [AC_CHECK_FUNC([dlopen], + [lt_cv_dlopen="dlopen"], + [AC_CHECK_LIB([dl], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], + [AC_CHECK_LIB([svld], [dlopen], + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], + [AC_CHECK_LIB([dld], [dld_link], + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) + ]) + ]) + ]) + ]) + ]) + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + AC_CACHE_CHECK([whether a program can dlopen itself], + lt_cv_dlopen_self, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) + ]) + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], + lt_cv_dlopen_self_static, [dnl + _LT_TRY_DLOPEN_SELF( + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) + ]) + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi +_LT_DECL([dlopen_support], [enable_dlopen], [0], + [Whether dlopen is supported]) +_LT_DECL([dlopen_self], [enable_dlopen_self], [0], + [Whether dlopen of programs is supported]) +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], + [Whether dlopen of statically linked programs is supported]) +])# LT_SYS_DLOPEN_SELF + +# Old name: +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) + + +# _LT_COMPILER_C_O([TAGNAME]) +# --------------------------- +# Check to see if options -c and -o are simultaneously supported by compiler. +# This macro does not hard code the compiler like AC_PROG_CC_C_O. +m4_defun([_LT_COMPILER_C_O], +[m4_require([_LT_DECL_SED])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . 2>&AS_MESSAGE_LOG_FD + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* +]) +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], + [Does compiler simultaneously support -c and -o options?]) +])# _LT_COMPILER_C_O + + +# _LT_COMPILER_FILE_LOCKS([TAGNAME]) +# ---------------------------------- +# Check to see if we can do hard links to lock some files if needed +m4_defun([_LT_COMPILER_FILE_LOCKS], +[m4_require([_LT_ENABLE_LOCK])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +_LT_COMPILER_C_O([$1]) + +hard_links="nottested" +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + AC_MSG_CHECKING([if we can lock with hard links]) + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + AC_MSG_RESULT([$hard_links]) + if test "$hard_links" = no; then + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) + need_locks=warn + fi +else + need_locks=no +fi +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) +])# _LT_COMPILER_FILE_LOCKS + + +# _LT_CHECK_OBJDIR +# ---------------- +m4_defun([_LT_CHECK_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +_LT_DECL([], [objdir], [0], + [The name of the directory that contains temporary libtool files])dnl +m4_pattern_allow([LT_OBJDIR])dnl +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", + [Define to the sub-directory in which libtool stores uninstalled libraries.]) +])# _LT_CHECK_OBJDIR + + +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) +# -------------------------------------- +# Check hardcoding attributes. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || + test -n "$_LT_TAGVAR(runpath_var, $1)" || + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then + # Linking always hardcodes the temporary library directory. + _LT_TAGVAR(hardcode_action, $1)=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + _LT_TAGVAR(hardcode_action, $1)=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + _LT_TAGVAR(hardcode_action, $1)=unsupported +fi +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) + +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +_LT_TAGDECL([], [hardcode_action], [0], + [How to hardcode a shared library path into an executable]) +])# _LT_LINKER_HARDCODE_LIBPATH + + +# _LT_CMD_STRIPLIB +# ---------------- +m4_defun([_LT_CMD_STRIPLIB], +[m4_require([_LT_DECL_EGREP]) +striplib= +old_striplib= +AC_MSG_CHECKING([whether stripping libraries is possible]) +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) +_LT_DECL([], [striplib], [1]) +])# _LT_CMD_STRIPLIB + + +# _LT_SYS_DYNAMIC_LINKER([TAG]) +# ----------------------------- +# PORTME Fill in your ld.so characteristics +m4_defun([_LT_SYS_DYNAMIC_LINKER], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_OBJDUMP])dnl +m4_require([_LT_DECL_SED])dnl +AC_MSG_CHECKING([dynamic linker characteristics]) +m4_if([$1], + [], [ +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[[lt_foo]]++; } + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi]) +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[[4-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[[01]] | aix4.[[01]].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[[45]]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' +m4_if([$1], [],[ + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[[3-9]]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], + [shlibpath_overrides_runpath=yes])]) + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +AC_MSG_RESULT([$dynamic_linker]) +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + +_LT_DECL([], [variables_saved_for_relink], [1], + [Variables whose values should be saved in libtool wrapper scripts and + restored at link time]) +_LT_DECL([], [need_lib_prefix], [0], + [Do we need the "lib" prefix for modules?]) +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) +_LT_DECL([], [version_type], [0], [Library versioning type]) +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) +_LT_DECL([], [shlibpath_overrides_runpath], [0], + [Is shlibpath searched before the hard-coded library search path?]) +_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) +_LT_DECL([], [library_names_spec], [1], + [[List of archive names. First name is the real one, the rest are links. + The last name is the one that the linker finds with -lNAME]]) +_LT_DECL([], [soname_spec], [1], + [[The coded name of the library, if different from the real name]]) +_LT_DECL([], [postinstall_cmds], [2], + [Command to use after installation of a shared archive]) +_LT_DECL([], [postuninstall_cmds], [2], + [Command to use after uninstallation of a shared archive]) +_LT_DECL([], [finish_cmds], [2], + [Commands used to finish a libtool library installation in a directory]) +_LT_DECL([], [finish_eval], [1], + [[As "finish_cmds", except a single script fragment to be evaled but + not shown]]) +_LT_DECL([], [hardcode_into_libs], [0], + [Whether we should hardcode library paths into libraries]) +_LT_DECL([], [sys_lib_search_path_spec], [2], + [Compile-time system search path for libraries]) +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], + [Run-time system search path for libraries]) +])# _LT_SYS_DYNAMIC_LINKER + + +# _LT_PATH_TOOL_PREFIX(TOOL) +# -------------------------- +# find a file program which can recognize shared library +AC_DEFUN([_LT_PATH_TOOL_PREFIX], +[m4_require([_LT_DECL_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="m4_if([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +_LT_DECL([], [MAGIC_CMD], [0], + [Used to examine libraries when file_magic_cmd begins with "file"])dnl +])# _LT_PATH_TOOL_PREFIX + +# Old name: +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) + + +# _LT_PATH_MAGIC +# -------------- +# find a file program which can recognize a shared library +m4_defun([_LT_PATH_MAGIC], +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# _LT_PATH_MAGIC + + +# LT_PATH_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([LT_PATH_LD], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl + +AC_ARG_WITH([gnu-ld], + [AS_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no])dnl + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[[3-9]]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + +_LT_DECL([], [deplibs_check_method], [1], + [Method to check whether dependent libraries are shared objects]) +_LT_DECL([], [file_magic_cmd], [1], + [Command to use when deplibs_check_method == "file_magic"]) +])# _LT_CHECK_MAGIC_METHOD + + +# LT_PATH_NM +# ---------- +# find the pathname to a BSD- or MS-compatible name lister +AC_DEFUN([LT_PATH_NM], +[AC_REQUIRE([AC_PROG_CC])dnl +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi]) +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) + AC_SUBST([DUMPBIN]) + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm +AC_SUBST([NM]) +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl + +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], + [lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&AS_MESSAGE_LOG_FD + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) + cat conftest.out >&AS_MESSAGE_LOG_FD + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest*]) +])# LT_PATH_NM + +# Old names: +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_PROG_NM], []) +dnl AC_DEFUN([AC_PROG_NM], []) + + +# LT_LIB_M +# -------- +# check for math library +AC_DEFUN([LT_LIB_M], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +AC_SUBST([LIBM]) +])# LT_LIB_M + +# Old name: +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_CHECK_LIBM], []) + + +# _LT_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------- +m4_defun([_LT_COMPILER_NO_RTTI], +[m4_require([_LT_TAG_COMPILER])dnl + +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], + [Compiler flag to turn off builtin functions]) +])# _LT_COMPILER_NO_RTTI + + +# _LT_CMD_GLOBAL_SYMBOLS +# ---------------------- +m4_defun([_LT_CMD_GLOBAL_SYMBOLS], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_NM])dnl +AC_REQUIRE([LT_PATH_LD])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_TAG_COMPILER])dnl + +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris*) + symcode='[[BDRT]]' + ;; +sco3.2v5*) + symcode='[[DT]]' + ;; +sysv4.2uw2*) + symcode='[[DT]]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[[ABDT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK ['"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx]" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if AC_TRY_EVAL(ac_compile); then + # Now try to grab the symbols. + nlist=conftest.nm + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[[]] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi + +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], + [Take the output of nm and produce a listing of raw symbols and C names]) +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], + [Transform the output of nm in a proper C declaration]) +_LT_DECL([global_symbol_to_c_name_address], + [lt_cv_sys_global_symbol_to_c_name_address], [1], + [Transform the output of nm in a C name address pair]) +_LT_DECL([global_symbol_to_c_name_address_lib_prefix], + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], + [Transform the output of nm in a C name address pair when lib prefix is needed]) +]) # _LT_CMD_GLOBAL_SYMBOLS + + +# _LT_COMPILER_PIC([TAGNAME]) +# --------------------------- +m4_defun([_LT_COMPILER_PIC], +[m4_require([_LT_TAG_COMPILER])dnl +_LT_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) +m4_if([$1], [CXX], [ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix[[4-9]]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xlc* | xlC*) + # IBM XL 8.0 on PPC + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + interix[[3-9]]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + m4_if([$1], [GCJ], [], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) + ;; + + hpux9* | hpux10* | hpux11*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + ccc*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + xl*) + # IBM XL C 8.0/Fortran 10.1 on PPC + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_TAGVAR(lt_prog_compiler_wl, $1)='' + ;; + esac + ;; + esac + ;; + + newsos6) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + rdos*) + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + solaris*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + unicos*) + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" + ;; +esac +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], + [How to pass a linker flag through the compiler]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], + [Additional compiler flags for building library objects]) + +# +# Check to make sure the static flag actually works. +# +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), + $lt_tmp_static_flag, + [], + [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], + [Compiler flag to prevent dynamic linking]) +])# _LT_COMPILER_PIC + + +# _LT_LINKER_SHLIBS([TAGNAME]) +# ---------------------------- +# See if the linker supports building shared libraries. +m4_defun([_LT_LINKER_SHLIBS], +[AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl +m4_require([_LT_DECL_SED])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_TAG_COMPILER])dnl +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +m4_if([$1], [CXX], [ + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[[4-9]]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] +], [ + runpath_var= + _LT_TAGVAR(allow_undefined_flag, $1)= + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(archive_cmds, $1)= + _LT_TAGVAR(archive_expsym_cmds, $1)= + _LT_TAGVAR(compiler_needs_object, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + _LT_TAGVAR(hardcode_automatic, $1)=no + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_TAGVAR(hardcode_libdir_separator, $1)= + _LT_TAGVAR(hardcode_minus_L, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_TAGVAR(inherit_rpath, $1)=no + _LT_TAGVAR(link_all_deplibs, $1)=unknown + _LT_TAGVAR(module_cmds, $1)= + _LT_TAGVAR(module_expsym_cmds, $1)= + _LT_TAGVAR(old_archive_from_new_cmds, $1)= + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_TAGVAR(thread_safe_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. +dnl Note also adjust exclude_expsyms for C++ above. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[[3-9]]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag= + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + _LT_TAGVAR(whole_archive_flag_spec, $1)= + tmp_sharedflag='--shared' ;; + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) + _LT_TAGVAR(ld_shlibs, $1)=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + sunos4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=yes + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='' + ;; + m68k) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + ;; + + bsdi[[45]]*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + AC_LINK_IFELSE(int foo(void) {}, + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + ) + LDFLAGS="$save_LDFLAGS" + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + os2*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_TAGVAR(archive_cmds_need_lc, $1)='no' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + solaris*) + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + fi + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' + ;; + esac + fi + fi +]) +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld + +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl +_LT_DECL([], [extract_expsyms_cmds], [2], + [The commands to extract the exported symbol list from a shared archive]) + +# +# Do we need to explicitly link libc? +# +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) + _LT_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) + then + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac + +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], + [Whether or not to add -lc for building shared libraries]) +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], + [enable_shared_with_static_runtimes], [0], + [Whether or not to disallow shared libs when runtime libs are static]) +_LT_TAGDECL([], [export_dynamic_flag_spec], [1], + [Compiler flag to allow reflexive dlopens]) +_LT_TAGDECL([], [whole_archive_flag_spec], [1], + [Compiler flag to generate shared objects directly from archives]) +_LT_TAGDECL([], [compiler_needs_object], [1], + [Whether the compiler copes with passing no objects directly]) +_LT_TAGDECL([], [old_archive_from_new_cmds], [2], + [Create an old-style archive from a shared archive]) +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], + [Create a temporary old-style archive to link instead of a shared archive]) +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) +_LT_TAGDECL([], [archive_expsym_cmds], [2]) +_LT_TAGDECL([], [module_cmds], [2], + [Commands used to build a loadable module if different from building + a shared archive.]) +_LT_TAGDECL([], [module_expsym_cmds], [2]) +_LT_TAGDECL([], [with_gnu_ld], [1], + [Whether we are building with GNU ld or not]) +_LT_TAGDECL([], [allow_undefined_flag], [1], + [Flag that allows shared libraries with undefined symbols to be built]) +_LT_TAGDECL([], [no_undefined_flag], [1], + [Flag that enforces no undefined symbols]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], + [Flag to hardcode $libdir into a binary during linking. + This must work even if $libdir does not exist]) +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], + [[If ld is used when linking, flag to hardcode $libdir into a binary + during linking. This must work even if $libdir does not exist]]) +_LT_TAGDECL([], [hardcode_libdir_separator], [1], + [Whether we need a single "-rpath" flag with a separated argument]) +_LT_TAGDECL([], [hardcode_direct], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary]) +_LT_TAGDECL([], [hardcode_direct_absolute], [0], + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes + DIR into the resulting binary and the resulting library dependency is + "absolute", i.e impossible to change by setting ${shlibpath_var} if the + library is relocated]) +_LT_TAGDECL([], [hardcode_minus_L], [0], + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_shlibpath_var], [0], + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR + into the resulting binary]) +_LT_TAGDECL([], [hardcode_automatic], [0], + [Set to "yes" if building a shared library automatically hardcodes DIR + into the library and all subsequent libraries and executables linked + against it]) +_LT_TAGDECL([], [inherit_rpath], [0], + [Set to yes if linker adds runtime paths of dependent libraries + to runtime path list]) +_LT_TAGDECL([], [link_all_deplibs], [0], + [Whether libtool must link a program against all its dependency libraries]) +_LT_TAGDECL([], [fix_srcfile_path], [1], + [Fix the shell variable $srcfile for the compiler]) +_LT_TAGDECL([], [always_export_symbols], [0], + [Set to "yes" if exported symbols are required]) +_LT_TAGDECL([], [export_symbols_cmds], [2], + [The commands to list exported symbols]) +_LT_TAGDECL([], [exclude_expsyms], [1], + [Symbols that should not be listed in the preloaded symbols]) +_LT_TAGDECL([], [include_expsyms], [1], + [Symbols that must always be exported]) +_LT_TAGDECL([], [prelink_cmds], [2], + [Commands necessary for linking programs (against libraries) with templates]) +_LT_TAGDECL([], [file_list_spec], [1], + [Specify filename containing input files]) +dnl FIXME: Not yet implemented +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], +dnl [Compiler flag to generate thread safe objects]) +])# _LT_LINKER_SHLIBS + + +# _LT_LANG_C_CONFIG([TAG]) +# ------------------------ +# Ensure that the configuration variables for a C compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_C_CONFIG], +[m4_require([_LT_DECL_EGREP])dnl +lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + +_LT_TAG_COMPILER +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + LT_SYS_DLOPEN_SELF + _LT_CMD_STRIPLIB + + # Report which library types will actually be built + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_CONFIG($1) +fi +AC_LANG_POP +CC="$lt_save_CC" +])# _LT_LANG_C_CONFIG + + +# _LT_PROG_CXX +# ------------ +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ +# compiler, we have our own version here. +m4_defun([_LT_PROG_CXX], +[ +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) +AC_PROG_CXX +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +else + _lt_caught_CXX_error=yes +fi +popdef([AC_MSG_ERROR]) +])# _LT_PROG_CXX + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([_LT_PROG_CXX], []) + + +# _LT_LANG_CXX_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a C++ compiler are suitably +# defined. These variables are subsequently used by _LT_CONFIG to write +# the compiler configuration to `libtool'. +m4_defun([_LT_LANG_CXX_CONFIG], +[AC_REQUIRE([_LT_PROG_CXX])dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_DECL_EGREP])dnl + +AC_LANG_PUSH(C++) +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(compiler_needs_object, $1)=no +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + else + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + LT_PATH_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) + _LT_TAGVAR(ld_shlibs, $1)=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aix[[4-9]]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_TAGVAR(archive_cmds, $1)='' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + _LT_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_TAGVAR(hardcode_minus_L, $1)=yes + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + _LT_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + _LT_SYS_MODULE_PATH_AIX + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_TAGVAR(always_export_symbols, $1)=no + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + _LT_DARWIN_LINKER_FEATURES($1) + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + freebsd-elf*) + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + gnu*) + ;; + + hpux9*) + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + *) + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + interix[[3-9]]*) + _LT_TAGVAR(hardcode_direct, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' + fi + fi + _LT_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_TAGVAR(inherit_rpath, $1)=yes + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ + $RANLIB $oldlib' + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 will use weak symbols + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + xl*) + # IBM XL 8.0 on PPC, with GNU ld + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + _LT_TAGVAR(compiler_needs_object, $1)=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + _LT_TAGVAR(ld_shlibs, $1)=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + _LT_TAGVAR(hardcode_direct, $1)=yes + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=echo + else + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + case $host in + osf3*) + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + ;; + *) + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' + ;; + esac + _LT_TAGVAR(link_all_deplibs, $1)=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + fi + + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' + _LT_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' + _LT_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_TAGVAR(link_all_deplibs, $1)=yes + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + + *) + # FIXME: insert proper C++ library support + _LT_TAGVAR(ld_shlibs, $1)=no + ;; + esac + + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + + _LT_TAGVAR(GCC, $1)="$GXX" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + CC=$lt_save_CC + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +AC_LANG_POP +])# _LT_LANG_CXX_CONFIG + + +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) +# --------------------------------- +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS], +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl +# Dependencies to place before and after the object being linked: +_LT_TAGVAR(predep_objects, $1)= +_LT_TAGVAR(postdep_objects, $1)= +_LT_TAGVAR(predeps, $1)= +_LT_TAGVAR(postdeps, $1)= +_LT_TAGVAR(compiler_lib_search_path, $1)= + +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF +int a; +void foo (void) { a = 0; } +_LT_EOF +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer*4 a + a=0 + return + end +_LT_EOF +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF + subroutine foo + implicit none + integer a + a=0 + return + end +_LT_EOF +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF +public class foo { + private int a; + public void bar (void) { + a = 0; + } +}; +_LT_EOF +]) +dnl Parse the compiler output and extract the necessary +dnl objects, libraries and library flags. +if AC_TRY_EVAL(ac_compile); then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" + else + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$_LT_TAGVAR(postdeps, $1)"; then + _LT_TAGVAR(postdeps, $1)="${prev}${p}" + else + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then + _LT_TAGVAR(predep_objects, $1)="$p" + else + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" + fi + else + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then + _LT_TAGVAR(postdep_objects, $1)="$p" + else + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling $1 test program" +fi + +$RM -f confest.$objext + +# PORTME: override above test on systems where it is broken +m4_if([$1], [CXX], +[case $host_os in +interix[[3-9]]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + _LT_TAGVAR(predep_objects,$1)= + _LT_TAGVAR(postdep_objects,$1)= + _LT_TAGVAR(postdeps,$1)= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac +]) + +case " $_LT_TAGVAR(postdeps, $1) " in +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; +esac + _LT_TAGVAR(compiler_lib_search_dirs, $1)= +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi +_LT_TAGDECL([], [compiler_lib_search_dirs], [1], + [The directories searched by this compiler when creating a shared library]) +_LT_TAGDECL([], [predep_objects], [1], + [Dependencies to place before and after the objects being linked to + create a shared library]) +_LT_TAGDECL([], [postdep_objects], [1]) +_LT_TAGDECL([], [predeps], [1]) +_LT_TAGDECL([], [postdeps], [1]) +_LT_TAGDECL([], [compiler_lib_search_path], [1], + [The library search path used internally by the compiler when linking + a shared library]) +])# _LT_SYS_HIDDEN_LIBDEPS + + +# _LT_PROG_F77 +# ------------ +# Since AC_PROG_F77 is broken, in that it returns the empty string +# if there is no fortran compiler, we have our own version here. +m4_defun([_LT_PROG_F77], +[ +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) +AC_PROG_F77 +if test -z "$F77" || test "X$F77" = "Xno"; then + _lt_disable_F77=yes +fi +popdef([AC_MSG_ERROR]) +])# _LT_PROG_F77 + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([_LT_PROG_F77], []) + + +# _LT_LANG_F77_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for a Fortran 77 compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_F77_CONFIG], +[AC_REQUIRE([_LT_PROG_F77])dnl +AC_LANG_PUSH(Fortran 77) + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the F77 compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_F77" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + CC=${F77-"f77"} + compiler=$CC + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + GCC=$G77 + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$G77" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" +fi # test "$_lt_disable_F77" != yes + +AC_LANG_POP +])# _LT_LANG_F77_CONFIG + + +# _LT_PROG_FC +# ----------- +# Since AC_PROG_FC is broken, in that it returns the empty string +# if there is no fortran compiler, we have our own version here. +m4_defun([_LT_PROG_FC], +[ +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) +AC_PROG_FC +if test -z "$FC" || test "X$FC" = "Xno"; then + _lt_disable_FC=yes +fi +popdef([AC_MSG_ERROR]) +])# _LT_PROG_FC + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([_LT_PROG_FC], []) + + +# _LT_LANG_FC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for a Fortran compiler are +# suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_FC_CONFIG], +[AC_REQUIRE([_LT_PROG_FC])dnl +AC_LANG_PUSH(Fortran) + +_LT_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_TAGVAR(allow_undefined_flag, $1)= +_LT_TAGVAR(always_export_symbols, $1)=no +_LT_TAGVAR(archive_expsym_cmds, $1)= +_LT_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_TAGVAR(hardcode_direct, $1)=no +_LT_TAGVAR(hardcode_direct_absolute, $1)=no +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_TAGVAR(hardcode_libdir_separator, $1)= +_LT_TAGVAR(hardcode_minus_L, $1)=no +_LT_TAGVAR(hardcode_automatic, $1)=no +_LT_TAGVAR(inherit_rpath, $1)=no +_LT_TAGVAR(module_cmds, $1)= +_LT_TAGVAR(module_expsym_cmds, $1)= +_LT_TAGVAR(link_all_deplibs, $1)=unknown +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_TAGVAR(no_undefined_flag, $1)= +_LT_TAGVAR(whole_archive_flag_spec, $1)= +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Source file extension for fc test sources. +ac_ext=${ac_fc_srcext-f} + +# Object file extension for compiled fc test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# No sense in running all these tests if we already determined that +# the FC compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_disable_FC" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="\ + subroutine t + return + end +" + + # Code to be used in simple link tests + lt_simple_link_test_code="\ + program t + end +" + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + _LT_TAG_COMPILER + + # save warnings/boilerplate of simple test code + _LT_COMPILER_BOILERPLATE + _LT_LINKER_BOILERPLATE + + # Allow CC to be a program name with arguments. + lt_save_CC="$CC" + lt_save_GCC=$GCC + CC=${FC-"f95"} + compiler=$CC + GCC=$ac_cv_fc_compiler_gnu + + _LT_TAGVAR(compiler, $1)=$CC + _LT_CC_BASENAME([$compiler]) + + if test -n "$compiler"; then + AC_MSG_CHECKING([if libtool supports shared libraries]) + AC_MSG_RESULT([$can_build_shared]) + + AC_MSG_CHECKING([whether to build shared libraries]) + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + aix[[4-9]]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + AC_MSG_RESULT([$enable_shared]) + + AC_MSG_CHECKING([whether to build static libraries]) + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + AC_MSG_RESULT([$enable_static]) + + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" + _LT_TAGVAR(LD, $1)="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + _LT_SYS_HIDDEN_LIBDEPS($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_SYS_DYNAMIC_LINKER($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) + fi # test -n "$compiler" + + GCC=$lt_save_GCC + CC="$lt_save_CC" +fi # test "$_lt_disable_FC" != yes + +AC_LANG_POP +])# _LT_LANG_FC_CONFIG + + +# _LT_LANG_GCJ_CONFIG([TAG]) +# -------------------------- +# Ensure that the configuration variables for the GNU Java Compiler compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_GCJ_CONFIG], +[AC_REQUIRE([LT_PROG_GCJ])dnl +AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_GCC=$GCC +GCC=yes +CC=${GCJ-"gcj"} +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_TAGVAR(LD, $1)="$LD" +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds + +if test -n "$compiler"; then + _LT_COMPILER_NO_RTTI($1) + _LT_COMPILER_PIC($1) + _LT_COMPILER_C_O($1) + _LT_COMPILER_FILE_LOCKS($1) + _LT_LINKER_SHLIBS($1) + _LT_LINKER_HARDCODE_LIBPATH($1) + + _LT_CONFIG($1) +fi + +AC_LANG_RESTORE + +GCC=$lt_save_GCC +CC="$lt_save_CC" +])# _LT_LANG_GCJ_CONFIG + + +# _LT_LANG_RC_CONFIG([TAG]) +# ------------------------- +# Ensure that the configuration variables for the Windows resource compiler +# are suitably defined. These variables are subsequently used by _LT_CONFIG +# to write the compiler configuration to `libtool'. +m4_defun([_LT_LANG_RC_CONFIG], +[AC_REQUIRE([LT_PROG_RC])dnl +AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_TAG_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +lt_save_GCC=$GCC +GCC= +CC=${RC-"windres"} +compiler=$CC +_LT_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +if test -n "$compiler"; then + : + _LT_CONFIG($1) +fi + +GCC=$lt_save_GCC +AC_LANG_RESTORE +CC="$lt_save_CC" +])# _LT_LANG_RC_CONFIG + + +# LT_PROG_GCJ +# ----------- +AC_DEFUN([LT_PROG_GCJ], +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], + [AC_CHECK_TOOL(GCJ, gcj,) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS)])])[]dnl +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_GCJ], []) + + +# LT_PROG_RC +# ---------- +AC_DEFUN([LT_PROG_RC], +[AC_CHECK_TOOL(RC, windres,) +]) + +# Old name: +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_RC], []) + + +# _LT_DECL_EGREP +# -------------- +# If we don't have a new enough Autoconf to choose the best grep +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_EGREP], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_REQUIRE([AC_PROG_FGREP])dnl +test -z "$GREP" && GREP=grep +_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) +_LT_DECL([], [EGREP], [1], [An ERE matcher]) +_LT_DECL([], [FGREP], [1], [A literal string matcher]) +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too +AC_SUBST([GREP]) +]) + + +# _LT_DECL_OBJDUMP +# -------------- +# If we don't have a new enough Autoconf to choose the best objdump +# available, choose the one first in the user's PATH. +m4_defun([_LT_DECL_OBJDUMP], +[AC_CHECK_TOOL(OBJDUMP, objdump, false) +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) +AC_SUBST([OBJDUMP]) +]) + + +# _LT_DECL_SED +# ------------ +# Check for a fully-functional sed program, that truncates +# as few characters as possible. Prefer GNU sed if found. +m4_defun([_LT_DECL_SED], +[AC_PROG_SED +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" +_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], + [Sed that helps us avoid accidentally triggering echo(1) options like -n]) +])# _LT_DECL_SED + +m4_ifndef([AC_PROG_SED], [ +# NOTE: This macro has been submitted for inclusion into # +# GNU Autoconf as AC_PROG_SED. When it is available in # +# a released version of Autoconf we should remove this # +# macro and use it instead. # + +m4_defun([AC_PROG_SED], +[AC_MSG_CHECKING([for a sed that does not truncate output]) +AC_CACHE_VAL(lt_cv_path_SED, +[# Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +IFS=$as_save_IFS +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done +]) +SED=$lt_cv_path_SED +AC_SUBST([SED]) +AC_MSG_RESULT([$SED]) +])#AC_PROG_SED +])#m4_ifndef + +# Old name: +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([LT_AC_PROG_SED], []) + + +# _LT_CHECK_SHELL_FEATURES +# ------------------------ +# Find out whether the shell is Bourne or XSI compatible, +# or has some other useful features. +m4_defun([_LT_CHECK_SHELL_FEATURES], +[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +AC_MSG_RESULT([$xsi_shell]) +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) + +AC_MSG_CHECKING([whether the shell understands "+="]) +lt_shell_append=no +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +AC_MSG_RESULT([$lt_shell_append]) +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl +])# _LT_CHECK_SHELL_FEATURES + + +# _LT_PROG_XSI_SHELLFNS +# --------------------- +# Bourne and XSI compatible variants of some useful shell functions. +m4_defun([_LT_PROG_XSI_SHELLFNS], +[case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} + +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $[*] )) +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} + +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +dnl func_dirname_and_basename +dnl A portable version of this function is already defined in general.m4sh +dnl so there is no need for it here. + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} + +# sed scripts: +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[[^=]]*=//' + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "$[@]"` +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` +} + +_LT_EOF +esac + +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$[1]+=\$[2]" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$[1]=\$$[1]\$[2]" +} + +_LT_EOF + ;; + esac +]) + +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [0], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], [disable-shared]) +]) + +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_SHARED], []) +dnl AC_DEFUN([AM_DISABLE_SHARED], []) + + + +# _LT_ENABLE_STATIC([DEFAULT]) +# ---------------------------- +# implement the --enable-static flag, and support the `static' and +# `disable-static' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_STATIC], +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([static], + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]_LT_ENABLE_STATIC_DEFAULT) + + _LT_DECL([build_old_libs], [enable_static], [0], + [Whether or not to build static libraries]) +])# _LT_ENABLE_STATIC + +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) +]) + +AC_DEFUN([AC_DISABLE_STATIC], +[_LT_SET_OPTION([LT_INIT], [disable-static]) +]) + +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AM_ENABLE_STATIC], []) +dnl AC_DEFUN([AM_DISABLE_STATIC], []) + + + +# _LT_ENABLE_FAST_INSTALL([DEFAULT]) +# ---------------------------------- +# implement the --enable-fast-install flag, and support the `fast-install' +# and `disable-fast-install' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_FAST_INSTALL], +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([fast-install], + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) + +_LT_DECL([fast_install], [enable_fast_install], [0], + [Whether or not to optimize for fast installation])dnl +])# _LT_ENABLE_FAST_INSTALL + +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) + +# Old names: +AU_DEFUN([AC_ENABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `fast-install' option into LT_INIT's first parameter.]) +]) + +AU_DEFUN([AC_DISABLE_FAST_INSTALL], +[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you put +the `disable-fast-install' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) + + +# _LT_WITH_PIC([MODE]) +# -------------------- +# implement the --with-pic flag, and support the `pic-only' and `no-pic' +# LT_INIT options. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +m4_define([_LT_WITH_PIC], +[AC_ARG_WITH([pic], + [AS_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) + +test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) + +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl +])# _LT_WITH_PIC + +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) + +# Old name: +AU_DEFUN([AC_LIBTOOL_PICMODE], +[_LT_SET_OPTION([LT_INIT], [pic-only]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `pic-only' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) + + +m4_define([_LTDL_MODE], []) +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], + [m4_define([_LTDL_MODE], [nonrecursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [recursive], + [m4_define([_LTDL_MODE], [recursive])]) +LT_OPTION_DEFINE([LTDL_INIT], [subproject], + [m4_define([_LTDL_MODE], [subproject])]) + +m4_define([_LTDL_TYPE], []) +LT_OPTION_DEFINE([LTDL_INIT], [installable], + [m4_define([_LTDL_TYPE], [installable])]) +LT_OPTION_DEFINE([LTDL_INIT], [convenience], + [m4_define([_LTDL_TYPE], [convenience])]) + +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +]) + +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# Generated from ltversion.in. + +# serial 3012 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.2.6]) +m4_define([LT_PACKAGE_REVISION], [1.3012]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.2.6' +macro_revision='1.3012' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +]) + +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 4 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) + +# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +# (This private macro should not be called outside this file.) +AC_DEFUN([AM_AUTOMAKE_VERSION], +[am__api_version='1.10' +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to +dnl require some minimum version. Point them to the right macro. +m4_if([$1], [1.10.1], [], + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl +]) + +# _AM_AUTOCONF_VERSION(VERSION) +# ----------------------------- +# aclocal traces this macro to find the Autoconf version. +# This is a private macro too. Using m4_define simplifies +# the logic in aclocal, which can simply ignore this definition. +m4_define([_AM_AUTOCONF_VERSION], []) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], +[AM_AUTOMAKE_VERSION([1.10.1])dnl +m4_ifndef([AC_AUTOCONF_VERSION], + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl +_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE])dnl +AC_SUBST([$1_FALSE])dnl +_AM_SUBST_NOTMAKE([$1_TRUE])dnl +_AM_SUBST_NOTMAKE([$1_FALSE])dnl +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 9 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], UPC, [depcc="$UPC" am_compiler_list=], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH])dnl +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 3 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005, 2006, 2008 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 13 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.60])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_OBJC], + [_AM_DEPENDENCIES(OBJC)], + [define([AC_PROG_OBJC], + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_arg=$1 +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 5 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +AC_REQUIRE_AUX_FILE([missing])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi +]) + +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check for `mkdir -p'. +AC_DEFUN([AM_PROG_MKDIR_P], +[AC_PREREQ([2.60])dnl +AC_REQUIRE([AC_PROG_MKDIR_P])dnl +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, +dnl while keeping a definition of mkdir_p for backward compatibility. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of +dnl Makefile.ins that do not define MKDIR_P, so we do our own +dnl adjustment using top_builddir (which is defined more often than +dnl MKDIR_P). +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl +case $mkdir_p in + [[\\/$]]* | ?:[[\\/]]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac +]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Copyright (C) 2006 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# _AM_SUBST_NOTMAKE(VARIABLE) +# --------------------------- +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. +# This macro is traced by Automake. +AC_DEFUN([_AM_SUBST_NOTMAKE]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" + ;; + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false + ;; + esac + + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break + + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break + fi +done +rm -rf conftest.dir + +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR + diff --git a/supportware/changelog b/supportware/changelog new file mode 100644 index 0000000..e69de29 diff --git a/supportware/config.guess b/supportware/config.guess new file mode 100644 index 0000000..5145e35 --- /dev/null +++ b/supportware/config.guess @@ -0,0 +1,1363 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002 Free Software Foundation, Inc. + +timestamp='2002-10-21' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# This shell variable is my proudest work .. or something. --bje + +set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ; +(old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old) + || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ; +dummy=$tmpdir/dummy ; +files="$dummy.c $dummy.o $dummy.rel $dummy" ; +trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + rm -f $files ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ; +unset files' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + arc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + pmax:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mipseb-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + wgrisc:OpenBSD:*:*) + echo mipsel-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + alpha:OSF1:*:*) + if test $UNAME_RELEASE = "V4.0"; then + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + fi + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + eval $set_cc_for_build + cat <$dummy.s + .data +\$Lformat: + .byte 37,100,45,37,120,10,0 # "%d-%x\n" + + .text + .globl main + .align 4 + .ent main +main: + .frame \$30,16,\$26,0 + ldgp \$29,0(\$27) + .prologue 1 + .long 0x47e03d80 # implver \$0 + lda \$2,-1 + .long 0x47e20c21 # amask \$2,\$1 + lda \$16,\$Lformat + mov \$0,\$17 + not \$1,\$18 + jsr \$26,printf + ldgp \$29,0(\$26) + mov 0,\$16 + jsr \$26,exit + .end main +EOF + $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null + if test "$?" = 0 ; then + case `$dummy` in + 0-0) + UNAME_MACHINE="alpha" + ;; + 1-0) + UNAME_MACHINE="alphaev5" + ;; + 1-1) + UNAME_MACHINE="alphaev56" + ;; + 1-101) + UNAME_MACHINE="alphapca56" + ;; + 2-303) + UNAME_MACHINE="alphaev6" + ;; + 2-307) + UNAME_MACHINE="alphaev67" + ;; + 2-1307) + UNAME_MACHINE="alphaev68" + ;; + 3-1307) + UNAME_MACHINE="alphaev7" + ;; + esac + fi + rm -f $dummy.s $dummy && rmdir $tmpdir + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit 0 ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit 0;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit 0 ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + DRS?6000:UNIX_SV:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7 && exit 0 ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit 0 ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit 0 ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c \ + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 + rm -f $dummy.c $dummy && rmdir $tmpdir + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit 0 ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:*:*:PowerMAX_OS) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 + rm -f $dummy.c $dummy && rmdir $tmpdir + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:[45]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi + rm -f $dummy.c $dummy && rmdir $tmpdir + fi ;; + esac + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 + rm -f $dummy.c $dummy && rmdir $tmpdir + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*T3D:*:*:*) + echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + # Determine whether the default compiler uses glibc. + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #if __GLIBC__ >= 2 + LIBC=gnu + #else + LIBC= + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + rm -f $dummy.c && rmdir $tmpdir + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit 0 ;; + x86:Interix*:3*) + echo i386-pc-interix3 + exit 0 ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i386-pc-interix + exit 0 ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit 0 ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + rm -f $dummy.c && rmdir $tmpdir + test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0 + ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit 0 ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit 0 ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit 0 ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit 0 ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit 0 ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit 0 ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit 0 ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit 0 ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit 0 ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit 0 ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + rm -f $dummy.c && rmdir $tmpdir + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit 0 ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit 0 ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit 0 ;; + i*86:*:5:[78]*) + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit 0 ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit 0 ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit 0 ;; + M68*:*:R3V[567]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit 0 ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit 0 ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Darwin:*:*) + echo `uname -p`-apple-darwin${UNAME_RELEASE} + exit 0 ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit 0 ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit 0 ;; + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit 0 ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit 0 ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit 0 ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit 0 ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit 0 ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit 0 ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit 0 ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit 0 ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit 0 ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit 0 ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit 0 ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 +rm -f $dummy.c $dummy && rmdir $tmpdir + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/supportware/config.h b/supportware/config.h new file mode 100644 index 0000000..7fff1c1 --- /dev/null +++ b/supportware/config.h @@ -0,0 +1,60 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "supportware" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "0.1" diff --git a/supportware/config.h.in b/supportware/config.h.in new file mode 100644 index 0000000..2816188 --- /dev/null +++ b/supportware/config.h.in @@ -0,0 +1,59 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define to 1 if you have the header file. */ +#undef HAVE_DLFCN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Version number of package */ +#undef VERSION diff --git a/supportware/config.log b/supportware/config.log new file mode 100644 index 0000000..568450f --- /dev/null +++ b/supportware/config.log @@ -0,0 +1,723 @@ +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by configure, which was +generated by GNU Autoconf 2.63. Invocation command line was + + $ ./configure + +## --------- ## +## Platform. ## +## --------- ## + +hostname = mail.sourceworx.org +uname -m = x86_64 +uname -r = 5.4.0-113-generic +uname -s = Linux +uname -v = #127-Ubuntu SMP Wed May 18 14:30:56 UTC 2022 + +/usr/bin/uname -p = x86_64 +/bin/uname -X = unknown + +/bin/arch = x86_64 +/usr/bin/arch -k = unknown +/usr/convex/getsysinfo = unknown +/usr/bin/hostinfo = unknown +/bin/machine = unknown +/usr/bin/oslevel = unknown +/bin/universe = unknown + +PATH: /home/chris/bin +PATH: /usr/local/sbin +PATH: /usr/local/bin +PATH: /usr/sbin +PATH: /usr/bin +PATH: /sbin +PATH: /bin +PATH: /usr/games +PATH: /usr/local/games +PATH: /snap/bin + + +## ----------- ## +## Core tests. ## +## ----------- ## + +configure:2059: checking for a BSD-compatible install +configure:2127: result: /usr/bin/install -c +configure:2138: checking whether build environment is sane +configure:2181: result: yes +configure:2206: checking for a thread-safe mkdir -p +configure:2245: result: /usr/bin/mkdir -p +configure:2258: checking for gawk +configure:2274: found /usr/bin/gawk +configure:2285: result: gawk +configure:2296: checking whether make sets $(MAKE) +configure:2318: result: yes +configure:2567: checking for g++ +configure:2583: found /usr/bin/g++ +configure:2594: result: g++ +configure:2621: checking for C++ compiler version +configure:2629: g++ --version >&5 +g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 +Copyright (C) 2019 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +configure:2633: $? = 0 +configure:2640: g++ -v >&5 +Using built-in specs. +COLLECT_GCC=g++ +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) +configure:2644: $? = 0 +configure:2651: g++ -V >&5 +g++: error: unrecognized command line option '-V' +g++: fatal error: no input files +compilation terminated. +configure:2655: $? = 1 +configure:2678: checking for C++ compiler default output file name +configure:2700: g++ conftest.cpp >&5 +configure:2704: $? = 0 +configure:2742: result: a.out +configure:2761: checking whether the C++ compiler works +configure:2771: ./a.out +configure:2775: $? = 0 +configure:2794: result: yes +configure:2801: checking whether we are cross compiling +configure:2803: result: no +configure:2806: checking for suffix of executables +configure:2813: g++ -o conftest conftest.cpp >&5 +configure:2817: $? = 0 +configure:2843: result: +configure:2849: checking for suffix of object files +configure:2875: g++ -c conftest.cpp >&5 +configure:2879: $? = 0 +configure:2904: result: o +configure:2908: checking whether we are using the GNU C++ compiler +configure:2937: g++ -c conftest.cpp >&5 +configure:2944: $? = 0 +configure:2961: result: yes +configure:2970: checking whether g++ accepts -g +configure:3000: g++ -c -g conftest.cpp >&5 +configure:3007: $? = 0 +configure:3108: result: yes +configure:3142: checking for style of include used by make +configure:3170: result: GNU +configure:3195: checking dependency style of g++ +configure:3286: result: gcc3 +configure:3332: checking build system type +configure:3350: result: x86_64-unknown-linux-gnu +configure:3372: checking host system type +configure:3387: result: x86_64-unknown-linux-gnu +configure:3457: checking for gcc +configure:3473: found /usr/bin/gcc +configure:3484: result: gcc +configure:3716: checking for C compiler version +configure:3724: gcc --version >&5 +gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 +Copyright (C) 2019 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +configure:3728: $? = 0 +configure:3735: gcc -v >&5 +Using built-in specs. +COLLECT_GCC=gcc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) +configure:3739: $? = 0 +configure:3746: gcc -V >&5 +gcc: error: unrecognized command line option '-V' +gcc: fatal error: no input files +compilation terminated. +configure:3750: $? = 1 +configure:3753: checking whether we are using the GNU C compiler +configure:3782: gcc -c conftest.c >&5 +configure:3789: $? = 0 +configure:3806: result: yes +configure:3815: checking whether gcc accepts -g +configure:3845: gcc -c -g conftest.c >&5 +configure:3852: $? = 0 +configure:3953: result: yes +configure:3970: checking for gcc option to accept ISO C89 +configure:4044: gcc -c -g -O2 conftest.c >&5 +configure:4051: $? = 0 +configure:4074: result: none needed +configure:4094: checking dependency style of gcc +configure:4185: result: gcc3 +configure:4200: checking for a sed that does not truncate output +configure:4266: result: /usr/bin/sed +configure:4284: checking for grep that handles long lines and -e +configure:4344: result: /usr/bin/grep +configure:4349: checking for egrep +configure:4413: result: /usr/bin/grep -E +configure:4418: checking for fgrep +configure:4482: result: /usr/bin/grep -F +configure:4517: checking for ld used by gcc +configure:4584: result: /usr/bin/ld +configure:4593: checking if the linker (/usr/bin/ld) is GNU ld +configure:4608: result: yes +configure:4620: checking for BSD- or MS-compatible name lister (nm) +configure:4669: result: /usr/bin/nm -B +configure:4787: checking the name lister (/usr/bin/nm -B) interface +configure:4804: g++ -c -g -O2 conftest.cpp >&5 +configure:4807: /usr/bin/nm -B "conftest.o" +configure:4810: output +0000000000000000 B some_variable +configure:4801: result: BSD nm +configure:4804: checking whether ln -s works +configure:4808: result: yes +configure:4816: checking the maximum length of command line arguments +configure:4936: result: 1572864 +configure:4953: checking whether the shell understands some XSI constructs +configure:4962: result: yes +configure:4966: checking whether the shell understands "+=" +configure:4970: result: yes +configure:5005: checking for /usr/bin/ld option to reload object files +configure:5012: result: -r +configure:5081: checking for objdump +configure:5097: found /usr/bin/objdump +configure:5108: result: objdump +configure:5140: checking how to recognize dependent libraries +configure:5336: result: pass_all +configure:5396: checking for ar +configure:5412: found /usr/bin/ar +configure:5423: result: ar +configure:5501: checking for strip +configure:5517: found /usr/bin/strip +configure:5528: result: strip +configure:5600: checking for ranlib +configure:5616: found /usr/bin/ranlib +configure:5627: result: ranlib +configure:5717: checking command to parse /usr/bin/nm -B output from gcc object +configure:5835: g++ -c -g -O2 conftest.cpp >&5 +configure:5838: $? = 0 +configure:5842: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm +configure:5845: $? = 0 +configure:5899: g++ -o conftest -g -O2 conftest.cpp conftstm.o >&5 +configure:5902: $? = 0 +configure:5940: result: ok +configure:6036: g++ -c -g -O2 conftest.cpp >&5 +configure:6039: $? = 0 +configure:6807: checking how to run the C preprocessor +configure:6847: gcc -E conftest.c +configure:6854: $? = 0 +configure:6885: gcc -E conftest.c +conftest.c:10:10: fatal error: ac_nonexistent.h: No such file or directory + 10 | #include + | ^~~~~~~~~~~~~~~~~~ +compilation terminated. +configure:6892: $? = 1 +configure: failed program was: +| /* confdefs.h. */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE "supportware" +| #define VERSION "0.1" +| /* end confdefs.h. */ +| #include +configure:6925: result: gcc -E +configure:6954: gcc -E conftest.c +configure:6961: $? = 0 +configure:6992: gcc -E conftest.c +conftest.c:10:10: fatal error: ac_nonexistent.h: No such file or directory + 10 | #include + | ^~~~~~~~~~~~~~~~~~ +compilation terminated. +configure:6999: $? = 1 +configure: failed program was: +| /* confdefs.h. */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE "supportware" +| #define VERSION "0.1" +| /* end confdefs.h. */ +| #include +configure:7039: checking for ANSI C header files +configure:7069: gcc -c -g -O2 conftest.c >&5 +configure:7076: $? = 0 +configure:7175: gcc -o conftest -g -O2 conftest.c >&5 +configure:7179: $? = 0 +configure:7185: ./conftest +configure:7189: $? = 0 +configure:7207: result: yes +configure:7231: checking for sys/types.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for sys/stat.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for stdlib.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for string.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for memory.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for strings.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for inttypes.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for stdint.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7231: checking for unistd.h +configure:7252: gcc -c -g -O2 conftest.c >&5 +configure:7259: $? = 0 +configure:7276: result: yes +configure:7294: checking for dlfcn.h +configure:7315: gcc -c -g -O2 conftest.c >&5 +configure:7322: $? = 0 +configure:7339: result: yes +configure:7466: checking for C++ compiler version +configure:7474: g++ --version >&5 +g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 +Copyright (C) 2019 Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +configure:7478: $? = 0 +configure:7485: g++ -v >&5 +Using built-in specs. +COLLECT_GCC=g++ +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) +configure:7489: $? = 0 +configure:7496: g++ -V >&5 +g++: error: unrecognized command line option '-V' +g++: fatal error: no input files +compilation terminated. +configure:7500: $? = 1 +configure:7503: checking whether we are using the GNU C++ compiler +configure:7556: result: yes +configure:7565: checking whether g++ accepts -g +configure:7703: result: yes +configure:7728: checking dependency style of g++ +configure:7819: result: gcc3 +configure:7842: checking how to run the C++ preprocessor +configure:7878: g++ -E conftest.cpp +configure:7885: $? = 0 +configure:7916: g++ -E conftest.cpp +conftest.cpp:21:10: fatal error: ac_nonexistent.h: No such file or directory + 21 | #include + | ^~~~~~~~~~~~~~~~~~ +compilation terminated. +configure:7923: $? = 1 +configure: failed program was: +| /* confdefs.h. */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE "supportware" +| #define VERSION "0.1" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_DLFCN_H 1 +| /* end confdefs.h. */ +| #include +configure:7956: result: g++ -E +configure:7985: g++ -E conftest.cpp +configure:7992: $? = 0 +configure:8023: g++ -E conftest.cpp +conftest.cpp:21:10: fatal error: ac_nonexistent.h: No such file or directory + 21 | #include + | ^~~~~~~~~~~~~~~~~~ +compilation terminated. +configure:8030: $? = 1 +configure: failed program was: +| /* confdefs.h. */ +| #define PACKAGE_NAME "" +| #define PACKAGE_TARNAME "" +| #define PACKAGE_VERSION "" +| #define PACKAGE_STRING "" +| #define PACKAGE_BUGREPORT "" +| #define PACKAGE "supportware" +| #define VERSION "0.1" +| #define STDC_HEADERS 1 +| #define HAVE_SYS_TYPES_H 1 +| #define HAVE_SYS_STAT_H 1 +| #define HAVE_STDLIB_H 1 +| #define HAVE_STRING_H 1 +| #define HAVE_MEMORY_H 1 +| #define HAVE_STRINGS_H 1 +| #define HAVE_INTTYPES_H 1 +| #define HAVE_STDINT_H 1 +| #define HAVE_UNISTD_H 1 +| #define HAVE_DLFCN_H 1 +| /* end confdefs.h. */ +| #include +configure:8244: checking for objdir +configure:8259: result: .libs +configure:8551: checking if gcc supports -fno-rtti -fno-exceptions +configure:8588: gcc -c -g -O2 -fno-rtti -fno-exceptions conftest.c >&5 +cc1: warning: command line option '-fno-rtti' is valid for C++/D/ObjC++ but not for C +configure:8592: $? = 0 +configure:8586: result: no +configure:8606: checking for gcc option to produce PIC +configure:8878: result: -fPIC -DPIC +configure:8890: checking if gcc PIC flag -fPIC -DPIC works +configure:8927: gcc -c -g -O2 -fPIC -DPIC -DPIC conftest.c >&5 +configure:8931: $? = 0 +configure:8925: result: yes +configure:8949: checking if gcc static flag -static works +configure:8977: result: yes +configure:8992: checking if gcc supports -c -o file.o +configure:9032: gcc -c -g -O2 -o out/conftest2.o conftest.c >&5 +configure:9036: $? = 0 +configure:9039: result: yes +configure:9047: checking if gcc supports -c -o file.o +configure:9094: result: yes +configure:9127: checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries +configure:10201: result: yes +configure:10238: checking whether -lc should be explicitly linked in +configure:10243: gcc -c -g -O2 conftest.c >&5 +configure:10246: $? = 0 +configure:10261: gcc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| /usr/bin/grep -lc \>/dev/null 2\>\&1 +configure:10264: $? = 0 +configure:10276: result: no +configure:10440: checking dynamic linker characteristics +configure:10883: gcc -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.c >&5 +configure:10890: $? = 0 +configure:11123: result: GNU/Linux ld.so +configure:11225: checking how to hardcode library paths into programs +configure:11250: result: immediate +configure:12083: checking whether stripping libraries is possible +configure:12088: result: yes +configure:12123: checking if libtool supports shared libraries +configure:12125: result: yes +configure:12128: checking whether to build shared libraries +configure:12149: result: yes +configure:12152: checking whether to build static libraries +configure:12156: result: yes +configure:9158: checking for ld used by g++ +configure:9225: result: /usr/bin/ld -m elf_x86_64 +configure:9234: checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld +configure:9249: result: yes +configure:9304: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries +configure:10279: result: yes +configure:10307: g++ -c -g -O2 conftest.cpp >&5 +configure:10310: $? = 0 +configure:10492: checking for g++ option to produce PIC +configure:10809: result: -fPIC -DPIC +configure:10818: checking if g++ PIC flag -fPIC -DPIC works +configure:14003: g++ -c -g -O2 -fPIC -DPIC -DPIC conftest.cpp >&5 +configure:14007: $? = 0 +configure:10853: result: yes +configure:10874: checking if g++ static flag -static works +configure:10902: result: yes +configure:10914: checking if g++ supports -c -o file.o +configure:14102: g++ -c -g -O2 -o out/conftest2.o conftest.cpp >&5 +configure:14106: $? = 0 +configure:10961: result: yes +configure:10966: checking if g++ supports -c -o file.o +configure:11013: result: yes +configure:11043: checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries +configure:11069: result: yes +configure:11206: checking dynamic linker characteristics +configure:11597: g++ -o conftest -g -O2 -Wl,-rpath -Wl,/foo conftest.cpp >&5 +configure:11604: $? = 0 +configure:11837: result: GNU/Linux ld.so +configure:11888: checking how to hardcode library paths into programs +configure:11913: result: immediate +configure:11089: creating ./config.status + +## ---------------------- ## +## Running config.status. ## +## ---------------------- ## + +This file was extended by config.status, which was +generated by GNU Autoconf 2.63. Invocation command line was + + CONFIG_FILES = + CONFIG_HEADERS = + CONFIG_LINKS = + CONFIG_COMMANDS = + $ ./config.status + +on mail.sourceworx.org + +config.status:1040: creating Makefile +config.status:1040: creating src/Makefile +config.status:1040: creating config.h +config.status:1262: config.h is unchanged +config.status:1314: executing depfiles commands +config.status:1314: executing libtool commands + +## ---------------- ## +## Cache variables. ## +## ---------------- ## + +ac_cv_build=x86_64-unknown-linux-gnu +ac_cv_c_compiler_gnu=yes +ac_cv_cxx_compiler_gnu=yes +ac_cv_env_CCC_set= +ac_cv_env_CCC_value= +ac_cv_env_CC_set= +ac_cv_env_CC_value= +ac_cv_env_CFLAGS_set= +ac_cv_env_CFLAGS_value= +ac_cv_env_CPPFLAGS_set= +ac_cv_env_CPPFLAGS_value= +ac_cv_env_CPP_set= +ac_cv_env_CPP_value= +ac_cv_env_CXXCPP_set= +ac_cv_env_CXXCPP_value= +ac_cv_env_CXXFLAGS_set= +ac_cv_env_CXXFLAGS_value= +ac_cv_env_CXX_set= +ac_cv_env_CXX_value= +ac_cv_env_LDFLAGS_set= +ac_cv_env_LDFLAGS_value= +ac_cv_env_LIBS_set= +ac_cv_env_LIBS_value= +ac_cv_env_build_alias_set= +ac_cv_env_build_alias_value= +ac_cv_env_host_alias_set= +ac_cv_env_host_alias_value= +ac_cv_env_target_alias_set= +ac_cv_env_target_alias_value= +ac_cv_header_dlfcn_h=yes +ac_cv_header_inttypes_h=yes +ac_cv_header_memory_h=yes +ac_cv_header_stdc=yes +ac_cv_header_stdint_h=yes +ac_cv_header_stdlib_h=yes +ac_cv_header_string_h=yes +ac_cv_header_strings_h=yes +ac_cv_header_sys_stat_h=yes +ac_cv_header_sys_types_h=yes +ac_cv_header_unistd_h=yes +ac_cv_host=x86_64-unknown-linux-gnu +ac_cv_objext=o +ac_cv_path_EGREP='/usr/bin/grep -E' +ac_cv_path_FGREP='/usr/bin/grep -F' +ac_cv_path_GREP=/usr/bin/grep +ac_cv_path_SED=/usr/bin/sed +ac_cv_path_install='/usr/bin/install -c' +ac_cv_path_mkdir=/usr/bin/mkdir +ac_cv_prog_AWK=gawk +ac_cv_prog_CPP='gcc -E' +ac_cv_prog_CXXCPP='g++ -E' +ac_cv_prog_ac_ct_AR=ar +ac_cv_prog_ac_ct_CC=gcc +ac_cv_prog_ac_ct_CXX=g++ +ac_cv_prog_ac_ct_OBJDUMP=objdump +ac_cv_prog_ac_ct_RANLIB=ranlib +ac_cv_prog_ac_ct_STRIP=strip +ac_cv_prog_cc_c89= +ac_cv_prog_cc_g=yes +ac_cv_prog_cxx_g=yes +ac_cv_prog_make_make_set=yes +am_cv_CC_dependencies_compiler_type=gcc3 +am_cv_CXX_dependencies_compiler_type=gcc3 +lt_cv_deplibs_check_method=pass_all +lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_ld_reload_flag=-r +lt_cv_nm_interface='BSD nm' +lt_cv_objdir=.libs +lt_cv_path_LD=/usr/bin/ld +lt_cv_path_LDCXX='/usr/bin/ld -m elf_x86_64' +lt_cv_path_NM='/usr/bin/nm -B' +lt_cv_prog_compiler_c_o=yes +lt_cv_prog_compiler_c_o_CXX=yes +lt_cv_prog_compiler_pic_works=yes +lt_cv_prog_compiler_pic_works_CXX=yes +lt_cv_prog_compiler_rtti_exceptions=no +lt_cv_prog_compiler_static_works=yes +lt_cv_prog_compiler_static_works_CXX=yes +lt_cv_prog_gnu_ld=yes +lt_cv_prog_gnu_ldcxx=yes +lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' +lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' +lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' +lt_cv_sys_max_cmd_len=1572864 + +## ----------------- ## +## Output variables. ## +## ----------------- ## + +ACLOCAL='${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run aclocal-1.10' +AMDEPBACKSLASH='\' +AMDEP_FALSE='#' +AMDEP_TRUE='' +AMTAR='${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run tar' +AR='ar' +AUTOCONF='${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run autoconf' +AUTOHEADER='${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run autoheader' +AUTOMAKE='${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run automake-1.10' +AWK='gawk' +CC='gcc' +CCDEPMODE='depmode=gcc3' +CFLAGS='-g -O2' +CPP='gcc -E' +CPPFLAGS='' +CXX='g++' +CXXCPP='g++ -E' +CXXDEPMODE='depmode=gcc3' +CXXFLAGS='-g -O2' +CYGPATH_W='echo' +DEFS='-DHAVE_CONFIG_H' +DEPDIR='.deps' +DSYMUTIL='' +DUMPBIN='' +ECHO_C='' +ECHO_N='-n' +ECHO_T='' +EGREP='/usr/bin/grep -E' +EXEEXT='' +FGREP='/usr/bin/grep -F' +GREP='/usr/bin/grep' +INSTALL_DATA='${INSTALL} -m 644' +INSTALL_PROGRAM='${INSTALL}' +INSTALL_SCRIPT='${INSTALL}' +INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' +LD='/usr/bin/ld -m elf_x86_64' +LDFLAGS='' +LIBOBJS='' +LIBS='' +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +LIPO='' +LN_S='ln -s' +LTLIBOBJS='' +MAKEINFO='${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run makeinfo' +MKDIR_P='/usr/bin/mkdir -p' +NM='/usr/bin/nm -B' +NMEDIT='' +OBJDUMP='objdump' +OBJEXT='o' +OTOOL64='' +OTOOL='' +PACKAGE='supportware' +PACKAGE_BUGREPORT='' +PACKAGE_NAME='' +PACKAGE_STRING='' +PACKAGE_TARNAME='' +PACKAGE_VERSION='' +PATH_SEPARATOR=':' +RANLIB='ranlib' +SED='/usr/bin/sed' +SET_MAKE='' +SHELL='/bin/bash' +STRIP='strip' +VERSION='0.1' +ac_ct_CC='gcc' +ac_ct_CXX='g++' +ac_ct_DUMPBIN='' +am__fastdepCC_FALSE='#' +am__fastdepCC_TRUE='' +am__fastdepCXX_FALSE='#' +am__fastdepCXX_TRUE='' +am__include='include' +am__isrc='' +am__leading_dot='.' +am__quote='' +am__tar='${AMTAR} chof - "$$tardir"' +am__untar='${AMTAR} xf -' +bindir='${exec_prefix}/bin' +build='x86_64-unknown-linux-gnu' +build_alias='' +build_cpu='x86_64' +build_os='linux-gnu' +build_vendor='unknown' +datadir='${datarootdir}' +datarootdir='${prefix}/share' +docdir='${datarootdir}/doc/${PACKAGE}' +dvidir='${docdir}' +exec_prefix='${prefix}' +host='x86_64-unknown-linux-gnu' +host_alias='' +host_cpu='x86_64' +host_os='linux-gnu' +host_vendor='unknown' +htmldir='${docdir}' +includedir='${prefix}/include' +infodir='${datarootdir}/info' +install_sh='$(SHELL) /home/chris/sw.1.9.15x/supportware/install-sh' +libdir='${exec_prefix}/lib' +libexecdir='${exec_prefix}/libexec' +localedir='${datarootdir}/locale' +localstatedir='${prefix}/var' +lt_ECHO='echo' +mandir='${datarootdir}/man' +mkdir_p='/usr/bin/mkdir -p' +oldincludedir='/usr/include' +pdfdir='${docdir}' +prefix='/usr/local' +program_transform_name='s,x,x,' +psdir='${docdir}' +sbindir='${exec_prefix}/sbin' +sharedstatedir='${prefix}/com' +sysconfdir='${prefix}/etc' +target_alias='' + +## ----------- ## +## confdefs.h. ## +## ----------- ## + +#define PACKAGE_NAME "" +#define PACKAGE_TARNAME "" +#define PACKAGE_VERSION "" +#define PACKAGE_STRING "" +#define PACKAGE_BUGREPORT "" +#define PACKAGE "supportware" +#define VERSION "0.1" +#define STDC_HEADERS 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_SYS_STAT_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STRING_H 1 +#define HAVE_MEMORY_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_INTTYPES_H 1 +#define HAVE_STDINT_H 1 +#define HAVE_UNISTD_H 1 +#define HAVE_DLFCN_H 1 +#define LT_OBJDIR ".libs/" + +configure: exit 0 diff --git a/supportware/config.status b/supportware/config.status new file mode 100644 index 0000000..73e22ce --- /dev/null +++ b/supportware/config.status @@ -0,0 +1,2256 @@ +#! /bin/bash +# Generated by configure. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=${CONFIG_SHELL-/bin/bash} +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + + + +# PATH needs CR +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. Blame Lee + # E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 + +# Save the log message, to keep $[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by $as_me, which was +generated by GNU Autoconf 2.63. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +# Files that config.status was made for. +config_files=" Makefile src/Makefile" +config_headers=" config.h" +config_commands=" depfiles libtool" + +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTION]... [FILE]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +ac_cs_version="\ +config.status +configured by ./configure, generated by GNU Autoconf 2.63, + with options \"\" + +Copyright (C) 2008 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='/home/chris/sw.1.9.15x/supportware' +srcdir='.' +INSTALL='/usr/bin/install -c' +MKDIR_P='/usr/bin/mkdir -p' +AWK='gawk' +test -n "$AWK" || AWK=awk +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + { $as_echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { $as_echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +if $ac_cs_recheck; then + set X '/bin/bash' './configure' $ac_configure_extra_args --no-create --no-recursion + shift + $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 + CONFIG_SHELL='/bin/bash' + export CONFIG_SHELL + exec "$@" +fi + +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +# +# INIT-COMMANDS +# +AMDEP_TRUE="" ac_aux_dir="." + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +double_quote_subst='s/\(["`\\]\)/\\\1/g' +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' +macro_version='2.2.6' +macro_revision='1.3012' +enable_shared='yes' +enable_static='yes' +pic_mode='default' +enable_fast_install='needless' +host_alias='' +host='x86_64-unknown-linux-gnu' +host_os='linux-gnu' +build_alias='' +build='x86_64-unknown-linux-gnu' +build_os='linux-gnu' +SED='/usr/bin/sed' +Xsed='/usr/bin/sed -e 1s/^X//' +GREP='/usr/bin/grep' +EGREP='/usr/bin/grep -E' +FGREP='/usr/bin/grep -F' +LD='/usr/bin/ld -m elf_x86_64' +NM='/usr/bin/nm -B' +LN_S='ln -s' +max_cmd_len='1572864' +ac_objext='o' +exeext='' +lt_unset='unset' +lt_SP2NL='tr \040 \012' +lt_NL2SP='tr \015\012 \040\040' +reload_flag=' -r' +reload_cmds='$LD$reload_flag -o $output$reload_objs' +OBJDUMP='objdump' +deplibs_check_method='pass_all' +file_magic_cmd='$MAGIC_CMD' +AR='ar' +AR_FLAGS='cru' +STRIP='strip' +RANLIB='ranlib' +old_postinstall_cmds='chmod 644 $oldlib~$RANLIB $oldlib' +old_postuninstall_cmds='' +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' +CC='gcc' +CFLAGS='-g -O2' +compiler='g++' +GCC='yes' +lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\''' +lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^T .* \(.*\)$/extern int \1();/p'\'' -e '\''s/^[ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p'\''' +lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"\2", (void *) \&\2},/p'\''' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (void *) 0},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \(lib[^ ]*\)$/ {"\2", (void *) \&\2},/p'\'' -e '\''s/^[ABCDGIRSTW]* \([^ ]*\) \([^ ]*\)$/ {"lib\2", (void *) \&\2},/p'\''' +objdir='.libs' +SHELL='/bin/bash' +ECHO='echo' +MAGIC_CMD='file' +lt_prog_compiler_no_builtin_flag=' -fno-builtin' +lt_prog_compiler_wl='-Wl,' +lt_prog_compiler_pic=' -fPIC -DPIC' +lt_prog_compiler_static='-static' +lt_cv_prog_compiler_c_o='yes' +need_locks='no' +DSYMUTIL='' +NMEDIT='' +LIPO='' +OTOOL='' +OTOOL64='' +libext='a' +shrext_cmds='.so' +extract_expsyms_cmds='' +archive_cmds_need_lc='no' +enable_shared_with_static_runtimes='no' +export_dynamic_flag_spec='${wl}--export-dynamic' +whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' +compiler_needs_object='no' +old_archive_from_new_cmds='' +old_archive_from_expsyms_cmds='' +archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' +archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' +module_cmds='' +module_expsym_cmds='' +with_gnu_ld='yes' +allow_undefined_flag='' +no_undefined_flag='' +hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' +hardcode_libdir_flag_spec_ld='' +hardcode_libdir_separator='' +hardcode_direct='no' +hardcode_direct_absolute='no' +hardcode_minus_L='no' +hardcode_shlibpath_var='unsupported' +hardcode_automatic='no' +inherit_rpath='no' +link_all_deplibs='unknown' +fix_srcfile_path='' +always_export_symbols='no' +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' +exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' +include_expsyms='' +prelink_cmds='' +file_list_spec='' +variables_saved_for_relink='PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH' +need_lib_prefix='no' +need_version='no' +version_type='linux' +runpath_var='LD_RUN_PATH' +shlibpath_var='LD_LIBRARY_PATH' +shlibpath_overrides_runpath='yes' +libname_spec='lib$name' +library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' +soname_spec='${libname}${release}${shared_ext}$major' +postinstall_cmds='' +postuninstall_cmds='' +finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' +finish_eval='' +hardcode_into_libs='yes' +sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/9 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib' +sys_lib_dlsearch_path_spec='/lib /usr/lib /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ' +hardcode_action='immediate' +enable_dlopen='unknown' +enable_dlopen_self='unknown' +enable_dlopen_self_static='unknown' +old_striplib='strip --strip-debug' +striplib='strip --strip-unneeded' +compiler_lib_search_dirs='' +predep_objects='' +postdep_objects='' +predeps='' +postdeps='' +compiler_lib_search_path='' +LD_CXX='/usr/bin/ld -m elf_x86_64' +old_archive_cmds_CXX='$AR $AR_FLAGS $oldlib$oldobjs~$RANLIB $oldlib' +compiler_CXX='g++' +GCC_CXX='yes' +lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +lt_prog_compiler_wl_CXX='-Wl,' +lt_prog_compiler_pic_CXX=' -fPIC -DPIC' +lt_prog_compiler_static_CXX='-static' +lt_cv_prog_compiler_c_o_CXX='yes' +archive_cmds_need_lc_CXX='no' +enable_shared_with_static_runtimes_CXX='no' +export_dynamic_flag_spec_CXX='${wl}--export-dynamic' +whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' +compiler_needs_object_CXX='no' +old_archive_from_new_cmds_CXX='' +old_archive_from_expsyms_cmds_CXX='' +archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' +archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' +module_cmds_CXX='' +module_expsym_cmds_CXX='' +with_gnu_ld_CXX='yes' +allow_undefined_flag_CXX='' +no_undefined_flag_CXX='' +hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' +hardcode_libdir_flag_spec_ld_CXX='' +hardcode_libdir_separator_CXX='' +hardcode_direct_CXX='no' +hardcode_direct_absolute_CXX='no' +hardcode_minus_L_CXX='no' +hardcode_shlibpath_var_CXX='unsupported' +hardcode_automatic_CXX='no' +inherit_rpath_CXX='no' +link_all_deplibs_CXX='unknown' +fix_srcfile_path_CXX='' +always_export_symbols_CXX='no' +export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' +exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' +include_expsyms_CXX='' +prelink_cmds_CXX='' +file_list_spec_CXX='' +hardcode_action_CXX='immediate' +compiler_lib_search_dirs_CXX='/usr/lib/gcc/x86_64-linux-gnu/9 /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu /usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /usr/lib/gcc/x86_64-linux-gnu/9/../../..' +predep_objects_CXX='/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o' +postdep_objects_CXX='/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o' +predeps_CXX='' +postdeps_CXX='-lstdc++ -lm -lgcc_s -lc -lgcc_s' +compiler_lib_search_path_CXX='-L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../..' + +LTCC='gcc' +LTCFLAGS='-g -O2' +compiler='gcc' + +# Quote evaled strings. +for var in SED GREP EGREP FGREP LD NM LN_S lt_SP2NL lt_NL2SP reload_flag OBJDUMP deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB CC CFLAGS compiler lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address lt_cv_sys_global_symbol_to_c_name_address_lib_prefix SHELL ECHO lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks DSYMUTIL NMEDIT LIPO OTOOL OTOOL64 shrext_cmds export_dynamic_flag_spec whole_archive_flag_spec compiler_needs_object with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms file_list_spec variables_saved_for_relink libname_spec library_names_spec soname_spec finish_eval old_striplib striplib compiler_lib_search_dirs predep_objects postdep_objects predeps postdeps compiler_lib_search_path LD_CXX compiler_CXX lt_prog_compiler_no_builtin_flag_CXX lt_prog_compiler_wl_CXX lt_prog_compiler_pic_CXX lt_prog_compiler_static_CXX lt_cv_prog_compiler_c_o_CXX export_dynamic_flag_spec_CXX whole_archive_flag_spec_CXX compiler_needs_object_CXX with_gnu_ld_CXX allow_undefined_flag_CXX no_undefined_flag_CXX hardcode_libdir_flag_spec_CXX hardcode_libdir_flag_spec_ld_CXX hardcode_libdir_separator_CXX fix_srcfile_path_CXX exclude_expsyms_CXX include_expsyms_CXX file_list_spec_CXX compiler_lib_search_dirs_CXX predep_objects_CXX postdep_objects_CXX predeps_CXX postdeps_CXX compiler_lib_search_path_CXX; do + case `eval \\$ECHO "X\\$$var"` in + *[\\\`\"\$]*) + eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\$$var\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds prelink_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec old_archive_cmds_CXX old_archive_from_new_cmds_CXX old_archive_from_expsyms_cmds_CXX archive_cmds_CXX archive_expsym_cmds_CXX module_cmds_CXX module_expsym_cmds_CXX export_symbols_cmds_CXX prelink_cmds_CXX; do + case `eval \\$ECHO "X\\$$var"` in + *[\\\`\"\$]*) + eval "lt_$var=\\\"\`\$ECHO \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\$$var\\\"" + ;; + esac +done + +# Fix-up fallback echo if it was mangled by the above quoting rules. +case $lt_ECHO in +*'\$0 --fallback-echo"') lt_ECHO=`$ECHO "X$lt_ECHO" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; +esac + +ac_aux_dir='.' +xsi_shell='yes' +lt_shell_append='yes' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='supportware' + VERSION='0.1' + TIMESTAMP='' + RM='rm -f' + ofile='libtool' + + + + + + + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || +{ + $as_echo "$as_me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=' ' +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +cat >>"$tmp/subs1.awk" <<\_ACAWK && +S["LTLIBOBJS"]="" +S["LIBOBJS"]="" +S["CXXCPP"]="g++ -E" +S["CPP"]="gcc -E" +S["OTOOL64"]="" +S["OTOOL"]="" +S["LIPO"]="" +S["NMEDIT"]="" +S["DSYMUTIL"]="" +S["lt_ECHO"]="echo" +S["RANLIB"]="ranlib" +S["AR"]="ar" +S["OBJDUMP"]="objdump" +S["LN_S"]="ln -s" +S["NM"]="/usr/bin/nm -B" +S["ac_ct_DUMPBIN"]="" +S["DUMPBIN"]="" +S["LD"]="/usr/bin/ld -m elf_x86_64" +S["FGREP"]="/usr/bin/grep -F" +S["EGREP"]="/usr/bin/grep -E" +S["GREP"]="/usr/bin/grep" +S["SED"]="/usr/bin/sed" +S["am__fastdepCC_FALSE"]="#" +S["am__fastdepCC_TRUE"]="" +S["CCDEPMODE"]="depmode=gcc3" +S["ac_ct_CC"]="gcc" +S["CFLAGS"]="-g -O2" +S["CC"]="gcc" +S["host_os"]="linux-gnu" +S["host_vendor"]="unknown" +S["host_cpu"]="x86_64" +S["host"]="x86_64-unknown-linux-gnu" +S["build_os"]="linux-gnu" +S["build_vendor"]="unknown" +S["build_cpu"]="x86_64" +S["build"]="x86_64-unknown-linux-gnu" +S["LIBTOOL"]="$(SHELL) $(top_builddir)/libtool" +S["am__fastdepCXX_FALSE"]="#" +S["am__fastdepCXX_TRUE"]="" +S["CXXDEPMODE"]="depmode=gcc3" +S["AMDEPBACKSLASH"]="\\" +S["AMDEP_FALSE"]="#" +S["AMDEP_TRUE"]="" +S["am__quote"]="" +S["am__include"]="include" +S["DEPDIR"]=".deps" +S["OBJEXT"]="o" +S["EXEEXT"]="" +S["ac_ct_CXX"]="g++" +S["CPPFLAGS"]="" +S["LDFLAGS"]="" +S["CXXFLAGS"]="-g -O2" +S["CXX"]="g++" +S["am__untar"]="${AMTAR} xf -" +S["am__tar"]="${AMTAR} chof - \"$$tardir\"" +S["AMTAR"]="${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run tar" +S["am__leading_dot"]="." +S["SET_MAKE"]="" +S["AWK"]="gawk" +S["mkdir_p"]="/usr/bin/mkdir -p" +S["MKDIR_P"]="/usr/bin/mkdir -p" +S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" +S["STRIP"]="strip" +S["install_sh"]="$(SHELL) /home/chris/sw.1.9.15x/supportware/install-sh" +S["MAKEINFO"]="${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run makeinfo" +S["AUTOHEADER"]="${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run autoheader" +S["AUTOMAKE"]="${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run automake-1.10" +S["AUTOCONF"]="${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run autoconf" +S["ACLOCAL"]="${SHELL} /home/chris/sw.1.9.15x/supportware/missing --run aclocal-1.10" +S["VERSION"]="0.1" +S["PACKAGE"]="supportware" +S["CYGPATH_W"]="echo" +S["am__isrc"]="" +S["INSTALL_DATA"]="${INSTALL} -m 644" +S["INSTALL_SCRIPT"]="${INSTALL}" +S["INSTALL_PROGRAM"]="${INSTALL}" +S["target_alias"]="" +S["host_alias"]="" +S["build_alias"]="" +S["LIBS"]="" +S["ECHO_T"]="" +S["ECHO_N"]="-n" +S["ECHO_C"]="" +S["DEFS"]="-DHAVE_CONFIG_H" +S["mandir"]="${datarootdir}/man" +S["localedir"]="${datarootdir}/locale" +S["libdir"]="${exec_prefix}/lib" +S["psdir"]="${docdir}" +S["pdfdir"]="${docdir}" +S["dvidir"]="${docdir}" +S["htmldir"]="${docdir}" +S["infodir"]="${datarootdir}/info" +S["docdir"]="${datarootdir}/doc/${PACKAGE}" +S["oldincludedir"]="/usr/include" +S["includedir"]="${prefix}/include" +S["localstatedir"]="${prefix}/var" +S["sharedstatedir"]="${prefix}/com" +S["sysconfdir"]="${prefix}/etc" +S["datadir"]="${datarootdir}" +S["datarootdir"]="${prefix}/share" +S["libexecdir"]="${exec_prefix}/libexec" +S["sbindir"]="${exec_prefix}/sbin" +S["bindir"]="${exec_prefix}/bin" +S["program_transform_name"]="s,x,x," +S["prefix"]="/usr/local" +S["exec_prefix"]="${prefix}" +S["PACKAGE_BUGREPORT"]="" +S["PACKAGE_STRING"]="" +S["PACKAGE_VERSION"]="" +S["PACKAGE_TARNAME"]="" +S["PACKAGE_NAME"]="" +S["PATH_SEPARATOR"]=":" +S["SHELL"]="/bin/bash" +_ACAWK +cat >>"$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 +$as_echo "$as_me: error: could not setup config files machinery" >&2;} + { (exit 1); exit 1; }; } +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +D["PACKAGE_NAME"]=" \"\"" +D["PACKAGE_TARNAME"]=" \"\"" +D["PACKAGE_VERSION"]=" \"\"" +D["PACKAGE_STRING"]=" \"\"" +D["PACKAGE_BUGREPORT"]=" \"\"" +D["PACKAGE"]=" \"supportware\"" +D["VERSION"]=" \"0.1\"" +D["STDC_HEADERS"]=" 1" +D["HAVE_SYS_TYPES_H"]=" 1" +D["HAVE_SYS_STAT_H"]=" 1" +D["HAVE_STDLIB_H"]=" 1" +D["HAVE_STRING_H"]=" 1" +D["HAVE_MEMORY_H"]=" 1" +D["HAVE_STRINGS_H"]=" 1" +D["HAVE_INTTYPES_H"]=" 1" +D["HAVE_STDINT_H"]=" 1" +D["HAVE_UNISTD_H"]=" 1" +D["HAVE_DLFCN_H"]=" 1" +D["LT_OBJDIR"]=" \".libs/\"" + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+[_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ][_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]*([\t (]|$)/ { + line = $ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;} + { (exit 1); exit 1; }; } +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} + { (exit 1); exit 1; }; };; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} + { (exit 1); exit 1; }; };; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + ac_file_inputs="$ac_file_inputs '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + { as_dir="$ac_dir" + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= + +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p +' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} + ac_datarootdir_hack=' + s&@datadir@&${datarootdir}&g + s&@docdir@&${datarootdir}/doc/${PACKAGE}&g + s&@infodir@&${datarootdir}/info&g + s&@localedir@&${datarootdir}/locale&g + s&@mandir@&${datarootdir}/man&g + s&\${datarootdir}&${prefix}/share&g' ;; +esac +ac_sed_extra="/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +} + +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 +$as_echo "$as_me: error: could not create -" >&2;} + { (exit 1); exit 1; }; } + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + { as_dir=$dirpart/$fdir + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that does not interpret backslashes. +ECHO=$lt_ECHO + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} + +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} + +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} + +# sed scripts: +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[^=]*=//' + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "$@"` +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` +} + +_LT_EOF +esac + +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1+=\$2" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1=\$$1\$2" +} + +_LT_EOF + ;; + esac + + + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +{ (exit 0); exit 0; } diff --git a/supportware/config.sub b/supportware/config.sub new file mode 100644 index 0000000..1dea9b7 --- /dev/null +++ b/supportware/config.sub @@ -0,0 +1,1470 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002 Free Software Foundation, Inc. + +timestamp='2002-09-05' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit 0;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k \ + | m32r | m68000 | m68k | m88k | mcore \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mipsisa32 | mipsisa32el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | ns16k | ns32k \ + | openrisc | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xscale | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* \ + | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \ + | clipper-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* \ + | m32r-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39 | mipstx39el \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ + | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + crds | unos) + basic_machine=m68k-crds + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + mmix*) + basic_machine=mmix-knuth + os=-mmixware + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + or32 | or32-*) + basic_machine=or32-unknown + os=-coff + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2) + basic_machine=i686-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3d) + basic_machine=alpha-cray + os=-unicos + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic4x | c4x*) + basic_machine=tic4x-unknown + os=-coff + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + windows32) + basic_machine=i386-pc + os=-windows32-msvcrt + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele) + basic_machine=sh-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparc | sparcv9 | sparcv9b) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto*) + os=-nto-qnx + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-ibm) + os=-aix + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/supportware/configure b/supportware/configure new file mode 100644 index 0000000..5393a12 --- /dev/null +++ b/supportware/configure @@ -0,0 +1,17750 @@ +#! /bin/sh +# Guess values for system-dependent variables and create Makefiles. +# Generated by GNU Autoconf 2.63. +# +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +# This configure script is free software; the Free Software Foundation +# gives unlimited permission to copy, distribute and modify it. +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + + + +# PATH needs CR +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + +if test "x$CONFIG_SHELL" = x; then + if (eval ":") 2>/dev/null; then + as_have_required=yes +else + as_have_required=no +fi + + if test $as_have_required = yes && (eval ": +(as_func_return () { + (exit \$1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test \$exitcode = 0) || { (exit 1); exit 1; } + +( + as_lineno_1=\$LINENO + as_lineno_2=\$LINENO + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } +") 2> /dev/null; then + : +else + as_candidate_shells= + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + case $as_dir in + /*) + for as_base in sh bash ksh sh5; do + as_candidate_shells="$as_candidate_shells $as_dir/$as_base" + done;; + esac +done +IFS=$as_save_IFS + + + for as_shell in $as_candidate_shells $SHELL; do + # Try only shells that exist, to save several forks. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } && + { ("$as_shell") 2> /dev/null <<\_ASEOF +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + +: +_ASEOF +}; then + CONFIG_SHELL=$as_shell + as_have_required=yes + if { "$as_shell" 2> /dev/null <<\_ASEOF +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + +: +(as_func_return () { + (exit $1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = "$1" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test $exitcode = 0) || { (exit 1); exit 1; } + +( + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } + +_ASEOF +}; then + break +fi + +fi + + done + + if test "x$CONFIG_SHELL" != x; then + for as_var in BASH_ENV ENV + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var + done + export CONFIG_SHELL + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} +fi + + + if test $as_have_required = no; then + echo This script requires a shell more modern than all the + echo shells that I found on your system. Please install a + echo modern shell, or manually run the script under such a + echo shell if you do have one. + { (exit 1); exit 1; } +fi + + +fi + +fi + + + +(eval "as_func_return () { + (exit \$1) +} +as_func_success () { + as_func_return 0 +} +as_func_failure () { + as_func_return 1 +} +as_func_ret_success () { + return 0 +} +as_func_ret_failure () { + return 1 +} + +exitcode=0 +if as_func_success; then + : +else + exitcode=1 + echo as_func_success failed. +fi + +if as_func_failure; then + exitcode=1 + echo as_func_failure succeeded. +fi + +if as_func_ret_success; then + : +else + exitcode=1 + echo as_func_ret_success failed. +fi + +if as_func_ret_failure; then + exitcode=1 + echo as_func_ret_failure succeeded. +fi + +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then + : +else + exitcode=1 + echo positional parameters were not saved. +fi + +test \$exitcode = 0") || { + echo No shell found that supports shell functions. + echo Please tell bug-autoconf@gnu.org about your system, + echo including any error possibly output before this message. + echo This can help us improve future autoconf versions. + echo Configuration will now proceed without shell functions. +} + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. Blame Lee + # E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + + + +# Check that we are running under the correct shell. +SHELL=${CONFIG_SHELL-/bin/sh} + +case X$lt_ECHO in +X*--fallback-echo) + # Remove one level of quotation (which was required for Make). + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` + ;; +esac + +ECHO=${lt_ECHO-echo} +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell. + exec $SHELL "$0" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat <<_LT_EOF +$* +_LT_EOF + exit 0 +fi + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +if test -z "$lt_ECHO"; then + if test "X${echo_test_string+set}" != Xset; then + # find a string as large as possible, as long as the shell can cope with it + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... + if { echo_test_string=`eval $cmd`; } 2>/dev/null && + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null + then + break + fi + done + fi + + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + : + else + # The Solaris, AIX, and Digital Unix default echo programs unquote + # backslashes. This makes it impossible to quote backslashes using + # echo "$something" | sed 's/\\/\\\\/g' + # + # So, first we look for a working echo in the user's PATH. + + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$dir/echo" + break + fi + done + IFS="$lt_save_ifs" + + if test "X$ECHO" = Xecho; then + # We didn't find a better echo, so look for alternatives. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # This shell has a builtin print -r that does the trick. + ECHO='print -r' + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && + test "X$CONFIG_SHELL" != X/bin/ksh; then + # If we have ksh, try running configure again with it. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} + export ORIGINAL_CONFIG_SHELL + CONFIG_SHELL=/bin/ksh + export CONFIG_SHELL + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} + else + # Try using printf. + ECHO='printf %s\n' + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + # Cool, printf works + : + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL + export CONFIG_SHELL + SHELL="$CONFIG_SHELL" + export SHELL + ECHO="$CONFIG_SHELL $0 --fallback-echo" + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && + test "X$echo_testing_string" = 'X\t' && + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && + test "X$echo_testing_string" = "X$echo_test_string"; then + ECHO="$CONFIG_SHELL $0 --fallback-echo" + else + # maybe with a smaller string... + prev=: + + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null + then + break + fi + prev="$cmd" + done + + if test "$prev" != 'sed 50q "$0"'; then + echo_test_string=`eval $prev` + export echo_test_string + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} + else + # Oops. We lost completely, so just stick with echo. + ECHO=echo + fi + fi + fi + fi + fi +fi + +# Copy echo and quote the copy suitably for passing to libtool from +# the Makefile, instead of quoting the original, which is used later. +lt_ECHO=$ECHO +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" +fi + + + + +exec 7<&0 &1 + +# Name of the host. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, +# so uname gets run too. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` + +# +# Initializations. +# +ac_default_prefix=/usr/local +ac_clean_files= +ac_config_libobj_dir=. +LIBOBJS= +cross_compiling=no +subdirs= +MFLAGS= +MAKEFLAGS= +SHELL=${CONFIG_SHELL-/bin/sh} + +# Identity of this package. +PACKAGE_NAME= +PACKAGE_TARNAME= +PACKAGE_VERSION= +PACKAGE_STRING= +PACKAGE_BUGREPORT= + +ac_unique_file="configure.in" +# Factoring default headers for most tests. +ac_includes_default="\ +#include +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_SYS_STAT_H +# include +#endif +#ifdef STDC_HEADERS +# include +# include +#else +# ifdef HAVE_STDLIB_H +# include +# endif +#endif +#ifdef HAVE_STRING_H +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H +# include +# endif +# include +#endif +#ifdef HAVE_STRINGS_H +# include +#endif +#ifdef HAVE_INTTYPES_H +# include +#endif +#ifdef HAVE_STDINT_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif" + +ac_subst_vars='LTLIBOBJS +LIBOBJS +CXXCPP +CPP +OTOOL64 +OTOOL +LIPO +NMEDIT +DSYMUTIL +lt_ECHO +RANLIB +AR +OBJDUMP +LN_S +NM +ac_ct_DUMPBIN +DUMPBIN +LD +FGREP +EGREP +GREP +SED +am__fastdepCC_FALSE +am__fastdepCC_TRUE +CCDEPMODE +ac_ct_CC +CFLAGS +CC +host_os +host_vendor +host_cpu +host +build_os +build_vendor +build_cpu +build +LIBTOOL +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +AMDEPBACKSLASH +AMDEP_FALSE +AMDEP_TRUE +am__quote +am__include +DEPDIR +OBJEXT +EXEEXT +ac_ct_CXX +CPPFLAGS +LDFLAGS +CXXFLAGS +CXX +am__untar +am__tar +AMTAR +am__leading_dot +SET_MAKE +AWK +mkdir_p +MKDIR_P +INSTALL_STRIP_PROGRAM +STRIP +install_sh +MAKEINFO +AUTOHEADER +AUTOMAKE +AUTOCONF +ACLOCAL +VERSION +PACKAGE +CYGPATH_W +am__isrc +INSTALL_DATA +INSTALL_SCRIPT +INSTALL_PROGRAM +target_alias +host_alias +build_alias +LIBS +ECHO_T +ECHO_N +ECHO_C +DEFS +mandir +localedir +libdir +psdir +pdfdir +dvidir +htmldir +infodir +docdir +oldincludedir +includedir +localstatedir +sharedstatedir +sysconfdir +datadir +datarootdir +libexecdir +sbindir +bindir +program_transform_name +prefix +exec_prefix +PACKAGE_BUGREPORT +PACKAGE_STRING +PACKAGE_VERSION +PACKAGE_TARNAME +PACKAGE_NAME +PATH_SEPARATOR +SHELL' +ac_subst_files='' +ac_user_opts=' +enable_option_checking +enable_dependency_tracking +enable_shared +enable_static +with_pic +enable_fast_install +with_gnu_ld +enable_libtool_lock +' + ac_precious_vars='build_alias +host_alias +target_alias +CXX +CXXFLAGS +LDFLAGS +LIBS +CPPFLAGS +CCC +CC +CFLAGS +CPP +CXXCPP' + + +# Initialize some variables set by options. +ac_init_help= +ac_init_version=false +ac_unrecognized_opts= +ac_unrecognized_sep= +# The variables have the same names as the options, with +# dashes changed to underlines. +cache_file=/dev/null +exec_prefix=NONE +no_create= +no_recursion= +prefix=NONE +program_prefix=NONE +program_suffix=NONE +program_transform_name=s,x,x, +silent= +site= +srcdir= +verbose= +x_includes=NONE +x_libraries=NONE + +# Installation directory options. +# These are left unexpanded so users can "make install exec_prefix=/foo" +# and all the variables that are supposed to be based on exec_prefix +# by default will actually change. +# Use braces instead of parens because sh, perl, etc. also accept them. +# (The list follows the same order as the GNU Coding Standards.) +bindir='${exec_prefix}/bin' +sbindir='${exec_prefix}/sbin' +libexecdir='${exec_prefix}/libexec' +datarootdir='${prefix}/share' +datadir='${datarootdir}' +sysconfdir='${prefix}/etc' +sharedstatedir='${prefix}/com' +localstatedir='${prefix}/var' +includedir='${prefix}/include' +oldincludedir='/usr/include' +docdir='${datarootdir}/doc/${PACKAGE}' +infodir='${datarootdir}/info' +htmldir='${docdir}' +dvidir='${docdir}' +pdfdir='${docdir}' +psdir='${docdir}' +libdir='${exec_prefix}/lib' +localedir='${datarootdir}/locale' +mandir='${datarootdir}/man' + +ac_prev= +ac_dashdash= +for ac_option +do + # If the previous option needs an argument, assign it. + if test -n "$ac_prev"; then + eval $ac_prev=\$ac_option + ac_prev= + continue + fi + + case $ac_option in + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; + *) ac_optarg=yes ;; + esac + + # Accept the important Cygnus configure options, so we can diagnose typos. + + case $ac_dashdash$ac_option in + --) + ac_dashdash=yes ;; + + -bindir | --bindir | --bindi | --bind | --bin | --bi) + ac_prev=bindir ;; + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) + bindir=$ac_optarg ;; + + -build | --build | --buil | --bui | --bu) + ac_prev=build_alias ;; + -build=* | --build=* | --buil=* | --bui=* | --bu=*) + build_alias=$ac_optarg ;; + + -cache-file | --cache-file | --cache-fil | --cache-fi \ + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) + ac_prev=cache_file ;; + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) + cache_file=$ac_optarg ;; + + --config-cache | -C) + cache_file=config.cache ;; + + -datadir | --datadir | --datadi | --datad) + ac_prev=datadir ;; + -datadir=* | --datadir=* | --datadi=* | --datad=*) + datadir=$ac_optarg ;; + + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ + | --dataroo | --dataro | --datar) + ac_prev=datarootdir ;; + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) + datarootdir=$ac_optarg ;; + + -disable-* | --disable-*) + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 + { (exit 1); exit 1; }; } + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=no ;; + + -docdir | --docdir | --docdi | --doc | --do) + ac_prev=docdir ;; + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) + docdir=$ac_optarg ;; + + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) + ac_prev=dvidir ;; + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) + dvidir=$ac_optarg ;; + + -enable-* | --enable-*) + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 + { (exit 1); exit 1; }; } + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"enable_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval enable_$ac_useropt=\$ac_optarg ;; + + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ + | --exec | --exe | --ex) + ac_prev=exec_prefix ;; + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ + | --exec=* | --exe=* | --ex=*) + exec_prefix=$ac_optarg ;; + + -gas | --gas | --ga | --g) + # Obsolete; use --with-gas. + with_gas=yes ;; + + -help | --help | --hel | --he | -h) + ac_init_help=long ;; + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) + ac_init_help=recursive ;; + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) + ac_init_help=short ;; + + -host | --host | --hos | --ho) + ac_prev=host_alias ;; + -host=* | --host=* | --hos=* | --ho=*) + host_alias=$ac_optarg ;; + + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) + ac_prev=htmldir ;; + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ + | --ht=*) + htmldir=$ac_optarg ;; + + -includedir | --includedir | --includedi | --included | --include \ + | --includ | --inclu | --incl | --inc) + ac_prev=includedir ;; + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ + | --includ=* | --inclu=* | --incl=* | --inc=*) + includedir=$ac_optarg ;; + + -infodir | --infodir | --infodi | --infod | --info | --inf) + ac_prev=infodir ;; + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) + infodir=$ac_optarg ;; + + -libdir | --libdir | --libdi | --libd) + ac_prev=libdir ;; + -libdir=* | --libdir=* | --libdi=* | --libd=*) + libdir=$ac_optarg ;; + + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ + | --libexe | --libex | --libe) + ac_prev=libexecdir ;; + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ + | --libexe=* | --libex=* | --libe=*) + libexecdir=$ac_optarg ;; + + -localedir | --localedir | --localedi | --localed | --locale) + ac_prev=localedir ;; + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) + localedir=$ac_optarg ;; + + -localstatedir | --localstatedir | --localstatedi | --localstated \ + | --localstate | --localstat | --localsta | --localst | --locals) + ac_prev=localstatedir ;; + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) + localstatedir=$ac_optarg ;; + + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) + ac_prev=mandir ;; + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) + mandir=$ac_optarg ;; + + -nfp | --nfp | --nf) + # Obsolete; use --without-fp. + with_fp=no ;; + + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ + | --no-cr | --no-c | -n) + no_create=yes ;; + + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) + no_recursion=yes ;; + + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ + | --oldin | --oldi | --old | --ol | --o) + ac_prev=oldincludedir ;; + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) + oldincludedir=$ac_optarg ;; + + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) + ac_prev=prefix ;; + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) + prefix=$ac_optarg ;; + + -program-prefix | --program-prefix | --program-prefi | --program-pref \ + | --program-pre | --program-pr | --program-p) + ac_prev=program_prefix ;; + -program-prefix=* | --program-prefix=* | --program-prefi=* \ + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) + program_prefix=$ac_optarg ;; + + -program-suffix | --program-suffix | --program-suffi | --program-suff \ + | --program-suf | --program-su | --program-s) + ac_prev=program_suffix ;; + -program-suffix=* | --program-suffix=* | --program-suffi=* \ + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) + program_suffix=$ac_optarg ;; + + -program-transform-name | --program-transform-name \ + | --program-transform-nam | --program-transform-na \ + | --program-transform-n | --program-transform- \ + | --program-transform | --program-transfor \ + | --program-transfo | --program-transf \ + | --program-trans | --program-tran \ + | --progr-tra | --program-tr | --program-t) + ac_prev=program_transform_name ;; + -program-transform-name=* | --program-transform-name=* \ + | --program-transform-nam=* | --program-transform-na=* \ + | --program-transform-n=* | --program-transform-=* \ + | --program-transform=* | --program-transfor=* \ + | --program-transfo=* | --program-transf=* \ + | --program-trans=* | --program-tran=* \ + | --progr-tra=* | --program-tr=* | --program-t=*) + program_transform_name=$ac_optarg ;; + + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) + ac_prev=pdfdir ;; + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) + pdfdir=$ac_optarg ;; + + -psdir | --psdir | --psdi | --psd | --ps) + ac_prev=psdir ;; + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) + psdir=$ac_optarg ;; + + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + silent=yes ;; + + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) + ac_prev=sbindir ;; + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ + | --sbi=* | --sb=*) + sbindir=$ac_optarg ;; + + -sharedstatedir | --sharedstatedir | --sharedstatedi \ + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ + | --sharedst | --shareds | --shared | --share | --shar \ + | --sha | --sh) + ac_prev=sharedstatedir ;; + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ + | --sha=* | --sh=*) + sharedstatedir=$ac_optarg ;; + + -site | --site | --sit) + ac_prev=site ;; + -site=* | --site=* | --sit=*) + site=$ac_optarg ;; + + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) + ac_prev=srcdir ;; + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) + srcdir=$ac_optarg ;; + + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ + | --syscon | --sysco | --sysc | --sys | --sy) + ac_prev=sysconfdir ;; + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) + sysconfdir=$ac_optarg ;; + + -target | --target | --targe | --targ | --tar | --ta | --t) + ac_prev=target_alias ;; + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) + target_alias=$ac_optarg ;; + + -v | -verbose | --verbose | --verbos | --verbo | --verb) + verbose=yes ;; + + -version | --version | --versio | --versi | --vers | -V) + ac_init_version=: ;; + + -with-* | --with-*) + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 + { (exit 1); exit 1; }; } + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=\$ac_optarg ;; + + -without-* | --without-*) + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` + # Reject names that are not valid shell variable names. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 + { (exit 1); exit 1; }; } + ac_useropt_orig=$ac_useropt + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` + case $ac_user_opts in + *" +"with_$ac_useropt" +"*) ;; + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" + ac_unrecognized_sep=', ';; + esac + eval with_$ac_useropt=no ;; + + --x) + # Obsolete; use --with-x. + with_x=yes ;; + + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ + | --x-incl | --x-inc | --x-in | --x-i) + ac_prev=x_includes ;; + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) + x_includes=$ac_optarg ;; + + -x-libraries | --x-libraries | --x-librarie | --x-librari \ + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) + ac_prev=x_libraries ;; + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) + x_libraries=$ac_optarg ;; + + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } + ;; + + *=*) + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` + # Reject names that are not valid shell variable names. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 + { (exit 1); exit 1; }; } + eval $ac_envvar=\$ac_optarg + export $ac_envvar ;; + + *) + # FIXME: should be removed in autoconf 3.0. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} + ;; + + esac +done + +if test -n "$ac_prev"; then + ac_option=--`echo $ac_prev | sed 's/_/-/g'` + { $as_echo "$as_me: error: missing argument to $ac_option" >&2 + { (exit 1); exit 1; }; } +fi + +if test -n "$ac_unrecognized_opts"; then + case $enable_option_checking in + no) ;; + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 + { (exit 1); exit 1; }; } ;; + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; + esac +fi + +# Check all directory arguments for consistency. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ + datadir sysconfdir sharedstatedir localstatedir includedir \ + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ + libdir localedir mandir +do + eval ac_val=\$$ac_var + # Remove trailing slashes. + case $ac_val in + */ ) + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` + eval $ac_var=\$ac_val;; + esac + # Be sure to have absolute directory names. + case $ac_val in + [\\/$]* | ?:[\\/]* ) continue;; + NONE | '' ) case $ac_var in *prefix ) continue;; esac;; + esac + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 + { (exit 1); exit 1; }; } +done + +# There might be people who depend on the old broken behavior: `$host' +# used to hold the argument of --host etc. +# FIXME: To remove some day. +build=$build_alias +host=$host_alias +target=$target_alias + +# FIXME: To remove some day. +if test "x$host_alias" != x; then + if test "x$build_alias" = x; then + cross_compiling=maybe + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. + If a cross compiler is detected then cross compile mode will be used." >&2 + elif test "x$build_alias" != "x$host_alias"; then + cross_compiling=yes + fi +fi + +ac_tool_prefix= +test -n "$host_alias" && ac_tool_prefix=$host_alias- + +test "$silent" = yes && exec 6>/dev/null + + +ac_pwd=`pwd` && test -n "$ac_pwd" && +ac_ls_di=`ls -di .` && +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || + { $as_echo "$as_me: error: working directory cannot be determined" >&2 + { (exit 1); exit 1; }; } +test "X$ac_ls_di" = "X$ac_pwd_ls_di" || + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 + { (exit 1); exit 1; }; } + + +# Find the source files, if location was not specified. +if test -z "$srcdir"; then + ac_srcdir_defaulted=yes + # Try the directory containing this script, then the parent directory. + ac_confdir=`$as_dirname -- "$as_myself" || +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_myself" : 'X\(//\)[^/]' \| \ + X"$as_myself" : 'X\(//\)$' \| \ + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_myself" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + srcdir=$ac_confdir + if test ! -r "$srcdir/$ac_unique_file"; then + srcdir=.. + fi +else + ac_srcdir_defaulted=no +fi +if test ! -r "$srcdir/$ac_unique_file"; then + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 + { (exit 1); exit 1; }; } +fi +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" +ac_abs_confdir=`( + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 + { (exit 1); exit 1; }; } + pwd)` +# When building in place, set srcdir=. +if test "$ac_abs_confdir" = "$ac_pwd"; then + srcdir=. +fi +# Remove unnecessary trailing slashes from srcdir. +# Double slashes in file names in object file debugging info +# mess up M-x gdb in Emacs. +case $srcdir in +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; +esac +for ac_var in $ac_precious_vars; do + eval ac_env_${ac_var}_set=\${${ac_var}+set} + eval ac_env_${ac_var}_value=\$${ac_var} + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} + eval ac_cv_env_${ac_var}_value=\$${ac_var} +done + +# +# Report the --help message. +# +if test "$ac_init_help" = "long"; then + # Omit some internal or obsolete options to make the list less imposing. + # This message is too long to be a string in the A/UX 3.1 sh. + cat <<_ACEOF +\`configure' configures this package to adapt to many kinds of systems. + +Usage: $0 [OPTION]... [VAR=VALUE]... + +To assign environment variables (e.g., CC, CFLAGS...), specify them as +VAR=VALUE. See below for descriptions of some of the useful variables. + +Defaults for the options are specified in brackets. + +Configuration: + -h, --help display this help and exit + --help=short display options specific to this package + --help=recursive display the short help of all the included packages + -V, --version display version information and exit + -q, --quiet, --silent do not print \`checking...' messages + --cache-file=FILE cache test results in FILE [disabled] + -C, --config-cache alias for \`--cache-file=config.cache' + -n, --no-create do not create output files + --srcdir=DIR find the sources in DIR [configure dir or \`..'] + +Installation directories: + --prefix=PREFIX install architecture-independent files in PREFIX + [$ac_default_prefix] + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX + [PREFIX] + +By default, \`make install' will install all the files in +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify +an installation prefix other than \`$ac_default_prefix' using \`--prefix', +for instance \`--prefix=\$HOME'. + +For better control, use the options below. + +Fine tuning of the installation directories: + --bindir=DIR user executables [EPREFIX/bin] + --sbindir=DIR system admin executables [EPREFIX/sbin] + --libexecdir=DIR program executables [EPREFIX/libexec] + --sysconfdir=DIR read-only single-machine data [PREFIX/etc] + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] + --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --libdir=DIR object code libraries [EPREFIX/lib] + --includedir=DIR C header files [PREFIX/include] + --oldincludedir=DIR C header files for non-gcc [/usr/include] + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] + --datadir=DIR read-only architecture-independent data [DATAROOTDIR] + --infodir=DIR info documentation [DATAROOTDIR/info] + --localedir=DIR locale-dependent data [DATAROOTDIR/locale] + --mandir=DIR man documentation [DATAROOTDIR/man] + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] + --htmldir=DIR html documentation [DOCDIR] + --dvidir=DIR dvi documentation [DOCDIR] + --pdfdir=DIR pdf documentation [DOCDIR] + --psdir=DIR ps documentation [DOCDIR] +_ACEOF + + cat <<\_ACEOF + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] +_ACEOF +fi + +if test -n "$ac_init_help"; then + + cat <<\_ACEOF + +Optional Features: + --disable-option-checking ignore unrecognized --enable/--with options + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) + --enable-FEATURE[=ARG] include FEATURE [ARG=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors + --enable-shared[=PKGS] build shared libraries [default=yes] + --enable-static[=PKGS] build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-libtool-lock avoid locking (might break parallel builds) + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + +Some influential environment variables: + CXX C++ compiler command + CXXFLAGS C++ compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + LIBS libraries to pass to the linker, e.g. -l + CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if + you have headers in a nonstandard directory + CC C compiler command + CFLAGS C compiler flags + CPP C preprocessor + CXXCPP C++ preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_ACEOF +ac_status=$? +fi + +if test "$ac_init_help" = "recursive"; then + # If there are subdirs, report their specific --help. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue + test -d "$ac_dir" || + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || + continue + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + cd "$ac_dir" || { ac_status=$?; continue; } + # Check for guested configure. + if test -f "$ac_srcdir/configure.gnu"; then + echo && + $SHELL "$ac_srcdir/configure.gnu" --help=recursive + elif test -f "$ac_srcdir/configure"; then + echo && + $SHELL "$ac_srcdir/configure" --help=recursive + else + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 + fi || ac_status=$? + cd "$ac_pwd" || { ac_status=$?; break; } + done +fi + +test -n "$ac_init_help" && exit $ac_status +if $ac_init_version; then + cat <<\_ACEOF +configure +generated by GNU Autoconf 2.63 + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +This configure script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it. +_ACEOF + exit +fi +cat >config.log <<_ACEOF +This file contains any messages produced by compilers while +running configure, to aid debugging if configure makes a mistake. + +It was created by $as_me, which was +generated by GNU Autoconf 2.63. Invocation command line was + + $ $0 $@ + +_ACEOF +exec 5>>config.log +{ +cat <<_ASUNAME +## --------- ## +## Platform. ## +## --------- ## + +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` + +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` + +_ASUNAME + +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + $as_echo "PATH: $as_dir" +done +IFS=$as_save_IFS + +} >&5 + +cat >&5 <<_ACEOF + + +## ----------- ## +## Core tests. ## +## ----------- ## + +_ACEOF + + +# Keep a trace of the command line. +# Strip out --no-create and --no-recursion so they do not pile up. +# Strip out --silent because we don't want to record it for future runs. +# Also quote any args containing shell meta-characters. +# Make two passes to allow for proper duplicate-argument suppression. +ac_configure_args= +ac_configure_args0= +ac_configure_args1= +ac_must_keep_next=false +for ac_pass in 1 2 +do + for ac_arg + do + case $ac_arg in + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil) + continue ;; + *\'*) + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + case $ac_pass in + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; + 2) + ac_configure_args1="$ac_configure_args1 '$ac_arg'" + if test $ac_must_keep_next = true; then + ac_must_keep_next=false # Got value, back to normal. + else + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac + fi + ac_configure_args="$ac_configure_args '$ac_arg'" + ;; + esac + done +done +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } + +# When interrupted or exit'd, cleanup temporary files, and complete +# config.log. We remove comments because anyway the quotes in there +# would cause problems or look ugly. +# WARNING: Use '\'' to represent an apostrophe within the trap. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. +trap 'exit_status=$? + # Save into config.log some information that might help in debugging. + { + echo + + cat <<\_ASBOX +## ---------------- ## +## Cache variables. ## +## ---------------- ## +_ASBOX + echo + # The following way of writing the cache mishandles newlines in values, +( + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) $as_unset $ac_var ;; + esac ;; + esac + done + (set) 2>&1 | + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + sed -n \ + "s/'\''/'\''\\\\'\'''\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" + ;; #( + *) + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) + echo + + cat <<\_ASBOX +## ----------------- ## +## Output variables. ## +## ----------------- ## +_ASBOX + echo + for ac_var in $ac_subst_vars + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + + if test -n "$ac_subst_files"; then + cat <<\_ASBOX +## ------------------- ## +## File substitutions. ## +## ------------------- ## +_ASBOX + echo + for ac_var in $ac_subst_files + do + eval ac_val=\$$ac_var + case $ac_val in + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; + esac + $as_echo "$ac_var='\''$ac_val'\''" + done | sort + echo + fi + + if test -s confdefs.h; then + cat <<\_ASBOX +## ----------- ## +## confdefs.h. ## +## ----------- ## +_ASBOX + echo + cat confdefs.h + echo + fi + test "$ac_signal" != 0 && + $as_echo "$as_me: caught signal $ac_signal" + $as_echo "$as_me: exit $exit_status" + } >&5 + rm -f core *.core core.conftest.* && + rm -f -r conftest* confdefs* conf$$* $ac_clean_files && + exit $exit_status +' 0 +for ac_signal in 1 2 13 15; do + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal +done +ac_signal=0 + +# confdefs.h avoids OS command line length limits that DEFS can exceed. +rm -f -r conftest* confdefs.h + +# Predefined preprocessor variables. + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_NAME "$PACKAGE_NAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_TARNAME "$PACKAGE_TARNAME" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_VERSION "$PACKAGE_VERSION" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_STRING "$PACKAGE_STRING" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" +_ACEOF + + +# Let the site file select an alternate cache file if it wants to. +# Prefer an explicitly selected file to automatically selected ones. +ac_site_file1=NONE +ac_site_file2=NONE +if test -n "$CONFIG_SITE"; then + ac_site_file1=$CONFIG_SITE +elif test "x$prefix" != xNONE; then + ac_site_file1=$prefix/share/config.site + ac_site_file2=$prefix/etc/config.site +else + ac_site_file1=$ac_default_prefix/share/config.site + ac_site_file2=$ac_default_prefix/etc/config.site +fi +for ac_site_file in "$ac_site_file1" "$ac_site_file2" +do + test "x$ac_site_file" = xNONE && continue + if test -r "$ac_site_file"; then + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 +$as_echo "$as_me: loading site script $ac_site_file" >&6;} + sed 's/^/| /' "$ac_site_file" >&5 + . "$ac_site_file" + fi +done + +if test -r "$cache_file"; then + # Some versions of bash will fail to source /dev/null (special + # files actually), so we avoid doing that. + if test -f "$cache_file"; then + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 +$as_echo "$as_me: loading cache $cache_file" >&6;} + case $cache_file in + [\\/]* | ?:[\\/]* ) . "$cache_file";; + *) . "./$cache_file";; + esac + fi +else + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 +$as_echo "$as_me: creating cache $cache_file" >&6;} + >$cache_file +fi + +# Check that the precious variables saved in the cache have kept the same +# value. +ac_cache_corrupted=false +for ac_var in $ac_precious_vars; do + eval ac_old_set=\$ac_cv_env_${ac_var}_set + eval ac_new_set=\$ac_env_${ac_var}_set + eval ac_old_val=\$ac_cv_env_${ac_var}_value + eval ac_new_val=\$ac_env_${ac_var}_value + case $ac_old_set,$ac_new_set in + set,) + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,set) + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} + ac_cache_corrupted=: ;; + ,);; + *) + if test "x$ac_old_val" != "x$ac_new_val"; then + # differences in whitespace do not lead to failure. + ac_old_val_w=`echo x $ac_old_val` + ac_new_val_w=`echo x $ac_new_val` + if test "$ac_old_val_w" != "$ac_new_val_w"; then + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} + ac_cache_corrupted=: + else + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} + eval $ac_var=\$ac_old_val + fi + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} + fi;; + esac + # Pass precious variables to config.status. + if test "$ac_new_set" = set; then + case $ac_new_val in + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *) ac_arg=$ac_var=$ac_new_val ;; + esac + case " $ac_configure_args " in + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; + esac + fi +done +if $ac_cache_corrupted; then + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} + { (exit 1); exit 1; }; } +fi + + + + + + + + + + + + + + + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +ac_config_headers="$ac_config_headers config.h" + +am__api_version='1.10' + +ac_aux_dir= +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do + if test -f "$ac_dir/install-sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f "$ac_dir/install.sh"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f "$ac_dir/shtool"; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 +$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} + { (exit 1); exit 1; }; } +fi + +# These three variables are undocumented and unsupported, +# and are intended to be withdrawn in a future Autoconf release. +# They can cause serious problems if a builder's source tree is in a directory +# whose full name contains unusual characters. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. + + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +# Reject install programs that cannot install multiple files. +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +$as_echo_n "checking for a BSD-compatible install... " >&6; } +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + rm -rf conftest.one conftest.two conftest.dir + echo one > conftest.one + echo two > conftest.two + mkdir conftest.dir + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && + test -s conftest.one && test -s conftest.two && + test -s conftest.dir/conftest.one && + test -s conftest.dir/conftest.two + then + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + fi + done + done + ;; +esac + +done +IFS=$as_save_IFS + +rm -rf conftest.one conftest.two conftest.dir + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. Don't cache a + # value for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + INSTALL=$ac_install_sh + fi +fi +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 +$as_echo "$INSTALL" >&6; } + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +$as_echo_n "checking whether build environment is sane... " >&6; } +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftest.file + ) +then + # Ok. + : +else + { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +$as_echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +{ $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } +test "$program_prefix" != NONE && + program_transform_name="s&^&$program_prefix&;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s&\$&$program_suffix&;$program_transform_name" +# Double any \ or $. +# By default was `s,x,x', remove it if useless. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` + +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} +fi + +{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } +if test -z "$MKDIR_P"; then + if test "${ac_cv_path_mkdir+set}" = set; then + $as_echo_n "(cached) " >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in mkdir gmkdir; do + for ac_exec_ext in '' $ac_executable_extensions; do + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( + 'mkdir (GNU coreutils) '* | \ + 'mkdir (coreutils) '* | \ + 'mkdir (fileutils) '4.1*) + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext + break 3;; + esac + done + done +done +IFS=$as_save_IFS + +fi + + if test "${ac_cv_path_mkdir+set}" = set; then + MKDIR_P="$ac_cv_path_mkdir -p" + else + # As a last resort, use the slow shell script. Don't cache a + # value for MKDIR_P within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the value is a relative name. + test -d ./--version && rmdir ./--version + MKDIR_P="$ac_install_sh -d" + fi +fi +{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 +$as_echo "$MKDIR_P" >&6; } + +mkdir_p="$MKDIR_P" +case $mkdir_p in + [\\/$]* | ?:[\\/]*) ;; + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; +esac + +for ac_prog in gawk mawk nawk awk +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AWK+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AWK="$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +AWK=$ac_cv_prog_AWK +if test -n "$AWK"; then + { $as_echo "$as_me:$LINENO: result: $AWK" >&5 +$as_echo "$AWK" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$AWK" && break +done + +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +set x ${MAKE-make} +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.make <<\_ACEOF +SHELL = /bin/sh +all: + @echo '@@@%%%=$(MAKE)=@@@%%%' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +case `${MAKE-make} -f conftest.make 2>/dev/null` in + *@@@%%%=?*=@@@%%%*) + eval ac_cv_prog_make_${ac_make}_set=yes;; + *) + eval ac_cv_prog_make_${ac_make}_set=no;; +esac +rm -f conftest.make +fi +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + SET_MAKE= +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + SET_MAKE="MAKE=${MAKE-make}" +fi + +rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null + +if test "`cd $srcdir && pwd`" != "`pwd`"; then + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output + # is not polluted with repeated "-I." + am__isrc=' -I$(srcdir)' + # test to see if srcdir already configured + if test -f $srcdir/config.status; then + { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } + fi +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi + + +# Define the identity of the package. + PACKAGE=supportware + VERSION=0.1 + + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + +# Some tools Automake needs. + +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} + + +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} + + +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} + + +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} + + +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} + +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} + +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +if test "$cross_compiling" != no; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +fi +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" + +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + + + + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:$LINENO: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +{ (ac_try="$ac_compiler --version >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler --version >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -v >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler -v >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -V >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler -V >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 +$as_echo_n "checking for C++ compiler default output file name... " >&6; } +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` + +# The possible output files: +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" + +ac_rmfiles= +for ac_file in $ac_files +do + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + * ) ac_rmfiles="$ac_rmfiles $ac_file";; + esac +done +rm -f $ac_rmfiles + +if { (ac_try="$ac_link_default" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link_default") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' +# in a Makefile. We should not override ac_cv_exeext if it was cached, +# so that the user can short-circuit this test for compilers unknown to +# Autoconf. +for ac_file in $ac_files '' +do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) + ;; + [ab].out ) + # We found the default executable, but exeext='' is most + # certainly right. + break;; + *.* ) + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + then :; else + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + fi + # We set ac_cv_exeext here because the later test for it is not + # safe: cross compilers may not add the suffix if given an `-o' + # argument, so we may need to know it at that point already. + # Even if this section looks crufty: it has the advantage of + # actually working. + break;; + * ) + break;; + esac +done +test "$ac_cv_exeext" = no && ac_cv_exeext= + +else + ac_file='' +fi + +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 +$as_echo "$ac_file" >&6; } +if test -z "$ac_file"; then + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: C++ compiler cannot create executables +See \`config.log' for more details." >&2;} + { (exit 77); exit 77; }; }; } +fi + +ac_exeext=$ac_cv_exeext + +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 +$as_echo_n "checking whether the C++ compiler works... " >&6; } +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 +# If not cross compiling, check that we can run a simple program. +if test "$cross_compiling" != yes; then + if { ac_try='./$ac_file' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + cross_compiling=no + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes + else + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: cannot run C++ compiled programs. +If you meant to cross compile, use \`--host'. +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } + fi + fi +fi +{ $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out +ac_clean_files=$ac_clean_files_save +# Check that the compiler produces executables we can run. If not, either +# the compiler is broken, or we cross compile. +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 +$as_echo_n "checking whether we are cross compiling... " >&6; } +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 +$as_echo "$cross_compiling" >&6; } + +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 +$as_echo_n "checking for suffix of executables... " >&6; } +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # If both `conftest.exe' and `conftest' are `present' (well, observable) +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will +# work properly (i.e., refer to `conftest.exe'), while it won't with +# `rm'. +for ac_file in conftest.exe conftest conftest.*; do + test -f "$ac_file" || continue + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + break;; + * ) break;; + esac +done +else + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi + +rm -f conftest$ac_cv_exeext +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 +$as_echo "$ac_cv_exeext" >&6; } + +rm -f conftest.$ac_ext +EXEEXT=$ac_cv_exeext +ac_exeext=$EXEEXT +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 +$as_echo_n "checking for suffix of object files... " >&6; } +if test "${ac_cv_objext+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.o conftest.obj +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + for ac_file in conftest.o conftest.obj conftest.*; do + test -f "$ac_file" || continue; + case $ac_file in + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` + break;; + esac +done +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi + +rm -f conftest.$ac_cv_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 +$as_echo "$ac_cv_objext" >&6; } +OBJEXT=$ac_cv_objext +ac_objext=$OBJEXT +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_compiler_gnu=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_compiler_gnu=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if test "${ac_cv_prog_cxx_g+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cxx_g=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + CXXFLAGS="" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cxx_g=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +DEPDIR="${am__leading_dot}deps" + +ac_config_commands="$ac_config_commands depfiles" + + +am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 +$as_echo_n "checking for style of include used by $am_make... " >&6; } +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi + + +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 +$as_echo "$_am_result" >&6; } +rm -f confinc confmf + +# Check whether --enable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then + enableval=$enable_dependency_tracking; +fi + +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi + if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' +else + AMDEP_TRUE='#' + AMDEP_FALSE= +fi + + + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +case `pwd` in + *\ * | *\ *) + { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; +esac + + + +macro_version='2.2.6' +macro_revision='1.3012' + + + + + + + + + + + + + +ltmain="$ac_aux_dir/ltmain.sh" + +# Make sure we can run config.sub. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || + { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} + { (exit 1); exit 1; }; } + +{ $as_echo "$as_me:$LINENO: checking build system type" >&5 +$as_echo_n "checking build system type... " >&6; } +if test "${ac_cv_build+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_build_alias=$build_alias +test "x$ac_build_alias" = x && + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` +test "x$ac_build_alias" = x && + { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +$as_echo "$ac_cv_build" >&6; } +case $ac_cv_build in +*-*-*) ;; +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 +$as_echo "$as_me: error: invalid value of canonical build" >&2;} + { (exit 1); exit 1; }; };; +esac +build=$ac_cv_build +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_build +shift +build_cpu=$1 +build_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +build_os=$* +IFS=$ac_save_IFS +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac + + +{ $as_echo "$as_me:$LINENO: checking host system type" >&5 +$as_echo_n "checking host system type... " >&6; } +if test "${ac_cv_host+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test "x$host_alias" = x; then + ac_cv_host=$ac_cv_build +else + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} + { (exit 1); exit 1; }; } +fi + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +$as_echo "$ac_cv_host" >&6; } +case $ac_cv_host in +*-*-*) ;; +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 +$as_echo "$as_me: error: invalid value of canonical host" >&2;} + { (exit 1); exit 1; }; };; +esac +host=$ac_cv_host +ac_save_IFS=$IFS; IFS='-' +set x $ac_cv_host +shift +host_cpu=$1 +host_vendor=$2 +shift; shift +# Remember, the first character of IFS is used to create $*, +# except with old shells: +host_os=$* +IFS=$ac_save_IFS +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. +set dummy ${ac_tool_prefix}gcc; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}gcc" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:$LINENO: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_CC"; then + ac_ct_CC=$CC + # Extract the first word of "gcc", so it can be a program name with args. +set dummy gcc; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="gcc" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +else + CC="$ac_cv_prog_CC" +fi + +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. +set dummy ${ac_tool_prefix}cc; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="${ac_tool_prefix}cc" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:$LINENO: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + fi +fi +if test -z "$CC"; then + # Extract the first word of "cc", so it can be a program name with args. +set dummy cc; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else + ac_prog_rejected=no +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + ac_prog_rejected=yes + continue + fi + ac_cv_prog_CC="cc" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +if test $ac_prog_rejected = yes; then + # We found a bogon in the path, so make sure we never use it. + set dummy $ac_cv_prog_CC + shift + if test $# != 0; then + # We chose a different compiler from the bogus one. + # However, it has the same basename, so the bogon will be chosen + # first if we set CC to just the basename; use the full file name. + shift + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" + fi +fi +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:$LINENO: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$CC"; then + if test -n "$ac_tool_prefix"; then + for ac_prog in cl.exe + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CC+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$CC"; then + ac_cv_prog_CC="$CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +CC=$ac_cv_prog_CC +if test -n "$CC"; then + { $as_echo "$as_me:$LINENO: result: $CC" >&5 +$as_echo "$CC" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CC" && break + done +fi +if test -z "$CC"; then + ac_ct_CC=$CC + for ac_prog in cl.exe +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CC"; then + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CC="$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_CC=$ac_cv_prog_ac_ct_CC +if test -n "$ac_ct_CC"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 +$as_echo "$ac_ct_CC" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CC" && break +done + + if test "x$ac_ct_CC" = x; then + CC="" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CC=$ac_ct_CC + fi +fi + +fi + + +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } + +# Provide some information about the compiler. +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +{ (ac_try="$ac_compiler --version >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler --version >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -v >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler -v >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -V >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler -V >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } +if test "${ac_cv_c_compiler_gnu+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_compiler_gnu=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_compiler_gnu=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_c_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 +$as_echo "$ac_cv_c_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +ac_test_CFLAGS=${CFLAGS+set} +ac_save_CFLAGS=$CFLAGS +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 +$as_echo_n "checking whether $CC accepts -g... " >&6; } +if test "${ac_cv_prog_cc_g+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_save_c_werror_flag=$ac_c_werror_flag + ac_c_werror_flag=yes + ac_cv_prog_cc_g=no + CFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_g=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + CFLAGS="" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_c_werror_flag=$ac_save_c_werror_flag + CFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_g=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_c_werror_flag=$ac_save_c_werror_flag +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 +$as_echo "$ac_cv_prog_cc_g" >&6; } +if test "$ac_test_CFLAGS" = set; then + CFLAGS=$ac_save_CFLAGS +elif test $ac_cv_prog_cc_g = yes; then + if test "$GCC" = yes; then + CFLAGS="-g -O2" + else + CFLAGS="-g" + fi +else + if test "$GCC" = yes; then + CFLAGS="-O2" + else + CFLAGS= + fi +fi +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } +if test "${ac_cv_prog_cc_c89+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_cv_prog_cc_c89=no +ac_save_CC=$CC +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ +struct buf { int x; }; +FILE * (*rcsopen) (struct buf *, struct stat *, int); +static char *e (p, i) + char **p; + int i; +{ + return p[i]; +} +static char *f (char * (*g) (char **, int), char **p, ...) +{ + char *s; + va_list v; + va_start (v,p); + s = g (p, va_arg (v,int)); + va_end (v); + return s; +} + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters + inside strings and character constants. */ +#define FOO(x) 'x' +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; + +int test (int i, double x); +struct s1 {int (*f) (int a);}; +struct s2 {int (*f) (double a);}; +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); +int argc; +char **argv; +int +main () +{ +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; + ; + return 0; +} +_ACEOF +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +do + CC="$ac_save_CC $ac_arg" + rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cc_c89=$ac_arg +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext + test "x$ac_cv_prog_cc_c89" != "xno" && break +done +rm -f conftest.$ac_ext +CC=$ac_save_CC + +fi +# AC_CACHE_VAL +case "x$ac_cv_prog_cc_c89" in + x) + { $as_echo "$as_me:$LINENO: result: none needed" >&5 +$as_echo "none needed" >&6; } ;; + xno) + { $as_echo "$as_me:$LINENO: result: unsupported" >&5 +$as_echo "unsupported" >&6; } ;; + *) + CC="$CC $ac_cv_prog_cc_c89" + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; +esac + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CC" am_compiler_list= + +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then + am__fastdepCC_TRUE= + am__fastdepCC_FALSE='#' +else + am__fastdepCC_TRUE='#' + am__fastdepCC_FALSE= +fi + + +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 +$as_echo_n "checking for a sed that does not truncate output... " >&6; } +if test "${ac_cv_path_SED+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ + for ac_i in 1 2 3 4 5 6 7; do + ac_script="$ac_script$as_nl$ac_script" + done + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed + $as_unset ac_script || ac_script= + if test -z "$SED"; then + ac_path_SED_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue +# Check for GNU ac_path_SED and select it if it is found. + # Check for GNU $ac_path_SED +case `"$ac_path_SED" --version 2>&1` in +*GNU*) + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo '' >> "conftest.nl" + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + ac_count=`expr $ac_count + 1` + if test $ac_count -gt ${ac_path_SED_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_SED="$ac_path_SED" + ac_path_SED_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_SED_found && break 3 + done + done +done +IFS=$as_save_IFS + if test -z "$ac_cv_path_SED"; then + { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5 +$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;} + { (exit 1); exit 1; }; } + fi +else + ac_cv_path_SED=$SED +fi + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 +$as_echo "$ac_cv_path_SED" >&6; } + SED="$ac_cv_path_SED" + rm -f conftest.sed + +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" + + + + + + + + + + + +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 +$as_echo_n "checking for grep that handles long lines and -e... " >&6; } +if test "${ac_cv_path_GREP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -z "$GREP"; then + ac_path_GREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in grep ggrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue +# Check for GNU ac_path_GREP and select it if it is found. + # Check for GNU $ac_path_GREP +case `"$ac_path_GREP" --version 2>&1` in +*GNU*) + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'GREP' >> "conftest.nl" + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + ac_count=`expr $ac_count + 1` + if test $ac_count -gt ${ac_path_GREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_GREP="$ac_path_GREP" + ac_path_GREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_GREP_found && break 3 + done + done +done +IFS=$as_save_IFS + if test -z "$ac_cv_path_GREP"; then + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + { (exit 1); exit 1; }; } + fi +else + ac_cv_path_GREP=$GREP +fi + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 +$as_echo "$ac_cv_path_GREP" >&6; } + GREP="$ac_cv_path_GREP" + + +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 +$as_echo_n "checking for egrep... " >&6; } +if test "${ac_cv_path_EGREP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 + then ac_cv_path_EGREP="$GREP -E" + else + if test -z "$EGREP"; then + ac_path_EGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in egrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue +# Check for GNU ac_path_EGREP and select it if it is found. + # Check for GNU $ac_path_EGREP +case `"$ac_path_EGREP" --version 2>&1` in +*GNU*) + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'EGREP' >> "conftest.nl" + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + ac_count=`expr $ac_count + 1` + if test $ac_count -gt ${ac_path_EGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_EGREP="$ac_path_EGREP" + ac_path_EGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_EGREP_found && break 3 + done + done +done +IFS=$as_save_IFS + if test -z "$ac_cv_path_EGREP"; then + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + { (exit 1); exit 1; }; } + fi +else + ac_cv_path_EGREP=$EGREP +fi + + fi +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 +$as_echo "$ac_cv_path_EGREP" >&6; } + EGREP="$ac_cv_path_EGREP" + + +{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5 +$as_echo_n "checking for fgrep... " >&6; } +if test "${ac_cv_path_FGREP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 + then ac_cv_path_FGREP="$GREP -F" + else + if test -z "$FGREP"; then + ac_path_FGREP_found=false + # Loop through the user's path and test for each of PROGNAME-LIST + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_prog in fgrep; do + for ac_exec_ext in '' $ac_executable_extensions; do + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue +# Check for GNU ac_path_FGREP and select it if it is found. + # Check for GNU $ac_path_FGREP +case `"$ac_path_FGREP" --version 2>&1` in +*GNU*) + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; +*) + ac_count=0 + $as_echo_n 0123456789 >"conftest.in" + while : + do + cat "conftest.in" "conftest.in" >"conftest.tmp" + mv "conftest.tmp" "conftest.in" + cp "conftest.in" "conftest.nl" + $as_echo 'FGREP' >> "conftest.nl" + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break + ac_count=`expr $ac_count + 1` + if test $ac_count -gt ${ac_path_FGREP_max-0}; then + # Best one so far, save it but keep looking for a better one + ac_cv_path_FGREP="$ac_path_FGREP" + ac_path_FGREP_max=$ac_count + fi + # 10*(2^10) chars as input seems more than enough + test $ac_count -gt 10 && break + done + rm -f conftest.in conftest.tmp conftest.nl conftest.out;; +esac + + $ac_path_FGREP_found && break 3 + done + done +done +IFS=$as_save_IFS + if test -z "$ac_cv_path_FGREP"; then + { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 +$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} + { (exit 1); exit 1; }; } + fi +else + ac_cv_path_FGREP=$FGREP +fi + + fi +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 +$as_echo "$ac_cv_path_FGREP" >&6; } + FGREP="$ac_cv_path_FGREP" + + +test -z "$GREP" && GREP=grep + + + + + + + + + + + + + + + + + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${lt_cv_path_LD+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } +if test "${lt_cv_path_NM+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_nm_to_check="${ac_tool_prefix}nm" + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/$lt_tmp_nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS="$lt_save_ifs" + done + : ${lt_cv_path_NM=no} +fi +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 +$as_echo "$lt_cv_path_NM" >&6; } +if test "$lt_cv_path_NM" != "no"; then + NM="$lt_cv_path_NM" +else + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$ac_tool_prefix"; then + for ac_prog in "dumpbin -symbols" "link -dump -symbols" + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DUMPBIN+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$DUMPBIN"; then + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5 +$as_echo "$DUMPBIN" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$DUMPBIN" && break + done +fi +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in "dumpbin -symbols" "link -dump -symbols" +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DUMPBIN"; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 +$as_echo "$ac_ct_DUMPBIN" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_DUMPBIN" && break +done + + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DUMPBIN=$ac_ct_DUMPBIN + fi +fi + + + if test "$DUMPBIN" != ":"; then + NM="$DUMPBIN" + fi +fi +test -z "$NM" && NM=nm + + + + + + +{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 +$as_echo_n "checking the name lister ($NM) interface... " >&6; } +if test "${lt_cv_nm_interface+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_nm_interface="BSD nm" + echo "int some_variable = 0;" > conftest.$ac_ext + (eval echo "\"\$as_me:4804: $ac_compile\"" >&5) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:4807: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:4810: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 +$as_echo "$lt_cv_nm_interface" >&6; } + +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 +$as_echo_n "checking whether ln -s works... " >&6; } +LN_S=$as_ln_s +if test "$LN_S" = "ln -s"; then + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 +$as_echo "no, using $LN_S" >&6; } +fi + +# find the maximum length of command line arguments +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 +$as_echo_n "checking the maximum length of command line arguments... " >&6; } +if test "${lt_cv_sys_max_cmd_len+set}" = set; then + $as_echo_n "(cached) " >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; + + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8 ; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ + = "XX$teststring$teststring"; } >/dev/null 2>&1 && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 +$as_echo "$lt_cv_sys_max_cmd_len" >&6; } +else + { $as_echo "$as_me:$LINENO: result: none" >&5 +$as_echo "none" >&6; } +fi +max_cmd_len=$lt_cv_sys_max_cmd_len + + + + + + +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} + +{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } +# Try some XSI features +xsi_shell=no +( _lt_dummy="a/b/c" + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ + = c,a/b,, \ + && eval 'test $(( 1 + 1 )) -eq 2 \ + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ + && xsi_shell=yes +{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5 +$as_echo "$xsi_shell" >&6; } + + +{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } +lt_shell_append=no +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ + >/dev/null 2>&1 \ + && lt_shell_append=yes +{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5 +$as_echo "$lt_shell_append" >&6; } + + +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi + + + + + +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac + + + + + + + + + +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 +$as_echo_n "checking for $LD option to reload object files... " >&6; } +if test "${lt_cv_ld_reload_flag+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_reload_flag='-r' +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 +$as_echo "$lt_cv_ld_reload_flag" >&6; } +reload_flag=$lt_cv_ld_reload_flag +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. +set dummy ${ac_tool_prefix}objdump; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OBJDUMP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$OBJDUMP"; then + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +OBJDUMP=$ac_cv_prog_OBJDUMP +if test -n "$OBJDUMP"; then + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5 +$as_echo "$OBJDUMP" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OBJDUMP"; then + ac_ct_OBJDUMP=$OBJDUMP + # Extract the first word of "objdump", so it can be a program name with args. +set dummy objdump; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OBJDUMP"; then + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OBJDUMP="objdump" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP +if test -n "$ac_ct_OBJDUMP"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 +$as_echo "$ac_ct_OBJDUMP" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OBJDUMP" = x; then + OBJDUMP="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OBJDUMP=$ac_ct_OBJDUMP + fi +else + OBJDUMP="$ac_cv_prog_OBJDUMP" +fi + +test -z "$OBJDUMP" && OBJDUMP=objdump + + + + + + + + + +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 +$as_echo_n "checking how to recognize dependent libraries... " >&6; } +if test "${lt_cv_deplibs_check_method+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_file_magic_cmd='$MAGIC_CMD' +lt_cv_file_magic_test_file= +lt_cv_deplibs_check_method='unknown' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# `unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# which responds to the $file_magic_cmd with a given extended regex. +# If you have `file' or equivalent on your system and you're not sure +# whether `pass_all' will *always* work, you probably want this one. + +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; + +beos*) + lt_cv_deplibs_check_method=pass_all + ;; + +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; + +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; + +cegcc) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; + +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; + +freebsd* | dragonfly*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 +$as_echo "$lt_cv_deplibs_check_method" >&6; } +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown + + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_AR+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + { $as_echo "$as_me:$LINENO: result: $AR" >&5 +$as_echo "$AR" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_AR="ar" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 +$as_echo "$ac_ct_AR" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_AR" = x; then + AR="false" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + AR=$ac_ct_AR + fi +else + AR="$ac_cv_prog_AR" +fi + +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru + + + + + + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. +set dummy ${ac_tool_prefix}strip; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_STRIP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$STRIP"; then + ac_cv_prog_STRIP="$STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_STRIP="${ac_tool_prefix}strip" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +STRIP=$ac_cv_prog_STRIP +if test -n "$STRIP"; then + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 +$as_echo "$STRIP" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_STRIP"; then + ac_ct_STRIP=$STRIP + # Extract the first word of "strip", so it can be a program name with args. +set dummy strip; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_STRIP"; then + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_STRIP="strip" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP +if test -n "$ac_ct_STRIP"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 +$as_echo "$ac_ct_STRIP" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_STRIP" = x; then + STRIP=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi + +test -z "$STRIP" && STRIP=: + + + + + + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_RANLIB+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$RANLIB"; then + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 +$as_echo "$RANLIB" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_RANLIB"; then + ac_ct_RANLIB=$RANLIB + # Extract the first word of "ranlib", so it can be a program name with args. +set dummy ranlib; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_RANLIB"; then + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_RANLIB="ranlib" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 +$as_echo "$ac_ct_RANLIB" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + RANLIB=$ac_ct_RANLIB + fi +else + RANLIB="$ac_cv_prog_RANLIB" +fi + +test -z "$RANLIB" && RANLIB=: + + + + + + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then + $as_echo_n "(cached) " >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32* | cegcc*) + symcode='[ABCDGISTW]' + ;; +hpux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris*) + symcode='[BDRT]' + ;; +sco3.2v5*) + symcode='[DT]' + ;; +sysv4.2uw2*) + symcode='[DT]' + ;; +sysv5* | sco5v6* | unixware* | OpenUNIX*) + symcode='[ABDT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Transform an extracted symbol line into a proper C declaration. +# Some systems (esp. on ia64) link data and code symbols differently, +# so use this general approach. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# Try without a prefix underscore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then + # Fake it for dumpbin and say T for any non-static function + # and D for any global variable. + # Also find C++ and __fastcall symbols from MSVC++, + # which start with @ or ?. + lt_cv_sys_global_symbol_pipe="$AWK '"\ +" {last_section=section; section=\$ 3};"\ +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ +" \$ 0!~/External *\|/{next};"\ +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ +" {if(hide[section]) next};"\ +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ +" s[1]~/^[@?]/{print s[1], s[1]; next};"\ +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ +" ' prfx=^$ac_symprfx" + else + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + fi + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <<_LT_EOF +#ifdef __cplusplus +extern "C" { +#endif +char nm_test_var; +void nm_test_func(void); +void nm_test_func(void){} +#ifdef __cplusplus +} +#endif +int main(){nm_test_var='a';nm_test_func();return(0);} +_LT_EOF + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then + cat <<_LT_EOF > conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +_LT_EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' + + cat <<_LT_EOF >> conftest.$ac_ext + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + void *address; +} +lt__PROGRAM__LTX_preloaded_symbols[] = +{ + { "@PROGRAM@", (void *) 0 }, +_LT_EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext + cat <<\_LT_EOF >> conftest.$ac_ext + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt__PROGRAM__LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif +_LT_EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -rf conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + { $as_echo "$as_me:$LINENO: result: failed" >&5 +$as_echo "failed" >&6; } +else + { $as_echo "$as_me:$LINENO: result: ok" >&5 +$as_echo "ok" >&6; } +fi + + + + + + + + + + + + + + + + + + + + + + + +# Check whether --enable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval=$enable_libtool_lock; +fi + +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 6016 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +s390*-*linux*|s390*-*tpf*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.o` in + *32-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_i386_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*kfreebsd*-gnu) + LD="${LD-ld} -m elf_x86_64_fbsd" + ;; + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*|s390*-*tpf*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 +$as_echo_n "checking whether the C compiler needs -belf... " >&6; } +if test "${lt_cv_cc_needs_belf+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + lt_cv_cc_needs_belf=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + lt_cv_cc_needs_belf=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 +$as_echo "$lt_cv_cc_needs_belf" >&6; } + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +sparc*-*solaris*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.o` in + *64-bit*) + case $lt_cv_prog_gnu_ld in + yes*) LD="${LD-ld} -m elf64_sparc" ;; + *) + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then + LD="${LD-ld} -64" + fi + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; +esac + +need_locks="$enable_libtool_lock" + + + case $host_os in + rhapsody* | darwin*) + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$DSYMUTIL"; then + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +DSYMUTIL=$ac_cv_prog_DSYMUTIL +if test -n "$DSYMUTIL"; then + { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 +$as_echo "$DSYMUTIL" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_DSYMUTIL"; then + ac_ct_DSYMUTIL=$DSYMUTIL + # Extract the first word of "dsymutil", so it can be a program name with args. +set dummy dsymutil; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_DSYMUTIL"; then + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL +if test -n "$ac_ct_DSYMUTIL"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 +$as_echo "$ac_ct_DSYMUTIL" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_DSYMUTIL" = x; then + DSYMUTIL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + DSYMUTIL=$ac_ct_DSYMUTIL + fi +else + DSYMUTIL="$ac_cv_prog_DSYMUTIL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_NMEDIT+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$NMEDIT"; then + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +NMEDIT=$ac_cv_prog_NMEDIT +if test -n "$NMEDIT"; then + { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5 +$as_echo "$NMEDIT" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_NMEDIT"; then + ac_ct_NMEDIT=$NMEDIT + # Extract the first word of "nmedit", so it can be a program name with args. +set dummy nmedit; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_NMEDIT"; then + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_NMEDIT="nmedit" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT +if test -n "$ac_ct_NMEDIT"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 +$as_echo "$ac_ct_NMEDIT" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_NMEDIT" = x; then + NMEDIT=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + NMEDIT=$ac_ct_NMEDIT + fi +else + NMEDIT="$ac_cv_prog_NMEDIT" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. +set dummy ${ac_tool_prefix}lipo; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_LIPO+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$LIPO"; then + ac_cv_prog_LIPO="$LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_LIPO="${ac_tool_prefix}lipo" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +LIPO=$ac_cv_prog_LIPO +if test -n "$LIPO"; then + { $as_echo "$as_me:$LINENO: result: $LIPO" >&5 +$as_echo "$LIPO" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_LIPO"; then + ac_ct_LIPO=$LIPO + # Extract the first word of "lipo", so it can be a program name with args. +set dummy lipo; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_LIPO"; then + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_LIPO="lipo" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO +if test -n "$ac_ct_LIPO"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 +$as_echo "$ac_ct_LIPO" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_LIPO" = x; then + LIPO=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + LIPO=$ac_ct_LIPO + fi +else + LIPO="$ac_cv_prog_LIPO" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL"; then + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL="${ac_tool_prefix}otool" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +OTOOL=$ac_cv_prog_OTOOL +if test -n "$OTOOL"; then + { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5 +$as_echo "$OTOOL" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL"; then + ac_ct_OTOOL=$OTOOL + # Extract the first word of "otool", so it can be a program name with args. +set dummy otool; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL"; then + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL="otool" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL +if test -n "$ac_ct_OTOOL"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 +$as_echo "$ac_ct_OTOOL" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL" = x; then + OTOOL=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL=$ac_ct_OTOOL + fi +else + OTOOL="$ac_cv_prog_OTOOL" +fi + + if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. +set dummy ${ac_tool_prefix}otool64; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_OTOOL64+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$OTOOL64"; then + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +OTOOL64=$ac_cv_prog_OTOOL64 +if test -n "$OTOOL64"; then + { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5 +$as_echo "$OTOOL64" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +if test -z "$ac_cv_prog_OTOOL64"; then + ac_ct_OTOOL64=$OTOOL64 + # Extract the first word of "otool64", so it can be a program name with args. +set dummy otool64; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_OTOOL64"; then + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_OTOOL64="otool64" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 +if test -n "$ac_ct_OTOOL64"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 +$as_echo "$ac_ct_OTOOL64" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + if test "x$ac_ct_OTOOL64" = x; then + OTOOL64=":" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + OTOOL64=$ac_ct_OTOOL64 + fi +else + OTOOL64="$ac_cv_prog_OTOOL64" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 +$as_echo_n "checking for -single_module linker flag... " >&6; } +if test "${lt_cv_apple_cc_single_mod+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_apple_cc_single_mod=no + if test -z "${LT_MULTI_MODULE}"; then + # By default we will add the -single_module flag. You can override + # by either setting the environment variable LT_MULTI_MODULE + # non-empty at configure time, or by adding -multi_module to the + # link flags. + rm -rf libconftest.dylib* + echo "int foo(void){return 1;}" > conftest.c + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ +-dynamiclib -Wl,-single_module conftest.c" >&5 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err + _lt_result=$? + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then + lt_cv_apple_cc_single_mod=yes + else + cat conftest.err >&5 + fi + rm -rf libconftest.dylib* + rm -f conftest.* + fi +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 +$as_echo "$lt_cv_apple_cc_single_mod" >&6; } + { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_ld_exported_symbols_list=no + save_LDFLAGS=$LDFLAGS + echo "_main" > conftest.sym + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + lt_cv_ld_exported_symbols_list=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + lt_cv_ld_exported_symbols_list=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } + case $host_os in + rhapsody* | darwin1.[012]) + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; + darwin1.*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + darwin*) # darwin 5.x on + # if running on 10.5 or later, the deployment target defaults + # to the OS version, if on x86, and 10.4, the deployment + # target defaults to 10.4. Don't you love it? + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in + 10.0,*86*-darwin8*|10.0,*-darwin[91]*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + 10.[012]*) + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; + 10.*) + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; + esac + ;; + esac + if test "$lt_cv_apple_cc_single_mod" = "yes"; then + _lt_dar_single_mod='$single_module' + fi + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' + else + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + if test "$DSYMUTIL" != ":"; then + _lt_dsymutil='~$DSYMUTIL $lib || :' + else + _lt_dsymutil= + fi + ;; + esac + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +$as_echo_n "checking how to run the C preprocessor... " >&6; } +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi + +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + # Broken: success on invalid input. +continue +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi + +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 +$as_echo "$CPP" >&6; } +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi + +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + # Broken: success on invalid input. +continue +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi + +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&5 +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 +$as_echo_n "checking for ANSI C header files... " >&6; } +if test "${ac_cv_header_stdc+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#include +#include + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_header_stdc=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_header_stdc=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +if test $ac_cv_header_stdc = yes; then + # SunOS 4.x string.h does not declare mem*, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "memchr" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "free" >/dev/null 2>&1; then + : +else + ac_cv_header_stdc=no +fi +rm -f conftest* + +fi + +if test $ac_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + if test "$cross_compiling" = yes; then + : +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +#include +#if ((' ' & 0x0FF) == 0x020) +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +#else +# define ISLOWER(c) \ + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) +#endif + +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) +int +main () +{ + int i; + for (i = 0; i < 256; i++) + if (XOR (islower (i), ISLOWER (i)) + || toupper (i) != TOUPPER (i)) + return 2; + return 0; +} +_ACEOF +rm -f conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + $as_echo "$as_me: program exited with status $ac_status" >&5 +$as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +ac_cv_header_stdc=no +fi +rm -rf conftest.dSYM +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + + +fi +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 +$as_echo "$ac_cv_header_stdc" >&6; } +if test $ac_cv_header_stdc = yes; then + +cat >>confdefs.h <<\_ACEOF +#define STDC_HEADERS 1 +_ACEOF + +fi + +# On IRIX 5.3, sys/types and inttypes.h are conflicting. + + + + + + + + + +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ + inttypes.h stdint.h unistd.h +do +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 +$as_echo_n "checking for $ac_header... " >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + eval "$as_ac_Header=yes" +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_Header=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +ac_res=`eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +as_val=`eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` + if test "x$as_val" = x""yes; then + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +for ac_header in dlfcn.h +do +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 +$as_echo_n "checking for $ac_header... " >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default + +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + eval "$as_ac_Header=yes" +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + eval "$as_ac_Header=no" +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +ac_res=`eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +as_val=`eval 'as_val=${'$as_ac_Header'} + $as_echo "$as_val"'` + if test "x$as_val" = x""yes; then + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + { $as_echo "$as_me:$LINENO: result: $CXX" >&5 +$as_echo "$CXX" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done +IFS=$as_save_IFS + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +$as_echo "$ac_ct_CXX" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + test -n "$ac_ct_CXX" && break +done + + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} +ac_tool_warned=yes ;; +esac + CXX=$ac_ct_CXX + fi +fi + + fi +fi +# Provide some information about the compiler. +$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5 +set X $ac_compile +ac_compiler=$2 +{ (ac_try="$ac_compiler --version >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler --version >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -v >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler -v >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (ac_try="$ac_compiler -V >&5" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compiler -V >&5") 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_compiler_gnu=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_compiler_gnu=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } +if test $ac_compiler_gnu = yes; then + GXX=yes +else + GXX= +fi +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +$as_echo_n "checking whether $CXX accepts -g... " >&6; } +if test "${ac_cv_prog_cxx_g+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_save_cxx_werror_flag=$ac_cxx_werror_flag + ac_cxx_werror_flag=yes + ac_cv_prog_cxx_g=no + CXXFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cxx_g=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + CXXFLAGS="" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_cv_prog_cxx_g=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + ac_cxx_werror_flag=$ac_save_cxx_werror_flag +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +$as_echo "$ac_cv_prog_cxx_g" >&6; } +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CXX" am_compiler_list= + +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +$as_echo_n "checking dependency style of $depcc... " >&6; } +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 +$as_echo_n "checking how to run the C++ preprocessor... " >&6; } +if test -z "$CXXCPP"; then + if test "${ac_cv_prog_CXXCPP+set}" = set; then + $as_echo_n "(cached) " >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi + +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then + # Broken: success on invalid input. +continue +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi + +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 +$as_echo "$CXXCPP" >&6; } +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then + : +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi + +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether nonexistent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || + test ! -s conftest.err + }; then + # Broken: success on invalid input. +continue +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi + +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +_lt_caught_CXX_error=yes; } +fi + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +else + _lt_caught_CXX_error=yes +fi + + + + + +# Set options + + + + enable_dlopen=no + + + enable_win32_dll=no + + + # Check whether --enable-shared was given. +if test "${enable_shared+set}" = set; then + enableval=$enable_shared; p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_shared=yes +fi + + + + + + + + + + # Check whether --enable-static was given. +if test "${enable_static+set}" = set; then + enableval=$enable_static; p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_static=yes +fi + + + + + + + + + + +# Check whether --with-pic was given. +if test "${with_pic+set}" = set; then + withval=$with_pic; pic_mode="$withval" +else + pic_mode=default +fi + + +test -z "$pic_mode" && pic_mode=default + + + + + + + + # Check whether --enable-fast-install was given. +if test "${enable_fast_install+set}" = set; then + enableval=$enable_fast_install; p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac +else + enable_fast_install=yes +fi + + + + + + + + + + + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' + + + + + + + + + + + + + + + + + + + + + + + + + +test -z "$LN_S" && LN_S="ln -s" + + + + + + + + + + + + + + +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5 +$as_echo_n "checking for objdir... " >&6; } +if test "${lt_cv_objdir+set}" = set; then + $as_echo_n "(cached) " >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 +$as_echo "$lt_cv_objdir" >&6; } +objdir=$lt_cv_objdir + + + + + +cat >>confdefs.h <<_ACEOF +#define LT_OBJDIR "$lt_cv_objdir/" +_ACEOF + + + + + + + + + + + + + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to delay expansion of an escaped single quote. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Global variables: +ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except MSVC, +# which needs '.lib'). +libext=a + +with_gnu_ld="$lt_cv_prog_gnu_ld" + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS +test -z "$LD" && LD=ld +test -z "$ac_objext" && ac_objext=o + +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# Only perform the check for file, if the check method requires it +test -z "$MAGIC_CMD" && MAGIC_CMD=file +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + + + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + { $as_echo "$as_me:$LINENO: checking for file" >&5 +$as_echo_n "checking for file... " >&6; } +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + $as_echo_n "(cached) " >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <<_LT_EOF 1>&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +_LT_EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +$as_echo "$MAGIC_CMD" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi + + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +# Use C for the default configuration in the libtool script + +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}' + + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + +# Save the default compiler, since it gets overwritten when the other +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. +compiler_DEFAULT=$CC + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + +ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + +if test -n "$compiler"; then + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:8588: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:8592: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + + + + + + + lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + if test "$GCC" = yes; then + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic='-fno-common' + ;; + + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic=-Kconform_pic + fi + ;; + + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + else + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' + fi + ;; + + mingw* | cygwin* | pw32* | os2* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static='-non_shared' + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + # old Intel for x86_64 which still supported -KPIC. + ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc* | ifort*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fPIC' + lt_prog_compiler_static='-static' + ;; + # Lahey Fortran 8.1. + lf95*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='--shared' + lt_prog_compiler_static='--static' + ;; + pgcc* | pgf77* | pgf90* | pgf95*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-Bstatic' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + xl*) + # IBM XL C 8.0/Fortran 10.1 on PPC + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-qpic' + lt_prog_compiler_static='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C 5.9 + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + ;; + *Sun\ F*) + # Sun Fortran 8.3 passes all unrecognized flags to the linker + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + lt_prog_compiler_wl='' + ;; + esac + ;; + esac + ;; + + newsos6) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + *nto* | *qnx*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic='-fPIC -shared' + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + + rdos*) + lt_prog_compiler_static='-non_shared' + ;; + + solaris*) + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' + fi + ;; + + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 +$as_echo "$lt_prog_compiler_pic" >&6; } + + + + + + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:8927: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:8931: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac +else + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no +fi + +fi + + + + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works=yes + fi + else + lt_cv_prog_compiler_static_works=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 +$as_echo "$lt_cv_prog_compiler_static_works" >&6; } + +if test x"$lt_cv_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + + + + + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:9032: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:9036: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + + + + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:9087: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:9091: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +$as_echo "$lt_cv_prog_compiler_c_o" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + + + + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + runpath_var= + allow_undefined_flag= + always_export_symbols=no + archive_cmds= + archive_expsym_cmds= + compiler_needs_object=no + enable_shared_with_static_runtimes=no + export_dynamic_flag_spec= + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + hardcode_automatic=no + hardcode_direct=no + hardcode_direct_absolute=no + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + inherit_rpath=no + link_all_deplibs=unknown + module_cmds= + module_expsym_cmds= + old_archive_from_new_cmds= + old_archive_from_expsyms_cmds= + thread_safe_flag_spec= + whole_archive_flag_spec= + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + # Exclude shared library initialization/finalization symbols. + extract_expsyms_cmds= + + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + interix*) + # we just hope/assume this is gcc and not c89 (= MSVC++) + with_gnu_ld=yes + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix[3-9]*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +_LT_EOF + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs=no + fi + ;; + + interix[3-9]*) + hardcode_direct=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + + gnu* | linux* | tpf* | k*bsd*-gnu) + tmp_diet=no + if test "$host_os" = linux-dietlibc; then + case $cc_basename in + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) + esac + fi + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ + && test "$tmp_diet" = no + then + tmp_addflag= + tmp_sharedflag='-shared' + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag' + ;; + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + tmp_addflag=' $pic_flag -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + lf95*) # Lahey Fortran 8.1 + whole_archive_flag_spec= + tmp_sharedflag='--shared' ;; + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) + tmp_sharedflag='-qmkshrobj' + tmp_addflag= ;; + esac + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) # Sun C 5.9 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object=yes + tmp_sharedflag='-G' ;; + *Sun\ F*) # Sun Fortran 8.3 + tmp_sharedflag='-G' ;; + esac + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + + case $cc_basename in + xlf*) + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld='-rpath $libdir' + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' + fi + ;; + esac + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris*) + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) + case `$LD -v 2>&1` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) + ld_shlibs=no + cat <<_LT_EOF 1>&2 + +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not +*** reliably create shared libraries on SCO systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +_LT_EOF + ;; + *) + # For security reasons, it is highly recommended that you always + # use absolute paths for naming shared libraries, and exclude the + # DT_RUNPATH tag from executables and libraries. But doing so + # requires that you compile everything twice, which is a pain. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_direct_absolute=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + file_list_spec='${wl}-f,' + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + ;; + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an + # empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec='$convenience' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds its shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='' + ;; + m68k) + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac + ;; + + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_from_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; + + darwin* | rhapsody*) + + + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + allow_undefined_flag="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + + else + ld_shlibs=no + fi + + ;; + + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + freebsd1*) + ld_shlibs=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + fi + ;; + + hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case $host_cpu in + hppa*64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case $host_cpu in + hppa*64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + ia64*) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + *) + hardcode_direct=yes + hardcode_direct_absolute=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # Try to use the -exported_symbol ld option, if it does not + # work, assume that -exports_file does not work either and + # implicitly export all symbols. + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" + cat >conftest.$ac_ext <<_ACEOF +int foo(void) {} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' + +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS="$save_LDFLAGS" + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + inherit_rpath=yes + link_all_deplibs=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; + + *nto* | *qnx*) + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct=yes + hardcode_shlibpath_var=no + hardcode_direct_absolute=yes + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + else + ld_shlibs=no + fi + ;; + + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + fi + archive_cmds_need_lc='no' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + archive_cmds_need_lc='no' + hardcode_libdir_separator=: + ;; + + solaris*) + no_undefined_flag=' -z defs' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + else + case `$CC -V 2>&1` in + *"Compilers 5.0"*) + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' + ;; + *) + wlarc='${wl}' + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' + ;; + esac + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. GCC discards it without `$wl', + # but is careful enough not to reorder. + # Supported since Solaris 2.6 (maybe 2.5.1?) + if test "$GCC" = yes; then + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + else + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' + fi + ;; + esac + link_all_deplibs=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag='${wl}-z,text' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag='${wl}-z,text' + allow_undefined_flag='${wl}-z,nodefs' + archive_cmds_need_lc=no + hardcode_shlibpath_var=no + hardcode_libdir_flag_spec='${wl}-R,$libdir' + hardcode_libdir_separator=':' + link_all_deplibs=yes + export_dynamic_flag_spec='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + + if test x$host_vendor = xsni; then + case $host in + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + export_dynamic_flag_spec='${wl}-Blargedynsym' + ;; + esac + fi + fi + +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5 +$as_echo "$ld_shlibs" >&6; } +test "$ld_shlibs" = no && can_build_shared=no + +with_gnu_ld=$with_gnu_ld + + + + + + + + + + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + pic_flag=$lt_prog_compiler_pic + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 +$as_echo "$archive_cmds_need_lc" >&6; } + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +if test "$GCC" = yes; then + case $host_os in + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; + *) lt_awk_arg="/^libraries:/" ;; + esac + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` + else + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + # Ok, now we have the path, separated by spaces, we can step through it + # and add multilib dir if necessary. + lt_tmp_lt_search_path_spec= + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` + for lt_sys_path in $lt_search_path_spec; do + if test -d "$lt_sys_path/$lt_multi_os_dir"; then + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" + else + test -d "$lt_sys_path" && \ + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" + fi + done + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' +BEGIN {RS=" "; FS="/|\n";} { + lt_foo=""; + lt_count=0; + for (lt_i = NF; lt_i > 0; lt_i--) { + if ($lt_i != "" && $lt_i != ".") { + if ($lt_i == "..") { + lt_count++; + } else { + if (lt_count == 0) { + lt_foo="/" $lt_i lt_foo; + } else { + lt_count--; + } + } + } + } + if (lt_foo != "") { lt_freq[lt_foo]++; } + if (lt_freq[lt_foo] == 1) { print lt_foo; } +}'` + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then + shlibpath_overrides_runpath=yes +fi + +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || + test -n "$runpath_var" || + test "X$hardcode_automatic" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5 +$as_echo "$hardcode_action" >&6; } + +if test "$hardcode_action" = relink || + test "$inherit_rpath" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32* | cegcc*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_lib_dl_dlopen=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dl_dlopen=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 +$as_echo_n "checking for shl_load... " >&6; } +if test "${ac_cv_func_shl_load+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shl_load to an innocuous variant, in case declares shl_load. + For example, HP-UX 11i declares gettimeofday. */ +#define shl_load innocuous_shl_load + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shl_load (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shl_load + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_shl_load || defined __stub___shl_load +choke me +#endif + +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_func_shl_load=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_shl_load=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +$as_echo "$ac_cv_func_shl_load" >&6; } +if test "x$ac_cv_func_shl_load" = x""yes; then + lt_cv_dlopen="shl_load" +else + { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +$as_echo_n "checking for shl_load in -ldld... " >&6; } +if test "${ac_cv_lib_dld_shl_load+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char shl_load (); +int +main () +{ +return shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_lib_dld_shl_load=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dld_shl_load=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; } +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" +else + { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 +$as_echo_n "checking for dlopen... " >&6; } +if test "${ac_cv_func_dlopen+set}" = set; then + $as_echo_n "(cached) " >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define dlopen to an innocuous variant, in case declares dlopen. + For example, HP-UX 11i declares gettimeofday. */ +#define dlopen innocuous_dlopen + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef dlopen + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined __stub_dlopen || defined __stub___dlopen +choke me +#endif + +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_func_dlopen=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_func_dlopen=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +$as_echo "$ac_cv_func_dlopen" >&6; } +if test "x$ac_cv_func_dlopen" = x""yes; then + lt_cv_dlopen="dlopen" +else + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +$as_echo_n "checking for dlopen in -ldl... " >&6; } +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_lib_dl_dlopen=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dl_dlopen=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; } +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +$as_echo_n "checking for dlopen in -lsvld... " >&6; } +if test "${ac_cv_lib_svld_dlopen+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dlopen (); +int +main () +{ +return dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_lib_svld_dlopen=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_svld_dlopen=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +$as_echo "$ac_cv_lib_svld_dlopen" >&6; } +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +$as_echo_n "checking for dld_link in -ldld... " >&6; } +if test "${ac_cv_lib_dld_dld_link+set}" = set; then + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char dld_link (); +int +main () +{ +return dld_link (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + ac_cv_lib_dld_dld_link=yes +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_cv_lib_dld_dld_link=no +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +$as_echo "$ac_cv_lib_dld_dld_link" >&6; } +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +$as_echo_n "checking whether a program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 11887 "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +$as_echo "$lt_cv_dlopen_self" >&6; } + + if test "x$lt_cv_dlopen_self" = xyes; then + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" + { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } +if test "${lt_cv_dlopen_self_static+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext <<_LT_EOF +#line 11983 "configure" +#include "confdefs.h" + +#if HAVE_DLFCN_H +#include +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + else + puts (dlerror ()); + + return status; +} +_LT_EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) >&5 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +$as_echo "$lt_cv_dlopen_self_static" >&6; } + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +$as_echo_n "checking whether stripping libraries is possible... " >&6; } +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { $as_echo "$as_me:$LINENO: result: yes" >&5 +$as_echo "yes" >&6; } + else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + fi + ;; + *) + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } + ;; + esac +fi + + + + + + + + + + + + + # Report which library types will actually be built + { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 +$as_echo_n "checking if libtool supports shared libraries... " >&6; } + { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 +$as_echo "$can_build_shared" >&6; } + + { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 +$as_echo_n "checking whether to build shared libraries... " >&6; } + test "$can_build_shared" = "no" && enable_shared=no + + # On AIX, shared libraries and static libraries use the same namespace, and + # are all built from PIC. + case $host_os in + aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; + esac + { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 +$as_echo "$enable_shared" >&6; } + + { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 +$as_echo_n "checking whether to build static libraries... " >&6; } + # Make sure either enable_shared or enable_static is yes. + test "$enable_shared" = yes || enable_static=yes + { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 +$as_echo "$enable_static" >&6; } + + + + +fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +CC="$lt_save_CC" + + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +compiler_needs_object_CXX=no +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_direct_absolute_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_shlibpath_var_CXX=unsupported +hardcode_automatic_CXX=no +inherit_rpath_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Source file extension for C++ test sources. +ac_ext=cpp + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# No sense in running all these tests if we already determined that +# the CXX compiler isn't working. Some variables (like enable_shared) +# are currently assumed to apply to all compilers on this platform, +# and will be corrupted by setting them based on a non-working compiler. +if test "$_lt_caught_CXX_error" != yes; then + # Code to be used in simple compile tests + lt_simple_compile_test_code="int some_variable = 0;" + + # Code to be used in simple link tests + lt_simple_link_test_code='int main(int, char *[]) { return(0); }' + + # ltmain only uses $CC for tagged configurations so make sure $CC is set. + + + + + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + + # save warnings/boilerplate of simple test code + ac_outfile=conftest.$ac_objext +echo "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$RM conftest* + + ac_outfile=conftest.$ac_objext +echo "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$RM -r conftest* + + + # Allow CC to be a program name with arguments. + lt_save_CC=$CC + lt_save_LD=$LD + lt_save_GCC=$GCC + GCC=$GXX + lt_save_with_gnu_ld=$with_gnu_ld + lt_save_path_LD=$lt_cv_path_LD + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx + else + $as_unset lt_cv_prog_gnu_ld + fi + if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX + else + $as_unset lt_cv_path_LD + fi + test -z "${LDCXX+set}" || LD=$LDCXX + CC=${CXX-"c++"} + compiler=$CC + compiler_CXX=$CC + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + + if test -n "$compiler"; then + # We don't want -fno-exception when compiling C++ code, so set the + # no_builtin_flag separately + if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' + else + lt_prog_compiler_no_builtin_flag_CXX= + fi + + if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + + +# Check whether --with-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi + +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +$as_echo_n "checking for ld used by $CC... " >&6; } + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5 +$as_echo_n "checking for GNU ld... " >&6; } +else + { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +$as_echo_n "checking for non-GNU ld... " >&6; } +fi +if test "${lt_cv_path_LD+set}" = set; then + $as_echo_n "(cached) " >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +$as_echo "$LD" >&6; } +else + { $as_echo "$as_me:$LINENO: result: no" >&5 +$as_echo "no" >&6; } +fi +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } +if test "${lt_cv_prog_gnu_ld+set}" = set; then + $as_echo_n "(cached) " >&6 +else + # I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 &5 +$as_echo "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | + $GREP 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + GXX=no + with_gnu_ld=no + wlarc= + fi + + # PORTME: fill in a description of your system's C++ link characteristics + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + ld_shlibs_CXX=yes + case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix[4-9]*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + ;; + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + file_list_spec_CXX='${wl}-f,' + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && + strings "$collect2name" | $GREP resolve_lib_name >/dev/null + then + # We have reworked collect2 + : + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + export_dynamic_flag_spec_CXX='${wl}-bexpall' + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to + # export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty + # executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an + # empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + +lt_aix_libpath_sed=' + /Import File Strings/,/^$/ { + /^0/ { + s/^0 *\(.*\)$/\1/ + p + } + }' +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` +fi +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX='$convenience' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds its shared + # libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + beos*) + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_CXX=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_CXX=no + fi + ;; + + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + cygwin* | mingw* | pw32* | cegcc*) + # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + + + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + allow_undefined_flag_CXX="$_lt_dar_allow_undefined" + case $cc_basename in + ifort*) _lt_dar_can_shared=yes ;; + *) _lt_dar_can_shared=$GCC ;; + esac + if test "$_lt_dar_can_shared" = "yes"; then + output_verbose_link_cmd=echo + archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" + module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" + module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" + if test "$lt_cv_apple_cc_single_mod" != "yes"; then + archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" + archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" + fi + + else + ld_shlibs_CXX=no + fi + + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before + # switch to ELF + ld_shlibs_CXX=no + ;; + + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + + freebsd* | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + + gnu*) + ;; + + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + case $host_cpu in + hppa*64*|ia64*) + ;; + *) + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case $host_cpu in + hppa*64*|ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + *) + hardcode_direct_CXX=yes + hardcode_direct_absolute_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case $host_cpu in + hppa*64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + ia64*) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + interix[3-9]*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}-E' + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. + # Instead, shared libraries are loaded at an image base (0x10000000 by + # default) and relocated if they conflict, which is a slow very memory + # consuming and fragmenting process. To avoid this, we pick a random, + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link + # time. Moving up from 0x10000000 also allows more sbrk(2) space. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + inherit_rpath_CXX=yes + ;; + + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc* | ecpc* ) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + case `$CC -V` in + *pgCC\ [1-5]* | *pgcpp\ [1-5]*) + prelink_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' + old_archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ + $RANLIB $oldlib' + archive_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='tpldir=Template.dir~ + rm -rf $tpldir~ + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + *) # Version 6 will use weak symbols + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + xl*) + # IBM XL 8.0 on PPC, with GNU ld + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + if test "x$supports_anon_versioning" = xyes; then + archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' + hardcode_libdir_flag_spec_CXX='-R$libdir' + whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' + compiler_needs_object_CXX=yes + + # Not sure whether something based on + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 + # would be better. + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + esac + ;; + esac + ;; + + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + + *nto* | *qnx*) + ld_shlibs_CXX=yes + ;; + + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + + openbsd*) + if test -f /usr/libexec/ld.so; then + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + hardcode_direct_absolute_CXX=yes + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd=echo + else + ld_shlibs_CXX=no + fi + ;; + + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + case $host in + osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; + *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; + esac + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + case $host in + osf3*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + ;; + *) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ + $RM $lib.exp' + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + ;; + esac + + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + case $host in + osf3*) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + ;; + esac + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + archive_cmds_need_lc_CXX=yes + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine and reorder linker options, + # but understands `-z linker_flag'. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + output_verbose_link_cmd='echo' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | $GREP -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' + ;; + esac + fi + ;; + esac + ;; + + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) + no_undefined_flag_CXX='${wl}-z,text' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + sysv5* | sco3.2v5* | sco5v6*) + # Note: We can NOT use -z defs as we might desire, because we do not + # link with -lc, and that would cause any symbols used from libc to + # always be unresolved, which means just about no library would + # ever link correctly. If we're not using GNU ld we use -z text + # though, which does catch some bad symbols but isn't as heavy-handed + # as -z defs. + no_undefined_flag_CXX='${wl}-z,text' + allow_undefined_flag_CXX='${wl}-z,nodefs' + archive_cmds_need_lc_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + export_dynamic_flag_spec_CXX='${wl}-Bexport' + runpath_var='LD_RUN_PATH' + + case $cc_basename in + CC*) + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + ;; + + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + + { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } + test "$ld_shlibs_CXX" = no && can_build_shared=no + + GCC_CXX="$GXX" + LD_CXX="$LD" + + ## CAVEAT EMPTOR: + ## There is no encapsulation within the following macros, do not change + ## the running order or otherwise move them around unless you know exactly + ## what you are doing... + # Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +cat > conftest.$ac_ext <<_LT_EOF +class Foo +{ +public: + Foo (void) { a = 0; } +private: + int a; +}; +_LT_EOF + +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + for p in `eval "$output_verbose_link_cmd"`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" || + test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$RM -f confest.$objext + +# PORTME: override above test on systems where it is broken +case $host_os in +interix[3-9]*) + # Interix 3.5 installs completely hosed .la files for C++, so rather than + # hack all around it, let's just trust "g++" to DTRT. + predep_objects_CXX= + postdep_objects_CXX= + postdeps_CXX= + ;; + +linux*) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; + +solaris*) + case $cc_basename in + CC*) + # The more standards-conforming stlport4 library is + # incompatible with the Cstd library. Avoid specifying + # it if it's in CXXFLAGS. Ignore libCrun as + # -library=stlport4 depends on it. + case " $CXX $CXXFLAGS " in + *" -library=stlport4 "*) + solaris_use_stlport4=yes + ;; + esac + + # Adding this requires a known-good setup of shared libraries for + # Sun compiler versions before 5.6, else PIC objects from an old + # archive will be linked into the output, leading to subtle bugs. + if test "$solaris_use_stlport4" != yes; then + postdeps_CXX='-library=Cstd -library=Crun' + fi + ;; + esac + ;; +esac + + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + compiler_lib_search_dirs_CXX= +if test -n "${compiler_lib_search_path_CXX}"; then + compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +$as_echo_n "checking for $compiler option to produce PIC... " >&6; } + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + + amigaos*) + case $host_cpu in + powerpc) + # see comment about AmigaOS4 .so support + lt_prog_compiler_pic_CXX='-fPIC' + ;; + m68k) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + esac + ;; + + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | cygwin* | os2* | pw32* | cegcc*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + # Although the cygwin gcc ignores -fPIC, still need this for old-style + # (--disable-auto-import) libraries + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + interix[3-9]*) + # Interix 3.x gcc -fpic/-fPIC options generate broken code. + # Instead, we relocate shared libraries at runtime. + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag + # sets the default TLS model and affects inlining. + case $host_cpu in + hppa*64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix[4-9]*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' + case $host_cpu in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + interix*) + # This is c89, which is MS Visual C++ (no shared libs) + # Anyone wants to do a port? + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux* | k*bsd*-gnu) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + ecpc* ) + # old Intel C++ for x86_64 which still supported -KPIC. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + icpc* ) + # Intel C++, used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC* | pgcpp*) + # Portland Group C++ compiler + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + xlc* | xlC*) + # IBM XL 8.0 on PPC + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-qpic' + lt_prog_compiler_static_CXX='-qstaticlink' + ;; + *) + case `$CC -V 2>&1 | sed 5q` in + *Sun\ C*) + # Sun C++ 5.9 + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + esac + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + *qnx* | *nto*) + # QNX uses GNU C++, but need to define -shared option too, otherwise + # it will coredump. + lt_prog_compiler_pic_CXX='-fPIC -shared' + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +case $host_os in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 +$as_echo "$lt_prog_compiler_pic_CXX" >&6; } + + + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } +if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14003: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:14007: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_pic_works_CXX=yes + fi + fi + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi + + + +# +# Check to make sure the static flag actually works. +# +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } +if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_static_works_CXX=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_tmp_static_flag" + echo "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The linker can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_static_works_CXX=yes + fi + else + lt_cv_prog_compiler_static_works_CXX=yes + fi + fi + $RM -r conftest* + LDFLAGS="$save_LDFLAGS" + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } + +if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then + : +else + lt_prog_compiler_static_CXX= +fi + + + + + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14102: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:14106: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then + $as_echo_n "(cached) " >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $RM -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:14154: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:14158: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . 2>&5 + $RM conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files + $RM out/* && rmdir out + cd .. + $RM -r conftest + $RM conftest* + +fi +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } + + + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +$as_echo_n "checking if we can lock with hard links... " >&6; } + hard_links=yes + $RM conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 +$as_echo "$hard_links" >&6; } + if test "$hard_links" = no; then + { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + + + + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix[4-9]*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw* | cegcc*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' + +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +$as_echo "$ld_shlibs_CXX" >&6; } +test "$ld_shlibs_CXX" = no && can_build_shared=no + +with_gnu_ld_CXX=$with_gnu_ld + + + + + + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } + $RM conftest* + echo "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + pic_flag=$lt_prog_compiler_pic_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $RM conftest* + { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 +$as_echo "$archive_cmds_need_lc_CXX" >&6; } + ;; + esac + fi + ;; +esac + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +$as_echo_n "checking dynamic linker characteristics... " >&6; } + +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix[4-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + case $host_cpu in + powerpc) + # Since July 2007 AmigaOS4 officially supports .so libraries. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + ;; + m68k) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + esac + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32* | cegcc*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname~ + chmod a+x \$dldir/$dlname~ + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; + fi' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $RM \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw* | cegcc*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' + + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[123]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + *) # from 4.6 on, and DragonFly + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case $host_cpu in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +interix[3-9]*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux* | k*bsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # Some binutils ld are patched to set DT_RUNPATH + save_LDFLAGS=$LDFLAGS + save_libdir=$libdir + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" +$as_echo "$ac_try_echo") >&5 + (eval "$ac_link") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_cxx_werror_flag" || + test ! -s conftest.err + } && test -s conftest$ac_exeext && { + test "$cross_compiling" = yes || + $as_test_x conftest$ac_exeext + }; then + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then + shlibpath_overrides_runpath=yes +fi + +else + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + +fi + +rm -rf conftest.dSYM +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LDFLAGS=$save_LDFLAGS + libdir=$save_libdir + + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +*nto* | *qnx*) + version_type=qnx + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='ldqnx.so' + ;; + +openbsd*) + version_type=sunos + sys_lib_dlsearch_path_spec="/usr/lib" + need_lib_prefix=no + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. + case $host_os in + openbsd3.3 | openbsd3.3.*) need_version=yes ;; + *) need_version=no ;; + esac + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +rdos*) + dynamic_linker=no + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + version_type=freebsd-elf + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + if test "$with_gnu_ld" = yes; then + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' + else + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' + case $host_os in + sco3.2v5*) + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" + ;; + esac + fi + sys_lib_dlsearch_path_spec='/usr/lib' + ;; + +tpf*) + # TPF is a cross-target only. Preferred cross-host = GNU/Linux. + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +$as_echo "$dynamic_linker" >&6; } +test "$dynamic_linker" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" +fi +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" +fi + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +$as_echo_n "checking how to hardcode library paths into programs... " >&6; } +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || + test -n "$runpath_var_CXX" || + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existent directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 +$as_echo "$hardcode_action_CXX" >&6; } + +if test "$hardcode_action_CXX" = relink || + test "$inherit_rpath_CXX" = yes; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + + + + + + + + fi # test -n "$compiler" + + CC=$lt_save_CC + LDCXX=$LD + LD=$lt_save_LD + GCC=$lt_save_GCC + with_gnu_ld=$lt_save_with_gnu_ld + lt_cv_path_LDCXX=$lt_cv_path_LD + lt_cv_path_LD=$lt_save_path_LD + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +fi # test "$_lt_caught_CXX_error" != yes + +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +ac_config_files="$ac_config_files Makefile src/Makefile" + +cat >confcache <<\_ACEOF +# This file is a shell script that caches the results of configure +# tests run on this system so they can be shared between configure +# scripts and configure runs, see configure's option --config-cache. +# It is not useful on other systems. If it contains results you don't +# want to keep, you may remove or edit it. +# +# config.status only pays attention to the cache file if you give it +# the --recheck option to rerun configure. +# +# `ac_cv_env_foo' variables (set or unset) will be overridden when +# loading this file, other *unset* `ac_cv_foo' will be assigned the +# following values. + +_ACEOF + +# The following way of writing the cache mishandles newlines in values, +# but we know of no workaround that is simple, portable, and efficient. +# So, we kill variables containing newlines. +# Ultrix sh set writes to stderr and can't be redirected directly, +# and sets the high bit in the cache file unless we assign to the vars. +( + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do + eval ac_val=\$$ac_var + case $ac_val in #( + *${as_nl}*) + case $ac_var in #( + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; + esac + case $ac_var in #( + _ | IFS | as_nl) ;; #( + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( + *) $as_unset $ac_var ;; + esac ;; + esac + done + + (set) 2>&1 | + case $as_nl`(ac_space=' '; set) 2>&1` in #( + *${as_nl}ac_space=\ *) + # `set' does not quote correctly, so add quotes (double-quote + # substitution turns \\\\ into \\, and sed turns \\ into \). + sed -n \ + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + ;; #( + *) + # `set' quotes correctly as required by POSIX, so do not add quotes. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" + ;; + esac | + sort +) | + sed ' + /^ac_cv_env_/b end + t clear + :clear + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ + t end + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ + :end' >>confcache +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else + if test -w "$cache_file"; then + test "x$cache_file" != "x/dev/null" && + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 +$as_echo "$as_me: updating cache $cache_file" >&6;} + cat confcache >$cache_file + else + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} + fi +fi +rm -f confcache + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +# Let make expand exec_prefix. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' + ac_i=`$as_echo "$ac_i" | sed "$ac_script"` + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR + # will be set to the directory where LIBOBJS objects are built. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' +done +LIBOBJS=$ac_libobjs + +LTLIBOBJS=$ac_ltlibobjs + + +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi + +: ${CONFIG_STATUS=./config.status} +ac_write_fail=0 +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files $CONFIG_STATUS" +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +#! $SHELL +# Generated by $as_me. +# Run this file to recreate the current configuration. +# Compiler output produced by configure, useful for debugging +# configure, is in config.log if it exists. + +debug=false +ac_cs_recheck=false +ac_cs_silent=false +SHELL=\${CONFIG_SHELL-$SHELL} +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +## --------------------- ## +## M4sh Initialization. ## +## --------------------- ## + +# Be more Bourne compatible +DUALCASE=1; export DUALCASE # for MKS sh +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in + *posix*) set -o posix ;; +esac + +fi + + + + +# PATH needs CR +# Avoid depending upon Character Ranges. +as_cr_letters='abcdefghijklmnopqrstuvwxyz' +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' +as_cr_Letters=$as_cr_letters$as_cr_LETTERS +as_cr_digits='0123456789' +as_cr_alnum=$as_cr_Letters$as_cr_digits + +as_nl=' +' +export as_nl +# Printing a long string crashes Solaris 7 /usr/bin/printf. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then + as_echo='printf %s\n' + as_echo_n='printf %s' +else + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' + as_echo_n='/usr/ucb/echo -n' + else + as_echo_body='eval expr "X$1" : "X\\(.*\\)"' + as_echo_n_body='eval + arg=$1; + case $arg in + *"$as_nl"*) + expr "X$arg" : "X\\(.*\\)$as_nl"; + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; + esac; + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" + ' + export as_echo_n_body + as_echo_n='sh -c $as_echo_n_body as_echo' + fi + export as_echo_body + as_echo='sh -c $as_echo_body as_echo' +fi + +# The user is always right. +if test "${PATH_SEPARATOR+set}" != set; then + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || + PATH_SEPARATOR=';' + } +fi + +# Support unset when possible. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + as_unset=unset +else + as_unset=false +fi + + +# IFS +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent editors from complaining about space-tab. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word +# splitting by setting IFS to empty value.) +IFS=" "" $as_nl" + +# Find who we are. Look in the path if we contain no directory separator. +case $0 in + *[\\/]* ) as_myself=$0 ;; + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break +done +IFS=$as_save_IFS + + ;; +esac +# We did not find ourselves, most probably we were run as `sh COMMAND' +# in which case we are not to be found in the path. +if test "x$as_myself" = x; then + as_myself=$0 +fi +if test ! -f "$as_myself"; then + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 + { (exit 1); exit 1; } +fi + +# Work around bugs in pre-3.0 UWIN ksh. +for as_var in ENV MAIL MAILPATH +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var +done +PS1='$ ' +PS2='> ' +PS4='+ ' + +# NLS nuisances. +LC_ALL=C +export LC_ALL +LANGUAGE=C +export LANGUAGE + +# Required to use basename. +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then + as_basename=basename +else + as_basename=false +fi + + +# Name of the executable. +as_me=`$as_basename -- "$0" || +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X/"$0" | + sed '/^.*\/\([^/][^/]*\)\/*$/{ + s//\1/ + q + } + /^X\/\(\/\/\)$/{ + s//\1/ + q + } + /^X\/\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + +# CDPATH. +$as_unset CDPATH + + + + as_lineno_1=$LINENO + as_lineno_2=$LINENO + test "x$as_lineno_1" != "x$as_lineno_2" && + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { + + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO + # uniformly replaced by the line number. The first 'sed' inserts a + # line-number line after each line using $LINENO; the second 'sed' + # does the real work. The second script uses 'N' to pair each + # line-number line with the line containing $LINENO, and appends + # trailing '-' during substitution so that $LINENO is not a special + # case at line end. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the + # scripts with optimization help from Paolo Bonzini. Blame Lee + # E. McMahon (1931-1989) for sed's syntax. :-) + sed -n ' + p + /[$]LINENO/= + ' <$as_myself | + sed ' + s/[$]LINENO.*/&-/ + t lineno + b + :lineno + N + :loop + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ + t loop + s/-\n.*// + ' >$as_me.lineno && + chmod +x "$as_me.lineno" || + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 + { (exit 1); exit 1; }; } + + # Don't try to exec as it changes $[0], causing all sort of problems + # (the dirname of $[0] is not the place where we might find the + # original and so on. Autoconf is especially sensitive to this). + . "./$as_me.lineno" + # Exit status is that of the last command. + exit +} + + +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then + as_dirname=dirname +else + as_dirname=false +fi + +ECHO_C= ECHO_N= ECHO_T= +case `echo -n x` in +-n*) + case `echo 'x\c'` in + *c*) ECHO_T=' ';; # ECHO_T is single tab character. + *) ECHO_C='\c';; + esac;; +*) + ECHO_N='-n';; +esac +if expr a : '\(a\)' >/dev/null 2>&1 && + test "X`expr 00001 : '.*\(...\)'`" = X001; then + as_expr=expr +else + as_expr=false +fi + +rm -f conf$$ conf$$.exe conf$$.file +if test -d conf$$.dir; then + rm -f conf$$.dir/conf$$.file +else + rm -f conf$$.dir + mkdir conf$$.dir 2>/dev/null +fi +if (echo >conf$$.file) 2>/dev/null; then + if ln -s conf$$.file conf$$ 2>/dev/null; then + as_ln_s='ln -s' + # ... but there are two gotchas: + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. + # In both cases, we have to default to `cp -p'. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || + as_ln_s='cp -p' + elif ln conf$$.file conf$$ 2>/dev/null; then + as_ln_s=ln + else + as_ln_s='cp -p' + fi +else + as_ln_s='cp -p' +fi +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file +rmdir conf$$.dir 2>/dev/null + +if mkdir -p . 2>/dev/null; then + as_mkdir_p=: +else + test -d ./-p && rmdir ./-p + as_mkdir_p=false +fi + +if test -x / >/dev/null 2>&1; then + as_test_x='test -x' +else + if ls -dL / >/dev/null 2>&1; then + as_ls_L_option=L + else + as_ls_L_option= + fi + as_test_x=' + eval sh -c '\'' + if test -d "$1"; then + test -d "$1/."; + else + case $1 in + -*)set "./$1";; + esac; + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in + ???[sx]*):;;*)false;;esac;fi + '\'' sh + ' +fi +as_executable_p=$as_test_x + +# Sed expression to map a string onto a valid CPP name. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" + +# Sed expression to map a string onto a valid variable name. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" + + +exec 6>&1 + +# Save the log message, to keep $[0] and so on meaningful, and to +# report actual input values of CONFIG_FILES etc. instead of their +# values after options handling. +ac_log=" +This file was extended by $as_me, which was +generated by GNU Autoconf 2.63. Invocation command line was + + CONFIG_FILES = $CONFIG_FILES + CONFIG_HEADERS = $CONFIG_HEADERS + CONFIG_LINKS = $CONFIG_LINKS + CONFIG_COMMANDS = $CONFIG_COMMANDS + $ $0 $@ + +on `(hostname || uname -n) 2>/dev/null | sed 1q` +" + +_ACEOF + +case $ac_config_files in *" +"*) set x $ac_config_files; shift; ac_config_files=$*;; +esac + +case $ac_config_headers in *" +"*) set x $ac_config_headers; shift; ac_config_headers=$*;; +esac + + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# Files that config.status was made for. +config_files="$ac_config_files" +config_headers="$ac_config_headers" +config_commands="$ac_config_commands" + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +ac_cs_usage="\ +\`$as_me' instantiates files from templates according to the +current configuration. + +Usage: $0 [OPTION]... [FILE]... + + -h, --help print this help, then exit + -V, --version print version number and configuration settings, then exit + -q, --quiet, --silent + do not print progress messages + -d, --debug don't remove temporary files + --recheck update $as_me by reconfiguring in the same conditions + --file=FILE[:TEMPLATE] + instantiate the configuration file FILE + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_cs_version="\\ +config.status +configured by $0, generated by GNU Autoconf 2.63, + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" + +Copyright (C) 2008 Free Software Foundation, Inc. +This config.status script is free software; the Free Software Foundation +gives unlimited permission to copy, distribute and modify it." + +ac_pwd='$ac_pwd' +srcdir='$srcdir' +INSTALL='$INSTALL' +MKDIR_P='$MKDIR_P' +AWK='$AWK' +test -n "\$AWK" || AWK=awk +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# The default lists apply if the user does not specify any file. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "X$1" : 'X\([^=]*\)='` + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` + ac_shift=: + ;; + *) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + esac + + case $ac_option in + # Handling of the options. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) + ac_cs_recheck=: ;; + --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) + $as_echo "$ac_cs_version"; exit ;; + --debug | --debu | --deb | --de | --d | -d ) + debug=: ;; + --file | --fil | --fi | --f ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" + ac_need_defaults=false;; + --header | --heade | --head | --hea ) + $ac_shift + case $ac_optarg in + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; + esac + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" + ac_need_defaults=false;; + --he | --h) + # Conflict between --help and --header + { $as_echo "$as_me: error: ambiguous option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; };; + --help | --hel | -h ) + $as_echo "$ac_cs_usage"; exit ;; + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ + | -silent | --silent | --silen | --sile | --sil | --si | --s) + ac_cs_silent=: ;; + + # This is an error. + -*) { $as_echo "$as_me: error: unrecognized option: $1 +Try \`$0 --help' for more information." >&2 + { (exit 1); exit 1; }; } ;; + + *) ac_config_targets="$ac_config_targets $1" + ac_need_defaults=false ;; + + esac + shift +done + +ac_configure_extra_args= + +if $ac_cs_silent; then + exec 6>/dev/null + ac_configure_extra_args="$ac_configure_extra_args --silent" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +if \$ac_cs_recheck; then + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion + shift + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 + CONFIG_SHELL='$SHELL' + export CONFIG_SHELL + exec "\$@" +fi + +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +exec 5>>config.log +{ + echo + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX +## Running $as_me. ## +_ASBOX + $as_echo "$ac_log" +} >&5 + +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +# +# INIT-COMMANDS +# +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" + + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +sed_quote_subst='$sed_quote_subst' +double_quote_subst='$double_quote_subst' +delay_variable_subst='$delay_variable_subst' +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' +predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' +postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' +LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' +GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' +lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' +enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' +export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' +allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' +inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' +link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' +fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' +always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' +export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' +include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' +prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' +file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' +hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' +predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' +postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' +predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' +postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' +compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' + +LTCC='$LTCC' +LTCFLAGS='$LTCFLAGS' +compiler='$compiler_DEFAULT' + +# Quote evaled strings. +for var in SED \ +GREP \ +EGREP \ +FGREP \ +LD \ +NM \ +LN_S \ +lt_SP2NL \ +lt_NL2SP \ +reload_flag \ +OBJDUMP \ +deplibs_check_method \ +file_magic_cmd \ +AR \ +AR_FLAGS \ +STRIP \ +RANLIB \ +CC \ +CFLAGS \ +compiler \ +lt_cv_sys_global_symbol_pipe \ +lt_cv_sys_global_symbol_to_cdecl \ +lt_cv_sys_global_symbol_to_c_name_address \ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ +SHELL \ +ECHO \ +lt_prog_compiler_no_builtin_flag \ +lt_prog_compiler_wl \ +lt_prog_compiler_pic \ +lt_prog_compiler_static \ +lt_cv_prog_compiler_c_o \ +need_locks \ +DSYMUTIL \ +NMEDIT \ +LIPO \ +OTOOL \ +OTOOL64 \ +shrext_cmds \ +export_dynamic_flag_spec \ +whole_archive_flag_spec \ +compiler_needs_object \ +with_gnu_ld \ +allow_undefined_flag \ +no_undefined_flag \ +hardcode_libdir_flag_spec \ +hardcode_libdir_flag_spec_ld \ +hardcode_libdir_separator \ +fix_srcfile_path \ +exclude_expsyms \ +include_expsyms \ +file_list_spec \ +variables_saved_for_relink \ +libname_spec \ +library_names_spec \ +soname_spec \ +finish_eval \ +old_striplib \ +striplib \ +compiler_lib_search_dirs \ +predep_objects \ +postdep_objects \ +predeps \ +postdeps \ +compiler_lib_search_path \ +LD_CXX \ +compiler_CXX \ +lt_prog_compiler_no_builtin_flag_CXX \ +lt_prog_compiler_wl_CXX \ +lt_prog_compiler_pic_CXX \ +lt_prog_compiler_static_CXX \ +lt_cv_prog_compiler_c_o_CXX \ +export_dynamic_flag_spec_CXX \ +whole_archive_flag_spec_CXX \ +compiler_needs_object_CXX \ +with_gnu_ld_CXX \ +allow_undefined_flag_CXX \ +no_undefined_flag_CXX \ +hardcode_libdir_flag_spec_CXX \ +hardcode_libdir_flag_spec_ld_CXX \ +hardcode_libdir_separator_CXX \ +fix_srcfile_path_CXX \ +exclude_expsyms_CXX \ +include_expsyms_CXX \ +file_list_spec_CXX \ +compiler_lib_search_dirs_CXX \ +predep_objects_CXX \ +postdep_objects_CXX \ +predeps_CXX \ +postdeps_CXX \ +compiler_lib_search_path_CXX; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Double-quote double-evaled strings. +for var in reload_cmds \ +old_postinstall_cmds \ +old_postuninstall_cmds \ +old_archive_cmds \ +extract_expsyms_cmds \ +old_archive_from_new_cmds \ +old_archive_from_expsyms_cmds \ +archive_cmds \ +archive_expsym_cmds \ +module_cmds \ +module_expsym_cmds \ +export_symbols_cmds \ +prelink_cmds \ +postinstall_cmds \ +postuninstall_cmds \ +finish_cmds \ +sys_lib_search_path_spec \ +sys_lib_dlsearch_path_spec \ +old_archive_cmds_CXX \ +old_archive_from_new_cmds_CXX \ +old_archive_from_expsyms_cmds_CXX \ +archive_cmds_CXX \ +archive_expsym_cmds_CXX \ +module_cmds_CXX \ +module_expsym_cmds_CXX \ +export_symbols_cmds_CXX \ +prelink_cmds_CXX; do + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in + *[\\\\\\\`\\"\\\$]*) + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" + ;; + *) + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" + ;; + esac +done + +# Fix-up fallback echo if it was mangled by the above quoting rules. +case \$lt_ECHO in +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` + ;; +esac + +ac_aux_dir='$ac_aux_dir' +xsi_shell='$xsi_shell' +lt_shell_append='$lt_shell_append' + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + + + PACKAGE='$PACKAGE' + VERSION='$VERSION' + TIMESTAMP='$TIMESTAMP' + RM='$RM' + ofile='$ofile' + + + + + + +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + +# Handling of arguments. +for ac_config_target in $ac_config_targets +do + case $ac_config_target in + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; + + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason against having it here, and in addition, +# creating and moving files from /tmp can sometimes cause problems. +# Hook for its removal unless debugging. +# Note that there is a small window in which the directory will not be cleaned: +# after its creation but before its name has been assigned to `$tmp'. +$debug || +{ + tmp= + trap 'exit_status=$? + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status +' 0 + trap '{ (exit 1); exit 1; }' 1 2 13 15 +} +# Create a (secure) tmp directory for tmp files. + +{ + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && + test -n "$tmp" && test -d "$tmp" +} || +{ + tmp=./conf$$-$RANDOM + (umask 077 && mkdir "$tmp") +} || +{ + $as_echo "$as_me: cannot create a temporary directory in ." >&2 + { (exit 1); exit 1; } +} + +# Set up the scripts for CONFIG_FILES section. +# No need to generate them if there are no CONFIG_FILES. +# This happens for instance with `./config.status config.h'. +if test -n "$CONFIG_FILES"; then + + +ac_cr=' ' +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then + ac_cs_awk_cr='\\r' +else + ac_cs_awk_cr=$ac_cr +fi + +echo 'BEGIN {' >"$tmp/subs1.awk" && +_ACEOF + + +{ + echo "cat >conf$$subs.awk <<_ACEOF" && + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && + echo "_ACEOF" +} >conf$$subs.sh || + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` +ac_delim='%!_!# ' +for ac_last_try in false false false false false :; do + . ./conf$$subs.sh || + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` + if test $ac_delim_n = $ac_delim_num; then + break + elif $ac_last_try; then + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done +rm -f conf$$subs.sh + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +cat >>"\$tmp/subs1.awk" <<\\_ACAWK && +_ACEOF +sed -n ' +h +s/^/S["/; s/!.*/"]=/ +p +g +s/^[^!]*!// +:repl +t repl +s/'"$ac_delim"'$// +t delim +:nl +h +s/\(.\{148\}\).*/\1/ +t more1 +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ +p +n +b repl +:more1 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t nl +:delim +h +s/\(.\{148\}\).*/\1/ +t more2 +s/["\\]/\\&/g; s/^/"/; s/$/"/ +p +b +:more2 +s/["\\]/\\&/g; s/^/"/; s/$/"\\/ +p +g +s/.\{148\}// +t delim +' >$CONFIG_STATUS || ac_write_fail=1 +rm -f conf$$subs.awk +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +_ACAWK +cat >>"\$tmp/subs1.awk" <<_ACAWK && + for (key in S) S_is_set[key] = 1 + FS = "" + +} +{ + line = $ 0 + nfields = split(line, field, "@") + substed = 0 + len = length(field[1]) + for (i = 2; i < nfields; i++) { + key = field[i] + keylen = length(key) + if (S_is_set[key]) { + value = S[key] + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) + len += length(value) + length(field[++i]) + substed = 1 + } else + len += 1 + keylen + } + + print line +} + +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" +else + cat +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 +$as_echo "$as_me: error: could not setup config files machinery" >&2;} + { (exit 1); exit 1; }; } +_ACEOF + +# VPATH may cause trouble with some makes, so we remove $(srcdir), +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and +# trailing colons and then remove the whole line if VPATH becomes empty +# (actually we leave an empty line to preserve line numbers). +if test "x$srcdir" = x.; then + ac_vpsub='/^[ ]*VPATH[ ]*=/{ +s/:*\$(srcdir):*/:/ +s/:*\${srcdir}:*/:/ +s/:*@srcdir@:*/:/ +s/^\([^=]*=[ ]*\):*/\1/ +s/:*$// +s/^[^=]*=[ ]*$// +}' +fi + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +fi # test -n "$CONFIG_FILES" + +# Set up the scripts for CONFIG_HEADERS section. +# No need to generate them if there are no CONFIG_HEADERS. +# This happens for instance with `./config.status Makefile'. +if test -n "$CONFIG_HEADERS"; then +cat >"$tmp/defines.awk" <<\_ACAWK || +BEGIN { +_ACEOF + +# Transform confdefs.h into an awk script `defines.awk', embedded as +# here-document in config.status, that substitutes the proper values into +# config.h.in to produce config.h. + +# Create a delimiter string that does not exist in confdefs.h, to ease +# handling of long lines. +ac_delim='%!_!# ' +for ac_last_try in false false :; do + ac_t=`sed -n "/$ac_delim/p" confdefs.h` + if test -z "$ac_t"; then + break + elif $ac_last_try; then + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} + { (exit 1); exit 1; }; } + else + ac_delim="$ac_delim!$ac_delim _$ac_delim!! " + fi +done + +# For the awk script, D is an array of macro values keyed by name, +# likewise P contains macro parameters if any. Preserve backslash +# newline sequences. + +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* +sed -n ' +s/.\{148\}/&'"$ac_delim"'/g +t rset +:rset +s/^[ ]*#[ ]*define[ ][ ]*/ / +t def +d +:def +s/\\$// +t bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3"/p +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p +d +:bsnl +s/["\\]/\\&/g +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ +D["\1"]=" \3\\\\\\n"\\/p +t cont +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p +t cont +d +:cont +n +s/.\{148\}/&'"$ac_delim"'/g +t clear +:clear +s/\\$// +t bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/"/p +d +:bsnlc +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p +b cont +' >$CONFIG_STATUS || ac_write_fail=1 + +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + for (key in D) D_is_set[key] = 1 + FS = "" +} +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { + line = \$ 0 + split(line, arg, " ") + if (arg[1] == "#") { + defundef = arg[2] + mac1 = arg[3] + } else { + defundef = substr(arg[1], 2) + mac1 = arg[2] + } + split(mac1, mac2, "(") #) + macro = mac2[1] + prefix = substr(line, 1, index(line, defundef) - 1) + if (D_is_set[macro]) { + # Preserve the white space surrounding the "#". + print prefix "define", macro P[macro] D[macro] + next + } else { + # Replace #undef with comments. This is necessary, for example, + # in the case of _POSIX_SOURCE, which is predefined and required + # on some systems where configure will not decide to define it. + if (defundef == "undef") { + print "/*", prefix defundef, macro, "*/" + next + } + } +} +{ print } +_ACAWK +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;} + { (exit 1); exit 1; }; } +fi # test -n "$CONFIG_HEADERS" + + +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" +shift +for ac_tag +do + case $ac_tag in + :[FHLC]) ac_mode=$ac_tag; continue;; + esac + case $ac_mode$ac_tag in + :[FHL]*:*);; + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} + { (exit 1); exit 1; }; };; + :[FH]-) ac_tag=-:-;; + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; + esac + ac_save_IFS=$IFS + IFS=: + set x $ac_tag + IFS=$ac_save_IFS + shift + ac_file=$1 + shift + + case $ac_mode in + :L) ac_source=$1;; + :[FH]) + ac_file_inputs= + for ac_f + do + case $ac_f in + -) ac_f="$tmp/stdin";; + *) # Look for the file first in the build tree, then in the source tree + # (if the path is not absolute). The absolute path cannot be DOS-style, + # because $ac_f cannot contain `:'. + test -f "$ac_f" || + case $ac_f in + [\\/$]*) false;; + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; + esac || + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} + { (exit 1); exit 1; }; };; + esac + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac + ac_file_inputs="$ac_file_inputs '$ac_f'" + done + + # Let's still pretend it is `configure' which instantiates (i.e., don't + # use $as_me), people would be surprised to read: + # /* config.h. Generated by config.status. */ + configure_input='Generated from '` + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' + `' by configure.' + if test x"$ac_file" != x-; then + configure_input="$ac_file. $configure_input" + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 +$as_echo "$as_me: creating $ac_file" >&6;} + fi + # Neutralize special characters interpreted by sed in replacement strings. + case $configure_input in #( + *\&* | *\|* | *\\* ) + ac_sed_conf_input=`$as_echo "$configure_input" | + sed 's/[\\\\&|]/\\\\&/g'`;; #( + *) ac_sed_conf_input=$configure_input;; + esac + + case $ac_tag in + *:-:* | *:-) cat >"$tmp/stdin" \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } ;; + esac + ;; + esac + + ac_dir=`$as_dirname -- "$ac_file" || +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$ac_file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + { as_dir="$ac_dir" + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + ac_builddir=. + +case "$ac_dir" in +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; +*) + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` + # A ".." for each directory in $ac_dir_suffix. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` + case $ac_top_builddir_sub in + "") ac_top_builddir_sub=. ac_top_build_prefix= ;; + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; + esac ;; +esac +ac_abs_top_builddir=$ac_pwd +ac_abs_builddir=$ac_pwd$ac_dir_suffix +# for backward compatibility: +ac_top_builddir=$ac_top_build_prefix + +case $srcdir in + .) # We are building in place. + ac_srcdir=. + ac_top_srcdir=$ac_top_builddir_sub + ac_abs_top_srcdir=$ac_pwd ;; + [\\/]* | ?:[\\/]* ) # Absolute name. + ac_srcdir=$srcdir$ac_dir_suffix; + ac_top_srcdir=$srcdir + ac_abs_top_srcdir=$srcdir ;; + *) # Relative name. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix + ac_top_srcdir=$ac_top_build_prefix$srcdir + ac_abs_top_srcdir=$ac_pwd/$srcdir ;; +esac +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix + + + case $ac_mode in + :F) + # + # CONFIG_FILE + # + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; + esac + ac_MKDIR_P=$MKDIR_P + case $MKDIR_P in + [\\/$]* | ?:[\\/]* ) ;; + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; + esac +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +# If the template does not know about datarootdir, expand it. +# FIXME: This hack should be removed a few years after 2.60. +ac_datarootdir_hack=; ac_datarootdir_seen= + +ac_sed_dataroot=' +/datarootdir/ { + p + q +} +/@datadir@/p +/@docdir@/p +/@infodir@/p +/@localedir@/p +/@mandir@/p +' +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in +*datarootdir*) ac_datarootdir_seen=yes;; +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} +_ACEOF +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 + ac_datarootdir_hack=' + s&@datadir@&$datadir&g + s&@docdir@&$docdir&g + s&@infodir@&$infodir&g + s&@localedir@&$localedir&g + s&@mandir@&$mandir&g + s&\\\${datarootdir}&$datarootdir&g' ;; +esac +_ACEOF + +# Neutralize VPATH when `$srcdir' = `.'. +# Shell code in configure.ac might set extrasub. +# FIXME: do we really want to maintain this feature? +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 +ac_sed_extra="$ac_vpsub +$extrasub +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 +:t +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b +s|@configure_input@|$ac_sed_conf_input|;t t +s&@top_builddir@&$ac_top_builddir_sub&;t t +s&@top_build_prefix@&$ac_top_build_prefix&;t t +s&@srcdir@&$ac_srcdir&;t t +s&@abs_srcdir@&$ac_abs_srcdir&;t t +s&@top_srcdir@&$ac_top_srcdir&;t t +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t +s&@builddir@&$ac_builddir&;t t +s&@abs_builddir@&$ac_abs_builddir&;t t +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t +s&@INSTALL@&$ac_INSTALL&;t t +s&@MKDIR_P@&$ac_MKDIR_P&;t t +$ac_datarootdir_hack +" +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&5 +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' +which seems to be undefined. Please make sure it is defined." >&2;} + + rm -f "$tmp/stdin" + case $ac_file in + -) cat "$tmp/out" && rm -f "$tmp/out";; + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; + esac \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + ;; + :H) + # + # CONFIG_HEADER + # + if test x"$ac_file" != x-; then + { + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" + } >"$tmp/config.h" \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +$as_echo "$as_me: $ac_file is unchanged" >&6;} + else + rm -f "$ac_file" + mv "$tmp/config.h" "$ac_file" \ + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 +$as_echo "$as_me: error: could not create $ac_file" >&2;} + { (exit 1); exit 1; }; } + fi + else + $as_echo "/* $configure_input */" \ + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 +$as_echo "$as_me: error: could not create -" >&2;} + { (exit 1); exit 1; }; } + fi +# Compute "$ac_file"'s index in $config_headers. +_am_arg="$ac_file" +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $_am_arg | $_am_arg:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$_am_arg" : 'X\(//\)[^/]' \| \ + X"$_am_arg" : 'X\(//\)$' \| \ + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$_am_arg" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'`/stamp-h$_am_stamp_count + ;; + + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 +$as_echo "$as_me: executing $ac_file commands" >&6;} + ;; + esac + + + case $ac_file$ac_mode in + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # Grep'ing the whole file is not good either: AIX grep has a line + # limit of 2048, but all sed's we know have understand at least 4000. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then + dirpart=`$as_dirname -- "$mf" || +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$mf" : 'X\(//\)[^/]' \| \ + X"$mf" : 'X\(//\)$' \| \ + X"$mf" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$mf" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`$as_dirname -- "$file" || +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$file" : 'X\(//\)[^/]' \| \ + X"$file" : 'X\(//\)$' \| \ + X"$file" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$file" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + { as_dir=$dirpart/$fdir + case $as_dir in #( + -*) as_dir=./$as_dir;; + esac + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { + as_dirs= + while :; do + case $as_dir in #( + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( + *) as_qdir=$as_dir;; + esac + as_dirs="'$as_qdir' $as_dirs" + as_dir=`$as_dirname -- "$as_dir" || +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || +$as_echo X"$as_dir" | + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ + s//\1/ + q + } + /^X\(\/\/\)[^/].*/{ + s//\1/ + q + } + /^X\(\/\/\)$/{ + s//\1/ + q + } + /^X\(\/\).*/{ + s//\1/ + q + } + s/.*/./; q'` + test -d "$as_dir" && break + done + test -z "$as_dirs" || eval "mkdir $as_dirs" + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} + { (exit 1); exit 1; }; }; } + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + ;; + "libtool":C) + + # See if we are running on zsh, and set the options which allow our + # commands through without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + + cfgfile="${ofile}T" + trap "$RM \"$cfgfile\"; exit 1" 1 2 15 + $RM "$cfgfile" + + cat <<_LT_EOF >> "$cfgfile" +#! $SHELL + +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=$macro_version +macro_revision=$macro_revision + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# What type of objects to build. +pic_mode=$pic_mode + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# A sed program that does not truncate output. +SED=$lt_SED + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="\$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP=$lt_GREP + +# An ERE matcher. +EGREP=$lt_EGREP + +# A literal string matcher. +FGREP=$lt_FGREP + +# A BSD- or MS-compatible name lister. +NM=$lt_NM + +# Whether we need soft or hard links. +LN_S=$lt_LN_S + +# What is the maximum length of a command? +max_cmd_len=$max_cmd_len + +# Object file suffix (normally "o"). +objext=$ac_objext + +# Executable file suffix (normally ""). +exeext=$exeext + +# whether the shell understands "unset". +lt_unset=$lt_unset + +# turn spaces into newlines. +SP2NL=$lt_lt_SP2NL + +# turn newlines into spaces. +NL2SP=$lt_lt_NL2SP + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# An object symbol dumper. +OBJDUMP=$lt_OBJDUMP + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == "file_magic". +file_magic_cmd=$lt_file_magic_cmd + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A symbol stripping program. +STRIP=$lt_STRIP + +# Commands used to install an old-style archive. +RANLIB=$lt_RANLIB +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# A C compiler. +LTCC=$lt_CC + +# LTCC compiler flags. +LTCFLAGS=$lt_CFLAGS + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# An echo program that does not interpret backslashes. +ECHO=$lt_ECHO + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=$MAGIC_CMD + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL=$lt_DSYMUTIL + +# Tool to change global to local symbols on Mac OS X. +NMEDIT=$lt_NMEDIT + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO=$lt_LIPO + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL=$lt_OTOOL + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64=$lt_OTOOL64 + +# Old archive suffix (normally "a"). +libext=$libext + +# Shared library suffix (normally ".so"). +shrext_cmds=$lt_shrext_cmds + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink=$lt_variables_saved_for_relink + +# Do we need the "lib" prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Library versioning type. +version_type=$version_type + +# Shared library runtime path variable. +runpath_var=$runpath_var + +# Shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Command to use after installation of a shared archive. +postinstall_cmds=$lt_postinstall_cmds + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval=$lt_finish_eval + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Compile-time system search path for libraries. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + + +# The linker used to build libraries. +LD=$lt_LD + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds + +# A language specific compiler. +CC=$lt_compiler + +# Is the compiler the GNU compiler? +with_gcc=$GCC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds +archive_expsym_cmds=$lt_archive_expsym_cmds + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects +postdep_objects=$lt_postdep_objects +predeps=$lt_predeps +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + +# ### END LIBTOOL CONFIG + +_LT_EOF + + case $host_os in + aix3*) + cat <<\_LT_EOF >> "$cfgfile" +# AIX sometimes has problems with the GCC collect2 program. For some +# reason, if we set the COLLECT_NAMES environment variable, the problems +# vanish in a puff of smoke. +if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES +fi +_LT_EOF + ;; + esac + + +ltmain="$ac_aux_dir/ltmain.sh" + + + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + case $xsi_shell in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} + +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} + +_LT_EOF + ;; + *) # Bourne compatible functions. + cat << \_LT_EOF >> "$cfgfile" + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +# func_strip_suffix prefix name +func_stripname () +{ + case ${2} in + .*) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; + *) func_stripname_result=`$ECHO "X${3}" \ + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; + esac +} + +# sed scripts: +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' +my_sed_long_arg='1s/^-[^=]*=//' + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` +} + +# func_lo2o object +func_lo2o () +{ + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=`expr "$@"` +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` +} + +_LT_EOF +esac + +case $lt_shell_append in + yes) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1+=\$2" +} +_LT_EOF + ;; + *) + cat << \_LT_EOF >> "$cfgfile" + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1=\$$1\$2" +} + +_LT_EOF + ;; + esac + + + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ + || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" + + + cat <<_LT_EOF >> "$ofile" + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Commands used to build an old-style archive. +old_archive_cmds=$lt_old_archive_cmds_CXX + +# A language specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU compiler? +with_gcc=$GCC_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object=$lt_compiler_needs_object_CXX + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Whether we are building with GNU ld or not. +with_gnu_ld=$lt_with_gnu_ld_CXX + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that enforces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into a binary +# during linking. This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=$hardcode_direct_absolute_CXX + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=$inherit_rpath_CXX + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path=$lt_fix_srcfile_path_CXX + +# Set to "yes" if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds=$lt_prelink_cmds_CXX + +# Specify filename containing input files. +file_list_spec=$lt_file_list_spec_CXX + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects=$lt_predep_objects_CXX +postdep_objects=$lt_postdep_objects_CXX +predeps=$lt_predeps_CXX +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# ### END LIBTOOL TAG CONFIG: CXX +_LT_EOF + + ;; + + esac +done # for ac_tag + + +{ (exit 0); exit 0; } +_ACEOF +chmod +x $CONFIG_STATUS +ac_clean_files=$ac_clean_files_save + +test $ac_write_fail = 0 || + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} + { (exit 1); exit 1; }; } + + +# configure is writing to config.log, and then calls config.status. +# config.status does its own redirection, appending to config.log. +# Unfortunately, on DOS this fails, as config.log is still kept open +# by configure, so config.status won't be able to write to it; its +# output is simply discarded. So we exec the FD to /dev/null, +# effectively closing config.log, so it can be properly (re)opened and +# appended to by config.status. When coming back to configure, we +# need to make the FD available again. +if test "$no_create" != yes; then + ac_cs_success=: + ac_config_status_args= + test "$silent" = yes && + ac_config_status_args="$ac_config_status_args --quiet" + exec 5>/dev/null + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false + exec 5>>config.log + # Use ||, not &&, to avoid exiting from the if with $? = 1, which + # would make configure fail if this is the last instruction. + $ac_cs_success || { (exit 1); exit 1; } +fi +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} +fi + diff --git a/supportware/configure.in b/supportware/configure.in new file mode 100644 index 0000000..caa7a0c --- /dev/null +++ b/supportware/configure.in @@ -0,0 +1,10 @@ +AC_INIT(configure.in) + +AM_CONFIG_HEADER(config.h) +AM_INIT_AUTOMAKE(supportware, 0.1) + +AC_LANG_CPLUSPLUS +AC_PROG_CXX +AM_PROG_LIBTOOL + +AC_OUTPUT(Makefile src/Makefile) diff --git a/supportware/depcomp b/supportware/depcomp new file mode 100644 index 0000000..4c20c6c --- /dev/null +++ b/supportware/depcomp @@ -0,0 +1,441 @@ +#! /bin/sh + +# depcomp - compile a program generating dependencies as side-effects +# Copyright 1999, 2000 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi +# `libtool' can also be set to `yes' or `no'. + +depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`} +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" = hp; then + # HP compiler uses -M and no extra arg. + gccflag=-M + depmode=gcc +fi + +if test "$depmode" = dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive letters. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" = yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> $depfile + echo >> $depfile + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> $depfile + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. This file always lives in the current directory. + # Also, the AIX compiler puts `$object:' at the start of each line; + # $object doesn't have directory information. + stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'` + tmpdepfile="$stripped.u" + outname="$stripped.o" + if test "$libtool" = yes; then + "$@" -Wc,-M + else + "$@" -M + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Must come before tru64. + + # Intel's C compiler understands `-MD -MF file'. However + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + + "$@" -MD -MF "$tmpdepfile" + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + sed -e "s,^[^:]*: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" + rm -f "$tmpdepfile" + ;; + +tru64) + # The Tru64 AIX compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + + tmpdepfile1="$object.d" + tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` + if test "$libtool" = yes; then + "$@" -Wc,-MD + else + "$@" -MD + fi + + stat=$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + if test -f "$tmpdepfile1"; then + tmpdepfile="$tmpdepfile1" + else + tmpdepfile="$tmpdepfile2" + fi + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a space and a tab in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + test -z "$dashmflag" && dashmflag=-M + ( IFS=" " + case " $* " in + *" --mode=compile "*) # this is libtool, let us make it quiet + for arg + do # cycle over the arguments + case "$arg" in + "--mode=compile") + # insert --quiet before "--mode=compile" + set fnord "$@" --quiet + shift # fnord + ;; + esac + set fnord "$@" "$arg" + shift # fnord + shift # "$arg" + done + ;; + esac + "$@" $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" + ) & + proc=$! + "$@" + stat=$? + wait "$proc" + if test "$stat" != 0; then exit $stat; fi + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + # X makedepend + ( + shift + cleared=no + for arg in "$@"; do + case $cleared in no) + set ""; shift + cleared=yes + esac + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift;; + -*) + ;; + *) + set fnord "$@" "$arg"; shift;; + esac + done + obj_suffix="`echo $object | sed 's/^.*\././'`" + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@" + ) & + proc=$! + "$@" + stat=$? + wait "$proc" + if test "$stat" != 0; then exit $stat; fi + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tail +3 "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + ( IFS=" " + case " $* " in + *" --mode=compile "*) + for arg + do # cycle over the arguments + case $arg in + "--mode=compile") + # insert --quiet before "--mode=compile" + set fnord "$@" --quiet + shift # fnord + ;; + esac + set fnord "$@" "$arg" + shift # fnord + shift # "$arg" + done + ;; + esac + "$@" -E | + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + ) & + proc=$! + "$@" + stat=$? + wait "$proc" + if test "$stat" != 0; then exit $stat; fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the proprocessed file to stdout, regardless of -o, + # because we must use -o when running libtool. + ( IFS=" " + case " $* " in + *" --mode=compile "*) + for arg + do # cycle over the arguments + case $arg in + "--mode=compile") + # insert --quiet before "--mode=compile" + set fnord "$@" --quiet + shift # fnord + ;; + esac + set fnord "$@" "$arg" + shift # fnord + shift # "$arg" + done + ;; + esac + "$@" -E | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" + ) & + proc=$! + "$@" + stat=$? + wait "$proc" + if test "$stat" != 0; then exit $stat; fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" + echo " " >> "$depfile" + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 diff --git a/supportware/install-sh b/supportware/install-sh new file mode 100644 index 0000000..36f96f3 --- /dev/null +++ b/supportware/install-sh @@ -0,0 +1,276 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# This comes from X11R5 (mit/util/scripts/install.sh). +# +# Copyright 1991 by the Massachusetts Institute of Technology +# +# Permission to use, copy, modify, distribute, and sell this software and its +# documentation for any purpose is hereby granted without fee, provided that +# the above copyright notice appear in all copies and that both that +# copyright notice and this permission notice appear in supporting +# documentation, and that the name of M.I.T. not be used in advertising or +# publicity pertaining to distribution of the software without specific, +# written prior permission. M.I.T. makes no representations about the +# suitability of this software for any purpose. It is provided "as is" +# without express or implied warranty. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd=$cpprog + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd=$stripprog + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "$0: no input file specified" >&2 + exit 1 +else + : +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d "$dst" ]; then + instcmd=: + chmodcmd="" + else + instcmd=$mkdirprog + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f "$src" ] || [ -d "$src" ] + then + : + else + echo "$0: $src does not exist" >&2 + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "$0: no destination specified" >&2 + exit 1 + else + : + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d "$dst" ] + then + dst=$dst/`basename "$src"` + else + : + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' + ' +IFS="${IFS-$defaultIFS}" + +oIFS=$IFS +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS=$oIFS + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp=$pathcomp$1 + shift + + if [ ! -d "$pathcomp" ] ; + then + $mkdirprog "$pathcomp" + else + : + fi + + pathcomp=$pathcomp/ +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd "$dst" && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename "$dst"` + else + dstfile=`basename "$dst" $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename "$dst"` + else + : + fi + +# Make a couple of temp file names in the proper directory. + + dsttmp=$dstdir/#inst.$$# + rmtmp=$dstdir/#rm.$$# + +# Trap to clean up temp files at exit. + + trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0 + trap '(exit $?); exit' 1 2 13 15 + +# Move or copy the file name to the temp name + + $doit $instcmd "$src" "$dsttmp" && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi && + +# Now remove or move aside any old file at destination location. We try this +# two ways since rm can't unlink itself on some systems and the destination +# file might be busy for other reasons. In this case, the final cleanup +# might fail but the new file should still install successfully. + +{ + if [ -f "$dstdir/$dstfile" ] + then + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null || + $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null || + { + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 + (exit 1); exit + } + else + : + fi +} && + +# Now rename the file to the real destination. + + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" + +fi && + +# The final little trick to "correctly" pass the exit status to the exit trap. + +{ + (exit 0); exit +} diff --git a/supportware/libtool b/supportware/libtool new file mode 100644 index 0000000..958c6eb --- /dev/null +++ b/supportware/libtool @@ -0,0 +1,9056 @@ +#! /bin/bash + +# libtool - Provide generalized library-building support services. +# Generated automatically by config.status (supportware) 0.1 +# Libtool was configured on host mail.sourceworx.org: +# NOTE: Changes made to this file will be lost: look at ltmain.sh. +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008 Free Software Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + + +# The names of the tagged configurations supported by this script. +available_tags="CXX " + +# ### BEGIN LIBTOOL CONFIG + +# Which release of libtool.m4 was used? +macro_version=2.2.6 +macro_revision=1.3012 + +# Whether or not to build shared libraries. +build_libtool_libs=yes + +# Whether or not to build static libraries. +build_old_libs=yes + +# What type of objects to build. +pic_mode=default + +# Whether or not to optimize for fast installation. +fast_install=needless + +# The host system. +host_alias= +host=x86_64-unknown-linux-gnu +host_os=linux-gnu + +# The build system. +build_alias= +build=x86_64-unknown-linux-gnu +build_os=linux-gnu + +# A sed program that does not truncate output. +SED="/usr/bin/sed" + +# Sed that helps us avoid accidentally triggering echo(1) options like -n. +Xsed="$SED -e 1s/^X//" + +# A grep program that handles long lines. +GREP="/usr/bin/grep" + +# An ERE matcher. +EGREP="/usr/bin/grep -E" + +# A literal string matcher. +FGREP="/usr/bin/grep -F" + +# A BSD- or MS-compatible name lister. +NM="/usr/bin/nm -B" + +# Whether we need soft or hard links. +LN_S="ln -s" + +# What is the maximum length of a command? +max_cmd_len=1572864 + +# Object file suffix (normally "o"). +objext=o + +# Executable file suffix (normally ""). +exeext= + +# whether the shell understands "unset". +lt_unset=unset + +# turn spaces into newlines. +SP2NL="tr \\040 \\012" + +# turn newlines into spaces. +NL2SP="tr \\015\\012 \\040\\040" + +# How to create reloadable object files. +reload_flag=" -r" +reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs" + +# An object symbol dumper. +OBJDUMP="objdump" + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method="pass_all" + +# Command to use when deplibs_check_method == "file_magic". +file_magic_cmd="\$MAGIC_CMD" + +# The archiver. +AR="ar" +AR_FLAGS="cru" + +# A symbol stripping program. +STRIP="strip" + +# Commands used to install an old-style archive. +RANLIB="ranlib" +old_postinstall_cmds="chmod 644 \$oldlib~\$RANLIB \$oldlib" +old_postuninstall_cmds="" + +# A C compiler. +LTCC="gcc" + +# LTCC compiler flags. +LTCFLAGS="-g -O2" + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe="sed -n -e 's/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'" + +# Transform the output of nm in a proper C declaration. +global_symbol_to_cdecl="sed -n -e 's/^T .* \\(.*\\)\$/extern int \\1();/p' -e 's/^[ABCDGIRSTW]* .* \\(.*\\)\$/extern char \\1;/p'" + +# Transform the output of nm in a C name address pair. +global_symbol_to_c_name_address="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (void *) 0},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (void *) \\&\\2},/p'" + +# Transform the output of nm in a C name address pair when lib prefix is needed. +global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (void *) 0},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\(lib[^ ]*\\)\$/ {\"\\2\", (void *) \\&\\2},/p' -e 's/^[ABCDGIRSTW]* \\([^ ]*\\) \\([^ ]*\\)\$/ {\"lib\\2\", (void *) \\&\\2},/p'" + +# The name of the directory that contains temporary libtool files. +objdir=.libs + +# Shell to use when invoking shell scripts. +SHELL="/bin/bash" + +# An echo program that does not interpret backslashes. +ECHO="echo" + +# Used to examine libraries when file_magic_cmd begins with "file". +MAGIC_CMD=file + +# Must we lock files when doing compilation? +need_locks="no" + +# Tool to manipulate archived DWARF debug symbol files on Mac OS X. +DSYMUTIL="" + +# Tool to change global to local symbols on Mac OS X. +NMEDIT="" + +# Tool to manipulate fat objects and archives on Mac OS X. +LIPO="" + +# ldd/readelf like tool for Mach-O binaries on Mac OS X. +OTOOL="" + +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. +OTOOL64="" + +# Old archive suffix (normally "a"). +libext=a + +# Shared library suffix (normally ".so"). +shrext_cmds=".so" + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds="" + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at link time. +variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" + +# Do we need the "lib" prefix for modules? +need_lib_prefix=no + +# Do we need a version for libraries? +need_version=no + +# Library versioning type. +version_type=linux + +# Shared library runtime path variable. +runpath_var=LD_RUN_PATH + +# Shared library path variable. +shlibpath_var=LD_LIBRARY_PATH + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=yes + +# Format of library name prefix. +libname_spec="lib\$name" + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME +library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}" + +# The coded name of the library, if different from the real name. +soname_spec="\${libname}\${release}\${shared_ext}\$major" + +# Command to use after installation of a shared archive. +postinstall_cmds="" + +# Command to use after uninstallation of a shared archive. +postuninstall_cmds="" + +# Commands used to finish a libtool library installation in a directory. +finish_cmds="PATH=\\\"\\\$PATH:/sbin\\\" ldconfig -n \$libdir" + +# As "finish_cmds", except a single script fragment to be evaled but +# not shown. +finish_eval="" + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=yes + +# Compile-time system search path for libraries. +sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/9 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib" + +# Run-time system search path for libraries. +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu " + +# Whether dlopen is supported. +dlopen_support=unknown + +# Whether dlopen of programs is supported. +dlopen_self=unknown + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=unknown + +# Commands to strip libraries. +old_striplib="strip --strip-debug" +striplib="strip --strip-unneeded" + + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="gcc" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC -DPIC" + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="echo \\\"{ global:\\\" > \$output_objdir/\$libname.ver~ + cat \$export_symbols | sed -e \\\"s/\\\\(.*\\\\)/\\\\1;/\\\" >> \$output_objdir/\$libname.ver~ + echo \\\"local: *; };\\\" >> \$output_objdir/\$libname.ver~ + \$CC -shared \$libobjs \$deplibs \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-version-script \${wl}\$output_objdir/\$libname.ver -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=unknown + +# Fix the shell variable $srcfile for the compiler. +fix_srcfile_path="" + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="" + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="" +postdep_objects="" +predeps="" +postdeps="" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="" + +# ### END LIBTOOL CONFIG + +# Generated from ltmain.m4sh. + +# ltmain.sh (GNU libtool) 2.2.6 +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print informational messages (default) +# --version print version information +# -h, --help print short or long help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.2.6 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to . + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=2.2.6 +TIMESTAMP="" +package_revision=1.3012 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# NLS nuisances: We save the old values to restore during execute mode. +# Only set LANG and LC_ALL to C if already set. +# These must not be set unconditionally because not all systems understand +# e.g. LANG=C (notably SCO). +lt_user_locale= +lt_safe_locale= +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" + fi" +done + +$lt_unset CDPATH + + + + + +: ${CP="cp -f"} +: ${ECHO="echo"} +: ${EGREP="/usr/bin/grep -E"} +: ${FGREP="/usr/bin/grep -F"} +: ${GREP="/usr/bin/grep"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SED="/opt/local/bin/gsed"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} +: ${Xsed="$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +exit_status=$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=' +' +IFS=" $lt_nl" + +dirname="s,/[^/]*$,," +basename="s,^.*/,," + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +# Generated shell functions inserted here. + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac +} + +# func_basename file +func_basename () +{ + func_basename_result="${1##*/}" +} + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + case ${1} in + */*) func_dirname_result="${1%/*}${2}" ;; + * ) func_dirname_result="${3}" ;; + esac + func_basename_result="${1##*/}" +} + +# func_stripname prefix suffix name +# strip PREFIX and SUFFIX off of NAME. +# PREFIX and SUFFIX must not contain globbing or regex special +# characters, hashes, percent signs, but SUFFIX may contain a leading +# dot (in which case that matches only a dot). +func_stripname () +{ + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are + # positional parameters, so assign one to ordinary parameter first. + func_stripname_result=${3} + func_stripname_result=${func_stripname_result#"${1}"} + func_stripname_result=${func_stripname_result%"${2}"} +} + +# func_opt_split +func_opt_split () +{ + func_opt_split_opt=${1%%=*} + func_opt_split_arg=${1#*=} +} + +# func_lo2o object +func_lo2o () +{ + case ${1} in + *.lo) func_lo2o_result=${1%.lo}.${objext} ;; + *) func_lo2o_result=${1} ;; + esac +} + +# func_xform libobj-or-source +func_xform () +{ + func_xform_result=${1%.*}.lo +} + +# func_arith arithmetic-term... +func_arith () +{ + func_arith_result=$(( $* )) +} + +# func_len string +# STRING may not start with a hyphen. +func_len () +{ + func_len_result=${#1} +} + + +# func_append var value +# Append VALUE to the end of shell variable VAR. +func_append () +{ + eval "$1+=\$2" +} +# Generated shell functions inserted here. + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +# In the unlikely event $progname began with a '-', it would play havoc with +# func_echo (imagine progname=-n), so we prepend ./ in that case: +func_dirname_and_basename "$progpath" +progname=$func_basename_result +case $progname in + -*) progname=./$progname ;; +esac + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=$func_dirname_result + progdir=`cd "$progdir" && pwd` + progpath="$progdir/$progname" + ;; + *) + save_IFS="$IFS" + IFS=: + for progdir in $PATH; do + IFS="$save_IFS" + test -x "$progdir/$progname" && break + done + IFS="$save_IFS" + test -n "$progdir" || progdir=`pwd` + progpath="$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed="${SED}"' -e 1s/^X//' +sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs='\\' +bs2='\\\\' +bs4='\\\\\\\\' +dollar='\$' +sed_double_backslash="\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=false +opt_help=false +opt_quiet=false +opt_verbose=false +opt_warning=: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname${mode+: }$mode: $*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help="Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path="$1" + my_dir_list= + + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path="./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list="$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` + done + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + + save_mkdir_p_IFS="$IFS"; IFS=':' + for my_dir in $my_dir_list; do + IFS="$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS="$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a directory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} + + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template="${TMPDIR-/tmp}/${1-$progname}" + + if test "$opt_dry_run" = ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir="${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir'" + fi + + $ECHO "X$my_tmpdir" | $Xsed +} + + +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () +{ + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" + ;; + *) + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" + esac +} + + +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + case $1 in + *[\\\`\"]*) + my_arg=`$ECHO "X$1" | $Xsed \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; + *) + my_arg="$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg="\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result="$my_arg" +} + + +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + + + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $SED -n '/^# Usage:/,/# -h/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + $ECHO + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help +# Echo long help message to standard output and exit. +func_help () +{ + $SED -n '/^# Usage:/,/# Report bugs to/ { + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + p + }' < "$progpath" + exit $? +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + func_error "missing argument for $1" + exit_cmd=exit +} + +exit_cmd=: + + + + + +# Check that we have a working $ECHO. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell, and then maybe $ECHO will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + +# Parse options once, thoroughly. This comes as soon as possible in +# the script to make things like `libtool --version' happen quickly. +{ + + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + esac + + # Parse non-mode specific arguments: + while test "$#" -gt 0; do + opt="$1" + shift + + case $opt in + --config) func_config ;; + + --debug) preserve_args="$preserve_args $opt" + func_echo "enabling shell trace mode" + opt_debug='set -x' + $opt_debug + ;; + + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break + execute_dlfiles="$execute_dlfiles $1" + shift + ;; + + --dry-run | -n) opt_dry_run=: ;; + --features) func_features ;; + --finish) mode="finish" ;; + + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break + case $1 in + # Valid mode arguments: + clean) ;; + compile) ;; + execute) ;; + finish) ;; + install) ;; + link) ;; + relink) ;; + uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; + esac + + mode="$1" + shift + ;; + + --preserve-dup-deps) + opt_duplicate_deps=: ;; + + --quiet|--silent) preserve_args="$preserve_args $opt" + opt_silent=: + ;; + + --verbose| -v) preserve_args="$preserve_args $opt" + opt_silent=false + ;; + + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break + preserve_args="$preserve_args $opt $1" + func_enable_tag "$1" # tagname is set here + shift + ;; + + # Separate optargs to long options: + -dlopen=*|--mode=*|--tag=*) + func_opt_split "$opt" + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} + shift + ;; + + -\?|-h) func_usage ;; + --help) opt_help=: ;; + --version) func_version ;; + + -*) func_fatal_help "unrecognized option \`$opt'" ;; + + *) nonopt="$opt" + break + ;; + esac + done + + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps + ;; + esac + + # Having warned about all mis-specified options, bail out if + # anything was wrong. + $exit_cmd $EXIT_FAILURE +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +## ----------- ## +## Main. ## +## ----------- ## + +$opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" + fi + + test -z "$mode" && func_fatal_error "error: you must specify a MODE." + + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$mode' for more information." +} + + +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" = yes +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_ltwrapper_scriptname_result="" + if func_ltwrapper_executable_p "$1"; then + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" + fi +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$save_ifs + eval cmd=\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case "$@ " in + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T <?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname="$func_basename_result" + xdir="$func_dirname_result" + lobj=${xdir}$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + removelist="$removelist $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + removelist="$removelist $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + if test -n "$fix_srcfile_path"; then + eval srcfile=\"$fix_srcfile_path\" + fi + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" = yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test "$pic_mode" != no; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + command="$command -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test "$suppress_opt" = yes; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" = yes; then + if test "$pic_mode" != yes; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test "$compiler_c_o" = yes; then + command="$command -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + command="$command$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { +test "$mode" = compile && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -shared do not build a \`.o' file suitable for static linking + -static only build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode \`$mode'" + ;; + esac + + $ECHO + $ECHO "Try \`$progname --help' for more information about other modes." + + exit $? +} + + # Now that we've collected a possible --mode arg, show help if necessary + $opt_help && func_mode_help + + +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd="$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" + + dir= + case $file in + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir="$func_dirname_result" + + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir="$func_dirname_result" + ;; + + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file="$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_quote_for_eval "$file" + args="$args $func_quote_for_eval_result" + done + + if test "X$opt_dry_run" = Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + $ECHO "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} + +test "$mode" = execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libdirs="$nonopt" + admincmds= + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS + + $ECHO "X----------------------------------------------------------------------" | $Xsed + $ECHO "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + $ECHO + $ECHO "If you ever happen to want to link against installed libraries" + $ECHO "in a given directory, LIBDIR, you must either use libtool, and" + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" + $ECHO "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" + $ECHO " during execution" + fi + if test -n "$runpath_var"; then + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" + $ECHO " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + $ECHO + + $ECHO "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" + $ECHO "pages." + ;; + *) + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + $ECHO "X----------------------------------------------------------------------" | $Xsed + exit $EXIT_SUCCESS +} + +test "$mode" = finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + install_prog="$install_prog$func_quote_for_eval_result" + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + for arg + do + if test -n "$dest"; then + files="$files $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + case " $install_prog " in + *[\\\ /]cp\ *) ;; + *) prev=$arg ;; + esac + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + install_prog="$install_prog $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir="$func_dirname_result" + destname="$func_basename_result" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir="$func_dirname_result" + dir="$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname="$1" + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme="$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name="$func_basename_result" + instname="$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" = yes; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file="$func_basename_result" + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file="$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name="$func_basename_result" + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test "$mode" = install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname="$1" + my_originator="$2" + my_pic_p="${3-no}" + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms="${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_verbose "extracting global C symbols from \`$progfile'" + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name="$func_basename_result" + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + $ECHO >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +" + case $host in + *cygwin* | *mingw* | *cegcc* ) + $ECHO >> "$output_objdir/$my_dlsyms" "\ +/* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs. */" + lt_dlsym_const= ;; + *osf5*) + echo >> "$output_objdir/$my_dlsyms" "\ +/* This system does not cope well with relocations in const data */" + lt_dlsym_const= ;; + *) + lt_dlsym_const=const ;; + esac + + $ECHO >> "$output_objdir/$my_dlsyms" "\ +extern $lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +$lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{\ + { \"$my_originator\", (void *) 0 }," + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + $ECHO >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + if test "X$my_pic_p" != Xno; then + pic_flag_for_symtable=" $pic_flag" + fi + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) symtab_cflags="$symtab_cflags $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' + + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + $opt_debug + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib="$func_basename_result" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`basename "$darwin_archive"` + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done + + func_extract_archives_result="$my_oldobjs" +} + + + +# func_emit_wrapper_part1 [arg=no] +# +# Emit the first part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part1 () +{ + func_emit_wrapper_part1_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part1_arg1=$1 + fi + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='${SED} -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + ECHO=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$ECHO works! + : + else + # Restart under the correct shell, and then maybe \$ECHO will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $ECHO "\ + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done +" +} +# end: func_emit_wrapper_part1 + +# func_emit_wrapper_part2 [arg=no] +# +# Emit the second part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part2 () +{ + func_emit_wrapper_part2_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part2_arg1=$1 + fi + + $ECHO "\ + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} +# end: func_emit_wrapper_part2 + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=no + if test -n "$1" ; then + func_emit_wrapper_arg1=$1 + fi + + # split this up so that func_emit_cwrapperexe_src + # can call each part independently. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" +} + + +# func_to_host_path arg +# +# Convert paths to host format when used with build tools. +# Intended for use with "native" mingw (where libtool itself +# is running under the msys shell), or in the following cross- +# build environments: +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# where wine is equipped with the `winepath' executable. +# In the native mingw case, the (msys) shell automatically +# converts paths for any non-msys applications it launches, +# but that facility isn't available from inside the cwrapper. +# Similar accommodations are necessary for $host mingw and +# $build cygwin. Calling this function does no harm for other +# $host/$build combinations not listed above. +# +# ARG is the path (on $build) that should be converted to +# the proper representation for $host. The result is stored +# in $func_to_host_path_result. +func_to_host_path () +{ + func_to_host_path_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + case $build in + *mingw* ) # actually, msys + # awkward: cmd appends spaces to result + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_path_tmp1=`( cmd //c echo "$1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_path_tmp1=`cygpath -w "$1"` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # Unfortunately, winepath does not exit with a non-zero + # error code, so we are forced to check the contents of + # stdout. On the other hand, if the command is not + # found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both + # error code of zero AND non-empty stdout, which explains + # the odd construction: + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + else + # Allow warning below. + func_to_host_path_result="" + fi + ;; + esac + if test -z "$func_to_host_path_result" ; then + func_error "Could not determine host path corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_path_result="$1" + fi + ;; + esac + fi +} +# end: func_to_host_path + +# func_to_host_pathlist arg +# +# Convert pathlists to host format when used with build tools. +# See func_to_host_path(), above. This function supports the +# following $build/$host combinations (but does no harm for +# combinations not listed here): +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# +# Path separators are also converted from $build format to +# $host format. If ARG begins or ends with a path separator +# character, it is preserved (but converted to $host format) +# on output. +# +# ARG is a pathlist (on $build) that should be converted to +# the proper representation on $host. The result is stored +# in $func_to_host_pathlist_result. +func_to_host_pathlist () +{ + func_to_host_pathlist_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_to_host_pathlist_tmp2="$1" + # Once set for this call, this variable should not be + # reassigned. It is used in tha fallback case. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e 's|^:*||' -e 's|:*$||'` + case $build in + *mingw* ) # Actually, msys. + # Awkward: cmd appends spaces to result. + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # unfortunately, winepath doesn't convert pathlists + func_to_host_pathlist_result="" + func_to_host_pathlist_oldIFS=$IFS + IFS=: + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do + IFS=$func_to_host_pathlist_oldIFS + if test -n "$func_to_host_pathlist_f" ; then + func_to_host_path "$func_to_host_pathlist_f" + if test -n "$func_to_host_path_result" ; then + if test -z "$func_to_host_pathlist_result" ; then + func_to_host_pathlist_result="$func_to_host_path_result" + else + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" + fi + fi + fi + IFS=: + done + IFS=$func_to_host_pathlist_oldIFS + ;; + esac + if test -z "$func_to_host_pathlist_result" ; then + func_error "Could not determine the host path(s) corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This may break if $1 contains DOS-style drive + # specifications. The fix is not to complicate the expression + # below, but for the user to provide a working wine installation + # with winepath so that path translation in the cross-to-mingw + # case works properly. + lt_replace_pathsep_nix_to_dos="s|:|;|g" + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_replace_pathsep_nix_to_dos"` + fi + # Now, add the leading and trailing path separators back + case "$1" in + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" + ;; + esac + case "$1" in + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" + ;; + esac + ;; + esac + fi +} +# end: func_to_host_pathlist + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#ifdef _MSC_VER +# include +# include +# include +# define setmode _setmode +#else +# include +# include +# ifdef __CYGWIN__ +# include +# define HAVE_SETENV +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +#ifdef _MSC_VER +# define S_IXUSR _S_IEXEC +# define stat _stat +# ifndef _INTPTR_T_DEFINED +# define intptr_t int +# endif +#endif + +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifdef __CYGWIN__ +# define FOPEN_WB "wb" +#endif + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +#undef LTWRAPPER_DEBUGPRINTF +#if defined DEBUGWRAPPER +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args +static void +ltwrapper_debugprintf (const char *fmt, ...) +{ + va_list args; + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); +} +#else +# define LTWRAPPER_DEBUGPRINTF(args) +#endif + +const char *program_name = NULL; + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_fatal (const char *message, ...); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_opt_process_env_set (const char *arg); +void lt_opt_process_env_prepend (const char *arg); +void lt_opt_process_env_append (const char *arg); +int lt_split_name_value (const char *arg, char** name, char** value); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); + +static const char *script_text_part1 = +EOF + + func_emit_wrapper_part1 yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ "/' -e 's/$/\\n"/' + echo ";" + cat <"))); + for (i = 0; i < newargc; i++) + { + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); + } + +EOF + + case $host_os in + mingw*) + cat <<"EOF" + /* execv doesn't actually work on mingw as expected on unix */ + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); + if (rval == -1) + { + /* failed to start process */ + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); + return 127; + } + return rval; +EOF + ;; + *) + cat <<"EOF" + execv (lt_argv_zero, newargz); + return rval; /* =127, but avoids unused variable warning */ +EOF + ;; + esac + + cat <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void *p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), + string) : NULL; +} + +const char * +base_name (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char) name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return base; +} + +int +check_executable (const char *path) +{ + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if ((stat (path, &st) >= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; + + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", + tmp_pathspec)); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + char *errstr = strerror (errno); + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal ("Could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp (str, pat) == 0) + *str = '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} + +void +lt_setenv (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", + (name ? name : ""), + (value ? value : ""))); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + int len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len = strlen (orig_value); + int add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +int +lt_split_name_value (const char *arg, char** name, char** value) +{ + const char *p; + int len; + if (!arg || !*arg) + return 1; + + p = strchr (arg, (int)'='); + + if (!p) + return 1; + + *value = xstrdup (++p); + + len = strlen (arg) - strlen (*value); + *name = XMALLOC (char, len); + strncpy (*name, arg, len-1); + (*name)[len - 1] = '\0'; + + return 0; +} + +void +lt_opt_process_env_set (const char *arg) +{ + char *name = NULL; + char *value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); + } + + lt_setenv (name, value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_prepend (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); + } + + new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_append (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); + } + + new_value = lt_extend_str (getenv (name), value, 1); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + (name ? name : ""), + (value ? value : ""))); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len = strlen (new_value); + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + (name ? name : ""), + (value ? value : ""))); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + + +EOF +} +# end: func_emit_cwrapperexe_src + +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module="${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + else + dlprefiles="$dlprefiles $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file \`$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath="$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath="$xrpath $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + weak) + weak_libs="$weak_libs $arg" + prev= + continue + ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname '-L' '' "$arg" + dir=$func_stripname_result + if test -z "$dir"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$dir'" + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) dllsearchpath="$dllsearchpath:$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs="$deplibs System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs="$deplibs $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot) + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; + esac + continue + ;; + + -multi_module) + single_module="${wl}-multi_module" + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" + linker_flags="$linker_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* pass through architecture-specific + # compiler args for GCC + # -F/path gives path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" + func_append finalize_command " $arg" + compiler_flags="$compiler_flags $arg" + continue + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + *.$objext) + # A standard object. + objs="$objs $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= + else + deplibs="$deplibs $arg" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname="$func_basename_result" + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir="$func_dirname_result$objdir" + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_duplicate_deps ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" = "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs="$tmp_deplibs" + fi + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + case $lib in + *.la) func_source "$lib" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` + case " $weak_libs " in + *" $deplib_base "*) ;; + *) deplibs="$deplibs $deplib" ;; + esac + done + done + libs="$dlprefiles" + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + func_stripname '-R' '' "$deplib" + dir=$func_stripname_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $ECHO + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because the file extensions .$libext of this argument makes me believe" + $ECHO "*** that it is just a static archive that I should not use here." + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + + if test "$found" = yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + elif test "$linkmode" != prog && test "$linkmode" != lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" + else + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir="$ladir" + fi + ;; + esac + func_basename "$lib" + laname="$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library \`$lib' was moved." + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir" && test "$linkmode" = prog; then + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) temp_rpath="$temp_rpath$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs="$notinst_deplibs $lib" + need_relink=no + ;; + *) + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule="" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule="$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then + $ECHO + if test "$linkmode" = prog; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname="$1" + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + func_basename "$soroot" + soname="$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $ECHO + $ECHO "*** And there doesn't seem to be a static archive available" + $ECHO "*** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + elif test -n "$old_library"; then + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && + test "$hardcode_minus_L" != yes && + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $ECHO + $ECHO "*** Warning: This system can not link to static lib archive $lib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + $ECHO "*** But as you try to build a module library, libtool will still create " + $ECHO "*** a static module, that should work as long as the dlopening application" + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path="$deplib" ;; + *.la) + func_dirname "$deplib" "" "." + dir="$func_dirname_result" + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir="$dir" + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" + path= + fi + fi + ;; + *) + path="-L$absdir/$objdir" + ;; + esac + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path="-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test "$pass" = link; then + if test "$linkmode" = "prog"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + fi + if test "$linkmode" = prog || test "$linkmode" = lib; then + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs="$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test "$module" = no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi + fi + + test "$dlself" != no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + shift + IFS="$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$1" + number_minor="$2" + number_revision="$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_minor" + lt_irix_increment=no + ;; + esac + ;; + no) + current="$1" + revision="$2" + age="$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" = "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + qnx) + major=".$current" + versuffix=".$current" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + func_warning "undefined symbols not allowed in $host shared libraries" + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + libobjs="$libobjs $symfileobj" + test "X$libobjs" = "X " && libobjs= + + if test "$mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` + done + fi + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | + $GREP . >/dev/null; then + $ECHO + if test "X$deplibs_check_method" = "Xnone"; then + $ECHO "*** Warning: inter-library dependencies are not supported in this platform." + else + $ECHO "*** Warning: inter-library dependencies are not known to be supported." + fi + $ECHO "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + $ECHO + $ECHO "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + $ECHO "*** a static module, that should work as long as the dlopening" + $ECHO "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + $ECHO "*** The inter-library dependencies that have been dropped here will be" + $ECHO "*** automatically added whenever a program is linked with this library" + $ECHO "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + $ECHO + $ECHO "*** Since this library must not contain undefined symbols," + $ECHO "*** because either the platform does not support them or" + $ECHO "*** it was explicitly requested with -no-undefined," + $ECHO "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + deplibs="$new_libs" + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname="$1" + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + linknames= + for link + do + linknames="$linknames $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols="$output_objdir/$libname.uexp" + delfiles="$delfiles $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols="$export_symbols" + export_symbols= + always_export_symbols=yes + fi + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + func_len " $cmd" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" = yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags="$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$ECHO "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then + output=${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + $ECHO 'INPUT (' > $output + for obj in $save_libobjs + do + $ECHO "$obj" >> $output + done + $ECHO ')' >> $output + delfiles="$delfiles $output" + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then + output=${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test "$compiler_needs_object" = yes; then + firstobj="$1 " + shift + fi + for obj + do + $ECHO "$obj" >> $output + done + delfiles="$delfiles $output" + output=$firstobj\"$file_list_spec$output\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-${k}.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test "X$objlist" = X || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + if test -n "$last_robj"; then + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" + fi + delfiles="$delfiles $output" + + else + output= + fi + + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + fi + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + fi + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $dlprefiles + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` + else + gentop="$output_objdir/${obj}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" + + test "$preload" = yes \ + && test "$dlopen_support" = unknown \ + && test "$dlopen_self" = unknown \ + && test "$dlopen_self_static" = unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" = CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=yes + case $host in + *cygwin* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + *cegcc) + # Disable wrappers for cegcc, we are cross compiling anyway. + wrappers_required=no + ;; + *) + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + esac + if test "$wrappers_required" = no; then + # Replace the output file specification. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' + fi + + exit $exit_status + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi + + # Quote $ECHO for shipping. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save $symfileobj" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + if test "$preload" = yes && test -f "$symfileobj"; then + oldobjs="$oldobjs $symfileobj" + fi + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $dlprefiles + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $ECHO "copying selected object files to avoid basename conflicts..." + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase="$func_basename_result" + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac + done + fi + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlfiles="$newdlfiles $libdir/$name" + ;; + *) newdlfiles="$newdlfiles $lib" ;; + esac + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlprefiles="$newdlprefiles $libdir/$name" + ;; + esac + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +{ test "$mode" = link || test "$mode" = relink; } && + func_mode_link ${1+"$@"} + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) RM="$RM $arg"; rmforce=yes ;; + -*) RM="$RM $arg" ;; + *) files="$files $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + origobjdir="$objdir" + for file in $files; do + func_dirname "$file" "" "." + dir="$func_dirname_result" + if test "X$dir" = X.; then + objdir="$origobjdir" + else + objdir="$dir/$origobjdir" + fi + func_basename "$file" + name="$func_basename_result" + test "$mode" = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates + if test "$mode" = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles="$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + + case "$mode" in + clean) + case " $library_names " in + # " " in the beginning catches empty $dlname + *" $dlname "*) ;; + *) rmfiles="$rmfiles $objdir/$dlname" ;; + esac + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && + test "$pic_object" != none; then + rmfiles="$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && + test "$non_pic_object" != none; then + rmfiles="$rmfiles $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$mode" = clean ; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles="$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + rmfiles="$rmfiles $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles="$rmfiles $objdir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + objdir="$origobjdir" + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +{ test "$mode" = uninstall || test "$mode" = clean; } && + func_mode_uninstall ${1+"$@"} + +test -z "$mode" && { + help="$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: +# vi:sw=2 + + +# ### BEGIN LIBTOOL TAG CONFIG: CXX + +# The linker used to build libraries. +LD="/usr/bin/ld -m elf_x86_64" + +# Commands used to build an old-style archive. +old_archive_cmds="\$AR \$AR_FLAGS \$oldlib\$oldobjs~\$RANLIB \$oldlib" + +# A language specific compiler. +CC="g++" + +# Is the compiler the GNU compiler? +with_gcc=yes + +# Compiler flag to turn off builtin functions. +no_builtin_flag=" -fno-builtin" + +# How to pass a linker flag through the compiler. +wl="-Wl," + +# Additional compiler flags for building library objects. +pic_flag=" -fPIC -DPIC" + +# Compiler flag to prevent dynamic linking. +link_static_flag="-static" + +# Does compiler simultaneously support -c and -o options? +compiler_c_o="yes" + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=no + +# Whether or not to disallow shared libs when runtime libs are static. +allow_libtool_libs_with_static_runtimes=no + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec="\${wl}--export-dynamic" + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec="\${wl}--whole-archive\$convenience \${wl}--no-whole-archive" + +# Whether the compiler copes with passing no objects directly. +compiler_needs_object="no" + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds="" + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds="" + +# Commands used to build a shared archive. +archive_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname -o \$lib" +archive_expsym_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs \$deplibs \$postdep_objects \$compiler_flags \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib" + +# Commands used to build a loadable module if different from building +# a shared archive. +module_cmds="" +module_expsym_cmds="" + +# Whether we are building with GNU ld or not. +with_gnu_ld="yes" + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag="" + +# Flag that enforces no undefined symbols. +no_undefined_flag="" + +# Flag to hardcode $libdir into a binary during linking. +# This must work even if $libdir does not exist +hardcode_libdir_flag_spec="\${wl}-rpath \${wl}\$libdir" + +# If ld is used when linking, flag to hardcode $libdir into a binary +# during linking. This must work even if $libdir does not exist. +hardcode_libdir_flag_spec_ld="" + +# Whether we need a single "-rpath" flag with a separated argument. +hardcode_libdir_separator="" + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary. +hardcode_direct=no + +# Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes +# DIR into the resulting binary and the resulting library dependency is +# "absolute",i.e impossible to change by setting ${shlibpath_var} if the +# library is relocated. +hardcode_direct_absolute=no + +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR +# into the resulting binary. +hardcode_minus_L=no + +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR +# into the resulting binary. +hardcode_shlibpath_var=unsupported + +# Set to "yes" if building a shared library automatically hardcodes DIR +# into the library and all subsequent libraries and executables linked +# against it. +hardcode_automatic=no + +# Set to yes if linker adds runtime paths of dependent libraries +# to runtime path list. +inherit_rpath=no + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=unknown + +# Fix the shell variable $srcfile for the compiler. +fix_srcfile_path="" + +# Set to "yes" if exported symbols are required. +always_export_symbols=no + +# The commands to list exported symbols. +export_symbols_cmds="\$NM \$libobjs \$convenience | \$global_symbol_pipe | \$SED 's/.* //' | sort | uniq > \$export_symbols" + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*" + +# Symbols that must always be exported. +include_expsyms="" + +# Commands necessary for linking programs (against libraries) with templates. +prelink_cmds="" + +# Specify filename containing input files. +file_list_spec="" + +# How to hardcode a shared library path into an executable. +hardcode_action=immediate + +# The directories searched by this compiler when creating a shared library. +compiler_lib_search_dirs="/usr/lib/gcc/x86_64-linux-gnu/9 /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu /usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /usr/lib/gcc/x86_64-linux-gnu/9/../../.." + +# Dependencies to place before and after the objects being linked to +# create a shared library. +predep_objects="/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o" +postdep_objects="/usr/lib/gcc/x86_64-linux-gnu/9/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crtn.o" +predeps="" +postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s" + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path="-L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.." + +# ### END LIBTOOL TAG CONFIG: CXX diff --git a/supportware/ltmain.sh b/supportware/ltmain.sh new file mode 100644 index 0000000..b36c4ad --- /dev/null +++ b/supportware/ltmain.sh @@ -0,0 +1,8406 @@ +# Generated from ltmain.m4sh. + +# ltmain.sh (GNU libtool) 2.2.6 +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print informational messages (default) +# --version print version information +# -h, --help print short or long help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.2.6 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to . + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=2.2.6 +TIMESTAMP="" +package_revision=1.3012 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# NLS nuisances: We save the old values to restore during execute mode. +# Only set LANG and LC_ALL to C if already set. +# These must not be set unconditionally because not all systems understand +# e.g. LANG=C (notably SCO). +lt_user_locale= +lt_safe_locale= +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" + fi" +done + +$lt_unset CDPATH + + + + + +: ${CP="cp -f"} +: ${ECHO="echo"} +: ${EGREP="/usr/bin/grep -E"} +: ${FGREP="/usr/bin/grep -F"} +: ${GREP="/usr/bin/grep"} +: ${LN_S="ln -s"} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SED="/opt/local/bin/gsed"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} +: ${Xsed="$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +exit_status=$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=' +' +IFS=" $lt_nl" + +dirname="s,/[^/]*$,," +basename="s,^.*/,," + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + # Extract subdirectory from the argument. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +# Generated shell functions inserted here. + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +# In the unlikely event $progname began with a '-', it would play havoc with +# func_echo (imagine progname=-n), so we prepend ./ in that case: +func_dirname_and_basename "$progpath" +progname=$func_basename_result +case $progname in + -*) progname=./$progname ;; +esac + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=$func_dirname_result + progdir=`cd "$progdir" && pwd` + progpath="$progdir/$progname" + ;; + *) + save_IFS="$IFS" + IFS=: + for progdir in $PATH; do + IFS="$save_IFS" + test -x "$progdir/$progname" && break + done + IFS="$save_IFS" + test -n "$progdir" || progdir=`pwd` + progpath="$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed="${SED}"' -e 1s/^X//' +sed_quote_subst='s/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\(["`\\]\)/\\\1/g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs='\\' +bs2='\\\\' +bs4='\\\\\\\\' +dollar='\$' +sed_double_backslash="\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=false +opt_help=false +opt_quiet=false +opt_verbose=false +opt_warning=: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname${mode+: }$mode: $*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help="Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path="$1" + my_dir_list= + + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path="./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list="$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` + done + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + + save_mkdir_p_IFS="$IFS"; IFS=':' + for my_dir in $my_dir_list; do + IFS="$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS="$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a directory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} + + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template="${TMPDIR-/tmp}/${1-$progname}" + + if test "$opt_dry_run" = ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir="${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir="${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir'" + fi + + $ECHO "X$my_tmpdir" | $Xsed +} + + +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () +{ + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; + *) + func_quote_for_eval_unquoted_result="$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" + ;; + *) + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" + esac +} + + +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + case $1 in + *[\\\`\"]*) + my_arg=`$ECHO "X$1" | $Xsed \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; + *) + my_arg="$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg="\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result="$my_arg" +} + + +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + my_cmd="$1" + my_fail_exp="${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + + + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $SED -n '/^# Usage:/,/# -h/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + $ECHO + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help +# Echo long help message to standard output and exit. +func_help () +{ + $SED -n '/^# Usage:/,/# Report bugs to/ { + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + p + }' < "$progpath" + exit $? +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + func_error "missing argument for $1" + exit_cmd=exit +} + +exit_cmd=: + + + + + +# Check that we have a working $ECHO. +if test "X$1" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" = X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell, and then maybe $ECHO will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi + +if test "X$1" = X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1; then + taglist="$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + +# Parse options once, thoroughly. This comes as soon as possible in +# the script to make things like `libtool --version' happen quickly. +{ + + # Shorthand for --mode=foo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + esac + + # Parse non-mode specific arguments: + while test "$#" -gt 0; do + opt="$1" + shift + + case $opt in + --config) func_config ;; + + --debug) preserve_args="$preserve_args $opt" + func_echo "enabling shell trace mode" + opt_debug='set -x' + $opt_debug + ;; + + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break + execute_dlfiles="$execute_dlfiles $1" + shift + ;; + + --dry-run | -n) opt_dry_run=: ;; + --features) func_features ;; + --finish) mode="finish" ;; + + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break + case $1 in + # Valid mode arguments: + clean) ;; + compile) ;; + execute) ;; + finish) ;; + install) ;; + link) ;; + relink) ;; + uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=exit + break + ;; + esac + + mode="$1" + shift + ;; + + --preserve-dup-deps) + opt_duplicate_deps=: ;; + + --quiet|--silent) preserve_args="$preserve_args $opt" + opt_silent=: + ;; + + --verbose| -v) preserve_args="$preserve_args $opt" + opt_silent=false + ;; + + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break + preserve_args="$preserve_args $opt $1" + func_enable_tag "$1" # tagname is set here + shift + ;; + + # Separate optargs to long options: + -dlopen=*|--mode=*|--tag=*) + func_opt_split "$opt" + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} + shift + ;; + + -\?|-h) func_usage ;; + --help) opt_help=: ;; + --version) func_version ;; + + -*) func_fatal_help "unrecognized option \`$opt'" ;; + + *) nonopt="$opt" + break + ;; + esac + done + + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=: + ;; + *) + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps + ;; + esac + + # Having warned about all mis-specified options, bail out if + # anything was wrong. + $exit_cmd $EXIT_FAILURE +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" != "$macro_revision"; then + if test "$VERSION" != "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro_revision. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +## ----------- ## +## Main. ## +## ----------- ## + +$opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then + func_fatal_configuration "not configured to build any kind of library" + fi + + test -z "$mode" && func_fatal_error "error: you must specify a MODE." + + + # Darwin sucks + eval std_shrext=\"$shrext_cmds\" + + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" != execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help="$help" + help="Try \`$progname --help --mode=$mode' for more information." +} + + +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=no + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" = yes +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix= + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_ltwrapper_scriptname_result="" + if func_ltwrapper_executable_p "$1"; then + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" + fi +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=$IFS; IFS='~' + for cmd in $1; do + IFS=$save_ifs + eval cmd=\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_quote_for_eval "$arg" + CC_quoted="$CC_quoted $func_quote_for_eval_result" + done + case "$@ " in + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=${1} + if test "$build_libtool_libs" = yes; then + write_lobj=\'${2}\' + else + write_lobj=none + fi + + if test "$build_old_libs" = yes; then + write_oldobj=\'${3}\' + else + write_oldobj=none + fi + + $opt_dry_run || { + cat >${write_libobj}T <?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell special characters." + func_dirname_and_basename "$obj" "/" "" + objname="$func_basename_result" + xdir="$func_dirname_result" + lobj=${xdir}$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test "$build_old_libs" = yes; then + removelist="$obj $lobj $libobj ${libobj}T" + else + removelist="$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=default + ;; + esac + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then + # non-PIC code in shared libraries is not supported + pic_mode=default + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" = no; then + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} + lockfile="$output_obj.lock" + else + output_obj= + need_locks=no + lockfile= + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new file + if test "$need_locks" = yes; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" = warn; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + removelist="$removelist $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + removelist="$removelist $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + if test -n "$fix_srcfile_path"; then + eval srcfile=\"$fix_srcfile_path\" + fi + func_quote_for_eval "$srcfile" + qsrcfile=$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" = yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=$base_compile + + if test "$pic_mode" != no; then + command="$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command="$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + command="$command -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next one + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test "$suppress_opt" = yes; then + suppress_output=' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" = yes; then + if test "$pic_mode" != yes; then + # Don't build PIC code + command="$base_compile $qsrcfile$pie_flag" + else + command="$base_compile $qsrcfile $pic_flag" + fi + if test "$compiler_c_o" = yes; then + command="$command -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + command="$command$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" = warn && + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test "$need_locks" != no; then + removelist=$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { +test "$mode" = compile && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, object or program, all the files associated +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -shared do not build a \`.o' file suitable for static linking + -static only build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component from +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library path + +This mode sets the library path environment variable according to \`-dlopen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are translated +into their corresponding uninstalled binary, and any of their required library +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should be +either the \`install' or \`cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation + +The rest of the components are interpreted as arguments to that command (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to create +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external symbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults to 0] + -weak LIBNAME declare that the target provides the LIBNAME interface + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' are +treated as uninstalled libtool libraries, other files are standard or library +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with each FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed +to RM. + +If FILE is a libtool library, all the files associated with it are deleted. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode \`$mode'" + ;; + esac + + $ECHO + $ECHO "Try \`$progname --help' for more information about other modes." + + exit $? +} + + # Now that we've collected a possible --mode arg, show help if necessary + $opt_help && func_mode_help + + +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd="$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" + + dir= + case $file in + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname= + library_names= + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir="$func_dirname_result" + + if test -f "$dir/$objdir/$dlname"; then + dir="$dir/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir="$func_dirname_result" + ;; + + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" + continue + ;; + esac + + # Get the absolute pathname. + absdir=`cd "$dir" && pwd` + test -n "$absdir" && dir="$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=\"\$dir\"" + else + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic="$magic" + + # Check if any of the arguments is a wrapper script. + args= + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file="$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file="$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_quote_for_eval "$file" + args="$args $func_quote_for_eval_result" + done + + if test "X$opt_dry_run" = Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" = set; then + $lt_var=\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd="\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" + $ECHO "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} + +test "$mode" = execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libdirs="$nonopt" + admincmds= + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs="$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=\"$finish_eval\" + $opt_dry_run || eval "$cmds" || admincmds="$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS + + $ECHO "X----------------------------------------------------------------------" | $Xsed + $ECHO "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + $ECHO + $ECHO "If you ever happen to want to link against installed libraries" + $ECHO "in a given directory, LIBDIR, you must either use libtool, and" + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" + $ECHO "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" + $ECHO " during execution" + fi + if test -n "$runpath_var"; then + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" + $ECHO " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=LIBDIR + eval flag=\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$admincmds" + fi + if test -f /etc/ld.so.conf; then + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + fi + $ECHO + + $ECHO "See any operating system documentation about shared libraries for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" + $ECHO "pages." + ;; + *) + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." + ;; + esac + $ECHO "X----------------------------------------------------------------------" | $Xsed + exit $EXIT_SUCCESS +} + +test "$mode" = finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || + # Allow the use of GNU shtool's install command. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog="$func_quote_for_eval_result " + arg=$1 + shift + else + install_prog= + arg=$nonopt + fi + + # The real first argument should be the name of the installation program. + # Aesthetically quote it. + func_quote_for_eval "$arg" + install_prog="$install_prog$func_quote_for_eval_result" + + # We need to accept at least all the BSD install flags. + dest= + files= + opts= + prev= + install_type= + isdir=no + stripme= + for arg + do + if test -n "$dest"; then + files="$files $dest" + dest=$arg + continue + fi + + case $arg in + -d) isdir=yes ;; + -f) + case " $install_prog " in + *[\\\ /]cp\ *) ;; + *) prev=$arg ;; + esac + ;; + -g | -m | -o) + prev=$arg + ;; + -s) + stripme=" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev= + else + dest=$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + install_prog="$install_prog $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=yes + if test "$isdir" = yes; then + destdir="$dest" + destname= + else + func_dirname_and_basename "$dest" "" "." + destdir="$func_dirname_result" + destname="$func_basename_result" + + # Not a directory, so check to see that there is only one file specified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + staticlibs= + future_libdirs= + current_libdirs= + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs="$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names= + old_library= + relink_command= + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" = "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs="$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs="$future_libdirs $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir="$func_dirname_result" + dir="$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" = "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname="$1" + shift + + srcname="$realname" + test -n "$relink_command" && srcname="$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme="$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme="" + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" != "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib="$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name="$func_basename_result" + instname="$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=$func_lo2o_result + ;; + *.$objext) + staticdest="$destfile" + destfile= + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test "$build_old_libs" = yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile="$destdir/$destname" + else + func_basename "$file" + destfile="$func_basename_result" + destfile="$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=$func_stripname_result + stripped_ext=".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=$func_stripname_result + fi + ;; + *) + wrapper=$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs= + relink_command= + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=yes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir= + if test -f "$lib"; then + func_source "$lib" + fi + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=no + fi + done + + relink_command= + func_source "$wrapper" + + outputname= + if test "$fast_install" = no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" = yes; then + tmpdir=`func_mktempdir` + func_basename "$file$stripped_ext" + file="$func_basename_result" + outputname="$tmpdir/$file" + # Replace the output file specification. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before installing it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file="$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name="$func_basename_result" + + # Set up the ranlib parameters. + oldlib="$destdir/$name" + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'" + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=" -n$current_libdirs" + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' + else + exit $EXIT_SUCCESS + fi +} + +test "$mode" = install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname="$1" + my_originator="$2" + my_pic_p="${3-no}" + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms= + + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms="${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened files" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist="$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" = yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + for progfile in $progfiles; do + func_verbose "extracting global C symbols from \`$progfile'" + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols="$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name="$func_basename_result" + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' + else + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + $ECHO >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +" + case $host in + *cygwin* | *mingw* | *cegcc* ) + $ECHO >> "$output_objdir/$my_dlsyms" "\ +/* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs. */" + lt_dlsym_const= ;; + *osf5*) + echo >> "$output_objdir/$my_dlsyms" "\ +/* This system does not cope well with relocations in const data */" + lt_dlsym_const= ;; + *) + lt_dlsym_const=const ;; + esac + + $ECHO >> "$output_objdir/$my_dlsyms" "\ +extern $lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +$lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] = +{\ + { \"$my_originator\", (void *) 0 }," + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" + ;; + esac + $ECHO >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable= + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=" $pic_flag" ;; + *) + if test "X$my_pic_p" != Xno; then + pic_flag_for_symtable=" $pic_flag" + fi + ;; + esac + ;; + esac + symtab_cflags= + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) symtab_cflags="$symtab_cflags $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' + + # Transform the symbol file into the correct name. + symfileobj="$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + fi + ;; + *) + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe + # really was required. + + # Nullify the symbol file. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` + fi +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + $opt_debug + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type="x86 archive import";; + *) win32_libid_type="x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib="$func_basename_result" + my_xlib_u=$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=$func_arith_result + my_xlib_u=lt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives="$extracted_archives $my_xlib_u" + my_xdir="$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`basename "$darwin_archive"` + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done + + func_extract_archives_result="$my_oldobjs" +} + + + +# func_emit_wrapper_part1 [arg=no] +# +# Emit the first part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part1 () +{ + func_emit_wrapper_part1_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part1_arg1=$1 + fi + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='${SED} -e 1s/^X//' +sed_quote_subst='$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'='\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" = \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version='$macro_version' + notinst_deplibs='$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already set. + if test \"\$libtool_execute_magic\" != \"$magic\"; then + ECHO=\"$qecho\" + file=\"\$0\" + # Make sure echo works. + if test \"X\$1\" = X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then + # Yippee, \$ECHO works! + : + else + # Restart under the correct shell, and then maybe \$ECHO will work. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $ECHO "\ + + # Find the directory that this script lives in. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" = \"x\$file\" && thisdir=. + + # Follow symbolic links until we get to the real thisdir. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" != \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; + *) thisdir=\"\$thisdir/\$destdir\" ;; + esac + fi + + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done +" +} +# end: func_emit_wrapper_part1 + +# func_emit_wrapper_part2 [arg=no] +# +# Emit the second part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part2 () +{ + func_emit_wrapper_part2_arg1=no + if test -n "$1" ; then + func_emit_wrapper_part2_arg1=$1 + fi + + $ECHO "\ + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then + # special case for '.' + if test \"\$thisdir\" = \".\"; then + thisdir=\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=\"\$absdir\" +" + + if test "$fast_install" = yes; then + $ECHO "\ + program=lt-'$outputname'$exeext + progdir=\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" != \"X\$progdir/\$program\"; }; then + + file=\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program='$outputname' + progdir=\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=$dllsearchpath:\$PATH +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" != \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} +# end: func_emit_wrapper_part2 + + +# func_emit_wrapper [arg=no] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=no + if test -n "$1" ; then + func_emit_wrapper_arg1=$1 + fi + + # split this up so that func_emit_cwrapperexe_src + # can call each part independently. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" +} + + +# func_to_host_path arg +# +# Convert paths to host format when used with build tools. +# Intended for use with "native" mingw (where libtool itself +# is running under the msys shell), or in the following cross- +# build environments: +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# where wine is equipped with the `winepath' executable. +# In the native mingw case, the (msys) shell automatically +# converts paths for any non-msys applications it launches, +# but that facility isn't available from inside the cwrapper. +# Similar accommodations are necessary for $host mingw and +# $build cygwin. Calling this function does no harm for other +# $host/$build combinations not listed above. +# +# ARG is the path (on $build) that should be converted to +# the proper representation for $host. The result is stored +# in $func_to_host_path_result. +func_to_host_path () +{ + func_to_host_path_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + case $build in + *mingw* ) # actually, msys + # awkward: cmd appends spaces to result + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_path_tmp1=`( cmd //c echo "$1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_path_tmp1=`cygpath -w "$1"` + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # Unfortunately, winepath does not exit with a non-zero + # error code, so we are forced to check the contents of + # stdout. On the other hand, if the command is not + # found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both + # error code of zero AND non-empty stdout, which explains + # the odd construction: + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ + $SED -e "$lt_sed_naive_backslashify"` + else + # Allow warning below. + func_to_host_path_result="" + fi + ;; + esac + if test -z "$func_to_host_path_result" ; then + func_error "Could not determine host path corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback: + func_to_host_path_result="$1" + fi + ;; + esac + fi +} +# end: func_to_host_path + +# func_to_host_pathlist arg +# +# Convert pathlists to host format when used with build tools. +# See func_to_host_path(), above. This function supports the +# following $build/$host combinations (but does no harm for +# combinations not listed here): +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# +# Path separators are also converted from $build format to +# $host format. If ARG begins or ends with a path separator +# character, it is preserved (but converted to $host format) +# on output. +# +# ARG is a pathlist (on $build) that should be converted to +# the proper representation on $host. The result is stored +# in $func_to_host_pathlist_result. +func_to_host_pathlist () +{ + func_to_host_pathlist_result="$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_to_host_pathlist_tmp2="$1" + # Once set for this call, this variable should not be + # reassigned. It is used in tha fallback case. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e 's|^:*||' -e 's|:*$||'` + case $build in + *mingw* ) # Actually, msys. + # Awkward: cmd appends spaces to result. + lt_sed_strip_trailing_spaces="s/[ ]*\$//" + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # unfortunately, winepath doesn't convert pathlists + func_to_host_pathlist_result="" + func_to_host_pathlist_oldIFS=$IFS + IFS=: + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do + IFS=$func_to_host_pathlist_oldIFS + if test -n "$func_to_host_pathlist_f" ; then + func_to_host_path "$func_to_host_pathlist_f" + if test -n "$func_to_host_path_result" ; then + if test -z "$func_to_host_pathlist_result" ; then + func_to_host_pathlist_result="$func_to_host_path_result" + else + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" + fi + fi + fi + IFS=: + done + IFS=$func_to_host_pathlist_oldIFS + ;; + esac + if test -z "$func_to_host_pathlist_result" ; then + func_error "Could not determine the host path(s) corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not work." + # Fallback. This may break if $1 contains DOS-style drive + # specifications. The fix is not to complicate the expression + # below, but for the user to provide a working wine installation + # with winepath so that path translation in the cross-to-mingw + # case works properly. + lt_replace_pathsep_nix_to_dos="s|:|;|g" + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ + $SED -e "$lt_replace_pathsep_nix_to_dos"` + fi + # Now, add the leading and trailing path separators back + case "$1" in + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" + ;; + esac + case "$1" in + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" + ;; + esac + ;; + esac + fi +} +# end: func_to_host_pathlist + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#ifdef _MSC_VER +# include +# include +# include +# define setmode _setmode +#else +# include +# include +# ifdef __CYGWIN__ +# include +# define HAVE_SETENV +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +#ifdef _MSC_VER +# define S_IXUSR _S_IEXEC +# define stat _stat +# ifndef _INTPTR_T_DEFINED +# define intptr_t int +# endif +#endif + +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifdef __CYGWIN__ +# define FOPEN_WB "wb" +#endif + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +#undef LTWRAPPER_DEBUGPRINTF +#if defined DEBUGWRAPPER +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args +static void +ltwrapper_debugprintf (const char *fmt, ...) +{ + va_list args; + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); +} +#else +# define LTWRAPPER_DEBUGPRINTF(args) +#endif + +const char *program_name = NULL; + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_fatal (const char *message, ...); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end); +void lt_opt_process_env_set (const char *arg); +void lt_opt_process_env_prepend (const char *arg); +void lt_opt_process_env_append (const char *arg); +int lt_split_name_value (const char *arg, char** name, char** value); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); + +static const char *script_text_part1 = +EOF + + func_emit_wrapper_part1 yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ "/' -e 's/$/\\n"/' + echo ";" + cat <"))); + for (i = 0; i < newargc; i++) + { + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : ""))); + } + +EOF + + case $host_os in + mingw*) + cat <<"EOF" + /* execv doesn't actually work on mingw as expected on unix */ + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); + if (rval == -1) + { + /* failed to start process */ + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); + return 127; + } + return rval; +EOF + ;; + *) + cat <<"EOF" + execv (lt_argv_zero, newargz); + return rval; /* =127, but avoids unused variable warning */ +EOF + ;; + esac + + cat <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void *p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), + string) : NULL; +} + +const char * +base_name (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char) name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return base; +} + +int +check_executable (const char *path) +{ + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if ((stat (path, &st) >= 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval = 0; + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >= 0) + { + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash = 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; + + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); + + if ((wrapper == NULL) || (*wrapper == '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name = xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p = wrapper; *p; p++) + if (*p == '/') + { + has_slash = 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path = getenv ("PATH"); + if (path != NULL) + { + for (p = path; *p; p = p_next) + { + const char *q; + size_t p_len; + for (q = p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len = q - p; + p_next = (*q == '\0' ? q : q + 1); + if (p_len == 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name = + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] = '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + tmp_len = strlen (tmp); + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] = '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec = xstrdup (pathspec); + char *p; + int has_symlinks = 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", + tmp_pathspec)); + if (lstat (tmp_pathspec, &s) == 0) + { + if (S_ISLNK (s.st_mode) != 0) + { + has_symlinks = 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p = tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p = '\0'; + } + else + { + char *errstr = strerror (errno); + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec = realpath (pathspec, buf); + if (tmp_pathspec == 0) + { + lt_fatal ("Could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str != NULL); + assert (pat != NULL); + + len = strlen (str); + patlen = strlen (pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp (str, pat) == 0) + *str = '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} + +void +lt_setenv (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", + (name ? name : ""), + (value ? value : ""))); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str = xstrdup (value); + setenv (name, str, 1); +#else + int len = strlen (name) + 1 + strlen (value) + 1; + char *str = XMALLOC (char, len); + sprintf (str, "%s=%s", name, value); + if (putenv (str) != EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len = strlen (orig_value); + int add_len = strlen (add); + new_value = XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value = xstrdup (add); + } + return new_value; +} + +int +lt_split_name_value (const char *arg, char** name, char** value) +{ + const char *p; + int len; + if (!arg || !*arg) + return 1; + + p = strchr (arg, (int)'='); + + if (!p) + return 1; + + *value = xstrdup (++p); + + len = strlen (arg) - strlen (*value); + *name = XMALLOC (char, len); + strncpy (*name, arg, len-1); + (*name)[len - 1] = '\0'; + + return 0; +} + +void +lt_opt_process_env_set (const char *arg) +{ + char *name = NULL; + char *value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); + } + + lt_setenv (name, value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_prepend (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); + } + + new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_append (const char *arg) +{ + char *name = NULL; + char *value = NULL; + char *new_value = NULL; + + if (lt_split_name_value (arg, &name, &value) != 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); + } + + new_value = lt_extend_str (getenv (name), value, 1); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", + (name ? name : ""), + (value ? value : ""))); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len = strlen (new_value); + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) + { + new_value[len-1] = '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", + (name ? name : ""), + (value ? value : ""))); + + if (name && *name && value && *value) + { + char *new_value = lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + + +EOF +} +# end: func_emit_cwrapperexe_src + +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=no + + # FIXME: Unfortunately, there are problems with the above when trying + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static library. + allow_undefined=yes + ;; + *) + allow_undefined=yes + ;; + esac + libtool_args=$nonopt + base_compile="$nonopt $@" + compile_command=$nonopt + finalize_command=$nonopt + + compile_rpath= + finalize_rpath= + compile_shlibpath= + finalize_shlibpath= + convenience= + old_convenience= + deplibs= + old_deplibs= + compiler_flags= + linker_flags= + dllsearchpath= + lib_search_path=`pwd` + inst_prefix_dir= + new_inherited_linker_flags= + + avoid_version=no + dlfiles= + dlprefiles= + dlself=no + export_dynamic=no + export_symbols= + export_symbols_regex= + generated= + libobjs= + ltlibs= + module=no + no_install=no + objs= + non_pic_objects= + precious_files_regex= + prefer_static_libs=no + preload=no + prev= + prevarg= + release= + rpath= + xrpath= + perm_rpath= + temp_rpath= + thread_safe=no + vinfo= + vinfo_number=no + weak_libs= + single_module="${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" != yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=no + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then + func_warning "complete static linking is impossible in this configuration" + fi + if test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=built + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=$dlopen_self_static + fi + prefer_static_libs=yes + ;; + esac + build_libtool_libs=no + build_old_libs=yes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg="$1" + shift + func_quote_for_eval "$arg" + qarg=$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + dlfiles|dlprefiles) + if test "$preload" = no; then + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=yes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" = no; then + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + self) + if test "$prev" = dlprefiles; then + dlself=yes + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then + dlself=yes + else + dlself=needless + export_dynamic=yes + fi + prev= + continue + ;; + *) + if test "$prev" = dlfiles; then + dlfiles="$dlfiles $arg" + else + dlprefiles="$dlprefiles $arg" + fi + prev= + continue + ;; + esac + ;; + expsyms) + export_symbols="$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev= + continue + ;; + expsyms_regex) + export_symbols_regex="$arg" + prev= + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev= + continue + ;; + inst_prefix) + inst_prefix_dir="$arg" + prev= + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat "$save_arg"` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file \`$arg' does not exist" + fi + arg=$save_arg + prev= + continue + ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; + release) + release="-$arg" + prev= + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test "$prev" = rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath="$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath="$xrpath $arg" ;; + esac + fi + prev= + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + weak) + weak_libs="$weak_libs $arg" + prev= + continue + ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + compiler_flags="$compiler_flags $qarg" + prev= + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $wl$qarg" + prev= + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=\"\$arg\"" + prev= + continue + ;; + esac + fi # test -n "$prev" + + prevarg="$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is the default" + ;; + + -avoid-version) + avoid_version=yes + continue + ;; + + -dlopen) + prev=dlfiles + continue + ;; + + -dlpreopen) + prev=dlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=yes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not allowed" + fi + if test "X$arg" = "X-export-symbols"; then + prev=expsyms + else + prev=expsyms_regex + fi + continue + ;; + + -framework) + prev=framework + continue + ;; + + -inst-prefix-dir) + prev=inst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname '-L' '' "$arg" + dir=$func_stripname_result + if test -z "$dir"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$dir'" + dir="$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs="$deplibs -L$dir" + lib_search_path="$lib_search_path $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=$dir;; + *) dllsearchpath="$dllsearchpath:$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" = "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs="$deplibs System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" = "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" = "X-lc" && continue + ;; + esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs="$deplibs $arg" + continue + ;; + + -module) + module=yes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot) + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + compiler_flags="$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; + esac + continue + ;; + + -multi_module) + single_module="${wl}-multi_module" + continue + ;; + + -no-fast-install) + fast_install=no + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=no + ;; + *) no_install=yes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=no + continue + ;; + + -objectlist) + prev=objectlist + continue + ;; + + -o) prev=output ;; + + -precious-files-regex) + prev=precious_regex + continue + ;; + + -release) + prev=release + continue + ;; + + -rpath) + prev=rpath + continue + ;; + + -R) + prev=xrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=shrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=yes + continue + ;; + + -version-info) + prev=vinfo + continue + ;; + + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; + + -weak) + prev=weak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=$func_stripname_result + arg= + save_ifs="$IFS"; IFS=',' + for flag in $args; do + IFS="$save_ifs" + func_quote_for_eval "$flag" + arg="$arg $wl$func_quote_for_eval_result" + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" + linker_flags="$linker_flags $func_quote_for_eval_result" + done + IFS="$save_ifs" + func_stripname ' ' '' "$arg" + arg=$func_stripname_result + ;; + + -Xcompiler) + prev=xcompiler + continue + ;; + + -Xlinker) + prev=xlinker + continue + ;; + + -XCClinker) + prev=xcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* pass through architecture-specific + # compiler args for GCC + # -F/path gives path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" + func_append finalize_command " $arg" + compiler_flags="$compiler_flags $arg" + continue + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + + *.$objext) + # A standard object. + objs="$objs $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object= + non_pic_object= + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" = none && + test "$non_pic_object" = none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object="$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir="$func_dirname_result" + + func_lo2o "$arg" + pic_object=$xdir$objdir/$func_lo2o_result + non_pic_object=$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs="$deplibs $arg" + old_deplibs="$old_deplibs $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + if test "$prev" = dlfiles; then + # This library was specified with -dlopen. + dlfiles="$dlfiles $arg" + prev= + elif test "$prev" = dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles="$dlprefiles $arg" + prev= + else + deplibs="$deplibs $arg" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" + + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then + eval arg=\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs= + # calculate the name of the file, without its directory + func_basename "$output" + outputname="$func_basename_result" + libobjs_save="$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` + else + shlib_search_path= + fi + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir="$func_dirname_result$objdir" + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=oldlib ;; + *.lo | *.$objext) linkmode=obj ;; + *.la) linkmode=lib ;; + *) linkmode=prog ;; # Anything else should be a program. + esac + + specialdeplibs= + + libs= + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_duplicate_deps ; then + case "$libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + libs="$libs $deplib" + done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + + deplibs= + newdependency_libs= + newlib_search_path= + need_relink=no # whether we're linking any uninstalled libtool libraries + notinst_deplibs= # not-installed libtool libraries + notinst_path= # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes="conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" + ;; + esac + done + ;; + prog) + compile_deplibs= + finalize_deplibs= + alldeplibs=no + newdlfiles= + newdlprefiles= + passes="conv scan dlopen dlpreopen link" + ;; + *) passes="conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" = "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs= + for deplib in $deplibs; do + tmp_deplibs="$deplib $tmp_deplibs" + done + deplibs="$tmp_deplibs" + fi + + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then + case $pass in + dlopen) libs="$dlfiles" ;; + dlpreopen) libs="$dlprefiles" ;; + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test "$linkmode,$pass" = "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs= + case $lib in + *.la) func_source "$lib" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` + case " $weak_libs " in + *" $deplib_base "*) ;; + *) deplibs="$deplibs $deplib" ;; + esac + done + done + libs="$dlprefiles" + fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi + + for deplib in $libs; do + lib= + found=no + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=$func_stripname_result + if test "$linkmode" = lib; then + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done + done + if test "$found" != yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names= + old_library= + func_source "$lib" + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + if test "$linkmode" = lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs="$deplib $deplibs" + test "$pass" = conv && continue + newdependency_libs="$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + prog) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + if test "$pass" = scan; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" = link; then + func_stripname '-R' '' "$deplib" + dir=$func_stripname_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath="$xrpath $dir" ;; + esac + fi + deplibs="$deplib $deplibs" + continue + ;; + *.la) lib="$deplib" ;; + *.$libext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $ECHO + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because the file extensions .$libext of this argument makes me believe" + $ECHO "*** that it is just a static archive that I should not use here." + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs="$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" != link; then + deplibs="$deplib $deplibs" + else + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=yes + continue + ;; + esac # case $deplib + + if test "$found" = yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir="$func_dirname_result" + + dlname= + dlopen= + dlpreopen= + libdir= + library_names= + old_library= + inherited_linker_flags= + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=yes + shouldnotlink=no + avoidtemprpath= + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; + esac + done + fi + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan" || + { test "$linkmode" != prog && test "$linkmode" != lib; }; then + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" + fi + + if test "$pass" = conv; then + # Only check for convenience libraries + deplibs="$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + convenience="$convenience $ladir/$objdir/$old_library" + old_convenience="$old_convenience $ladir/$objdir/$old_library" + elif test "$linkmode" != prog && test "$linkmode" != lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + tmp_libs= + for deplib in $dependency_libs; do + deplibs="$deplib $deplibs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + continue + fi # $pass = conv + + + # Get the name of the library we link against. + linklib= + for l in $old_library $library_names; do + linklib="$l" + done + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" = dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" + else + newdlfiles="$newdlfiles $lib" + fi + continue + fi # $pass = dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; + *) + abs_ladir=`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'" + func_warning "passing it literally to the linker, although it might fail" + abs_ladir="$ladir" + fi + ;; + esac + func_basename "$lib" + laname="$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" = Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then + func_warning "library \`$lib' was moved." + dir="$ladir" + absdir="$abs_ladir" + libdir="$abs_ladir" + else + dir="$libdir" + absdir="$libdir" + fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi + fi # $installed = yes + func_stripname 'lib' '.la' "$laname" + name=$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" = dlpreopen; then + if test -z "$libdir" && test "$linkmode" = prog; then + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles="$newdlprefiles $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles="$newdlprefiles $dir/$dlname" + else + newdlprefiles="$newdlprefiles $dir/$linklib" + fi + fi # $pass = dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" = lib; then + deplibs="$dir/$old_library $deplibs" + elif test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$dir/$old_library $compile_deplibs" + finalize_deplibs="$dir/$old_library $finalize_deplibs" + else + deplibs="$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" = prog && test "$pass" != link; then + newlib_search_path="$newlib_search_path $ladir" + deplibs="$lib $deplibs" + + linkalldeplibs=no + if test "$link_all_deplibs" != no || test -z "$library_names" || + test "$build_libtool_libs" = no; then + linkalldeplibs=yes + fi + + tmp_libs= + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + newlib_search_path="$newlib_search_path $func_stripname_result" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" = yes; then + deplibs="$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs="$deplib $newdependency_libs" + fi + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode = prog... + + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" = no || + test "$prefer_static_libs,$installed" = "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) temp_rpath="$temp_rpath$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass = prog,link... + + if test "$alldeplibs" = yes && + { test "$deplibs_check_method" = pass_all || + { test "$build_libtool_libs" = yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=no # Whether the deplib will be linked statically + use_static_libs=$prefer_static_libs + if test "$use_static_libs" = built && test "$installed" = yes; then + use_static_libs=no + fi + if test -n "$library_names" && + { test "$use_static_libs" = no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs="$notinst_deplibs $lib" + need_relink=no + ;; + *) + if test "$installed" = no; then + notinst_deplibs="$notinst_deplibs $lib" + need_relink=yes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule="" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" = "X$lib"; then + dlopenmodule="$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then + $ECHO + if test "$linkmode" = prog; then + $ECHO "*** Warning: Linking the executable $output against the loadable module" + else + $ECHO "*** Warning: Linking the shared library $output against the loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname="$1" + shift + libname=`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname="$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + esac + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot="$soname" + func_basename "$soroot" + soname="$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=libimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=$output_objdir + linklib=$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" = prog || test "$mode" != relink; then + add_shlibpath= + add_dir= + add= + lib_linked=yes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" = no; then + add="$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; + *-*-sysv4*uw2*) add_dir="-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" != "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $ECHO + $ECHO "*** And there doesn't seem to be a static archive available" + $ECHO "*** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + elif test -n "$old_library"; then + add="$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" = no; then + case $host in + *-*-sunos*) add_shlibpath="$dir" ;; + esac + add_dir="-L$dir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = no; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + relink) + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$dir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + add_shlibpath="$dir" + add="-l$name" + else + lib_linked=no + fi + ;; + *) lib_linked=no ;; + esac + + if test "$lib_linked" != yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" = prog; then + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" + test -n "$add" && compile_deplibs="$add $compile_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + if test "$hardcode_direct" != yes && + test "$hardcode_minus_L" != yes && + test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" = prog || test "$mode" = relink; then + add_shlibpath= + add_dir= + add= + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" = yes && + test "$hardcode_direct_absolute" = no; then + add="$libdir/$linklib" + elif test "$hardcode_minus_L" = yes; then + add_dir="-L$libdir" + add="-l$name" + elif test "$hardcode_shlibpath_var" = yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; + esac + add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add="-l$name" + fi + + if test "$linkmode" = prog; then + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs="$add_dir $deplibs" + test -n "$add" && deplibs="$add $deplibs" + fi + fi + elif test "$linkmode" = prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" != unsupported; then + test -n "$old_library" && linklib="$old_library" + compile_deplibs="$dir/$linklib $compile_deplibs" + finalize_deplibs="$dir/$linklib $finalize_deplibs" + else + compile_deplibs="-l$name -L$dir $compile_deplibs" + finalize_deplibs="-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" = yes; then + # Not a shared library + if test "$deplibs_check_method" != pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $ECHO + $ECHO "*** Warning: This system can not link to static lib archive $lib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have." + if test "$module" = yes; then + $ECHO "*** But as you try to build a module library, libtool will still create " + $ECHO "*** a static module, that should work as long as the dlopening application" + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + else + deplibs="$dir/$old_library $deplibs" + link_static=yes + fi + fi # link shared/static library? + + if test "$linkmode" = lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then + # Extract -R from dependency_libs + temp_deplibs= + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath="$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs="$temp_deplibs $libdir";; + esac + done + dependency_libs="$temp_deplibs" + fi + + newlib_search_path="$newlib_search_path $absdir" + # Link against this library + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" + # ... and its dependency_libs + tmp_libs= + for deplib in $dependency_libs; do + newdependency_libs="$deplib $newdependency_libs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; + esac + fi + tmp_libs="$tmp_libs $deplib" + done + + if test "$link_all_deplibs" != no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path="$deplib" ;; + *.la) + func_dirname "$deplib" "" "." + dir="$func_dirname_result" + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; + *) + absdir=`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir="$dir" + fi + ;; + esac + if $GREP "^installed=no" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl= + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl="$absdir/$objdir/$depdepl" + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` + fi + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" + path= + fi + fi + ;; + *) + path="-L$absdir/$objdir" + ;; + esac + else + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" != "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path="-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs="$path $deplibs" ;; + esac + done + fi # link_all_deplibs != no + fi # linkmode = lib + done # for deplib in $libs + if test "$pass" = link; then + if test "$linkmode" = "prog"; then + compile_deplibs="$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs="$deplib $deplibs" + done + fi + if test "$pass" != dlopen; then + if test "$pass" != conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path= + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path="$lib_search_path $dir" ;; + esac + done + newlib_search_path= + fi + + if test "$linkmode,$pass" != "prog,link"; then + vars="deplibs" + else + vars="compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=\"\$$var\" + new_libs= + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs="$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs= + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs="$tmp_libs $deplib" ;; + esac + done + eval $var=\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs + done # for pass + if test "$linkmode" = prog; then + dlfiles="$newdlfiles" + fi + if test "$linkmode" = prog || test "$linkmode" = lib; then + dlprefiles="$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=no + oldlibs="$output" + objs="$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + ;; + *) + test "$module" = no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" != no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=$func_stripname_result + eval shared_ext=\"$shrext_cmds\" + eval libname=\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" != pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the non-libtool" + $ECHO "*** objects $objs is not portable!" + libobjs="$libobjs $objs" + fi + fi + + test "$dlself" != no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir="$1" + + oldlibs= + if test -z "$rpath"; then + if test "$build_libtool_libs" = yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs="$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=convenience + build_old_libs=yes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for convenience libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs="$IFS"; IFS=':' + set dummy $vinfo 0 0 0 + shift + IFS="$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$1" + number_minor="$2" + number_revision="$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=$func_arith_result + age="$number_minor" + revision="$number_minor" + lt_irix_increment=no + ;; + esac + ;; + no) + current="$1" + revision="$2" + age="$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major= + versuffix= + verstring= + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=$func_arith_result + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + + freebsd-aout) + major=".$current" + versuffix=".$current.$revision"; + ;; + + freebsd-elf) + major=".$current" + versuffix=".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" = "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=nonstopux ;; + *) verstring_prefix=sgi ;; + esac + verstring="$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=.$major + versuffix="$major.$revision" + ;; + + linux) + func_arith $current - $age + major=.$func_arith_result + versuffix="$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=.$func_arith_result + versuffix=".$current.$age.$revision" + verstring="$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=$func_arith_result + func_arith $loop - 1 + loop=$func_arith_result + verstring="$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring="$verstring:${current}.0" + ;; + + qnx) + major=".$current" + versuffix=".$current" + ;; + + sunos) + major=".$current" + versuffix=".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=$func_arith_result + versuffix="-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_type'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major= + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring= + ;; + *) + verstring="0.0" + ;; + esac + if test "$need_version" = no; then + versuffix= + else + versuffix=".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" = yes && test "$need_version" = no; then + major= + versuffix= + verstring="" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" = yes; then + if test "$allow_undefined_flag" = unsupported; then + func_warning "undefined symbols not allowed in $host shared libraries" + build_libtool_libs=no + build_old_libs=yes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag="$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + libobjs="$libobjs $symfileobj" + test "X$libobjs" = "X " && libobjs= + + if test "$mode" != relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then + oldlibs="$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath= + for libdir in $xrpath; do + temp_xrpath="$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then + dependency_libs="$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpreopened + old_dlfiles="$dlfiles" + dlfiles= + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles="$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles="$dlprefiles" + dlprefiles= + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles="$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" = yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs="$deplibs System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" = "yes"; then + deplibs="$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=$name + libname_save=$libname + release_save=$release + versuffix_save=$versuffix + major_save=$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release="" + versuffix="" + major="" + newdeplibs= + droppeddeps=no + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib="$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=yes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a_deplib." + $ECHO "*** I have the capability to make that library automatically link in when" + $ECHO "*** you link to this library. But I can only do this if you have a" + $ECHO "*** shared version of the library, which you do not appear to have" + $ECHO "*** because I did check the linker path looking for a file starting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file format test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs="$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs="" + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` + done + fi + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | + $GREP . >/dev/null; then + $ECHO + if test "X$deplibs_check_method" = "Xnone"; then + $ECHO "*** Warning: inter-library dependencies are not supported in this platform." + else + $ECHO "*** Warning: inter-library dependencies are not known to be supported." + fi + $ECHO "*** All declared inter-library dependencies are being dropped." + droppeddeps=yes + fi + ;; + esac + versuffix=$versuffix_save + major=$major_save + release=$release_save + libname=$libname_save + name=$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + if test "$droppeddeps" = yes; then + if test "$module" = yes; then + $ECHO + $ECHO "*** Warning: libtool could not satisfy all declared inter-library" + $ECHO "*** dependencies of module $libname. Therefore, libtool will create" + $ECHO "*** a static module, that should work as long as the dlopening" + $ECHO "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" + $ECHO "*** not find such a program. So, this module is probably useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + else + $ECHO "*** The inter-library dependencies that have been dropped here will be" + $ECHO "*** automatically added whenever a program is linked with this library" + $ECHO "*** or is declared to -dlopen it." + + if test "$allow_undefined" = no; then + $ECHO + $ECHO "*** Since this library must not contain undefined symbols," + $ECHO "*** because either the platform does not support them or" + $ECHO "*** it was explicitly requested with -no-undefined," + $ECHO "*** libtool will only create a static version of it." + if test "$build_old_libs" = no; then + oldlibs="$output_objdir/$libname.$libext" + build_libtool_libs=module + build_old_libs=yes + else + build_libtool_libs=no + fi + fi + fi + fi + # Done checking deplibs! + deplibs=$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + case $host in + *-*-darwin*) + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + deplibs="$new_libs" + + # All the library-specific variables (install_libdir is set above). + library_names= + old_library= + dlname= + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" = yes; then + if test "$hardcode_into_libs" = yes; then + # Hardcode the library paths + hardcode_libdirs= + dep_rpath= + rpath="$finalize_rpath" + test "$mode" != relink && rpath="$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + dep_rpath="$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" + fi + + shlibpath="$finalize_shlibpath" + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" + fi + + # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" + eval library_names=\"$library_names_spec\" + set dummy $library_names + shift + realname="$1" + shift + + if test -n "$soname_spec"; then + eval soname=\"$soname_spec\" + else + soname="$realname" + fi + if test -z "$dlname"; then + dlname=$soname + fi + + lib="$output_objdir/$realname" + linknames= + for link + do + linknames="$linknames $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + test "X$libobjs" = "X " && libobjs= + + delfiles= + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols="$output_objdir/$libname.uexp" + delfiles="$delfiles $export_symbols" + fi + + orig_export_symbols= + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols="$export_symbols" + export_symbols= + always_export_symbols=yes + fi + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=$export_symbols_cmds + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + func_len " $cmd" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + func_show_eval "$cmd" 'exit $?' + skipped_export=false + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS="$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" = yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec= + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + else + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + fi + + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then + eval flag=\"$thread_safe_flag_spec\" + linker_flags="$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && + func_len " $test_cmds" && + len=$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$ECHO "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + last_robj= + k=1 + + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then + output=${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + $ECHO 'INPUT (' > $output + for obj in $save_libobjs + do + $ECHO "$obj" >> $output + done + $ECHO ')' >> $output + delfiles="$delfiles $output" + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then + output=${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj= + if test "$compiler_needs_object" = yes; then + firstobj="$1 " + shift + fi + for obj + do + $ECHO "$obj" >> $output + done + delfiles="$delfiles $output" + output=$firstobj\"$file_list_spec$output\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=$output_objdir/$output_la-${k}.$objext + eval test_cmds=\"$reload_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + if test "X$objlist" = X || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" + fi + last_robj=$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=$func_arith_result + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + if test -n "$last_robj"; then + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" + fi + delfiles="$delfiles $output" + + else + output= + fi + + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" + fi + fi + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols="$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols + fi + fi + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" = "X " && libobjs= + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $dlprefiles + libobjs="$libobjs $func_extract_archives_result" + test "X$libobjs" = "X " && libobjs= + fi + + save_ifs="$IFS"; IFS='~' + for cmd in $cmds; do + IFS="$save_ifs" + eval cmd=\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=$? + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS="$save_ifs" + + # Restore the uninstalled library and exit + if test "$mode" = relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" != "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" = yes || test "$export_dynamic" = yes; then + # On all known operating systems, these are identical. + dlname="$soname" + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then + func_warning "\`-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-libtool objects" + + libobj=$output + func_lo2o "$libobj" + obj=$func_lo2o_result + ;; + *) + libobj= + obj="$output" + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs= + gentop= + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl= + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` + else + gentop="$output_objdir/${obj}x" + generated="$generated $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" + fi + fi + + # Create the old-style object. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test + + output="$obj" + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" != yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" != default; then + # Only do commands if we really have different PIC objects. + reload_objs="$libobjs $reload_conv_objs" + output="$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" + + test "$preload" = yes \ + && test "$dlopen_support" = unknown \ + && test "$dlopen_self" = unknown \ + && test "$dlopen_self_static" = unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" = CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework foo" + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs= + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs="$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs="$new_libs $deplib" ;; + esac + ;; + *) new_libs="$new_libs $deplib" ;; + esac + done + compile_deplibs="$new_libs" + + + compile_command="$compile_command $compile_deplibs" + finalize_command="$finalize_command $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath= + hardcode_libdirs= + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath="$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=$libdir;; + *) dllsearchpath="$dllsearchpath:$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=$testbindir;; + *) dllsearchpath="$dllsearchpath:$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + compile_rpath="$rpath" + + rpath= + hardcode_libdirs= + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs="$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" + ;; + esac + fi + else + eval flag=\"$hardcode_libdir_flag_spec\" + rpath="$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir="$hardcode_libdirs" + eval rpath=\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath="$rpath" + + if test -n "$libobjs" && test "$build_old_libs" = yes; then + # Transform all the library objects into standard objects. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=yes + case $host in + *cygwin* | *mingw* ) + if test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + *cegcc) + # Disable wrappers for cegcc, we are cross compiling anyway. + wrappers_required=no + ;; + *) + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then + wrappers_required=no + fi + ;; + esac + if test "$wrappers_required" = no; then + # Replace the output file specification. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + link_command="$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=0 + func_show_eval "$link_command" 'exit_status=$?' + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' + fi + + exit $exit_status + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" + fi + + compile_var= + finalize_var= + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $perm_rpath; do + rpath="$rpath$dir:" + done + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath= + for dir in $finalize_perm_rpath; do + rpath="$rpath$dir:" + done + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" = yes; then + # We don't need to create a wrapper script. + link_command="$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" = relink; then + # Fast installation is not supported + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" != no; then + link_command="$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" = yes; then + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command= + fi + else + link_command="$compile_var$compile_command$compile_rpath" + relink_command="$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + relink_command="(cd `pwd`; $relink_command)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + fi + + # Quote $ECHO for shipping. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=.exe + func_stripname '' '.exe' "$outputname" + outputname=$func_stripname_result ;; + *) exeext= ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=$func_basename_result + output_path=$func_dirname_result + cwrappersource="$output_path/$objdir/lt-$output_name.c" + cwrapper="$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" = "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" = convenience; then + oldobjs="$libobjs_save $symfileobj" + addlibs="$convenience" + build_libtool_libs=no + else + if test "$build_libtool_libs" = module; then + oldobjs="$libobjs_save" + build_libtool_libs=no + else + oldobjs="$old_deplibs $non_pic_objects" + if test "$preload" = yes && test -f "$symfileobj"; then + oldobjs="$oldobjs $symfileobj" + fi + fi + addlibs="$old_convenience" + fi + + if test -n "$addlibs"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then + cmds=$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + func_extract_archives $gentop $dlprefiles + oldobjs="$oldobjs $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $ECHO "copying selected object files to avoid basename conflicts..." + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + func_mkdir_p "$gentop" + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase="$func_basename_result" + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + func_arith $counter + 1 + counter=$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac + done + fi + eval cmds=\"$old_archive_cmds\" + + func_len " $cmds" + len=$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + oldobjs= + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + eval test_cmds=\"$old_archive_cmds\" + func_len " $test_cmds" + len0=$func_len_result + len=$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + len=$len0 + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library= + test "$build_old_libs" = yes && old_library="$libname.$libext" + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" + elif eval var_value=\$$var; test -z "$var_value"; then + relink_command="$var=; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + fi + done + # Quote the link command for shipping. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" = yes; then + if test -z "$install_libdir"; then + break + fi + output="$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs= + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + newdependency_libs="$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs="$newdependency_libs $deplib" ;; + esac + done + dependency_libs="$newdependency_libs" + newdlfiles= + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlfiles="$newdlfiles $libdir/$name" + ;; + *) newdlfiles="$newdlfiles $lib" ;; + esac + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name="$func_basename_result" + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlprefiles="$newdlprefiles $libdir/$name" + ;; + esac + done + dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + tdlname=$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='$tdlname' + +# Names of this library. +library_names='$library_names' + +# The name of the static archive. +old_library='$old_library' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs='$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names='$weak_libs' + +# Version information for $libname. +current=$current +age=$age +revision=$revision + +# Is this an already installed library? +installed=$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + +# Files to dlopen/dlpreopen +dlopen='$dlfiles' +dlpreopen='$dlprefiles' + +# Directory that this library needs to be installed in: +libdir='$install_libdir'" + if test "$installed" = no && test "$need_relink" = yes; then + $ECHO >> $output "\ +relink_command=\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +{ test "$mode" = link || test "$mode" = relink; } && + func_mode_link ${1+"$@"} + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM="$nonopt" + files= + rmforce= + exit_status=0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic="$magic" + + for arg + do + case $arg in + -f) RM="$RM $arg"; rmforce=yes ;; + -*) RM="$RM $arg" ;; + *) files="$files $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs= + + origobjdir="$objdir" + for file in $files; do + func_dirname "$file" "" "." + dir="$func_dirname_result" + if test "X$dir" = X.; then + objdir="$origobjdir" + else + objdir="$dir/$origobjdir" + fi + func_basename "$file" + name="$func_basename_result" + test "$mode" = uninstall && objdir="$dir" + + # Remember objdir for removal later, being careful to avoid duplicates + if test "$mode" = clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs="$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then + continue + fi + + rmfiles="$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles="$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" + + case "$mode" in + clean) + case " $library_names " in + # " " in the beginning catches empty $dlname + *" $dlname "*) ;; + *) rmfiles="$rmfiles $objdir/$dlname" ;; + esac + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && + test "$pic_object" != none; then + rmfiles="$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && + test "$non_pic_object" != none; then + rmfiles="$rmfiles $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$mode" = clean ; then + noexename=$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles="$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command= + func_source $func_ltwrapper_scriptname_result + rmfiles="$rmfiles $func_ltwrapper_scriptname_result" + else + relink_command= + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles="$rmfiles $objdir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=1' + done + objdir="$origobjdir" + + # Try to remove the ${objdir}s in the directories where we deleted files + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +{ test "$mode" = uninstall || test "$mode" = clean; } && + func_mode_uninstall ${1+"$@"} + +test -z "$mode" && { + help="$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: +# vi:sw=2 + diff --git a/supportware/missing b/supportware/missing new file mode 100644 index 0000000..6a37006 --- /dev/null +++ b/supportware/missing @@ -0,0 +1,336 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. +# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=: + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=configure.ac +else + configure_ac=configure.in +fi + +case "$1" in +--run) + # Try to run requested program, and just exit if it succeeds. + run= + shift + "$@" && exit 0 + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case "$1" in + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fails + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flags + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing 0.4 - GNU automake" + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + + aclocal*) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. + You can get \`$1Help2man' as part of \`Autoconf' from any GNU + archive site." + + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` + fi + if [ -f "$file" ]; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit 1 + fi + ;; + + makeinfo) + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then + # We have makeinfo, but it failed. + exit 1 + fi + + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` + fi + touch $file + ;; + + tar) + shift + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + fi + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg="$1" + if shift; then + case "$firstarg" in + *o*) + firstarg=`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case "$firstarg" in + *h*) + firstarg=`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequirements for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 diff --git a/supportware/mkinstalldirs b/supportware/mkinstalldirs new file mode 100644 index 0000000..d2d5f21 --- /dev/null +++ b/supportware/mkinstalldirs @@ -0,0 +1,111 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +errstatus=0 +dirmode="" + +usage="\ +Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." + +# process command line arguments +while test $# -gt 0 ; do + case $1 in + -h | --help | --h*) # -h for help + echo "$usage" 1>&2 + exit 0 + ;; + -m) # -m PERM arg + shift + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } + dirmode=$1 + shift + ;; + --) # stop option processing + shift + break + ;; + -*) # unknown option + echo "$usage" 1>&2 + exit 1 + ;; + *) # first non-opt arg + break + ;; + esac +done + +for file +do + if test -d "$file"; then + shift + else + break + fi +done + +case $# in + 0) exit 0 ;; +esac + +case $dirmode in + '') + if mkdir -p -- . 2>/dev/null; then + echo "mkdir -p -- $*" + exec mkdir -p -- "$@" + fi + ;; + *) + if mkdir -m "$dirmode" -p -- . 2>/dev/null; then + echo "mkdir -m $dirmode -p -- $*" + exec mkdir -m "$dirmode" -p -- "$@" + fi + ;; +esac + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case $pathcomp in + -*) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + else + if test ! -z "$dirmode"; then + echo "chmod $dirmode $pathcomp" + lasterr="" + chmod "$dirmode" "$pathcomp" || lasterr=$? + + if test ! -z "$lasterr"; then + errstatus=$lasterr + fi + fi + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# End: +# mkinstalldirs ends here diff --git a/supportware/src/.deps/ddaccessmanager.tpo b/supportware/src/.deps/ddaccessmanager.tpo new file mode 100644 index 0000000..9c2b735 --- /dev/null +++ b/supportware/src/.deps/ddaccessmanager.tpo @@ -0,0 +1,652 @@ +ddaccessmanager.o: ddaccessmanager.cpp /usr/include/stdc-predef.h \ + ddaccessmanager.h ddstringrow.h ddbaseobject.h ddstring.h \ + /usr/include/c++/9/string \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h /usr/include/c++/9/bits/move.h \ + /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h /usr/include/c++/9/new \ + /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/pthread.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc dddefines.h \ + /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ + /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h ddconfig.h \ + /usr/include/c++/9/set /usr/include/c++/9/bits/stl_set.h \ + /usr/include/c++/9/bits/stl_multiset.h ddstack.h \ + /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ + /usr/include/c++/9/bits/deque.tcc ddtoken.h ddmaprow.h + +/usr/include/stdc-predef.h: + +ddaccessmanager.h: + +ddstringrow.h: + +ddbaseobject.h: + +ddstring.h: + +/usr/include/c++/9/string: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/exception: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/pthread.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +ddconfig.h: + +/usr/include/c++/9/set: + +/usr/include/c++/9/bits/stl_set.h: + +/usr/include/c++/9/bits/stl_multiset.h: + +ddstack.h: + +/usr/include/c++/9/deque: + +/usr/include/c++/9/bits/stl_deque.h: + +/usr/include/c++/9/bits/deque.tcc: + +ddtoken.h: + +ddmaprow.h: diff --git a/supportware/src/.deps/ddbaseobject.tpo b/supportware/src/.deps/ddbaseobject.tpo new file mode 100644 index 0000000..8417a23 --- /dev/null +++ b/supportware/src/.deps/ddbaseobject.tpo @@ -0,0 +1,623 @@ +ddbaseobject.o: ddbaseobject.cpp /usr/include/stdc-predef.h \ + ddbaseobject.h ddstring.h /usr/include/c++/9/string \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h /usr/include/c++/9/bits/move.h \ + /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h /usr/include/c++/9/new \ + /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/pthread.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc dddefines.h \ + /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ + /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h + +/usr/include/stdc-predef.h: + +ddbaseobject.h: + +ddstring.h: + +/usr/include/c++/9/string: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/exception: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/pthread.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: diff --git a/supportware/src/.deps/ddbasetime.tpo b/supportware/src/.deps/ddbasetime.tpo new file mode 100644 index 0000000..1206eeb --- /dev/null +++ b/supportware/src/.deps/ddbasetime.tpo @@ -0,0 +1,628 @@ +ddbasetime.o: ddbasetime.cpp /usr/include/stdc-predef.h ddbasetime.h \ + ddbaseobject.h ddstring.h /usr/include/c++/9/string \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h /usr/include/c++/9/bits/move.h \ + /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h /usr/include/c++/9/new \ + /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/pthread.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc dddefines.h \ + /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ + /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ + /usr/include/x86_64-linux-gnu/sys/time.h + +/usr/include/stdc-predef.h: + +ddbasetime.h: + +ddbaseobject.h: + +ddstring.h: + +/usr/include/c++/9/string: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/exception: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/pthread.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +/usr/include/x86_64-linux-gnu/sys/time.h: diff --git a/supportware/src/.deps/ddconfig.tpo b/supportware/src/.deps/ddconfig.tpo new file mode 100644 index 0000000..1a1a347 --- /dev/null +++ b/supportware/src/.deps/ddconfig.tpo @@ -0,0 +1,648 @@ +ddconfig.o: ddconfig.cpp /usr/include/stdc-predef.h ddconfig.h \ + ddbaseobject.h ddstring.h /usr/include/c++/9/string \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h /usr/include/c++/9/bits/move.h \ + /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h /usr/include/c++/9/new \ + /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/pthread.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc dddefines.h \ + /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ + /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h /usr/include/c++/9/set \ + /usr/include/c++/9/bits/stl_set.h /usr/include/c++/9/bits/stl_multiset.h \ + ddstack.h /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ + /usr/include/c++/9/bits/deque.tcc ddstringrow.h ddtoken.h ddmaprow.h + +/usr/include/stdc-predef.h: + +ddconfig.h: + +ddbaseobject.h: + +ddstring.h: + +/usr/include/c++/9/string: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/exception: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/pthread.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +/usr/include/c++/9/set: + +/usr/include/c++/9/bits/stl_set.h: + +/usr/include/c++/9/bits/stl_multiset.h: + +ddstack.h: + +/usr/include/c++/9/deque: + +/usr/include/c++/9/bits/stl_deque.h: + +/usr/include/c++/9/bits/deque.tcc: + +ddstringrow.h: + +ddtoken.h: + +ddmaprow.h: diff --git a/supportware/src/.deps/dddataconnection.tpo b/supportware/src/.deps/dddataconnection.tpo new file mode 100644 index 0000000..7f8e743 --- /dev/null +++ b/supportware/src/.deps/dddataconnection.tpo @@ -0,0 +1,645 @@ +dddataconnection.o: dddataconnection.cpp /usr/include/stdc-predef.h \ + dddataconnection.h ddthreadmutex.h /usr/include/pthread.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h /usr/include/c++/9/stdexcept \ + /usr/include/c++/9/exception \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/new /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/move.h /usr/include/c++/9/bits/concept_check.h \ + /usr/include/c++/9/type_traits /usr/include/c++/9/string \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc ddbaseobject.h ddstring.h \ + dddefines.h /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/streambuf /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ + /usr/include/mysql/mysql.h /usr/include/mysql/mariadb_com.h \ + /usr/include/mysql/mariadb_version.h /usr/include/mysql/ma_list.h \ + /usr/include/mysql/mariadb_ctype.h /usr/include/mysql/mariadb_stmt.h \ + ddstringrow.h + +/usr/include/stdc-predef.h: + +dddataconnection.h: + +ddthreadmutex.h: + +/usr/include/pthread.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/exception: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/string: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +ddbaseobject.h: + +ddstring.h: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +/usr/include/mysql/mysql.h: + +/usr/include/mysql/mariadb_com.h: + +/usr/include/mysql/mariadb_version.h: + +/usr/include/mysql/ma_list.h: + +/usr/include/mysql/mariadb_ctype.h: + +/usr/include/mysql/mariadb_stmt.h: + +ddstringrow.h: diff --git a/supportware/src/.deps/dddataquery.tpo b/supportware/src/.deps/dddataquery.tpo new file mode 100644 index 0000000..1ae81c5 --- /dev/null +++ b/supportware/src/.deps/dddataquery.tpo @@ -0,0 +1,756 @@ +dddataquery.o: dddataquery.cpp /usr/include/stdc-predef.h dddataquery.h \ + dddataconnection.h ddthreadmutex.h /usr/include/pthread.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h /usr/include/c++/9/stdexcept \ + /usr/include/c++/9/exception \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/new /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/move.h /usr/include/c++/9/bits/concept_check.h \ + /usr/include/c++/9/type_traits /usr/include/c++/9/string \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc ddbaseobject.h ddstring.h \ + dddefines.h /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/streambuf /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h \ + /usr/include/mysql/mysql.h /usr/include/mysql/mariadb_com.h \ + /usr/include/mysql/mariadb_version.h /usr/include/mysql/ma_list.h \ + /usr/include/mysql/mariadb_ctype.h /usr/include/mysql/mariadb_stmt.h \ + ddmapmulti.h ddstringrow.h dddatatable.h ddmapptr.h ddmaprow.h \ + ddconfig.h /usr/include/c++/9/set /usr/include/c++/9/bits/stl_set.h \ + /usr/include/c++/9/bits/stl_multiset.h ddstack.h \ + /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ + /usr/include/c++/9/bits/deque.tcc ddtoken.h ddwebcgi.h ddioinfo.h \ + ddioobject.h ddbasetime.h /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + /usr/include/x86_64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \ + /usr/include/linux/types.h /usr/include/x86_64-linux-gnu/asm/types.h \ + /usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h dditem.h \ + ddiobuffer.h /usr/include/fcntl.h \ + /usr/include/x86_64-linux-gnu/bits/fcntl.h \ + /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/linux/falloc.h /usr/include/x86_64-linux-gnu/bits/fcntl2.h + +/usr/include/stdc-predef.h: + +dddataquery.h: + +dddataconnection.h: + +ddthreadmutex.h: + +/usr/include/pthread.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/exception: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/string: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +ddbaseobject.h: + +ddstring.h: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +/usr/include/mysql/mysql.h: + +/usr/include/mysql/mariadb_com.h: + +/usr/include/mysql/mariadb_version.h: + +/usr/include/mysql/ma_list.h: + +/usr/include/mysql/mariadb_ctype.h: + +/usr/include/mysql/mariadb_stmt.h: + +ddmapmulti.h: + +ddstringrow.h: + +dddatatable.h: + +ddmapptr.h: + +ddmaprow.h: + +ddconfig.h: + +/usr/include/c++/9/set: + +/usr/include/c++/9/bits/stl_set.h: + +/usr/include/c++/9/bits/stl_multiset.h: + +ddstack.h: + +/usr/include/c++/9/deque: + +/usr/include/c++/9/bits/stl_deque.h: + +/usr/include/c++/9/bits/deque.tcc: + +ddtoken.h: + +ddwebcgi.h: + +ddioinfo.h: + +ddioobject.h: + +ddbasetime.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +/usr/include/x86_64-linux-gnu/bits/statx.h: + +/usr/include/linux/stat.h: + +/usr/include/linux/types.h: + +/usr/include/x86_64-linux-gnu/asm/types.h: + +/usr/include/asm-generic/types.h: + +/usr/include/asm-generic/int-ll64.h: + +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: + +/usr/include/asm-generic/bitsperlong.h: + +/usr/include/linux/posix_types.h: + +/usr/include/linux/stddef.h: + +/usr/include/x86_64-linux-gnu/asm/posix_types.h: + +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: + +/usr/include/asm-generic/posix_types.h: + +/usr/include/x86_64-linux-gnu/bits/statx-generic.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h: + +dditem.h: + +ddiobuffer.h: + +/usr/include/fcntl.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: + +/usr/include/linux/falloc.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl2.h: diff --git a/supportware/src/.deps/dddatatable.tpo b/supportware/src/.deps/dddatatable.tpo new file mode 100644 index 0000000..ed9f212 --- /dev/null +++ b/supportware/src/.deps/dddatatable.tpo @@ -0,0 +1,756 @@ +dddatatable.o: dddatatable.cpp /usr/include/stdc-predef.h dddatatable.h \ + /usr/include/mysql/mysql.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/features.h \ + /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/mysql/mariadb_com.h /usr/include/mysql/mariadb_version.h \ + /usr/include/mysql/ma_list.h /usr/include/mysql/mariadb_ctype.h \ + /usr/include/ctype.h /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/mysql/mariadb_stmt.h dddataconnection.h ddthreadmutex.h \ + /usr/include/pthread.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h /usr/include/c++/9/stdexcept \ + /usr/include/c++/9/exception \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/new /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/move.h /usr/include/c++/9/bits/concept_check.h \ + /usr/include/c++/9/type_traits /usr/include/c++/9/string \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc ddbaseobject.h ddstring.h \ + dddefines.h /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/streambuf /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h dddataquery.h \ + ddmapmulti.h ddstringrow.h ddmapptr.h ddmaprow.h ddconfig.h \ + /usr/include/c++/9/set /usr/include/c++/9/bits/stl_set.h \ + /usr/include/c++/9/bits/stl_multiset.h ddstack.h \ + /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ + /usr/include/c++/9/bits/deque.tcc ddtoken.h ddwebcgi.h ddioinfo.h \ + ddioobject.h ddbasetime.h /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + /usr/include/x86_64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \ + /usr/include/linux/types.h /usr/include/x86_64-linux-gnu/asm/types.h \ + /usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h dditem.h \ + ddiobuffer.h /usr/include/fcntl.h \ + /usr/include/x86_64-linux-gnu/bits/fcntl.h \ + /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/linux/falloc.h /usr/include/x86_64-linux-gnu/bits/fcntl2.h + +/usr/include/stdc-predef.h: + +dddatatable.h: + +/usr/include/mysql/mysql.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/mysql/mariadb_com.h: + +/usr/include/mysql/mariadb_version.h: + +/usr/include/mysql/ma_list.h: + +/usr/include/mysql/mariadb_ctype.h: + +/usr/include/ctype.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/mysql/mariadb_stmt.h: + +dddataconnection.h: + +ddthreadmutex.h: + +/usr/include/pthread.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/exception: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/string: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +ddbaseobject.h: + +ddstring.h: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +dddataquery.h: + +ddmapmulti.h: + +ddstringrow.h: + +ddmapptr.h: + +ddmaprow.h: + +ddconfig.h: + +/usr/include/c++/9/set: + +/usr/include/c++/9/bits/stl_set.h: + +/usr/include/c++/9/bits/stl_multiset.h: + +ddstack.h: + +/usr/include/c++/9/deque: + +/usr/include/c++/9/bits/stl_deque.h: + +/usr/include/c++/9/bits/deque.tcc: + +ddtoken.h: + +ddwebcgi.h: + +ddioinfo.h: + +ddioobject.h: + +ddbasetime.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +/usr/include/x86_64-linux-gnu/bits/statx.h: + +/usr/include/linux/stat.h: + +/usr/include/linux/types.h: + +/usr/include/x86_64-linux-gnu/asm/types.h: + +/usr/include/asm-generic/types.h: + +/usr/include/asm-generic/int-ll64.h: + +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: + +/usr/include/asm-generic/bitsperlong.h: + +/usr/include/linux/posix_types.h: + +/usr/include/linux/stddef.h: + +/usr/include/x86_64-linux-gnu/asm/posix_types.h: + +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: + +/usr/include/asm-generic/posix_types.h: + +/usr/include/x86_64-linux-gnu/bits/statx-generic.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h: + +dditem.h: + +ddiobuffer.h: + +/usr/include/fcntl.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: + +/usr/include/linux/falloc.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl2.h: diff --git a/supportware/src/.deps/ddformchecker.tpo b/supportware/src/.deps/ddformchecker.tpo new file mode 100644 index 0000000..c1e2064 --- /dev/null +++ b/supportware/src/.deps/ddformchecker.tpo @@ -0,0 +1,879 @@ +ddformchecker.o: ddformchecker.cpp /usr/include/stdc-predef.h \ + ddformchecker.h ddstringrow.h ddbaseobject.h ddstring.h \ + /usr/include/c++/9/string \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h \ + /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ + /usr/include/x86_64-linux-gnu/bits/wordsize.h \ + /usr/include/x86_64-linux-gnu/bits/long-double.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs.h \ + /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h \ + /usr/include/c++/9/bits/stringfwd.h /usr/include/c++/9/bits/memoryfwd.h \ + /usr/include/c++/9/bits/char_traits.h \ + /usr/include/c++/9/bits/stl_algobase.h \ + /usr/include/c++/9/bits/functexcept.h \ + /usr/include/c++/9/bits/exception_defines.h \ + /usr/include/c++/9/bits/cpp_type_traits.h \ + /usr/include/c++/9/ext/type_traits.h \ + /usr/include/c++/9/ext/numeric_traits.h \ + /usr/include/c++/9/bits/stl_pair.h /usr/include/c++/9/bits/move.h \ + /usr/include/c++/9/bits/concept_check.h /usr/include/c++/9/type_traits \ + /usr/include/c++/9/bits/stl_iterator_base_types.h \ + /usr/include/c++/9/bits/stl_iterator_base_funcs.h \ + /usr/include/c++/9/debug/assertions.h \ + /usr/include/c++/9/bits/stl_iterator.h \ + /usr/include/c++/9/bits/ptr_traits.h /usr/include/c++/9/debug/debug.h \ + /usr/include/c++/9/bits/predefined_ops.h \ + /usr/include/c++/9/bits/postypes.h /usr/include/c++/9/cwchar \ + /usr/include/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/libc-header-start.h \ + /usr/include/x86_64-linux-gnu/bits/floatn.h \ + /usr/include/x86_64-linux-gnu/bits/floatn-common.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h \ + /usr/include/x86_64-linux-gnu/bits/wchar.h \ + /usr/include/x86_64-linux-gnu/bits/types/wint_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__locale_t.h \ + /usr/include/x86_64-linux-gnu/bits/wchar2.h /usr/include/c++/9/cstdint \ + /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h /usr/include/stdint.h \ + /usr/include/x86_64-linux-gnu/bits/types.h \ + /usr/include/x86_64-linux-gnu/bits/timesize.h \ + /usr/include/x86_64-linux-gnu/bits/typesizes.h \ + /usr/include/x86_64-linux-gnu/bits/time64.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-intn.h \ + /usr/include/x86_64-linux-gnu/bits/stdint-uintn.h \ + /usr/include/c++/9/bits/allocator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h \ + /usr/include/c++/9/ext/new_allocator.h /usr/include/c++/9/new \ + /usr/include/c++/9/exception /usr/include/c++/9/bits/exception.h \ + /usr/include/c++/9/bits/exception_ptr.h \ + /usr/include/c++/9/bits/cxxabi_init_exception.h \ + /usr/include/c++/9/typeinfo /usr/include/c++/9/bits/hash_bytes.h \ + /usr/include/c++/9/bits/nested_exception.h \ + /usr/include/c++/9/bits/localefwd.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h \ + /usr/include/c++/9/clocale /usr/include/locale.h \ + /usr/include/x86_64-linux-gnu/bits/locale.h /usr/include/c++/9/iosfwd \ + /usr/include/c++/9/cctype /usr/include/ctype.h \ + /usr/include/x86_64-linux-gnu/bits/endian.h \ + /usr/include/x86_64-linux-gnu/bits/endianness.h \ + /usr/include/c++/9/bits/ostream_insert.h \ + /usr/include/c++/9/bits/cxxabi_forced.h \ + /usr/include/c++/9/bits/stl_function.h \ + /usr/include/c++/9/backward/binders.h \ + /usr/include/c++/9/bits/range_access.h \ + /usr/include/c++/9/initializer_list \ + /usr/include/c++/9/bits/basic_string.h \ + /usr/include/c++/9/ext/atomicity.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h \ + /usr/include/pthread.h /usr/include/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/time_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h \ + /usr/include/x86_64-linux-gnu/bits/sched.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h \ + /usr/include/x86_64-linux-gnu/bits/cpu-set.h /usr/include/time.h \ + /usr/include/x86_64-linux-gnu/bits/time.h \ + /usr/include/x86_64-linux-gnu/bits/timex.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h \ + /usr/include/x86_64-linux-gnu/bits/types/clock_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h \ + /usr/include/x86_64-linux-gnu/bits/types/clockid_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/timer_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h \ + /usr/include/x86_64-linux-gnu/bits/thread-shared-types.h \ + /usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h \ + /usr/include/x86_64-linux-gnu/bits/struct_mutex.h \ + /usr/include/x86_64-linux-gnu/bits/struct_rwlock.h \ + /usr/include/x86_64-linux-gnu/bits/setjmp.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h \ + /usr/include/c++/9/ext/alloc_traits.h \ + /usr/include/c++/9/bits/alloc_traits.h \ + /usr/include/c++/9/ext/string_conversions.h /usr/include/c++/9/cstdlib \ + /usr/include/stdlib.h /usr/include/x86_64-linux-gnu/bits/waitflags.h \ + /usr/include/x86_64-linux-gnu/bits/waitstatus.h \ + /usr/include/x86_64-linux-gnu/sys/types.h /usr/include/endian.h \ + /usr/include/x86_64-linux-gnu/bits/byteswap.h \ + /usr/include/x86_64-linux-gnu/bits/uintn-identity.h \ + /usr/include/x86_64-linux-gnu/sys/select.h \ + /usr/include/x86_64-linux-gnu/bits/select.h \ + /usr/include/x86_64-linux-gnu/bits/types/sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h \ + /usr/include/x86_64-linux-gnu/bits/select2.h /usr/include/alloca.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib-float.h \ + /usr/include/x86_64-linux-gnu/bits/stdlib.h \ + /usr/include/c++/9/bits/std_abs.h /usr/include/c++/9/cstdio \ + /usr/include/stdio.h /usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h \ + /usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h \ + /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ + /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ + /usr/include/x86_64-linux-gnu/bits/stdio.h \ + /usr/include/x86_64-linux-gnu/bits/stdio2.h /usr/include/c++/9/cerrno \ + /usr/include/errno.h /usr/include/x86_64-linux-gnu/bits/errno.h \ + /usr/include/linux/errno.h /usr/include/x86_64-linux-gnu/asm/errno.h \ + /usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \ + /usr/include/x86_64-linux-gnu/bits/types/error_t.h \ + /usr/include/c++/9/bits/functional_hash.h \ + /usr/include/c++/9/bits/basic_string.tcc dddefines.h \ + /usr/include/c++/9/sstream /usr/include/c++/9/istream \ + /usr/include/c++/9/ios /usr/include/c++/9/bits/ios_base.h \ + /usr/include/c++/9/bits/locale_classes.h \ + /usr/include/c++/9/bits/locale_classes.tcc \ + /usr/include/c++/9/system_error \ + /usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h \ + /usr/include/c++/9/stdexcept /usr/include/c++/9/streambuf \ + /usr/include/c++/9/bits/streambuf.tcc \ + /usr/include/c++/9/bits/basic_ios.h \ + /usr/include/c++/9/bits/locale_facets.h /usr/include/c++/9/cwctype \ + /usr/include/wctype.h /usr/include/x86_64-linux-gnu/bits/wctype-wchar.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h \ + /usr/include/c++/9/bits/streambuf_iterator.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h \ + /usr/include/c++/9/bits/locale_facets.tcc \ + /usr/include/c++/9/bits/basic_ios.tcc /usr/include/c++/9/ostream \ + /usr/include/c++/9/bits/ostream.tcc /usr/include/c++/9/bits/istream.tcc \ + /usr/include/c++/9/bits/sstream.tcc /usr/include/c++/9/iomanip \ + /usr/include/c++/9/locale /usr/include/c++/9/bits/locale_facets_nonio.h \ + /usr/include/c++/9/ctime \ + /usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h \ + /usr/include/libintl.h /usr/include/c++/9/bits/codecvt.h \ + /usr/include/c++/9/bits/locale_facets_nonio.tcc \ + /usr/include/c++/9/bits/locale_conv.h \ + /usr/include/c++/9/bits/unique_ptr.h /usr/include/c++/9/utility \ + /usr/include/c++/9/bits/stl_relops.h /usr/include/c++/9/tuple \ + /usr/include/c++/9/array /usr/include/c++/9/bits/uses_allocator.h \ + /usr/include/c++/9/bits/invoke.h /usr/include/c++/9/bits/quoted_string.h \ + ddlogmanager.h /usr/include/c++/9/vector \ + /usr/include/c++/9/bits/stl_construct.h \ + /usr/include/c++/9/bits/stl_uninitialized.h \ + /usr/include/c++/9/bits/stl_vector.h \ + /usr/include/c++/9/bits/stl_bvector.h /usr/include/c++/9/bits/vector.tcc \ + /usr/include/c++/9/fstream \ + /usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h \ + /usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h \ + /usr/include/c++/9/bits/fstream.tcc /usr/include/c++/9/map \ + /usr/include/c++/9/bits/stl_tree.h \ + /usr/include/c++/9/ext/aligned_buffer.h \ + /usr/include/c++/9/bits/stl_map.h /usr/include/c++/9/bits/stl_multimap.h \ + /usr/include/c++/9/bits/erase_if.h /usr/include/c++/9/iostream \ + /usr/include/unistd.h /usr/include/x86_64-linux-gnu/bits/posix_opt.h \ + /usr/include/x86_64-linux-gnu/bits/environments.h \ + /usr/include/x86_64-linux-gnu/bits/confname.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_posix.h \ + /usr/include/x86_64-linux-gnu/bits/getopt_core.h \ + /usr/include/x86_64-linux-gnu/bits/unistd.h \ + /usr/include/x86_64-linux-gnu/bits/unistd_ext.h dditem.h ddmapptr.h \ + ddmaprow.h ddiobuffer.h /usr/include/x86_64-linux-gnu/sys/stat.h \ + /usr/include/x86_64-linux-gnu/bits/stat.h \ + /usr/include/x86_64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \ + /usr/include/linux/types.h /usr/include/x86_64-linux-gnu/asm/types.h \ + /usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \ + /usr/include/x86_64-linux-gnu/asm/bitsperlong.h \ + /usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \ + /usr/include/linux/stddef.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types.h \ + /usr/include/x86_64-linux-gnu/asm/posix_types_64.h \ + /usr/include/asm-generic/posix_types.h \ + /usr/include/x86_64-linux-gnu/bits/statx-generic.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_statx.h \ + /usr/include/fcntl.h /usr/include/x86_64-linux-gnu/bits/fcntl.h \ + /usr/include/x86_64-linux-gnu/bits/fcntl-linux.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h \ + /usr/include/linux/falloc.h /usr/include/x86_64-linux-gnu/bits/fcntl2.h \ + ddwebcgi.h ddioinfo.h ddioobject.h ddbasetime.h ddconfig.h \ + /usr/include/c++/9/set /usr/include/c++/9/bits/stl_set.h \ + /usr/include/c++/9/bits/stl_multiset.h ddstack.h \ + /usr/include/c++/9/deque /usr/include/c++/9/bits/stl_deque.h \ + /usr/include/c++/9/bits/deque.tcc ddtoken.h dddatatable.h \ + /usr/include/mysql/mysql.h /usr/include/mysql/mariadb_com.h \ + /usr/include/mysql/mariadb_version.h /usr/include/mysql/ma_list.h \ + /usr/include/mysql/mariadb_ctype.h /usr/include/mysql/mariadb_stmt.h \ + dddataconnection.h ddthreadmutex.h dddataquery.h ddmapmulti.h \ + ddstringset.h dddataobject.h ddwebpage.h dditemtree.h ddwebrequest.h \ + ddiourl.h ddwebcookie.h ddthreadrunnable.h ddwebconnection.h \ + ddwebbuffer.h ddusermanager.h ddwebview.h ddwebrenderer.h \ + ddwebrendertag.h ddusersessionmanager.h dduserid.h ddmailmanager.h \ + dditemset.h dditemfactory.h dditemsysval.h dditemtrval.h \ + ddaccessmanager.h ddthread.h ddthreadevent.h ddwebsite.h ddwebserver.h \ + ddmimemap.h /usr/include/x86_64-linux-gnu/sys/poll.h \ + /usr/include/x86_64-linux-gnu/bits/poll.h \ + /usr/include/x86_64-linux-gnu/bits/poll2.h \ + /usr/include/x86_64-linux-gnu/sys/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket.h \ + /usr/include/x86_64-linux-gnu/bits/socket_type.h \ + /usr/include/x86_64-linux-gnu/bits/sockaddr.h \ + /usr/include/x86_64-linux-gnu/asm/socket.h \ + /usr/include/asm-generic/socket.h \ + /usr/include/x86_64-linux-gnu/asm/sockios.h \ + /usr/include/asm-generic/sockios.h \ + /usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h \ + /usr/include/x86_64-linux-gnu/bits/socket2.h /usr/include/netinet/in.h \ + /usr/include/x86_64-linux-gnu/bits/in.h ddwebblock.h \ + ddwebrelatedmanager.h ddweboverlay.h ddwebredirectmap.h ddwebfile.h \ + ddwebgroup.h ddwebcategory.h + +/usr/include/stdc-predef.h: + +ddformchecker.h: + +ddstringrow.h: + +ddbaseobject.h: + +ddstring.h: + +/usr/include/c++/9/string: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h: + +/usr/include/features.h: + +/usr/include/x86_64-linux-gnu/sys/cdefs.h: + +/usr/include/x86_64-linux-gnu/bits/wordsize.h: + +/usr/include/x86_64-linux-gnu/bits/long-double.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs.h: + +/usr/include/x86_64-linux-gnu/gnu/stubs-64.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/cpu_defines.h: + +/usr/include/c++/9/bits/stringfwd.h: + +/usr/include/c++/9/bits/memoryfwd.h: + +/usr/include/c++/9/bits/char_traits.h: + +/usr/include/c++/9/bits/stl_algobase.h: + +/usr/include/c++/9/bits/functexcept.h: + +/usr/include/c++/9/bits/exception_defines.h: + +/usr/include/c++/9/bits/cpp_type_traits.h: + +/usr/include/c++/9/ext/type_traits.h: + +/usr/include/c++/9/ext/numeric_traits.h: + +/usr/include/c++/9/bits/stl_pair.h: + +/usr/include/c++/9/bits/move.h: + +/usr/include/c++/9/bits/concept_check.h: + +/usr/include/c++/9/type_traits: + +/usr/include/c++/9/bits/stl_iterator_base_types.h: + +/usr/include/c++/9/bits/stl_iterator_base_funcs.h: + +/usr/include/c++/9/debug/assertions.h: + +/usr/include/c++/9/bits/stl_iterator.h: + +/usr/include/c++/9/bits/ptr_traits.h: + +/usr/include/c++/9/debug/debug.h: + +/usr/include/c++/9/bits/predefined_ops.h: + +/usr/include/c++/9/bits/postypes.h: + +/usr/include/c++/9/cwchar: + +/usr/include/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/libc-header-start.h: + +/usr/include/x86_64-linux-gnu/bits/floatn.h: + +/usr/include/x86_64-linux-gnu/bits/floatn-common.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdarg.h: + +/usr/include/x86_64-linux-gnu/bits/wchar.h: + +/usr/include/x86_64-linux-gnu/bits/types/wint_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h: + +/usr/include/x86_64-linux-gnu/bits/wchar2.h: + +/usr/include/c++/9/cstdint: + +/usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h: + +/usr/include/stdint.h: + +/usr/include/x86_64-linux-gnu/bits/types.h: + +/usr/include/x86_64-linux-gnu/bits/timesize.h: + +/usr/include/x86_64-linux-gnu/bits/typesizes.h: + +/usr/include/x86_64-linux-gnu/bits/time64.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-intn.h: + +/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h: + +/usr/include/c++/9/bits/allocator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++allocator.h: + +/usr/include/c++/9/ext/new_allocator.h: + +/usr/include/c++/9/new: + +/usr/include/c++/9/exception: + +/usr/include/c++/9/bits/exception.h: + +/usr/include/c++/9/bits/exception_ptr.h: + +/usr/include/c++/9/bits/cxxabi_init_exception.h: + +/usr/include/c++/9/typeinfo: + +/usr/include/c++/9/bits/hash_bytes.h: + +/usr/include/c++/9/bits/nested_exception.h: + +/usr/include/c++/9/bits/localefwd.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++locale.h: + +/usr/include/c++/9/clocale: + +/usr/include/locale.h: + +/usr/include/x86_64-linux-gnu/bits/locale.h: + +/usr/include/c++/9/iosfwd: + +/usr/include/c++/9/cctype: + +/usr/include/ctype.h: + +/usr/include/x86_64-linux-gnu/bits/endian.h: + +/usr/include/x86_64-linux-gnu/bits/endianness.h: + +/usr/include/c++/9/bits/ostream_insert.h: + +/usr/include/c++/9/bits/cxxabi_forced.h: + +/usr/include/c++/9/bits/stl_function.h: + +/usr/include/c++/9/backward/binders.h: + +/usr/include/c++/9/bits/range_access.h: + +/usr/include/c++/9/initializer_list: + +/usr/include/c++/9/bits/basic_string.h: + +/usr/include/c++/9/ext/atomicity.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/gthr-default.h: + +/usr/include/pthread.h: + +/usr/include/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/time_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h: + +/usr/include/x86_64-linux-gnu/bits/sched.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h: + +/usr/include/x86_64-linux-gnu/bits/cpu-set.h: + +/usr/include/time.h: + +/usr/include/x86_64-linux-gnu/bits/time.h: + +/usr/include/x86_64-linux-gnu/bits/timex.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h: + +/usr/include/x86_64-linux-gnu/bits/types/clock_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h: + +/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/timer_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h: + +/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h: + +/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h: + +/usr/include/x86_64-linux-gnu/bits/struct_mutex.h: + +/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h: + +/usr/include/x86_64-linux-gnu/bits/setjmp.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/atomic_word.h: + +/usr/include/c++/9/ext/alloc_traits.h: + +/usr/include/c++/9/bits/alloc_traits.h: + +/usr/include/c++/9/ext/string_conversions.h: + +/usr/include/c++/9/cstdlib: + +/usr/include/stdlib.h: + +/usr/include/x86_64-linux-gnu/bits/waitflags.h: + +/usr/include/x86_64-linux-gnu/bits/waitstatus.h: + +/usr/include/x86_64-linux-gnu/sys/types.h: + +/usr/include/endian.h: + +/usr/include/x86_64-linux-gnu/bits/byteswap.h: + +/usr/include/x86_64-linux-gnu/bits/uintn-identity.h: + +/usr/include/x86_64-linux-gnu/sys/select.h: + +/usr/include/x86_64-linux-gnu/bits/select.h: + +/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h: + +/usr/include/x86_64-linux-gnu/bits/select2.h: + +/usr/include/alloca.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-bsearch.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib-float.h: + +/usr/include/x86_64-linux-gnu/bits/stdlib.h: + +/usr/include/c++/9/bits/std_abs.h: + +/usr/include/c++/9/cstdio: + +/usr/include/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h: + +/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h: + +/usr/include/x86_64-linux-gnu/bits/stdio_lim.h: + +/usr/include/x86_64-linux-gnu/bits/sys_errlist.h: + +/usr/include/x86_64-linux-gnu/bits/stdio.h: + +/usr/include/x86_64-linux-gnu/bits/stdio2.h: + +/usr/include/c++/9/cerrno: + +/usr/include/errno.h: + +/usr/include/x86_64-linux-gnu/bits/errno.h: + +/usr/include/linux/errno.h: + +/usr/include/x86_64-linux-gnu/asm/errno.h: + +/usr/include/asm-generic/errno.h: + +/usr/include/asm-generic/errno-base.h: + +/usr/include/x86_64-linux-gnu/bits/types/error_t.h: + +/usr/include/c++/9/bits/functional_hash.h: + +/usr/include/c++/9/bits/basic_string.tcc: + +dddefines.h: + +/usr/include/c++/9/sstream: + +/usr/include/c++/9/istream: + +/usr/include/c++/9/ios: + +/usr/include/c++/9/bits/ios_base.h: + +/usr/include/c++/9/bits/locale_classes.h: + +/usr/include/c++/9/bits/locale_classes.tcc: + +/usr/include/c++/9/system_error: + +/usr/include/x86_64-linux-gnu/c++/9/bits/error_constants.h: + +/usr/include/c++/9/stdexcept: + +/usr/include/c++/9/streambuf: + +/usr/include/c++/9/bits/streambuf.tcc: + +/usr/include/c++/9/bits/basic_ios.h: + +/usr/include/c++/9/bits/locale_facets.h: + +/usr/include/c++/9/cwctype: + +/usr/include/wctype.h: + +/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_base.h: + +/usr/include/c++/9/bits/streambuf_iterator.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/ctype_inline.h: + +/usr/include/c++/9/bits/locale_facets.tcc: + +/usr/include/c++/9/bits/basic_ios.tcc: + +/usr/include/c++/9/ostream: + +/usr/include/c++/9/bits/ostream.tcc: + +/usr/include/c++/9/bits/istream.tcc: + +/usr/include/c++/9/bits/sstream.tcc: + +/usr/include/c++/9/iomanip: + +/usr/include/c++/9/locale: + +/usr/include/c++/9/bits/locale_facets_nonio.h: + +/usr/include/c++/9/ctime: + +/usr/include/x86_64-linux-gnu/c++/9/bits/time_members.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/messages_members.h: + +/usr/include/libintl.h: + +/usr/include/c++/9/bits/codecvt.h: + +/usr/include/c++/9/bits/locale_facets_nonio.tcc: + +/usr/include/c++/9/bits/locale_conv.h: + +/usr/include/c++/9/bits/unique_ptr.h: + +/usr/include/c++/9/utility: + +/usr/include/c++/9/bits/stl_relops.h: + +/usr/include/c++/9/tuple: + +/usr/include/c++/9/array: + +/usr/include/c++/9/bits/uses_allocator.h: + +/usr/include/c++/9/bits/invoke.h: + +/usr/include/c++/9/bits/quoted_string.h: + +ddlogmanager.h: + +/usr/include/c++/9/vector: + +/usr/include/c++/9/bits/stl_construct.h: + +/usr/include/c++/9/bits/stl_uninitialized.h: + +/usr/include/c++/9/bits/stl_vector.h: + +/usr/include/c++/9/bits/stl_bvector.h: + +/usr/include/c++/9/bits/vector.tcc: + +/usr/include/c++/9/fstream: + +/usr/include/x86_64-linux-gnu/c++/9/bits/basic_file.h: + +/usr/include/x86_64-linux-gnu/c++/9/bits/c++io.h: + +/usr/include/c++/9/bits/fstream.tcc: + +/usr/include/c++/9/map: + +/usr/include/c++/9/bits/stl_tree.h: + +/usr/include/c++/9/ext/aligned_buffer.h: + +/usr/include/c++/9/bits/stl_map.h: + +/usr/include/c++/9/bits/stl_multimap.h: + +/usr/include/c++/9/bits/erase_if.h: + +/usr/include/c++/9/iostream: + +/usr/include/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/posix_opt.h: + +/usr/include/x86_64-linux-gnu/bits/environments.h: + +/usr/include/x86_64-linux-gnu/bits/confname.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_posix.h: + +/usr/include/x86_64-linux-gnu/bits/getopt_core.h: + +/usr/include/x86_64-linux-gnu/bits/unistd.h: + +/usr/include/x86_64-linux-gnu/bits/unistd_ext.h: + +dditem.h: + +ddmapptr.h: + +ddmaprow.h: + +ddiobuffer.h: + +/usr/include/x86_64-linux-gnu/sys/stat.h: + +/usr/include/x86_64-linux-gnu/bits/stat.h: + +/usr/include/x86_64-linux-gnu/bits/statx.h: + +/usr/include/linux/stat.h: + +/usr/include/linux/types.h: + +/usr/include/x86_64-linux-gnu/asm/types.h: + +/usr/include/asm-generic/types.h: + +/usr/include/asm-generic/int-ll64.h: + +/usr/include/x86_64-linux-gnu/asm/bitsperlong.h: + +/usr/include/asm-generic/bitsperlong.h: + +/usr/include/linux/posix_types.h: + +/usr/include/linux/stddef.h: + +/usr/include/x86_64-linux-gnu/asm/posix_types.h: + +/usr/include/x86_64-linux-gnu/asm/posix_types_64.h: + +/usr/include/asm-generic/posix_types.h: + +/usr/include/x86_64-linux-gnu/bits/statx-generic.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h: + +/usr/include/fcntl.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h: + +/usr/include/linux/falloc.h: + +/usr/include/x86_64-linux-gnu/bits/fcntl2.h: + +ddwebcgi.h: + +ddioinfo.h: + +ddioobject.h: + +ddbasetime.h: + +ddconfig.h: + +/usr/include/c++/9/set: + +/usr/include/c++/9/bits/stl_set.h: + +/usr/include/c++/9/bits/stl_multiset.h: + +ddstack.h: + +/usr/include/c++/9/deque: + +/usr/include/c++/9/bits/stl_deque.h: + +/usr/include/c++/9/bits/deque.tcc: + +ddtoken.h: + +dddatatable.h: + +/usr/include/mysql/mysql.h: + +/usr/include/mysql/mariadb_com.h: + +/usr/include/mysql/mariadb_version.h: + +/usr/include/mysql/ma_list.h: + +/usr/include/mysql/mariadb_ctype.h: + +/usr/include/mysql/mariadb_stmt.h: + +dddataconnection.h: + +ddthreadmutex.h: + +dddataquery.h: + +ddmapmulti.h: + +ddstringset.h: + +dddataobject.h: + +ddwebpage.h: + +dditemtree.h: + +ddwebrequest.h: + +ddiourl.h: + +ddwebcookie.h: + +ddthreadrunnable.h: + +ddwebconnection.h: + +ddwebbuffer.h: + +ddusermanager.h: + +ddwebview.h: + +ddwebrenderer.h: + +ddwebrendertag.h: + +ddusersessionmanager.h: + +dduserid.h: + +ddmailmanager.h: + +dditemset.h: + +dditemfactory.h: + +dditemsysval.h: + +dditemtrval.h: + +ddaccessmanager.h: + +ddthread.h: + +ddthreadevent.h: + +ddwebsite.h: + +ddwebserver.h: + +ddmimemap.h: + +/usr/include/x86_64-linux-gnu/sys/poll.h: + +/usr/include/x86_64-linux-gnu/bits/poll.h: + +/usr/include/x86_64-linux-gnu/bits/poll2.h: + +/usr/include/x86_64-linux-gnu/sys/socket.h: + +/usr/include/x86_64-linux-gnu/bits/socket.h: + +/usr/include/x86_64-linux-gnu/bits/socket_type.h: + +/usr/include/x86_64-linux-gnu/bits/sockaddr.h: + +/usr/include/x86_64-linux-gnu/asm/socket.h: + +/usr/include/asm-generic/socket.h: + +/usr/include/x86_64-linux-gnu/asm/sockios.h: + +/usr/include/asm-generic/sockios.h: + +/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h: + +/usr/include/x86_64-linux-gnu/bits/socket2.h: + +/usr/include/netinet/in.h: + +/usr/include/x86_64-linux-gnu/bits/in.h: + +ddwebblock.h: + +ddwebrelatedmanager.h: + +ddweboverlay.h: + +ddwebredirectmap.h: + +ddwebfile.h: + +ddwebgroup.h: + +ddwebcategory.h: diff --git a/supportware/src/ddaccessmanager.cpp b/supportware/src/ddaccessmanager.cpp new file mode 100644 index 0000000..2b998aa --- /dev/null +++ b/supportware/src/ddaccessmanager.cpp @@ -0,0 +1,66 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include + + +/** + +*/ + +ddaccessmanager::ddaccessmanager() +{ + _accessmap[ "usr_is_guest" ] = 1; + _accessmap[ "usr_is_member" ] = 2; + _accessmap[ "usr_is_moderator" ] = 4; + _accessmap[ "usr_is_admin" ] = 8; + _accessmap[ "usr_is_root" ] = 16; + _accessmap[ "usr_is_registered" ] = 30; + + _accessmap[ "usr_can_edit_msg" ] = 32; + _accessmap[ "usr_can_edit_news" ] = 64; + _accessmap[ "usr_can_edit_usr" ] = 128; + _accessmap[ "usr_can_edit_sale" ] = 256; + _accessmap[ "usr_can_edit_comment" ] = 512; + _accessmap[ "usr_can_edit_vote" ] = 1024; + _accessmap[ "usr_can_edit_drivers" ] = 2048; + _accessmap[ "usr_can_edit_faq" ] = 4096; + + _accessmap[ "usr_can_edit_chat" ] = 8192; + +} + + +/** + +*/ + +ddaccessmanager::~ddaccessmanager() +{ + +} + + + +/** + +*/ + +int ddaccessmanager::operator[]( const ddstring& key ) +{ + return _accessmap[key]; +} + + diff --git a/supportware/src/ddaccessmanager.h b/supportware/src/ddaccessmanager.h new file mode 100644 index 0000000..a9670d8 --- /dev/null +++ b/supportware/src/ddaccessmanager.h @@ -0,0 +1,45 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDACCESSMANAGER_H +#define DDACCESSMANAGER_H + +#include + +class ddconfigsection; + +/// ddaccessmanager : +/** + Vermutliche Funktion: + Teilt Items ihre Zugriffsrechte zu. ROTT! FIX! +*/ + + +class ddaccessmanager : public ddbaseobject +{ + +public: + + ddaccessmanager(); + virtual ~ddaccessmanager(); + + int operator[]( const ddstring& key ); + +protected: + + ddmapindex _accessmap; + +}; + +#endif diff --git a/supportware/src/ddbaseobject.cpp b/supportware/src/ddbaseobject.cpp new file mode 100644 index 0000000..2965b45 --- /dev/null +++ b/supportware/src/ddbaseobject.cpp @@ -0,0 +1,200 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include + +using namespace std; + + +ddlogmanager ddbaseobject::thelog = ddlogmanager(); + +/** + Erzeugt eine string representation dieses objects. + Prototype, wird in erbenden Klassen überschrieben. +*/ + +ddstring ddbaseobject::to_string() const +{ + return "ddbaseobject:"; +} + + +/** + Eine string-representation dieses objects nach cout schreiben. + @see to_string() +*/ + +void ddbaseobject::dump() const +{ + cout << to_string() << endl; +} + + +/** + Eine Nachricht ans globale Mainlog schicken. + @param level the loglevel + @param message the message +*/ + +void ddbaseobject::log_message( int level, const ddstring& message ) +{ + thelog.log_message( level, message ); +} + + +/** + Eine Debug-Nachricht ans globale Mainlog schicken. + @param message the message +*/ + +bool ddbaseobject::log_debug( const ddstring& message ) const +{ + log_message( ddlogdevice::lg_debug, message ); + return true; +} + + +/** + Eine Error-Nachricht ans globale Mainlog schicken. + @param message the message +*/ + +bool ddbaseobject::log_error( const ddstring& message ) const +{ + log_message( ddlogdevice::lg_error, "error:" + message ); + return false; +} + + +/** + Eine Error-Nachricht ans globale Mainlog schicken + und mit einer entsprechenden exception abbrechen. + + @param message the message +*/ + +void ddbaseobject::log_fatal( const ddstring& message ) const +{ + log_message( ddlogdevice::lg_error, "fatal:" + message ); + throw runtime_error( message ); +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default constructor. +*/ + +ddbasestate::ddbasestate() +: _flags(0) +{ + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default constructor +*/ + +ddbasename::ddbasename() +{ + +} + + + +/** + Standard constructor +*/ + +ddbasename::ddbasename( const ddstring& name ) +: _name(name) +{ + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + +*/ + +ddbasenamedobject::ddbasenamedobject() +{ + +} + + +/** + +*/ + +ddbasenamedobject::ddbasenamedobject( const ddstring& name ) +: ddbaseobject(), ddbasename( name ) +{ + +} + + +/** + +*/ + +ddbasenamedobject::~ddbasenamedobject() +{ + +} + diff --git a/supportware/src/ddbaseobject.h b/supportware/src/ddbaseobject.h new file mode 100644 index 0000000..b8b8116 --- /dev/null +++ b/supportware/src/ddbaseobject.h @@ -0,0 +1,422 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDBASEOBJECT_H +#define DDBASEOBJECT_H + + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + + +using namespace std; + +enum dd_result +{ + rs_error=-1, + rs_retry=0, + rs_ok=1, + rs_redirect=2 +}; + +/// ddbaseobject ist die allgemeine Basisklasse für die meisten dd-Klassen +/** + Die Idee ist von Java geklaut: ddbaseobjects können string von sich selbst erzeugen + und nachrichten in log-system schreiben. +*/ + + +class ddbaseobject +{ + +public: + + virtual ~ddbaseobject() + { + + } + + static const char* dd_logtext[]; + + virtual ddstring to_string() const; + virtual void dump() const; + + static void log_message( int loglevel, const ddstring& message ); + + virtual bool log_debug( const ddstring& message ) const; + virtual bool log_error( const ddstring& message ) const; + virtual void log_fatal( const ddstring& message ) const; + +protected: + + static ddlogmanager thelog; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddbasestate: Statusinfos, gespeichert in Bitfeldern. +/** + Die Status-Bits können über die Memberfunktionen set_flag, clear_flag + and test_flag getestet und manipuliert werden.
                                                + @see ddbasestateobject +*/ + +class ddbasestate +{ + +public: + + ddbasestate(); + + + /** + Setze das gesamte Bitfeld. + @param state das neue bitfield. + */ + + inline void set_state_flags( int state ) + { + _flags = state; + } + + + /** + Setzt ein Flag. Alle 1-bits des Parameters werden gesetzt. + (Es wird ver-ODER-t) + @param flag the flag to set. + */ + + inline void set_flag( int flag ) + { + _flags |= flag; + } + + + /** + Setzt ein Flag auf 'newstat' + @param flag das Flag + @param newatate der neue Zustand. + */ + + inline void set_flag( int flag, bool newstate ) + { + if( newstate ) + _flags |= flag; + else + _flags &= ~flag; + } + + + /** + Löscht das angegebenen Flag. Alle 1-bits des Parameters + werden gelöscht. (Es wird mit der Negation ver-UND-et) + @param flag the flag to clear. + */ + + inline void clear_flag( int flag ) + { + _flags &= ~flag; + } + + + /** + Testes ein Flag. + @param flag Das Flag. + */ + + inline bool test_flag( int flag ) const + { + return ( (_flags & flag) != 0 ); + } + + /** + @Returns das gesamte Bitfeld. + */ + + inline size_t get_state_flags() const + { + return _flags; + } + + // FIX! Toggle-Flag fehlt. + +protected: + + int _flags; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddbasename ist die Basis für alles was einen Namen hat. +/** + ddbasename ist die Basis für alles was einen Namen hat, das modelliert + per Mehrfachvererbung sozusagen den Namensaspekt eines Objects. +*/ + + +class ddbasename +{ + +public: + + ddbasename(); + ddbasename( const ddstring& name ); + virtual ~ddbasename() + { + } + + + /** + Returns the name. + */ + + inline const ddstring& get_name() const + { + return _name; + } + + + /** + Returns the name. + */ + + inline ddstring& get_name() + { + return _name; + } + + + /** + Sets the name. + @param the new name. + */ + + virtual void set_name( const ddstring& name ) + { + _name = name; + } + + +protected: + + ddstring _name; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddbasenamedobject is an ddbaseobject with a name. +/** + @see ddbaseobject + @see ddbasestate +*/ + +class ddbasenamedobject : public ddbaseobject, public ddbasename +{ + +public: + + ddbasenamedobject(); + ddbasenamedobject( const ddstring& name ); + virtual ~ddbasenamedobject(); + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddmapindex :Ein simpler Index, der string auf array-indices mapt. +/** + ddmapindex wird von etlichen Klassen verwendet, um einen Acces-by-Key + zu realisieren, also um für einen gegebenen Schlüssel die Array-Position + in einem vector rauszufinden. +*/ + +class ddmapindex : public map, public ddbaseobject +{ + +public: + + /** + Destructor.Tut nix. + */ + + virtual ~ddmapindex() + { + } + + + /** + Bastelt einen String aus allen Einträgen zum anschauen. + @see ddbaseobject + */ + + ddstring to_string() const + { + ddstring result = "ddmapindex: "; + ddmapindex::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + { + result += (*pos).first; + result += " -- "; + result += ddstrutil::from_size_t( (*pos).second ); + result += "; "; + } + return result; + } + + + /** + @return 'true' wenn ein Eintrag für 'key' existiert. + */ + + bool contains_key( const ddstring& key ) const + { + return ( find( key ) != end() ); + } + + /** + Einen Key-Index paar einfügen. + */ + + void add_key( const ddstring& key, size_t index ) + { + (*this)[key] = index; + } + + /** + @return die index-position für 'key' oder -1. + */ + + int index_of( const ddstring& key ) const + { + ddmapindex::const_iterator pos = find( key ); + if( pos != end() ) + return (int) (*pos).second; + return -1; + } + + + /** + Schreibt alle Einträge nach cout. + @see ddbaseobject + */ + + void dump() const + { + ddmapindex::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + { + ddstring line = "key: <" + (*pos).first + "> value: <" + ddstrutil::from_size_t( (*pos).second ) + ">"; + cout << line << endl; + } + } + + + /** + Baut den index neu auf, nachdem der Eintrag an der Stelle 'index' + gelöscht wurde. + */ + + void update( size_t index ) + { + + ddmapindex newindex; + ddmapindex::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + { + + // item idx == lösch-index: weiter + // item idx < lösch-index: eintragen + // item idx > lösch-index: decrement & eintragen + + size_t idx = (*pos).second; + if( idx == index ) + continue; + if( idx > index ) + idx--; + // schlüssel auch sichern + newindex[(*pos).first] = idx; + } + + swap( newindex ); + + } + +}; + + +#endif diff --git a/supportware/src/ddbasetime.cpp b/supportware/src/ddbasetime.cpp new file mode 100644 index 0000000..e2ec5ba --- /dev/null +++ b/supportware/src/ddbasetime.cpp @@ -0,0 +1,568 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include + +using namespace std; + + +/** + Default constructor. + Creates a representation of the current time. +*/ + +ddbasetime::ddbasetime() +{ + struct timeval tv; + ::gettimeofday( &tv, 0 ); + time_t ltime = tv.tv_sec; + tm* t = ::localtime( <ime ); + _millis = (size_t)( MSECS_PER_HOUR*t->tm_hour + MSECS_PER_MIN*t->tm_min + 1000*t->tm_sec + tv.tv_usec/1000 ); +} + + +/** + Constructs a time with hour h, minute m, seconds s and + milliseconds ms. + h must be in the range 0-23, m and s must be in the range + 0-59, and ms must be in the range 0-999. +*/ + +ddbasetime::ddbasetime( int h, int m, int s, int ms ) +{ + set_hms( h, m, s, ms ); +} + + +/** + Constructs a time from time_t "local" +*/ + +ddbasetime::ddbasetime( time_t local ) +{ + tm* t = ::localtime( &local ); + _millis = (size_t)( MSECS_PER_HOUR*t->tm_hour + MSECS_PER_MIN*t->tm_min + 1000*t->tm_sec ); +} + + +/** + Copy constructor. +*/ + + +ddbasetime::ddbasetime( const ddbasetime& src ) +: ddbasetimeval() +{ + *this = src; +} + + +/** + Assignment operator. +*/ + + +ddbasetime& ddbasetime::operator=( const ddbasetime& src ) +{ + if( this != &src ) + _millis = src._millis; + return *this; +} + + +/** + Destructor +*/ + +ddbasetime::~ddbasetime() +{ + +} + +bool ddbasetime::operator==( const ddbasetime& src ) const +{ + return _millis == src._millis; +} + +bool ddbasetime::operator!=( const ddbasetime& src ) const +{ + return _millis != src._millis; +} + +bool ddbasetime::operator<( const ddbasetime& src ) const +{ + return _millis < src._millis; +} + +bool ddbasetime::operator<=( const ddbasetime& src ) const +{ + return _millis <= src._millis; +} + +bool ddbasetime::operator>( const ddbasetime& src ) const +{ + return _millis > src._millis; +} + +bool ddbasetime::operator>=( const ddbasetime& src ) const +{ + return _millis >= src._millis; +} + + +/** + +*/ + +int ddbasetime::get( size_t field ) const +{ + + switch( field ) + { + + case tf_millis : + + return _millis % 1000; + + case tf_seconds : + + return ( _millis / 1000 ) % SECS_PER_MIN; + + case tf_minutes : + + return ( _millis % MSECS_PER_HOUR ) / MSECS_PER_MIN; + + case tf_hours : + + return _millis / MSECS_PER_HOUR; + + case tf_days : + case tf_weeks : + + return 0; + + default: + + throw runtime_error("ddbasetime::get: invalid field value!" ); + + } + return 0; +} + +/** + +*/ + +/** + Sets the time to hour h, minute m, seconds s and + milliseconds ms. + h must be in the range 0-23, m and s must be in the range + 0-59, and ms must be in the range 0-999. Returns true if the set + time is valid, otherwise false. + +*/ + +bool ddbasetime::set_hms( int h, int m, int s, int ms ) +{ + if ( !is_valid( h,m,s,ms ) ) + { + _millis = MSECS_PER_DAY; // make this invalid + return false; + } + _millis = (h*SECS_PER_HOUR + m*SECS_PER_MIN + s)*1000 + ms; + return true; +} + + +/** + Returns true if the time is valid, or false if the time is invalid. + The time 23:30:55.746 is valid, while 24:12:30 is invalid. +*/ + +bool ddbasetime::is_valid() const +{ + return _millis < MSECS_PER_DAY; +} + + +/** + Returns a ddbasetime object containing a time nsecs seconds later than + the time of this object (or earlier if ms is negative). +*/ + +ddbasetime& ddbasetime::add_secs( int nsecs ) +{ + return add_milli_secs(nsecs*1000); +} + + +/** + Returns the number of seconds from this time to t (which is + negative if t is earlier than this time). + + Since ddbasetime measures time within a day and there are 86400 seconds + in a day, the result is between -86400 and 86400. +*/ + +int ddbasetime::get_secs_to( const ddbasetime& src ) const +{ + return ( (int)src._millis - (int) _millis )/1000; +} + +/** + Returns a ddbasetime object containing a time ms milliseconds later than + the time of this object (or earlier if ms is negative). + + Note that the time will wrap if it passes midnight. See addSecs() + for an example. + +*/ + +ddbasetime& ddbasetime::add_milli_secs( int ms ) +{ + //ddbasetime t; + if ( ms < 0 ) + { + int negdays = (MSECS_PER_DAY-ms) / MSECS_PER_DAY; + _millis = ( (int) _millis + ms + negdays*MSECS_PER_DAY) % MSECS_PER_DAY; + } + else + { + _millis = ( (int) _millis + ms ) % MSECS_PER_DAY; + } + return *this; +} + + +/** + Returns the number of milliseconds from this time to t (which is + negative if t is earlier than this time). + + Since ddbasetime measures time within a day and there are 86400000 + milliseconds in a day, the result is between -86400000 and 86400000. + +*/ + +int ddbasetime::get_milli_secs_to( const ddbasetime& src ) const +{ + return (int) src._millis - (int) _millis; +} + + +/** + FIX! + Creates a localized ddstring representation of this object. + Calls ddsystem.format() +*/ +/** + Returns the time of this object in a textual format. Milliseconds + are not included. The ddstring format is HH:MM:SS, e.g. 1 second + before midnight would be "23:59:59". +*/ + +ddstring ddbasetime::to_string() const +{ + char buf[10]; + ::snprintf( buf, sizeof(buf), "%.2d:%.2d:%.2d", get_hours(), get_minutes(), get_seconds() ); + return ddstring(buf); +} + + +/** + Returns the time of this object in a textual format. Milliseconds + are included. The ddstring format is HH:MM:SS:mmm, e.g. 1 millisecond + before midnight would be "23:59:59:999". +*/ + +ddstring ddbasetime::to_string_ms() const +{ + char buf[13]; + ::snprintf( buf, sizeof(buf), "%.2d:%.2d:%.2d:%.3d", get_hours(), get_minutes(), get_seconds(), get_millis() ); + return ddstring(buf); +} + + +/** + Returns the current time, as reported by the system clock. +*/ + + +ddbasetime ddbasetime::now() +{ + ddbasetime ct; + return ct; +} + + +/** + Returns true if the specified time is valid, otherwise false. + The time is valid if h is in the range 0-23, m and s are in + the range 0-59, and ms is in the range 0-999. +*/ + +bool ddbasetime::is_valid( int h, int m, int s, int ms ) +{ + return (size_t) h < 24 && (size_t) m < 60 && (size_t) s < 60 && (size_t) ms < 1000; +} + + +/** + Sets this time to the current time. This is practical for timing. +*/ + +void ddbasetime::start() +{ + *this = ddbasetime::now(); +} + + +/** + Sets this time to the current time, and returns the number of + seconds that have elapsed since the last time "start()" or + "restart()" was called +*/ + +double ddbasetime::restart() +{ + ddbasetime t; + int n = get_milli_secs_to( t ); + if ( n < 0 ) // passed midnight + n += 86400*1000; + *this = t; + return (double) n / 1000.0; +} + + +/** + Returns the number of seconds that have elapsed since the last + ddbasetime "start()" or "restart()" was called. +*/ + +double ddbasetime::elapsed() +{ + int n = get_milli_secs_to( now() ); + if ( n < 0 ) // passed midnight + n += 86400*1000; + return (double) n / 1000.0 ; +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default constructor. + Creates a representation of the current date. +*/ + +ddbasedate::ddbasedate() +{ + ::time( &_epoch ); +} + + +ddbasedate::ddbasedate( time_t epoch ) +: _epoch( epoch ) +{ + +} + +/** + Copy constructor. +*/ + + +ddbasedate::ddbasedate( const ddbasedate& src ) +: ddbasetimeval() +{ + *this=src; +} + + + +/** + Assignment operator. +*/ + +ddbasedate& ddbasedate::operator=( const ddbasedate& src ) +{ + if( this != &src ) + _epoch = src._epoch; + return *this; +} + + +/** + Destructor +*/ + +ddbasedate::~ddbasedate() +{ + +} + +bool ddbasedate::operator==( const ddbasedate& src ) const +{ + return _epoch == src._epoch; +} + +bool ddbasedate::operator!=( const ddbasedate& src ) const +{ + return _epoch != src._epoch; +} + +bool ddbasedate::operator<( const ddbasedate& src ) const +{ + return _epoch < src._epoch; +} + +bool ddbasedate::operator<=( const ddbasedate& src ) const +{ + return _epoch <= src._epoch; +} + +bool ddbasedate::operator>( const ddbasedate& src ) const +{ + return _epoch > src._epoch; +} + +bool ddbasedate::operator>=( const ddbasedate& src ) const +{ + return _epoch >= src._epoch; +} + + +int ddbasedate::get( size_t field ) const +{ + switch( field ) + { + + case tf_millis : + case tf_seconds : + case tf_minutes : + case tf_hours : + case tf_days : + case tf_weeks : + case tf_months : + case tf_years : + case tf_dom : + case tf_dow : + case tf_doy : + + return 0; + + default: + + throw runtime_error("ddbasedate::get: invalid field value!" ); + + } + return 0; +} + + + +/** + Creates a ddstring representation of this object. +*/ + +ddstring ddbasedate::to_string() const +{ + char buf[30]; + struct tm tmptime; + ::asctime_r( ::localtime_r( &_epoch, &tmptime ), buf ); + buf[24] = 0; + ddstring result; + result.append( buf ); + return result; +} + +ddstring ddbasedate::to_string( const ddstring& format ) const +{ + struct tm tmptime; + char buf[50]; + ddstring result; + ::localtime_r( &_epoch, &tmptime ); + if( ::strftime( buf, 49, format.c_str(), &tmptime ) ) + result.assign( buf ); + return result; +} + + +ddstring ddbasedate::to_string_gmt() const +{ + char buf[30]; + struct tm tmptime; + ::asctime_r( ::gmtime_r( &_epoch, &tmptime ), buf ); + buf[24] = 0; + ddstring result; + result.append( buf ); + return result; +} + +ddstring ddbasedate::to_string_de() const +{ + struct tm tm_now; + char buf[50]; + ::localtime_r( &_epoch, &tm_now ); + ::strftime( buf, 49, "%d.%m.%Y", &tm_now ); + ddstring result; + result.append( buf ); + return result; +} + + +ddstring ddbasedate::to_string_en() const +{ + char buf[30]; + struct tm tm_now; + ::localtime_r( &_epoch, &tm_now ); + ::strftime( buf, 29, "%F", &tm_now ); + ddstring result; + result.append( buf ); + return result; +} + + +ddstring ddbasedate::to_string_mysql() const +{ + char buf[30]; + struct tm tm_now; + ::localtime_r( &_epoch, &tm_now ); + ::strftime( buf, 29, "%F %T", &tm_now ); + ddstring result; + result.append( buf ); + return result; +} + + +ddbasedate ddbasedate::now() +{ + ddbasedate nowdate; + return nowdate; +} diff --git a/supportware/src/ddbasetime.h b/supportware/src/ddbasetime.h new file mode 100644 index 0000000..54aa08f --- /dev/null +++ b/supportware/src/ddbasetime.h @@ -0,0 +1,255 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDTIME_H +#define DDTIME_H + +#include + +using namespace std; + +/// ddbasetimeval is the baseclass for ddbasetime and ddbasedate. +/** + Ddtimeval defines shortcut methods to access the datafields + of ddbasetime and ddbasedate. + @see ddbasetime + @see ddbasedate. + */ + +class ddbasetimeval : public ddbaseobject +{ + +public: + + + enum dd_timefields + { + tf_millis=0, + tf_seconds, + tf_minutes, + tf_hours, + tf_days, + tf_weeks, + tf_months, + tf_years, + + tf_dom, + tf_dow, + tf_doy, + + tf_size + }; + + virtual ~ddbasetimeval() + { + + } + + virtual int get( size_t field ) const = 0; + + + int get_millis() const + { + return get( ddbasetimeval::tf_millis ); + } + + int get_seconds() const + { + return get( ddbasetimeval::tf_seconds ); + } + + int get_minutes() const + { + return get( ddbasetimeval::tf_minutes ); + } + + int get_hours() const + { + return get( ddbasetimeval::tf_hours ); + } + + int get_day() const + { + return get( ddbasetimeval::tf_days ); + } + + int get_week() const + { + return get( ddbasetimeval::tf_weeks ); + } + + int get_month() const + { + return get( ddbasetimeval::tf_months ); + } + + int get_year() const + { + return get( ddbasetimeval::tf_years ); + } + + // for date + int get_day_of_month() const + { + return get( ddbasetimeval::tf_dom ); + } + + int get_day_of_week() const + { + return get( ddbasetimeval::tf_dow ); + } + + int get_day_of_year() const + { + return get( ddbasetimeval::tf_doy ); + } + + static const size_t SECS_PER_DAY = 86400; + static const size_t MSECS_PER_DAY = 86400000; + static const size_t SECS_PER_HOUR = 3600; + static const size_t MSECS_PER_HOUR = 3600000; + static const size_t SECS_PER_MIN = 60; + static const size_t MSECS_PER_MIN = 60000; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddbasetime is a simple representation for daytime and duration. +/** + +*/ + +class ddbasetime : public ddbasetimeval +{ + +public: + + ddbasetime(); + ddbasetime( time_t local ); + ddbasetime( int h, int m, int s, int ms ); + ddbasetime( const ddbasetime& src ); + ddbasetime& operator=( const ddbasetime& src ); + virtual ~ddbasetime(); + + bool operator==( const ddbasetime& src ) const; + bool operator!=( const ddbasetime& src ) const; + bool operator<( const ddbasetime& src ) const; + bool operator<=( const ddbasetime& src ) const; + bool operator>( const ddbasetime& src ) const; + bool operator>=( const ddbasetime& src ) const; + + + // impl. of ddbasetimeval interface + int get( size_t field ) const; + + bool set_hms( int h, int m, int s, int ms=0 ); + bool is_valid() const; + + ddbasetime& add_secs( int secs ); + int get_secs_to( const ddbasetime& src ) const; + ddbasetime& add_milli_secs( int ms ); + int get_milli_secs_to( const ddbasetime& src ) const; + + void start(); + double restart(); + double elapsed(); + + ddstring to_string() const; + ddstring to_string_ms() const; + + static ddbasetime now(); + static bool is_valid( int h, int m, int s, int ms ); + +protected: + + size_t _millis; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddbasedate: a rotten date implementation +/** + Status: trash
                                                +*/ + +class ddbasedate : public ddbasetimeval +{ + +public: + + ddbasedate(); + ddbasedate( const ddbasedate& src ); + ddbasedate( time_t epoch ); + //ddbasedate( char* dateddstring ); + //ddbasedate( tm *_time ); + ddbasedate& operator=( const ddbasedate& src ); + virtual ~ddbasedate(); + + + // impl. of ddbasetimeval interface + int get( size_t field ) const; + void set( size_t field, int value ); + void add( size_t field, int value ); + + bool operator==( const ddbasedate& src ) const; + bool operator!=( const ddbasedate& src ) const; + bool operator<( const ddbasedate& src ) const; + bool operator<=( const ddbasedate& src ) const; + bool operator>( const ddbasedate& src ) const; + bool operator>=( const ddbasedate& src ) const; + + ddstring to_string() const; + ddstring to_string( const ddstring& format ) const; + ddstring to_string_gmt() const; + ddstring to_string_de() const; + ddstring to_string_en() const; + ddstring to_string_mysql() const; + + static ddbasedate now(); + +protected: + + time_t _epoch; + +}; + +#endif diff --git a/supportware/src/ddconfig.cpp b/supportware/src/ddconfig.cpp new file mode 100644 index 0000000..f0c53b2 --- /dev/null +++ b/supportware/src/ddconfig.cpp @@ -0,0 +1,1492 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include + +/** + Default Constructor. +*/ + +ddconfigoptions::ddconfigoptions() +: ddstringmap() +{ +} + +/** + Destructor. +*/ + +ddconfigoptions::~ddconfigoptions() +{ +} + + +/** + Returns. +*/ + +void ddconfigoptions::create( int argc, char** argv ) +{ + clear(); + for( int i=1; i 0 && option[0] == '-' ) + set_option( option, ddstring( argv[i] ) ); + } + +} + + +/** + Returns. +*/ + +void ddconfigoptions::sync( ddconfig& config, const ddstring& sectionname ) +{ + ddconfigsection& section = config[ sectionname ]; + ddconfigoptions::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + section[ (*pos).first ] = (*pos).second; +} + + +/** + Returns. +*/ + +void ddconfigoptions::set_option( const ddstring& optionkey, const ddstring& value ) +{ + ddstring& key = _aliases[ optionkey ]; + if( !key.empty() ) + (*this)[key] = value; + else + throw runtime_error( "ddconfigoptions::set_option: unknown option: " + optionkey ); + +} + + +/** + Returns. +*/ + +void ddconfigoptions::add_option( const ddstring& key, const ddstring& skey, const ddstring& lkey, const ddstring& defval ) +{ + _aliases[ skey ] = key; + _aliases[ lkey ] = key; + (*this)[ key ] = defval; +} + + +/** + Dumps all fields for debugging purposes. + @see ddbaseobject +*/ + +void ddconfigoptions::dump() const +{ + ddstringmap::const_iterator pos = _aliases.begin(); + cout << "configoptions:" << endl; + for( ; pos != _aliases.end(); ++pos ) + cout << "key: <" << (*pos).first << "> value: <" << (*pos).second << ">" << endl; + pos = begin(); + for( ; pos != end(); ++pos ) + cout << "selfkey: <" << (*pos).first << "> selfvalue: <" << (*pos).second << ">" << endl; + cout << "\n\n" << endl; + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +/** + Default constructor. +*/ + + +ddconfigparser::ddconfigparser() +: _curtok(0), _peek(false), _lineno(1) +{ + for( size_t i=0; iadd_section( type, name ); + while( (token = peek_token() ) != ddtoken::t_close_brace3 ) + parse_entry(); + + // section is done + scan_token( ddtoken::t_close_brace3 ); + return true; +} + + +/** + Destructor. +*/ + +void ddconfigparser::parse_entry() +{ + + scan_token( ddtoken::t_id ); + ddstring name = _entrystack.top().value; + scan_token( ddtoken::t_assign ); + scan_token( ddtoken::t_value ); + ddstring value = _entrystack.top().value; + scan_token( ddtoken::t_semicolon ); + (*_current).add_by_key( name, value ); +} + + + +/** + Reads a file into a ddstring. + @param target the target ddstring. + @param filenam the file to load. +*/ + +void ddconfigparser::read_file( ddstring& target, const ddstring& filename ) +{ + _sources.insert( filename ); + if( target.from_file( filename ) < 0 ) + create_error("ddconfigparser::include: read error!"); + +} + + +/** + FIX!! + Buggy trash to include a file. +*/ + +void ddconfigparser::include( ddstring& target, size_t from, size_t count, const ddstring& filename ) +{ + if( _sources.count( filename ) ) + { + target.replace( from, count, "" ); + } + else + { + ddstring txt; + read_file( txt, filename ); + target.replace( from, count, txt ); + } +} + + +/** + FIX!! + Buggy trash to load include files. +*/ + + +void ddconfigparser::scan_includes( ddstring& target, const ddstring& filename ) +{ + // init again + _curtok = 0; + _peek = false; + _lineno = 1; + _tmp = ""; + _entrystack.clear(); + + read_file( target, filename ); + + size_t pos=ddstring::npos; + + /** + FIX! this searches in ddstring literals also!!! + */ + + while( (pos=target.find( "use: " )) != ddstring::npos ) + { + size_t end = target.find( ';', pos+5 ); + if( end != ddstring::npos ) + { + ddstring fname = target.substr( pos+5, end-pos-5 ); + include( target, pos, end-pos+1, fname ); + } + else + { + create_error("ddconfigparser::include: invalid include!"); + } + } +} + + +/** + Internal function to fetch the next token from the input stream. + Returns the current token, if any. Otherwise, get_token() is called. + @return the token + @see ddopcode + @see get_token() +*/ + +size_t ddconfigparser::peek_token() +{ + if( _peek ) + return _curtok; + get_token(); + _peek = true; + return _curtok; +} + + +/** + Internal function to confirm an expected token. If the next token in the + token stream doesn't match, a fatal error can be created. + @param token the token to read. + @param error create error on token mismatch (defaults to true) + @see create_error +*/ + + +bool ddconfigparser::scan_token( size_t token, bool create_err ) +{ + bool result = ( get_token() == token ); + if( !result && create_err ) + { + ddstring error = ddstring("found: '") + ddstring(ddtoken::id[_curtok]) + "'"; + create_error( error + ddstring(" expected: '") + ddstring(ddtoken::id[token]) + "'" ); + } + return result; +} + + +/** + Skip blank chars ( \n \r \t ' ' ) in the input stream. +*/ + +void ddconfigparser::scan_blank() +{ + do + { + if( _currentchar=='\n' ) + _lineno++; + if( !isspace( _currentchar ) ) + return; + } + while( _input.get( _currentchar ) ); +} + + +/** + Internal function to fetch the next character from the input stream. + C/C++ comments are skipped. + @param move if true, the input stream pointer is moved one position. + @return the character +*/ + +char ddconfigparser::get_char() +{ + // try to skip C/C++ comments + + while( _input.get( _currentchar ) ) + { + if( _currentchar != '/' ) + break; + + char peekchar; + _input.get( peekchar ); + + if( peekchar == '/' ) + { + // skip cpp-sytle comment + _input.ignore( _txt.size(), '\n' ); + _lineno++; + } + else if( peekchar== '*' ) + { + char lastchar=0; + // skip c-style comment + while( _input.get( peekchar ) ) + { + + if( peekchar == '\n' ) + _lineno++; + + if( peekchar == '/' && lastchar == '*' ) + break; + lastchar = peekchar; + } + + } + // es war kein Kommentar, also sowas wie /= ... + else + { + // Zeichen sichern + //_input.put_back( peekchar ); + _input.unget(); + break; + } + + } + + return _currentchar; + +} + + + +/** + Internal function to fetch the next token from the input stream. + @return the token + @see ddopcode +*/ + +size_t ddconfigparser::get_token() +{ + if( _peek ) + { + _peek = false; + return _curtok; + } + + get_char(); + scan_blank(); + + // test for ids + if( isalpha( _currentchar ) || _currentchar == '_' ) + _curtok = scan_identifier(); + // test for int & double + else if( isdigit( _currentchar ) ) + _curtok = scan_numeric_literal(); + // test for ddstrings + else if( _currentchar == '\'' || _currentchar == '"' ) + _curtok = scan_string_literal(); + // must be operator + else + _curtok = scan_operator(); + return _curtok; +} + +/** + Internal function to scan an identifier. +*/ + +size_t ddconfigparser::scan_identifier() +{ + do + { + _tmp += _currentchar; + get_char(); + } + //while( isalnum( _currentchar ) || _currentchar == '_' ); + // neu: + // - und . erlauben + while( isalnum( _currentchar ) || _currentchar == '_' || _currentchar == '.' || _currentchar == '-' ); + + // now, we are behind + _input.unget(); + + if( _tmp == DDSTRTRUE || _tmp == DDSTRFALSE ) + { + create_entry( ddtoken::t_bool ); + return ddtoken::t_value; + } + // lookup identifier: maybe its a keyword or type. + size_t token = ddtoken::t_id; + ddmapindex::iterator pos = _tokenmap.find( _tmp ); + if( pos != _tokenmap.end() ) + token = (*pos).second; + + // store real token + create_entry( token ); + + + // fake token as type + switch( token ) + { + case ddtoken::t_void : + case ddtoken::t_ddstring : + case ddtoken::t_int : + case ddtoken::t_double : + case ddtoken::t_bool : + + case ddtoken::t_seq : + case ddtoken::t_date : + case ddtoken::t_currency : + case ddtoken::t_page : + // ?? FIX! + //case ddtoken::t_system : + //case ddtoken::t_module : + //case ddtoken::t_site : + + //return ddtoken::t_id; + return ddtoken::t_type; + } + + return token; + +} +/** + Internal function to scan a string literal. +*/ + +size_t ddconfigparser::scan_string_literal() +{ + + char delim = _currentchar; + //while( get_char() != delim ) + while( _input.get( _currentchar ) ) + { + if( _currentchar == delim ) + break; + _tmp += _currentchar; + } + + create_entry( ddtoken::t_ddstring ); + return ddtoken::t_value; +} + + +/** + Internal function to scan a numeric literal. +*/ + +size_t ddconfigparser::scan_numeric_literal() +{ + bool dot=false; + while( isdigit( _currentchar ) || _currentchar == '.' ) + { + _tmp +=_currentchar; + if( get_char() == '.' ) + { + if( dot ) + create_error("double dot in numeric literal"); + dot=true; + } + } + // now, we are behind + _input.unget(); + + if( dot ) + create_entry( ddtoken::t_double ); + else + create_entry( ddtoken::t_int ); + + return ddtoken::t_value; +} + + + +/** + Internal function to scan an operator: + - * etc. +*/ + +size_t ddconfigparser::scan_operator() +{ + + _tmp += _currentchar; + // += -= *= /= %= &= |= <= >= != << >> ++ -- + size_t token = ddtoken::t_nop; + ddstring tmp = _tmp + get_char(); + ddmapindex::iterator pos = _tokenmap.find( tmp ); + + // found valid operator + if( pos != _tokenmap.end() ) + { + _tmp = ""; + get_char(); + return (*pos).second; + } + else + { + _input.unget(); + } + + pos = _tokenmap.find( _tmp ); + + // found valid operator + if( pos != _tokenmap.end() ) + token = (*pos).second; + _tmp=""; + + return token; +} + + + +/** + This internal function stores the current token in the token list. + @param type the token type. +*/ + +void ddconfigparser::create_entry( size_t type ) +{ + if( !_tmp.empty() ) + _entrystack.push( ddparseentry( type, _lineno, _tmp ) ); + _tmp=""; +} + + +/** + Creates an error message and throws an exception. + @param msg the error message. + @param line the error line +*/ + +void ddconfigparser::create_error( const ddstring& text, size_t line ) +{ + ddstring txt = " parse error in line "+ ddstrutil::from_int( line ); + // FIX! this doesnt work! + if( _currentchar != '\n' ) //avoid newline character + { + txt += " before '"; + txt += _currentchar; + txt += "' "; + } + if( !text.empty() ) + txt += ": " + text; + //log_info( txt ); + throw invalid_argument( txt ); +} + +/** + Creates an error message for the currently parsed line and throws an exception. + @param msg the error message. +*/ + +void ddconfigparser::create_error( const ddstring& msg ) +{ + create_error( msg, _lineno ); +} + + + + + + + + + + + + + + + + + + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +/** + Default constructor. +*/ + + +ddconfigparser_neu::ddconfigparser_neu() +: _curtok(0), _peek(false), _lineno(1) +{ + for( size_t i=0; iadd_section( type, name ); + while( (token = peek_token() ) != ddtoken::t_close_brace3 ) + parse_entry(); + + // section is done + scan_token( ddtoken::t_close_brace3 ); + return true; +} + + +/** + Destructor. +*/ + +void ddconfigparser_neu::parse_entry() +{ + + scan_token( ddtoken::t_id ); + ddstring name = _entrystack.top().value; + scan_token( ddtoken::t_assign ); + scan_token( ddtoken::t_value ); + ddstring value = _entrystack.top().value; + scan_token( ddtoken::t_semicolon ); + (*_current).add_by_key( name, value ); +} + + + +/** + Reads a file into a ddstring. + @param target the target ddstring. + @param filenam the file to load. +*/ + +void ddconfigparser_neu::read_file( ddstring& target, const ddstring& filename ) +{ + _sources.insert( filename ); + if( target.from_file( filename ) < 0 ) + create_error("ddconfigparser_neu::include: read error!"); + +} + + +/** + FIX!! + Buggy trash to include a file. +*/ + +void ddconfigparser_neu::include( ddstring& target, size_t from, size_t count, const ddstring& filename ) +{ + if( _sources.count( filename ) ) + { + target.replace( from, count, "" ); + } + else + { + ddstring txt; + read_file( txt, filename ); + target.replace( from, count, txt ); + } +} + + +/** + FIX!! + Buggy trash to load include files. +*/ + + +void ddconfigparser_neu::scan_includes( ddstring& target, const ddstring& filename ) +{ + // init again + _curtok = 0; + _peek = false; + _lineno = 1; + _tmp = ""; + _entrystack.clear(); + + read_file( target, filename ); + + size_t pos=ddstring::npos; + + /** + FIX! this searches in ddstring literals also!!! + */ + + while( (pos=target.find( "use: " )) != ddstring::npos ) + { + size_t end = target.find( ';', pos+5 ); + if( end != ddstring::npos ) + { + ddstring fname = target.substr( pos+5, end-pos-5 ); + include( target, pos, end-pos+1, fname ); + } + else + { + create_error("ddconfigparser_neu::include: invalid include!"); + } + } +} + + +/** + Internal function to fetch the next token from the input stream. + Returns the current token, if any. Otherwise, get_token() is called. + @return the token + @see ddopcode + @see get_token() +*/ + +size_t ddconfigparser_neu::peek_token() +{ + if( _peek ) + return _curtok; + get_token(); + _peek = true; + return _curtok; +} + + +/** + Internal function to confirm an expected token. If the next token in the + token stream doesn't match, a fatal error can be created. + @param token the token to read. + @param error create error on token mismatch (defaults to true) + @see create_error +*/ + + +bool ddconfigparser_neu::scan_token( size_t token, bool create_err ) +{ + bool result = ( get_token() == token ); + if( !result && create_err ) + { + ddstring error = ddstring("found: '") + ddstring(ddtoken::id[_curtok]) + "'"; + create_error( error + ddstring(" expected: '") + ddstring(ddtoken::id[token]) + "'" ); + } + return result; +} + + +/** + Skip blank chars ( \n \r \t ' ' ) in the input stream. +*/ + +void ddconfigparser_neu::scan_blank() +{ + do + { + if( _currentchar=='\n' ) + _lineno++; + if( !isspace( _currentchar ) ) + return; + } + while( _input.get( _currentchar ) ); +} + + +/** + Internal function to fetch the next character from the input stream. + C/C++ comments are skipped. + @param move if true, the input stream pointer is moved one position. + @return the character +*/ + +char ddconfigparser_neu::get_char() +{ + // try to skip C/C++ comments + + while( _input.get( _currentchar ) ) + { + if( _currentchar != '/' ) + break; + + char peekchar; + _input.get( peekchar ); + + if( peekchar == '/' ) + { + // skip cpp-sytle comment + _input.ignore( _txt.size(), '\n' ); + _lineno++; + } + else if( peekchar== '*' ) + { + char lastchar=0; + // skip c-style comment + while( _input.get( peekchar ) ) + { + + if( peekchar == '\n' ) + _lineno++; + + if( peekchar == '/' && lastchar == '*' ) + break; + lastchar = peekchar; + } + + } + // es war kein Kommentar, also sowas wie /= ... + else + { + // Zeichen sichern + //_input.put_back( peekchar ); + _input.unget(); + break; + } + + } + + return _currentchar; + +} + + + +/** + Internal function to fetch the next token from the input stream. + @return the token + @see ddopcode +*/ + +size_t ddconfigparser_neu::get_token() +{ + if( _peek ) + { + _peek = false; + return _curtok; + } + + get_char(); + scan_blank(); + + // test for ids + if( isalpha( _currentchar ) || _currentchar == '_' ) + _curtok = scan_identifier(); + // test for int & double + else if( isdigit( _currentchar ) ) + _curtok = scan_numeric_literal(); + // test for ddstrings + else if( _currentchar == '\'' || _currentchar == '"' ) + _curtok = scan_string_literal(); + // must be operator + else + _curtok = scan_operator(); + return _curtok; +} + +/** + Internal function to scan an identifier. +*/ + +size_t ddconfigparser_neu::scan_identifier() +{ + do + { + _tmp += _currentchar; + get_char(); + } + while( isalnum( _currentchar ) || _currentchar == '_' ); + + // now, we are behind + _input.unget(); + + if( _tmp == DDSTRTRUE || _tmp == DDSTRFALSE ) + { + create_entry( ddtoken::t_bool ); + return ddtoken::t_value; + } + // lookup identifier: maybe its a keyword or type. + size_t token = ddtoken::t_id; + ddmapindex::iterator pos = _tokenmap.find( _tmp ); + if( pos != _tokenmap.end() ) + token = (*pos).second; + + // store real token + create_entry( token ); + + + // fake token as type + switch( token ) + { + case ddtoken::t_void : + case ddtoken::t_ddstring : + case ddtoken::t_int : + case ddtoken::t_double : + case ddtoken::t_bool : + + case ddtoken::t_seq : + case ddtoken::t_date : + case ddtoken::t_currency : + case ddtoken::t_page : + // ?? FIX! + //case ddtoken::t_system : + //case ddtoken::t_module : + //case ddtoken::t_site : + + //return ddtoken::t_id; + return ddtoken::t_type; + } + + return token; + +} +/** + Internal function to scan a string literal. +*/ + +size_t ddconfigparser_neu::scan_string_literal() +{ + + char delim = _currentchar; + //while( get_char() != delim ) + while( _input.get( _currentchar ) ) + { + if( _currentchar == delim ) + break; + _tmp += _currentchar; + } + + create_entry( ddtoken::t_ddstring ); + return ddtoken::t_value; +} + + +/** + Internal function to scan a numeric literal. +*/ + +size_t ddconfigparser_neu::scan_numeric_literal() +{ + bool dot=false; + while( isdigit( _currentchar ) || _currentchar == '.' ) + { + _tmp +=_currentchar; + if( get_char() == '.' ) + { + if( dot ) + create_error("double dot in numeric literal"); + dot=true; + } + } + // now, we are behind + _input.unget(); + + if( dot ) + create_entry( ddtoken::t_double ); + else + create_entry( ddtoken::t_int ); + + return ddtoken::t_value; +} + + + +/** + Internal function to scan an operator: + - * etc. +*/ + +size_t ddconfigparser_neu::scan_operator() +{ + + _tmp += _currentchar; + // += -= *= /= %= &= |= <= >= != << >> ++ -- + size_t token = ddtoken::t_nop; + ddstring tmp = _tmp + get_char(); + ddmapindex::iterator pos = _tokenmap.find( tmp ); + + // found valid operator + if( pos != _tokenmap.end() ) + { + _tmp = ""; + get_char(); + return (*pos).second; + } + else + { + _input.unget(); + } + + pos = _tokenmap.find( _tmp ); + + // found valid operator + if( pos != _tokenmap.end() ) + token = (*pos).second; + _tmp=""; + + return token; +} + + + +/** + This internal function stores the current token in the token list. + @param type the token type. +*/ + +void ddconfigparser_neu::create_entry( size_t type ) +{ + if( !_tmp.empty() ) + _entrystack.push( ddparseentry( type, _lineno, _tmp ) ); + _tmp=""; +} + + +/** + Creates an error message and throws an exception. + @param msg the error message. + @param line the error line +*/ + +void ddconfigparser_neu::create_error( const ddstring& text, size_t line ) +{ + ddstring txt = " parse error in line "+ ddstrutil::from_int( line ); + // FIX! this doesnt work! + if( _currentchar != '\n' ) //avoid newline character + { + txt += " before '"; + txt += _currentchar; + txt += "' "; + } + if( !text.empty() ) + txt += ": " + text; + //log_info( txt ); + throw invalid_argument( txt ); +} + +/** + Creates an error message for the currently parsed line and throws an exception. + @param msg the error message. +*/ + +void ddconfigparser_neu::create_error( const ddstring& msg ) +{ + create_error( msg, _lineno ); +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default Constructor. +*/ + +ddconfigsection::ddconfigsection() +{ +} + + +/** + Standard Constructor. +*/ + +ddconfigsection::ddconfigsection( const ddstring& type, const ddstring& name ) +: _type( type ) +{ + set_name( name ); +} + + +/** + Copy constructor. +*/ + +ddconfigsection::ddconfigsection( const ddconfigsection& src ) +{ + *this = src; +} + + +/** + Assignment operator. +*/ + +ddconfigsection& ddconfigsection::operator=( const ddconfigsection& src ) +{ + if( this == &src ) + return *this; + _data = src._data; + _index = src._index; + _type = src._type; + _name = src._name; + return *this; +} + +/** + Destructor. +*/ + +ddconfigsection::~ddconfigsection() +{ +} + + +/** + @Returns einen String-Eintrag mit dem Schlüssel 'key' zurück. Falls dieser fehlt, + wird 'defaultvalue' gesetzt und zurückgegeben. +*/ + +ddstring& ddconfigsection::get_entry( const ddstring& key, const ddstring& defaultvalue ) +{ + ddstring& result = (*this)[key]; + if( result.empty() ) + (*this)[key] = defaultvalue; + return (*this)[key]; +} + + +/** + @Returns den Eintrag mit Schlüssel 'key' als Bool. +*/ + +bool ddconfigsection::get_bool( const ddstring& key, bool defaultvalue ) +{ + ddstring tmp = get_entry( key ); + if( tmp.empty() ) + return defaultvalue; + return tmp.as_bool(); +} + + +/** + @Returns den Eintrag mit Schlüssel 'key' als Int. +*/ + +int ddconfigsection::get_int( const ddstring& key, int defaultvalue ) +{ + ddstring tmp = get_entry( key); + if( tmp.empty() ) + return defaultvalue; + return tmp.as_int(); +} + + +/** + @Returns den Eintrag mit Schlüssel 'key' als double. +*/ + +double ddconfigsection::get_double( const ddstring& key, double defaultvalue ) +{ + ddstring tmp = get_entry( key); + if( tmp.empty() ) + return defaultvalue; + return tmp.as_double(); +} + + +/** + @Returns den Type: "section" oder "domain" +*/ + +const ddstring& ddconfigsection::get_type() +{ + return _type; +} + + +/** + Dump-ed diese section. +*/ + +void ddconfigsection::dump() const +{ + cout << "Configsection: " << get_name() << ": " << size() << endl; + for( int i=0; i +#include +#include +#include +#include +#include +#include +#include + + +class ddconfig; +class ddconfigoptions; +class ddconfigsection; + + +/// ddconfigoptions: Verwaltet kommanozeilenparameter +/** + +*/ + +class ddconfigoptions : public ddstringmap +{ + +public: + + ddconfigoptions(); + virtual ~ddconfigoptions(); + + void create( int argc, char** argv ); + void sync( ddconfig& config, const ddstring& sectionname ); + void add_option( const ddstring& key, const ddstring& skey, const ddstring& lkey, const ddstring& defval="" ); + void set_option( const ddstring& optionkey, const ddstring& value ); + + void dump() const; + +protected: + + ddstringmap _aliases; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddparseentry is a simple container for parsed script atoms and (optional) +/// parameters. +/** + Entries are compiled into ddopcodes by ddcompiler. + + @see ddtoken + @see ddopcode + @see ddparser + @see ddcompiler + */ + +class ddparseentry +{ + +public: + + /** + Default constructor. + */ + + ddparseentry() + : token(0), param(0) + { + + } + + /** + Default constructor. + */ + + ddparseentry( size_t atoken, size_t aline ) + : token(atoken), line(aline), param(0) + { + } + + /** + Default constructor. + */ + + ddparseentry( size_t atoken, size_t aline, const ddstring& avalue, size_t aparam=0 ) + : token(atoken), line(aline), value(avalue), param(aparam) + { + } + + /** + Dump this entry for debugging purpose. + */ + + void dump() const + { + } + + size_t token; + size_t line; + ddstring value; + size_t param; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddconfigparser : etwas missglückter parser +/** + +*/ + +class ddconfigparser : public ddbaseobject +{ + +public: + + ddconfigparser(); + virtual ~ddconfigparser(); + + virtual bool parse_config( ddconfig* target, const ddstring& filename, const ddstring& base="" ); + +protected: + + bool parse_section(); + void parse_entry(); + + void create_error( const ddstring& msg, size_t line ); + void create_error( const ddstring& msg ); + void read_file( ddstring& target, const ddstring& filename ); + void include( ddstring& target, size_t from, size_t count, const ddstring& filename ); + + void scan_includes( ddstring& target, const ddstring& filename ); + + char get_char(); + size_t get_token(); + size_t peek_token(); + + size_t scan_string_literal(); + size_t scan_numeric_literal(); + size_t scan_boolean_literal(); + size_t scan_operator(); + size_t scan_identifier(); + + bool scan_token( size_t token, bool create_error=true ); + void scan_blank(); + + void create_entry( size_t type ); + + size_t _curtok; + bool _peek; + + size_t _lineno; + + ddstring _txt, _tmp; + ddstack _entrystack; + + set _sources; + ddstringrow _src; + ddmapindex _tokenmap; + + istringstream _input; + char _currentchar; + +private: + + ddconfigparser( const ddconfigparser& src ); + ddconfigparser& operator=( const ddconfigparser& src ); + + ddconfig* _target; + ddconfigsection* _current; + +}; + + + + + + + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddconfigparser_neu : etwas missglückter parser +/** + +*/ + +class ddconfigparser_neu : public ddbaseobject +{ + +public: + + ddconfigparser_neu(); + virtual ~ddconfigparser_neu(); + + virtual bool parse_config( ddconfig* target, const ddstring& filename, const ddstring& base="" ); + +protected: + + bool parse_section(); + void parse_entry(); + + void create_error( const ddstring& msg, size_t line ); + void create_error( const ddstring& msg ); + void read_file( ddstring& target, const ddstring& filename ); + void include( ddstring& target, size_t from, size_t count, const ddstring& filename ); + + void scan_includes( ddstring& target, const ddstring& filename ); + + char get_char(); + size_t get_token(); + size_t peek_token(); + + size_t scan_string_literal(); + size_t scan_numeric_literal(); + size_t scan_boolean_literal(); + size_t scan_operator(); + size_t scan_identifier(); + + bool scan_token( size_t token, bool create_error=true ); + void scan_blank(); + + void create_entry( size_t type ); + + size_t _curtok; + bool _peek; + + size_t _lineno; + + ddstring _txt, _tmp; + ddstack _entrystack; + + set _sources; + ddstringrow _src; + ddmapindex _tokenmap; + + istringstream _input; + char _currentchar; + +private: + + ddconfigparser_neu( const ddconfigparser_neu& src ); + ddconfigparser_neu& operator=( const ddconfigparser_neu& src ); + + ddconfig* _target; + ddconfigsection* _current; + +}; + + + + + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddconfigsection: Eine benannte ddmaprow welche Config-Daten enthält. +/** + + ddconfigsection: Eine benannte ddmaprow welche + Config-Daten enthält: + + Wie in der guten alten Zeit: + + section:"main" + { + max_connections=1200; + port=8088; + default_domain="sn_computer"; + default_templates="sn_templates"; + daemon=false; + watchdog=false; + timeout=60; + connectstring="users;localhost;dope;moomoo"; + user="user"; + chroot="."; + } + + FIX! Der Parser stinkt! + FIX! Sections sollten erben können! + +*/ + +class ddconfigsection : public ddmaprow, public ddbasename +{ + +public: + + ddconfigsection(); + ddconfigsection( const ddstring& type, const ddstring& name ); + ddconfigsection( const ddconfigsection& src ); + ddconfigsection& operator=( const ddconfigsection& src ); + virtual ~ddconfigsection(); + + virtual ddstring& get_entry( const ddstring& key, const ddstring& defaultvalue="" ); + virtual bool get_bool( const ddstring& key, bool defaultvalue ); + virtual int get_int( const ddstring& key, int defaultvalue ); + virtual double get_double( const ddstring& key, double defaultvalue ); + + virtual void dump() const; + + const ddstring& get_type(); + +protected: + + ddstring _type; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// A ddconfig represents the content of a configuration file. +/** + +*/ + +class ddconfig : public ddmaprow, public ddbasename +{ + +public: + + ddconfig(); + virtual ~ddconfig(); + + virtual bool load( const ddstring& filename, const ddstring& base="" ); + virtual ddconfigsection* add_section( const ddstring& type, const ddstring& name ); + virtual void dump() const; + +protected: + + ddconfigparser _configparser; + +}; + + +#endif diff --git a/supportware/src/dddataconnection.cpp b/supportware/src/dddataconnection.cpp new file mode 100644 index 0000000..14870bb --- /dev/null +++ b/supportware/src/dddataconnection.cpp @@ -0,0 +1,120 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include + + +/** + Default constructor. +*/ + +dddataconnection::dddataconnection() +: _connected( false ) +{ + ::mysql_init( &_mysql ); +} + + +/** + Default constructor. +*/ + +dddataconnection::dddataconnection( const ddstring& db, const ddstring& host, const ddstring& user, const ddstring& pass ) +: _connected( false ) +{ + ::mysql_init( &_mysql ); + connect( db, host, user, pass ); +} + + +/** + Standard constructor. +*/ + +dddataconnection::dddataconnection( const ddstring& connectstring ) +: _connected( false ) +{ + ::mysql_init( &_mysql ); + connect( connectstring ); +} + + +/** + Destructor. +*/ + +dddataconnection::~dddataconnection() +{ + close(); +} + + +/** + Diese connection schliessen. +*/ + + +void dddataconnection::close() +{ + ::mysql_close( &_mysql ); + _connected = false; +} + + +/** + Eine Verbindung zu MySql-Server aufbauen. + @param connectstring der CSV connectstring aka "database;host;user;pass" +*/ + +void dddataconnection::connect( const ddstring& connectstring ) +{ + ddstringrow row( connectstring, ";" ); + if( row.size()<4 ) + throw runtime_error( "dddataconnection::connect: invalid connectstring" + connectstring ); + connect( row[0], row[1], row[2], row[3] ); +} + + +/** + Eine Verbindung zu MySql-Server aufbauen. +*/ + + +void dddataconnection::connect( const ddstring& db, const ddstring& host ,const ddstring& user, const ddstring& passwd ) +{ + if( _connected ) + close(); + + _connected = ( ::mysql_real_connect( + &_mysql, + host.c_str(), + user.c_str(), + passwd.c_str(), + db.c_str(), + 3306, + NULL, + CLIENT_MULTI_STATEMENTS ) != NULL ); + + if( !_connected ) + throw runtime_error( "dddataconnection::connect: invalid connect failed" + ddstring( ::mysql_error( &_mysql ) ) ); + +} + + + + + + + diff --git a/supportware/src/dddataconnection.h b/supportware/src/dddataconnection.h new file mode 100644 index 0000000..d26220e --- /dev/null +++ b/supportware/src/dddataconnection.h @@ -0,0 +1,78 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDDATACONNECTION_H +#define DDDATACONNECTION_H + +#include +#include + + +class dddataquery; +class dddatastore; +class ddwebitem; +class ddwebcgi; +class dddataconnection; +class dditem; + +/// dddataconnection +/** + + Ex DDDBConnection, diesmal KISS: Keine Felder, Keine States (wurden ja eh nicht benutzt) + Stattdessen kapselt die Connection den MySql-Kram. + + Die Aufteilung in connection und reader verhindert, das read() vor execute aufgerufen werden kann, + Allerdings werden dazu dann zwei spinnlocks gebraucht. + + + @see dddatastore& + + + FIX! stored procs & cursors! + +*/ + +class dddataconnection : public ddbaseobject +{ + +friend class dddatastore; + +public: + + dddataconnection(); + dddataconnection( const ddstring& connectstring ); + dddataconnection( const ddstring& db, const ddstring& host, const ddstring& user="", const ddstring& pass="" ); + + ~dddataconnection(); + + inline bool operator!() const + { + return _connected; + } + + void close(); + + void connect( const ddstring& connectstring ); + void connect( const ddstring& db, const ddstring& host, const ddstring& user="", const ddstring& pass="" ); + +protected: + + bool _connected; + ddthreadmutex _lock; + MYSQL _mysql; + +}; + + +#endif diff --git a/supportware/src/dddataobject.cpp b/supportware/src/dddataobject.cpp new file mode 100644 index 0000000..365240d --- /dev/null +++ b/supportware/src/dddataobject.cpp @@ -0,0 +1,12 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ diff --git a/supportware/src/dddataobject.h b/supportware/src/dddataobject.h new file mode 100644 index 0000000..0aaa8e1 --- /dev/null +++ b/supportware/src/dddataobject.h @@ -0,0 +1,218 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDDATAOBJECT_H +#define DDDATAOBJECT_H + +#include +#include + +/// dddataobject : Neufassung von dddbobject. +/** + Diesmal eher KISS: Ein dddataobject ist eine ddstringrow, die als Zeile einer + Tabelle dient und von dieser einen Pointer auf den Feldindex erhält, um den + 'acces by key' zu gewährleisten. + + @see ddstring + @see ddstringrow + @see ddwebview + + Änderung: _index zeigt _nicht_ auf die Eltern-table sondern auf deren + feldindex -> Abkürzung. +*/ + +// syntactic sugar +class dddatastaterow : public ddstringstaterow +{ + +public: + + enum dd_dataflags + { + data_is_public = 1, + data_is_removed = 2, + data_is_alerted = 4, + data_is_subscribed = 8, + data_is_solved = 16, + data_is_closed = 32, + data_is_draft = 64, + data_is_private = 128 + //... + }; + + inline bool is_public() const + { + return ( _flags & dddatastaterow::data_is_public ); + } + + inline bool is_removed() const + { + return ( _flags & dddatastaterow::data_is_removed ); + } + + inline bool is_alerted() const + { + return ( _flags & dddatastaterow::data_is_alerted ); + } + + inline bool is_subscribed() const + { + return ( _flags & dddatastaterow::data_is_subscribed ); + } + + inline bool is_solved() const + { + return ( _flags & dddatastaterow::data_is_solved ); + } + + inline bool is_closed() const + { + return ( _flags & dddatastaterow::data_is_closed ); + } + +}; + + +template +class dddataobject : public dddatastaterow +{ + +public: + + dddataobject() + : _parent( 0 ) + { + } + + dddataobject( T* parent ) + : _parent( parent ) + { + } + + + dddataobject( const dddataobject& src ) + { + *this = src; + } + + dddataobject& operator=( const dddataobject& src ) + { + _flags = src._flags; + _parent = src._parent; + ddstringrow::operator=( src ); + return *this; + } + + + + /** + Elternobject setzen + */ + + inline void set_parent( T* parent ) + { + _parent = parent; + } + + + /** + Gibt das Elternobject zurürck + */ + + inline T& get_parent() + { + return *_parent; + } + + + /** + Gibt den index für ein Feld oder -1 im Fehlerfall zurück. + */ + + int index_of( const ddstring& key ) const + { + return _parent->get_field_index().index_of( key ); + } + + + /** + Ist 'true' wenn der Eintrag 'key' existiert. + */ + + bool contains_key( const ddstring& key ) const + { + return _parent->get_field_index().contains_key( key ); + } + + + /** + Access by key. + */ + + ddstring& operator[]( const ddstring& key ) + { + int idx = _parent->get_field_index().index_of( key ); + if( idx>-1 ) + return ddstringrow::operator[](idx); + throw out_of_range( "dddataobject::operator[key]: key not found:" + key ); + } + + + /** + Access by key, const Version. + */ + + const ddstring& operator[]( const ddstring& key ) const + { + int idx = _parent->get_field_index().index_of( key ); + if( idx>-1 ) + return ddstringrow::operator[](idx); + throw out_of_range( "dddataobject::operator[key]: key not found:" + key ); + } + + + /** + Access by index: Der schweinecompiler rafts nicht, das das + schon definiert ist. + */ + + ddstring& operator[]( int idx ) + { + if( idx>-1 ) + return at(idx); + throw out_of_range( "dddataobject::operator[idx]: -1" ); + } + + + /** + Access by index, const Version. Der schweinecompiler rafts nicht, das das + schon definiert ist. + */ + + const ddstring& operator[]( int idx ) const + { + if( idx>-1 ) + return at(idx); + throw out_of_range( "dddataobject::operator[idx]: -1" ); + } + + +protected: + + T* _parent; + +}; + + +#endif diff --git a/supportware/src/dddataquery.cpp b/supportware/src/dddataquery.cpp new file mode 100644 index 0000000..7d564f5 --- /dev/null +++ b/supportware/src/dddataquery.cpp @@ -0,0 +1,258 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include + + +/** + Default Constructor. +*/ + +dddataquery::dddataquery() +{ + +} + + +/** + Standard Constructor. +*/ + +dddataquery::dddataquery( const ddstring& name, const ddstring& querystring ) +: ddbasename( name ) +{ + set_query_string( querystring ); +} + + +/** + Destructor. Tut nix. +*/ + +dddataquery::~dddataquery() +{ + +} + + +/** + Die Query-Parameter resetten +*/ + +void dddataquery::clear_query_data() +{ + for( size_t i=0; iget_name().empty() ) + _data[i]->clear_value(); + } +} + + +/** + Übergibt den wert des x.ten parameters. Dazu muss erst der tatsächliche, interne + index des entsprechenden query items rausgefunden werden. + Bsp: select * from tr_message where id = {id}; + Der interne index ist 1, der parameter-index ist 0. +*/ + +void dddataquery::set_query_parameter( size_t index, const ddstring& param ) +{ + + if( param.empty() ) + return; + + if( --index >= _indexpositions.size() ) + log_fatal( "dddataquery::set_query_parameter: " + get_name() + ":Zu viele Parameter! out of range: " + param + " (index: " + ddstrutil::from_size_t( index ) + ")" ); + + // thats it + _data[ _indexpositions[index] ]->operator=( param ); + + /* + + FIX! SUPER GEILER BRAINFUCK BROWN PAPERBAG BUG + + das hier soll den n. _unterschiedlichen_ query-parameter finden, + findet aber ggf. wieder den n. _gleichen_, falls der parameter mehrmals + eingesetzt wird... geil. siehe: + + pager_postbox = "select *, {id} sn_margin, DATE_FORMAT( sn_datecreated,'%d.%m.%Y %k:%i') 'sn_date' + from users.tr_pager_xx + where (id_sender='{id}' and flag_visible_for_sender = 1 and id_receiver='{id_contact}' ) or + (id_receiver='{id}' and flag_visible_for_receiver = 1 and id_sender='{id_contact}' ) + order by sn_datecreated desc"; + + if( param.empty() ) + return; + + size_t cnt = 0; + size_t idx = 0; + // Parameter-Eintrag 'index' suchen + for( ; idxget_name(); + if( !name.empty() ) + { + // Param-Eintrag gefunden ... + cnt++; + // Ist es der richtige ? + if( cnt == index ) + break; + } + + } + + // Wurde überhaupt was gefunden? + if( idx < size() ) + { + cout << "AHA: index:" << index << " idx:" << idx << " name:" << _data[idx]->get_name() << " param:" << param << endl; + _data[idx]->operator=( param ); + } + else + { + log_fatal( "dddataquery::set_query_parameter: " + get_name() + ": not found: " + param + " (index: " + ddstrutil::from_size_t( index ) ); + } + + */ + + + +} + + +/** + CGI daten in die entsprechenden query-parameter laden. + @see ddwebcgi +*/ + +void dddataquery::set_query_data( ddwebcgi& cgi ) +{ + const ddmapindex& index = get_index(); + ddmapindex::const_iterator pos = index.begin(); + + for( ; pos != index.end(); ++pos ) + { + + /* + über alle form felder, falls das feld _auch_ + im cgi vorhanden dann die daten übernehmen. + NEU: anderfalls das formfeld löschen + NEU: Nein, doch nicht + */ + + ddwebcgi::iterator pos2 = cgi.find( (*pos).first ); + if( pos2 != cgi.end() ) + _data[(*pos).second]->operator=( (*pos2).second ); + //else + // _data[(*pos).second]->clear_value(); + + } +} + + +/** + Den Query-String parsen. +*/ + +void dddataquery::set_query_string( const ddstring& src ) +{ + + _rawquerystring = src; + + ddstring::size_type beg=0, end1=0, end2=0, end3=0; + + while ( beg < src.size() ) + { + end1 = src.find( '{', beg ); + // anfang gefunden -> ende suchen + if( end1 != ddstring::npos ) + { + // Fülleintrag + add( new dddataqueryitem( src.substr( beg, end1-beg ) ) ); + end2 = end1+1; + end3 = src.find( '}', end2 ); + if( end3 != ddstring::npos ) // ende auch gefunden. + { + add_child( src.substr( end2, end3-end2 ) ); //(value) + beg = end3+1; + } + else // ende nicht gefunden + { + return; + } + } + // anfang nicht gefunden + else + { + // Fülleintrag + add( new dddataqueryitem( src.substr( beg ) ) ); + break; + } + + } // while + +} + + +/** + Eine Parameter-Eintrag erzeugen. +*/ + +void dddataquery::add_child( const ddstring& name ) +{ + // hack: the name might contain a default value. + ddstring namepart = name; + ddstring defpart; + size_t dot = name.rfind( ':' ); + if( dot != ddstring::npos ) + { + namepart = name.substr( 0, dot ); + defpart = name.substr( dot+1 );// fix!default!!! + } + + // siehe brown paperbag bug: weil das auffinden der parameter per + // positions nicht funktioniert, speichern wir diese in einem + // zusätzlichen vector: + // + // also: + // select * from moo where bla='{id1}' or moo='{id2}' + // + // _mapindex['id1'] = 1 + // _mapindex['id2'] = 3 + // + // ensprechend + // + // _indexpositions[0] = 1 + // _indexpositions[1] = 3 + // + // damit können die parameter direkt per index ohne keys + // übergeben werden. + // + // FIX! + // Das sollte für alle multimaps gelten. + + bool already_there = _index.contains_key( namepart ); + size_t idx = add_by_key( namepart, new dddataqueryitem( namepart, defpart ) ); + + // nur anhängen, falls neu, das ist der trick + if( !already_there ) + _indexpositions.push_back( idx ); + +} + + + diff --git a/supportware/src/dddataquery.h b/supportware/src/dddataquery.h new file mode 100644 index 0000000..8d2ee9d --- /dev/null +++ b/supportware/src/dddataquery.h @@ -0,0 +1,229 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDDATAQUERY_H +#define DDDATAQUERY_H + + +#include +#include + +class ddwebcgi; +class ddwebview; +class dditem; +//class dddataobject; +class dddataset; + + +/// dddbqueryitem: ein Feld in einen DB-Query +/** + dddbqueryitem als eingene Klasse ist nötig, um auch die default-wert semantik zu unterstützen. + Sonst hätte 'ddstring' auch gereicht. + ?? Hä ?? + +*/ + +class dddataqueryitem : public ddbasenamedobject +{ + +public: + + dddataqueryitem() + : _value( DDSTRNULL ) + { + + } + + + /** + Baut einen namenlosen Fülleintrag + */ + + dddataqueryitem( const ddstring& value ) + : _value( value ) + { + + } + + + /** + Baut einen Eintrag mit name und wert. + */ + + dddataqueryitem( const ddstring& name, const ddstring& defvalue ) + : ddbasenamedobject( name ), _value( DDSTRNULL ), _defvalue( defvalue ) + { + + } + + + /** + Werden für ddmapmulti benötigt. + (Hatte den Verdacht, das C++ sowas automatisch generiert, tuts aber nicht, Gut) + Die Deep-Copy Constructoren werden aber erzeugt ... + */ + + inline bool operator==( const dddataqueryitem& src ) const + { + return ( _name == src._name && _value == src._value && _defvalue == src._defvalue ); + } + + inline bool operator!=( const dddataqueryitem& src ) const + { + return ( _name != src._name || _value != src._value || _defvalue != src._defvalue ); + } + + + /** + Abkürzung für x="17" (string assignment) + */ + + inline dddataqueryitem& operator=( const ddstring& value ) + { + //cout << "name: " << _name << " value: " << value << endl; + _value = value; + return *this; + } + + + /** + Abkürzung für x=17 (number assignment) + */ + + inline dddataqueryitem& operator=( const int value ) + { + //cout << "name: " << _name << " value: " << value << endl; + _value.from_int( value ); + return *this; + } + + + /** + Abkürzung für x=17 (number assignment) + */ + + inline dddataqueryitem& operator=( const size_t value ) + { + //cout << "name: " << _name << " value: " << value << endl; + _value.from_size_t( value ); + return *this; + } + + + inline void clear_value() + { + _value = DDSTRNULL; + } + + inline bool empty() const + { + return _value.empty(); + } + + virtual void dump() const + { + if( !_name.empty()) + cout << " name: --" << _name << "-- value: " << _value << endl; + else + cout << " " << _value << endl; + } + + + /** + Wichtige Stelle: wird von dataquery.to_string() aka mapmulti.join() aufgerufen: + Wenn der Wert (value) unbelegt ist oder DDSTRNULL ist, wird der Default-Wert zurückgegeben. + Neuerdings ist der Default-Wert auch blank und nicht mehr DDSTRNULL, das hatte Probleme + gegeben. + */ + + inline ddstring to_string() const + { + //cout << "--name: " << _name << " result: " << _value << " : " << _defvalue << endl; + if( _value.empty() || _value == DDSTRNULL ) + return _defvalue; + return _value; + } + +protected: + + ddstring _value; + ddstring _defvalue; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// Eine Datenbank-Query +/** + Diesmal KISS: Nur Felder, + Stattdessen kapselt die Connection den MySql-Kram. + FIX! wert-checker noch nachreichen. +*/ + +class dddataquery : public ddbasename, public ddmapmulti +{ + +public: + + dddataquery(); + dddataquery( const ddstring& name, const ddstring& querystring ); + virtual ~dddataquery(); + + void set_query_string( const ddstring& src ); + void set_query_parameter( size_t index, const ddstring& param ); + void set_query_data( ddwebcgi& cgi ); + void clear_query_data(); + + inline const ddstring& get_raw_query_string() const + { + return _rawquerystring; + } + + virtual void dump() const + { + cout << "----- Dump begin--" << endl; + _index.dump(); + for( size_t i=0; i _indexpositions; + +}; + +#endif diff --git a/supportware/src/dddatatable.cpp b/supportware/src/dddatatable.cpp new file mode 100644 index 0000000..5784b00 --- /dev/null +++ b/supportware/src/dddatatable.cpp @@ -0,0 +1,568 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include + +/** + Default constructor. +*/ + +dddatastore::dddatastore() +: _connection( 0 ), _connectionowner( false ), _lastaffected( 0 ) +{ + +} + + +/** + Standard constructor. +*/ + +dddatastore::dddatastore( const ddstring& name ) +: dddataclient( name ), _connection( 0 ), _connectionowner( false ), _lastaffected( 0 ) +{ + +} + + +/** + Destructor. Falls via connect eine eigene DB-Connection aufgebaut + wurde, muss diese geschlossen und deletet werden. + @see dddataconnection. +*/ + +dddatastore::~dddatastore() +{ + cleanup_query_results(); + if( _connection && _connectionowner ) + // _connection->close wird in deren destructor aufgerufen. + delete _connection; +} + + +/** + Die Tabelle mit Daten aus der Config initialisieren. Liest die Queries ein. + @see ddconfig + @see ddconfigsection +*/ + +void dddatastore::init_queries( ddconfigsection& config, const ddstring& connectstring ) +{ + set_name( config.get_name() ); + for( int i=0; iinvalidate(); +} + +/** + Baut eine eingene Connection zum MySql-Server auf + @see dddataconnection. +*/ + +void dddatastore::connect( const ddstring& connectstring ) +{ + // Ggf. alte connection abräumen + if( _connection && _connectionowner ) + // _connection->close wird in deren destructor aufgerufen. + delete _connection; + + _connection = new dddataconnection( connectstring ); + _connectionowner = true; + +} + + +/** + Baut eine eingene Connection zum MySql-Server auf + @see dddataconnection. +*/ + +void dddatastore::connect( const ddstring& db, const ddstring& host, const ddstring& user, const ddstring& pass ) +{ + // Ggf. alte connection abräumen + if( _connection && _connectionowner ) + // _connection->close wird in deren destructor aufgerufen. + delete _connection; + + _connection = new dddataconnection( db, host, user, pass ); + _connectionowner = true; + +} + + +/** + Eine bereits bestehende DB-Connection verwenden. + @see dddataconnection. +*/ + +void dddatastore::set_data_connection( dddataconnection* connection ) +{ + // Ggf. alte connection abräumen + if( _connection && _connectionowner ) + // _connection->close wird in deren destructor aufgerufen. + delete _connection; + _connection = connection; + _connectionowner = false; +} + + +/** + @Returns eine Referenz auf die interne DB-Connection. + @see dddataconnection. +*/ + +dddataconnection& dddatastore::get_data_connection() +{ + if( !_connection ) + throw runtime_error( get_name() + ": get_data_connection() == 0" ); + return *_connection; +} + + +/** + Eine Query ausführen. + @param query die query + @param p1-p3 drei optionale Parameter + @throws runtime_error bei fehlerhaften queries + @returns den reader (für table.exec( "query", CGI ).read( item ) etc.) +*/ + +dddataproxy dddatastore::execute( dddataquery& query, const ddstring& p1, const ddstring& p2, const ddstring& p3, const ddstring& p4, const ddstring& p5 ) +{ + + // Neu: erstmal resetten FIX! haut nicht hin!!!!!! + // Grund: oft wird die query vorher mit params bestückt, die werden + // dann hier plattgebügelt, also _nichts_ resetten, obwohl es der + // logik entsprechen würde. + //query.clear_query_data(); + query.set_query_parameter( 1, p1 ); + query.set_query_parameter( 2, p2 ); + query.set_query_parameter( 3, p3 ); + query.set_query_parameter( 4, p4 ); + query.set_query_parameter( 5, p5 ); + + // fast alle anderen exec-funktion rufen diese, daher ist das + // lock hier. + + ddthreadautomutex tmp( _lock ); + + ddstring querystr = query.to_string(); + cout << "--- db log: " << get_name() << ": " << query.get_name() << ": "<< querystr << endl; + + // mysql_real_query ist für bin-data mit nullen drin. + dddataproxy proxy( this ); + + if( 0 == ::mysql_query( get_mysql(), querystr.c_str() ) ) + return proxy; + + // schiefgegangen? + create_error( query.get_name() + ": " + querystr ); + + // wird nie erreicht + return proxy; + +} + + +/** + Eine Query ausführen. + @param name der name der query + @param p1-p3 drei optionale Parameter + @throws runtime_error bei nichtvorhandenen queries + @returns den reader (für table.exec( "query", CGI ).read( item ) etc.) +*/ + +dddataproxy dddatastore::execute( const ddstring& name, const ddstring& p1, const ddstring& p2, const ddstring& p3, const ddstring& p4, const ddstring& p5 ) +{ + return execute( get_query( name ), p1, p2, p3, p4, p5 ); +} + + +/** + Eine Query ausführen. + @param name der name der query + @param cgi CGI-Datem mit den Paramtern + @throws runtime_error bei nichtvorhandenen queries + @returns den reader (für table.exec( "query", CGI ).read( item ) etc.) +*/ + +dddataproxy dddatastore::execute( const ddstring& name, ddwebcgi& cgi ) +{ + dddataquery& query = get_query( name ); + // Neu: erstmal resetten + query.clear_query_data(); + query.set_query_data( cgi ); + + // doch + return execute( query ); + +} + + +/** + Eine Query ausführen. + @param name der name der query + @param cgi CGI-Datem mit den Paramtern + @throws runtime_error bei nichtvorhandenen queries + @returns den reader (für table.exec( "query", CGI ).read( item ) etc.) +*/ + +dddataproxy dddatastore::execute( ddwebcgi& cgi ) +{ + return execute( cgi[ DDACTIONKEY ], cgi ); +} + + +/** + Liest ein mysql result in die vorher übergebene Tabelle ein. + @param skip Anzahl der results, die übersprungen werden sollen +*/ + +int dddatastore::read( bool doinit ) +{ + + ddthreadautomutex tmp( _lock ); + + // mysql_use_result(), you must execute mysql_fetch_row() until a NULL + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + if( NULL != result ) + { + size_t num_fields = ::mysql_num_fields( result ); + // init result set + if( doinit ) + { + clear(); + // find out field names + MYSQL_FIELD *fields = ::mysql_fetch_fields( result ); + for(size_t x = 0; x < num_fields; x++) + add_field_key( ddstring( fields[x].name ), x ); + } + size_t num =mysql_num_rows( result ); + if( num > 0 ) + { + reserve( num+1 ); + MYSQL_ROW row; + size_t num_fields = ::mysql_num_fields( result ); + while( (row = ::mysql_fetch_row( result )) ) + add_entry( num_fields, row ); + } + } + // ergebniszeilen merken ... + _lastaffected = ::mysql_affected_rows( get_mysql() ); + // ...dieses resultset freigeben ... + ::mysql_free_result( result ); + // und das nächste holen, so vorhanden... + get_next_result(); + return get_affected_rows(); + +} + + +/** + Liest der ersten wert aus einen mysql result in + den übergebenen string ein. +*/ + +int dddatastore::read( ddstring& r1 ) +{ + + ddthreadautomutex tmp( _lock ); + + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + if( NULL != result && ::mysql_num_rows( result ) > 0 ) + { + size_t num_fields = ::mysql_num_fields( result ); + if( !num_fields ) + throw runtime_error( "dddatastore::read( ddstring& r1 )" ); + MYSQL_ROW row = ::mysql_fetch_row( result ); + r1.assign( row[0] ? row[0] : "" ); + } + // ergebniszeilen merken ... + _lastaffected = ::mysql_affected_rows( get_mysql() ); + // dieses resultset freigeben ... + ::mysql_free_result( result ); + // und das nächste holen, so vorhanden... + get_next_result(); + return get_affected_rows(); + +} + + +/** + Liest der ersten wert aus einen mysql result in + die übergebenen strings ein. +*/ + +int dddatastore::read( ddstring& r1, ddstring& r2 ) +{ + + ddthreadautomutex tmp( _lock ); + + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + if( NULL != result && ::mysql_num_rows( result ) > 0 ) + { + size_t num_fields = ::mysql_num_fields( result ); + if( num_fields<2 ) + throw runtime_error( "dddatastore::read( ddstring& r1,r2 )" ); + MYSQL_ROW row = ::mysql_fetch_row( result ); + r1.assign( row[0] ? row[0] : "" ); + r2.assign( row[1] ? row[1] : "" ); + } + // ergebniszeilen merken ... + _lastaffected = ::mysql_affected_rows( get_mysql() ); + // dieses resultset freigeben ... + ::mysql_free_result( result ); + // und das nächste holen, so vorhanden... + get_next_result(); + return get_affected_rows(); + +} + + +/** + Liest der ersten wert aus einen mysql result in + die übergebenen strings ein. +*/ + +int dddatastore::read( ddstring& r1, ddstring& r2, ddstring& r3 ) +{ + + ddthreadautomutex tmp( _lock ); + + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + if( NULL != result && ::mysql_num_rows( result ) > 0 ) + { + size_t num_fields = ::mysql_num_fields( result ); + if( num_fields<3 ) + throw runtime_error( "dddatastore::read( ddstring& r1,r2,r3 )" ); + MYSQL_ROW row = ::mysql_fetch_row( result ); + r1.assign( row[0] ? row[0] : "" ); + r2.assign( row[1] ? row[1] : "" ); + r3.assign( row[2] ? row[2] : "" ); + } + // dieses resultset freigeben ... + ::mysql_free_result( result ); + // und das nächste holen, so vorhanden... + get_next_result(); + return get_affected_rows(); + +} + + +/** + Liest der ersten wert aus einen mysql result in + den übergebenen int ein. +*/ + +int dddatastore::read( int& r1 ) +{ + ddthreadautomutex tmp( _lock ); + + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + if( NULL != result && ::mysql_num_rows( result ) > 0 ) + { + size_t num_fields = ::mysql_num_fields( result ); + if( !num_fields ) + throw runtime_error( "dddatastore::read( ddstring& r1 )" ); + MYSQL_ROW row = ::mysql_fetch_row( result ); + ddstring x1; + x1.assign( row[0] ? row[0] : "" ); + r1 = x1.as_int(); + + } + + + // ergebniszeilen merken ... + _lastaffected = ::mysql_affected_rows( get_mysql() ); + // dieses resultset freigeben ... + ::mysql_free_result( result ); + // und das nächste holen, so vorhanden... + get_next_result(); + return get_affected_rows(); + +} + + +/** + Liest der ersten wert aus einen mysql result in + die übergebenen ints ein. +*/ + +int dddatastore::read( int& r1, int& r2 ) +{ + + ddthreadautomutex tmp( _lock ); + + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + if( NULL != result && ::mysql_num_rows( result ) > 0 ) + { + size_t num_fields = ::mysql_num_fields( result ); + if( num_fields<2 ) + throw runtime_error( "dddatastore::read( ddstring& r1,r2 )" ); + MYSQL_ROW row = ::mysql_fetch_row( result ); + ddstring x1, x2; + x1.assign( row[0] ? row[0] : "" ); + x2.assign( row[1] ? row[1] : "" ); + r1 = x1.as_int(); + r2 = x2.as_int(); + } + // ergebniszeilen merken ... + _lastaffected = ::mysql_affected_rows( get_mysql() ); + // dieses resultset freigeben ... + ::mysql_free_result( result ); + // und das nächste holen, so vorhanden... + get_next_result(); + return get_affected_rows(); + +} + + + +/** + Prototype. + @see ddwebview +*/ + +int dddatastore::read( ddwebpage& pagelet, dditem& item ) +{ + throw runtime_error( "dddatastore::read( dditem& item ): not done yet!" ); + return -1; +} + + +/** + Da bei multistatements die fehlerüberprüfung nur beim ersten + teilstatement funktioniert, müssen die folgenden teilstatement extra + auf fehler geprüft werden. Dazu wird der aufruf von 'mysql_next_result' + in dieser Funktion gekapselt +*/ + +void dddatastore::get_next_result() +{ + //cout << "--- db log next: " << tmpquery << endl; + if( ::mysql_next_result( get_mysql() ) > 0 ) + create_error( "get_next_result()" ); +} + + +/** + Bei Multi-Statements können noch results 'rumliegen'. + -> Weg damit. +*/ + +void dddatastore::cleanup_query_results() +{ + while( ::mysql_more_results( get_mysql() ) ) + { + //cout << "--- db log clean: " << tmpquery << endl; + // ?? + MYSQL_RES* result = ::mysql_store_result( get_mysql() ); + ::mysql_free_result( result ); + get_next_result(); + } +} + + +void dddatastore::dump_queries() +{ + cout << "xxxxxxxxxxxxx Dump queries: " << get_name() << endl; + for( int i = 0; i < _queries.size(); ++i ) + cout << _queries[i]->get_name() << " : " << _queries[i]->get_raw_query_string() << endl; +} + + +/** + Error erzeugen. throws ... +*/ + +void dddatastore::create_error( const ddstring& error ) +{ + ddstring err = get_name() + ": " + error + ": " + ddstring( ::mysql_error( get_mysql() ) ); + throw runtime_error( err ); +} + + +MYSQL* dddatastore::get_mysql() +{ + return &get_data_connection()._mysql; +} + + + diff --git a/supportware/src/dddatatable.h b/supportware/src/dddatatable.h new file mode 100644 index 0000000..867d578 --- /dev/null +++ b/supportware/src/dddatatable.h @@ -0,0 +1,595 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDDATATABLE_H +#define DDDATATABLE_H + +#include +#include +#include +#include +#include +#include + +class ddwebpage; +class dddatastore; +class dddataproxy; +class ddwebview; + +/// dddataclient : Etwas was auf veränderungen in Datenstrukturen reagieren kann +/** + Tabellen, Cacheeinträge sind voneinander abhängig und müssen entsprechend + aktualisiert werden. + Hier soll ein simples Model-View-Controller-Interface implementiert werden. + Was war dann noch das Observer Pattern? +*/ + +class dddataclient : public ddbasename +{ + +public: + + dddataclient() + : _valid( false ) + { + + } + + dddataclient( const ddstring& name ) + : ddbasename( name ), _valid( false ) + { + + } + + + /** + @return 'true' wenn die View 'uptodate' ist. + */ + + inline bool is_valid() + { + return _valid; + } + + + /** + View als geändert markieren. + */ + + virtual void invalidate() + { + _valid = false; + } + + + /** + View als 'uptodate' markieren. + */ + + inline void validate() + { + _valid = true; + } + +protected: + + bool _valid; + +}; + +typedef vector dddataclientmap; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// dddatastore : Neufassung von dddbtablebase. +/** + + Ddatastore : Etwas bizarre Zwischenklasse, welche + die Infrastruktur der Datenbankschicht implementiert. + Es werden die Interfaces zu + + @see dddataconnection + @see dddatereader + + definiert. Als template geht das nicht so einfach, da müssten + dann alle beteiligten klassen templates sein. + +*/ + + +typedef ddmapptr dddataquerymap; + + +class dddatastore : public dddataclient +{ + +public: + + dddatastore(); + dddatastore( const ddstring& name ); + ~dddatastore(); + + void init_queries( ddconfigsection& config, const ddstring& connectstring="" ); + void add_query( const ddstring& key, const ddstring& querystring ); + bool contains_query( const ddstring& key ); + dddataquery& get_query( const ddstring& key ); + void connect( const ddstring& connectstring ); + void connect( const ddstring& db, const ddstring& host, const ddstring& user, const ddstring& pass ); + void set_data_connection( dddataconnection* connection ); + dddataconnection& get_data_connection(); + + // wg. 'extends', d.h. vererbung + const dddataquerymap& get_queries() const + { + return _queries; + } + + virtual void invalidate(); + + // wg. dataclient !? + void add_child( dddataclient* child ) + { + _children.push_back( child ); + } + + dddataproxy execute( dddataquery& query, const ddstring& p1="", const ddstring& p2="", const ddstring& p3="", const ddstring& p4="", const ddstring& p5="" ); + dddataproxy execute( const ddstring& name, const ddstring& p1="", const ddstring& p2="", const ddstring& p3="", const ddstring& p4="", const ddstring& p5="" ); + dddataproxy execute( const ddstring& name, ddwebcgi& cgi ); + dddataproxy execute( ddwebcgi& cgi ); + + virtual int read( bool doinit = true ); + virtual int read( ddstring& r1 ); + virtual int read( ddstring& r1, ddstring& r2 ); + virtual int read( ddstring& r1, ddstring& r2, ddstring& r3 ); + //virtual int read( dditem& item ); + virtual int read( ddwebpage& pagelet, dditem& item ); + virtual int read( int& r1 ); + virtual int read( int& r1, int& r2 ); + + /** + Da beim 'weiterschieben' der resultsets mysql_affected_rows resettet wird, + muss das zwischengespeichert werden. + */ + + inline int get_affected_rows() + { + return _lastaffected; + } + + void get_next_result(); + void cleanup_query_results(); + + virtual void add_entry( size_t num_fields, MYSQL_ROW row ) = 0; + + virtual void dump_queries(); + + + /** + fehlermeldung basteln und exception schmeissen + */ + + virtual void create_error( const ddstring& error ); + + virtual void add_field_key( const ddstring& key, size_t index ) = 0; + virtual void clear() = 0; + virtual void reserve( size_t count ) = 0; + +protected: + + MYSQL* get_mysql(); + + dddataconnection* _connection; + bool _connectionowner; + int _lastaffected; + dddataquerymap _queries; + dddataclientmap _children; + + ddthreadmutex _lock; + +private: + + // warum ist das Verboten, wenn wir doch nicht + // mit pointern sondern mit objecten arbeiten? + + dddatastore( const dddatastore& src ) + { + (void) src; + } + + dddatastore& operator=( const dddatastore& src ) + { + return *this; + } + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// dddataproxy : hilfsklasse zum für datastore +/** + + Wenn ein die Einzelergebnisse eines Mehrfachstatements nicht alle mit 'read()' + bzw. ::mysql_next_result abgearbeitet werden, gibts beim nächsten Aufruf + den Error 'commands out of sync'. + + Der proxy wird als rückgabewert von execute erzeugt und räumt die 'hängenden' + Statements in seinem destructor weg. + + reads() werden zurück an den datastore geleitet. + + @see dddatastore +*/ + +class dddataproxy +{ + +public: + + dddataproxy( dddatastore* parent ) + : _parent( parent ) + { + } + + ~dddataproxy() + { + // im sterben eventuelle 'überhängende' results entfernen, + // sonst gibbet 'Commands out of sync; you can't run this command now' + _parent->cleanup_query_results(); + } + + inline bool operator!() const + { + return ( _parent->get_affected_rows() == 0 ); + } + + int read( bool doinit = true ) + { + return _parent->read( doinit ); + } + + int read( ddstring& r1 ) + { + return _parent->read( r1 ); + } + + int read( ddstring& r1, ddstring& r2 ) + { + return _parent->read( r1, r2 ); + } + + int read( ddstring& r1, ddstring& r2, ddstring& r3 ) + { + return _parent->read( r1, r2, r3 ); + } + + int read( int& r1 ) + { + return _parent->read( r1 ); + } + + int read( int& r1, int& r2 ) + { + return _parent->read( r1, r2 ); + } + + /* + int read( dditem& item ) + { + return _parent->read( item ); + } + */ + + int read( ddwebpage& pagelet, dditem& item ) + { + return _parent->read( pagelet, item ); + } + +protected: + + dddatastore* _parent; + +}; + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + + Neufassung von dddbtablebase, diesmal eher KISS: + Ein dddatastore ist ein vector mit Ts. Um die Templates unterzubringen, + wird mit 'ddmaprow' die 'Speicherinfrastruktur drangeerbt'. + + Für die konkrete Variante @see ddwebview. + + Es werden diesmal kopien und keine pointer gespeichert, schlicht + und ergreifend deswegen, die bei pointern (basis ddmapptr) der + operator= auch pointer liefert. Will man nicht. + + Die alte hybrid-konstruktion "pointer speichern, referenzen zurückgeben" + (dddbtablebase) wurde wegrationalisiert. + + Der operator["key"] bezieht sich jetzt auf ID des Eintrags, so vorhanden. + D.h. _rowindex und index_of sind gestrichen, index_of bezieht auf Objekte, + wie man es erwarten würde. Der index der Felder des Eintrags ist privat. + + Tabellen sind grundsätzlich _dumm_. Alles was fancy sein soll, machen adapter. + + - table.exec( "query", param1 ... ).read( moo ) + - table.exec( "query", CGI ).read( item ) + ...moo + + exec und read macht die conn ... + + FIX! exec.into direkt in der renderer via cursor spart speicher .... + +*/ + + +template +class dddatatable : public dddatastore, public ddmaprow +{ + +friend class dddataconnection; + +public: + + + dddatatable() + { + } + + + dddatatable( const ddstring& name ) + : dddatastore( name ) + { + } + + ~dddatatable() + { + } + + /** + Abkürzung für execute("select"). + @see execute. + @return die Anzahl Ergebniszeilen + */ + + int fill( dddataquery& query, const ddstring& p1="", const ddstring& p2="", const ddstring& p3="", const ddstring& p4="", const ddstring& p5="" ) + { + this->clear(); + validate(); + return execute( query, p1, p2, p3, p4, p5 ).read(); + } + + + /** + Abkürzung für execute("select"). + @see execute. + @return die Anzahl Ergebniszeilen + */ + + int fill( const ddstring& cmd = "select", const ddstring& p1="", const ddstring& p2="", const ddstring& p3="", const ddstring& p4="", const ddstring& p5="" ) + { + return fill( get_query( cmd ), p1, p2, p3, p4, p5 ); + } + + + /** + Ruft 'fill' auf wenn die Tabelle leer oder als 'invalid' + gekennzeichnet ist. + */ + + int fill_if_empty( dddataquery& query, const ddstring& p1="", const ddstring& p2="", const ddstring& p3="", const ddstring& p4="", const ddstring& p5="" ) + { + int numrows = this->size(); + if( numrows <= 0 || !is_valid() ) + return fill( query, p1, p2, p3, p4, p5 ); + return numrows; + } + + + /** + Ruft 'fill' auf wenn die Tabelle leer oder als 'invalid' + gekennzeichnet ist. + */ + + int fill_if_empty( const ddstring& cmd = "select", const ddstring& p1="", const ddstring& p2="", const ddstring& p3="", const ddstring& p4="", const ddstring& p5="" ) + { + return fill_if_empty( get_query( cmd ), p1, p2, p3, p4, p5 ); + } + + + /** + @Returns Die indexposition für einen Schlüssel oder -1. + DIESER COMPILER STINKT! + */ + + int index_of( const ddstring& key ) const + { + return ddmaprow::index_of( key ); + } + + + /** + @return den index des ersten Eintrags, bei dem das Feld an Position + 'cellidx' den Wert 'cellval' enthält oder -1 falls nicht vorhanden. + */ + + int index_of( size_t cellidx, const ddstring& cellval ) const + { + if( this->_data.empty() ) + return -1; + if( this->_data[0].size() <= cellidx ) + throw out_of_range( "index_of: cellidx out of range." ); + int x = this->size(); + for( int i=0; i < x; ++i ) + { + // gefunden + if( this->_data[i][cellidx] == cellval ) + return i; + } + return -1; + } + + + /** + @return den index des ersten Eintrags, bei dem das Feld namens + 'cellname' den Wert 'cellval' enthält oder -1 falls nicht vorhanden. + */ + + int index_of( const ddstring& cellname, const ddstring& cellval ) const + { + int x = _fieldindex.index_of( cellname ); + if( x<0 ) + throw out_of_range( "index_of: no such field:"+cellname ); + return index_of( x, cellval ); + } + + void add_field_key( const ddstring& key, size_t index ) + { + this->_fieldindex[key] = index; + } + + void reserve( size_t count ) + { + this->_data.reserve( count ); + } + + + /** + Alles Löschen. + */ + + void clear() + { + ddmaprow::clear(); + _fieldindex.clear(); + } + + virtual void dump() const + { + for( size_t i=0; i_data.size(); ++i ) + this->_data[i].dump(); + } + + + /** + @return the last auto id value created by MySql. + */ + + ddstring get_last_insert_id() + { + ddstring lastid; + size_t id = ::mysql_insert_id( get_mysql() ); + lastid.from_size_t( id ); + return lastid; + } + + /* + + Das frisst der compiler nicht. + + void add_entry( size_t num_fields, MYSQL_ROW row ) + { + + // FIX! Die Felder sind nicht zwangsläufig nullterminiert! + // Das wird noch grob in die Hose gehen!!! + size_t idx = add( T( this ) ); + T& newobj = (*this)[idx]; + //FIX! PFUSCH!! + for( size_t i=0; i < num_fields; i++) + newobj.add( row[i] ? row[i] : "" ); + // 'id' speichern für index_of + if( newobj.contains_key( "id" ) ) + this->_index[ newobj["id"] ] = idx; + // den object state setzen + // FIX! das müsste eigentlich das object irgenwie selbermachen... + if( newobj.contains_key( "id_state" ) ) + newobj.set_state_flags( newobj["id_state"].as_size_t() ); + + } + */ + /** + @Returns den feldindex. + @see ddmapindex + @see dddataobject + */ + + inline const ddmapindex& get_field_index() const + { + return _fieldindex; + } + + inline bool contains_field( const ddstring& key )const + { + return ( _fieldindex.contains_key( key ) ); + } + +protected: + + ddmapindex _fieldindex; + +private: + + dddatatable( const dddatatable& src ) + { + (void) src; + } + + dddatatable& operator=( const dddatatable& src ) + { + return *this; + } + +}; + + +#endif diff --git a/supportware/src/dddefines.h b/supportware/src/dddefines.h new file mode 100644 index 0000000..441d68f --- /dev/null +++ b/supportware/src/dddefines.h @@ -0,0 +1,197 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2010 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDDEFINES_H +#define DDDEFINES_H + + +/// This file contains some simple defines and all default keys to access properties in a config tree. + +using namespace std; + +// nicknames +#define DDNICKMAXLEN 16 +#define DDNICKMINLEN 3 + +// FIX! +#define DDHINTHALTED "

                                                Wartungsarbeiten

                                                Wegen Wartungsarbeiten sind wir im Moment nicht erreichbar.
                                                In Kürze wird der Service wieder für Sie erreichbar sein.
                                                Wir bitten die Unterbrechung zu entschuldigen.

                                                Mit freundlichen Grüßen

                                                Ihr SupportTeam" +#define DDHINTFASTPOST "Aus Sicherheitsgründen können Sie nicht so schnell hintereinander Mitteilungen verschicken." +#define DDHINTERRPAGE "<supportware> error

                                                <supportware> error


                                                |5|

                                                |7|

                                                |8|


                                                <|9|> 
                                                " +#define DDHINTDEPRECATED "Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum.." +#define DDHINTNONPUBLIC "Dieser Thread ist nicht öffentlich." +#define DDHINTNOENTRY "Kein Eintrag für diesen Artikel gefunden." +#define DDHINTNOTFOUND "Kein Eintrag gefunden." +#define DDHINTNOMESSAGE "Noch keine Nachrichten vorhanden." +#define DDHINTNOGROUPENTRY "Noch kein Eintrag in dieser Gruppe gefunden." +#define DDHINTNOCATEGORYENTRY "Noch kein Eintrag in dieser Kategorie gefunden." +#define DDHINTCLOSED "(Thread geschlossen.)

                                                " +#define DDHINTL1 "Noch kein Eintrag für '" +#define DDHINTL2 "' gefunden." +#define DDHINTNONPUBLICGROUP "(Diese Gruppe ist nicht öffentlich)
                                                " +#define DDHINTBADMAIL "Ihre eMail-Adresse konnte nicht akzeptiert werden.
                                                " +#define DDHINTBADQUERY "Bitte geben Sie hier nur maximal fünf Suchbgriffe an.
                                                " +#define DDHINTLREGISTER1 "Für diese Funktion müssen Sie Mitglied sein." +#define DDHINTLREGISTER2 "Hier können Sie sich als kostenlos Mitlied registieren." + +// Zeitintervall zwischen zwei Cleanups (Clear old sessions etc) +#define DDTIMERINTERVALL 60 +//#define DDTIMERINTERVALL 5 +// erste angezeigte gruppe +// FIX! gehört hier nicht rein! +// dummygruppe 'news' wird ausgeblendet, daher die 1 +#define DDFIRSTGROUPINDEX 1 +#define DDFIRSTGROUPID 3 +#define DDLASTGROUPID 56 + +// chat settings +#define DDCHATFLOODTIMEOUT 2 +#define DDCHATUSERTIMEOUT 30 +#define DDCHATMAXTEXTLEN 150 +#define DDCHATMAXNAMELEN 12 +#define DDCHATMESSAGEBUFSIZE 1000 +#define DDCHATMAXREFRESH 10000 +#define DDCHATMAXLINES 200 + +// buffer settings +#define DDBUFFERBODYGROW 80000 +#define DDBUFFERINBUFSIZE 32768 +#define DDBUFFEROUTBUFSIZE 200000 + +// ddwebconnection +#define DDMAXBODYSIZE 3000000 +#define DDMAXHEADSIZE 1024 +//#define DDMAXUPLOADSIZE 250000 +#define DDMAXUPLOADSIZE 22000000 + +// min time between posts +#define DDPOSTINGDELAY 10 + +// min time between admin alerts +#define DDALERTDELAY 120 + +// upload pfad +#define DDTMPPATH "sntmp/" +#define DDPICPATH "articleimage/" +#define DDUSERPICPATH "memberimage/" +#define DDUSERPICPREFIX "memimg-" +#define DDLASTPATH "sn_last_path" +#define DDREGISTERLINK "/member_register" +#define DDGUESTNICK "gast" +#define DDACTIONKEY "sx_action" +#define DDENTRYID "entry_id" + + +// cookie settings +#define DDEXPIREDATE "Wed, 13-Aug-2034 12:00:00 GMT" +//wed,13.8,2014 Sun, 19-Jul-2009 12:07:08 GMT + +// ddmimemap +#define DDDEFAULT_MIME "text/plain" + +// ddwebserver +#define DDMAXFDS 64 +#define DDINFTIM -1 + +// socket +#define DDIOBACKLOG 128 + +// dduserid +#define DDMAXITEMSPERPAGE 200 +// the maximum age of a session in seconds +#define DDMAXSESSIONAGE 540 + + +// ddwebserver +#define DDMAXFDS 64 +#define DDINFTIM -1 + +// snpage +#define DDDEFAULTITEMSPERPAGE 20 +#define DDDEFAULTITEMSPERHOME 20 + + +#ifndef DDMAX + #define DDMAX(a,b) ( ( (a) > (b) ) ? (a) : (b) ) +#endif +#ifndef DDMIN + #define DDMIN(a,b) ( ( (a) < (b) ) ? (a) : (b) ) +#endif + +#define DDSTRTRUE "true" +#define DDSTRFALSE "false" +#define DDSTRNULL "[NULL]" + +#define DDKEYHOMEPAGE "HOMEPAGE.TXT" +#define DDKEYBADWORDS "ZENSUR.TXT" +#define DDKEYGUESTBLOCKER "GUESTBLOCKER.TXT" +#define DDKEYKILLALERTS "KILLALERTS.TXT" +#define DDKEYSTOPWORDS "STOPWORDS.TXT" +#define DDKEYBLOCKEDWORDS "BLOCKEDWORDS.TXT" +#define DDKEYBLOCKEDIPS "BLOCKEDIPS.TXT" +#define DDKEYBLOCKEDMAILS "BLOCKEDMAILS.TXT" +#define DDKEYLINKSET "LINKSET.TXT" +#define DDKEYIMAGESET "IMAGESET.TXT" +#define DDKEYALIASESMAP "ALIASESMAP.TXT" +#define DDKEYREDIRECTMAP "REDIRECTMAP.TXT" + +// fragwürdig +#define DDMEMBERLINKURL "/member/" +#define DDUSERPROPERTY "xx_prop" +#define DDDEFAULTITEM "xx_dummy" +#define DDREQUESTTIMEOUT 30 +#define DDANSWERCOUNT "answer_count" + +#define DDTEASERMAXSIZE 200 +#define DDTEASERLINELEN 80 + +#define DDTEASERSUBJECTSIZE 50 + + +//#define DDLASTID 1612470 +// 31.12.2008 +#define DDLASTID 2189889 +#define DDFIFONOTIFIER "!YES!" +#define DDPOLLTIMEOUT 5000 +// linkanzahl im navi + + +#define DDNAVIBLOCKS 5 +#define X_PAGES 5 +// links in den neuen, dynamischen archivseiten +#define DDITEMSPERARCHIVE 350 + + +//#define DDVERSION "supportware 1.9.140 / 04.11.2010" +// exhumierter Version, wieder mehr oder weniger zum laufen gebracht, zu gruselzwecken: +//#define DDVERSION "supportware 1.9.143 / 11.05.2019" +// exhumierter Version, wieder mehr oder weniger zum laufen gebracht, zu VORFÜHRzwecken, krasser scheiss: +//#define DDVERSION "supportware 1.9.144 / 25.02.2022" +//#define DDVERSION "supportware 1.9.147 / 16.04.2022" +#define DDVERSION "supportware 1.9.150 / 10.06.2022" + + +// HACK: Nur nicht-admins kriegen nur Beiträgen mit dem Public-Flag 1 gezeigt +#define DDADMFILTER get_user_id().is_admin() ? " " : " and t1.id_state & 1 != 0 " +#define DDADMFILTERFORUM get_user_id().is_sub_admin() ? " " : " and t1.id_state & 1 != 0 and t1.id_group != 13" +#define DDADMFILTERRENDERER _pagelet->get_user_id().is_admin() ? " " : " and id_state & 1 != 0 " + + +#define DDPATBEG "" + +#define DDCOOKIESEPARATOR "<|>" +#define DDENTRYSEPARATOR "<<##>>" +#define DDLINKSEPARATOR "|" + +#endif diff --git a/supportware/src/ddformchecker.cpp b/supportware/src/ddformchecker.cpp new file mode 100644 index 0000000..b8d682b --- /dev/null +++ b/supportware/src/ddformchecker.cpp @@ -0,0 +1,1107 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include + + +/** + Default Constructor. +*/ + +ddformchecker::ddformchecker() +: _parent( 0 ) +{ + +} + + +/** + Standard Constructor. +*/ + +ddformchecker::ddformchecker( ddformmanager* parent, ddformruleparser& parser, ddconfigsection& rules ) +: _parent( parent ) +{ + init_form_rules( parser, rules ); +} + +/** + Descructor. +*/ + + +ddformchecker::~ddformchecker() +{ + for( size_t i=0; i<_rules.size(); ++i ) + delete _rules[i]; +} + + +/** + Baut das interne Regelwerk auf. +*/ + +bool ddformchecker::init_form_rules( ddformruleparser& parser, ddconfigsection& config ) +{ + set_name( config.get_name() ); + for( int i=0; iset_name( key ); + _rules.push_back( rule ); + return true; +} + + +/** + Ein Formular überprüfen, die alte Version. deprecated. + Nachteil:Es wird das item (Formular) geprüft, nicht die ankommenden CGI-Daten, + das Form muss also schon vorher gesynct worden sein. + @return true on success. +*/ + +bool ddformchecker::check_form( dditem& form, dduserid& user ) +{ + // is configuration done? + + return true; +} + + +/** + Tested ein Formular, neue Version. Es wird direkt auf den CGI-Daten gearbeitet, + nicht auf den Formdaten. + @param form das form + @param user die userid des nutzers + @param cgi die daten + @return true on success. +*/ + +void ddformchecker::check_form( dditem& form, dduserid& user, ddwebcgi& cgi ) +{ + // is configuration done? + if( _rules.empty() ) + throw runtime_error( "ddformchecker::check_form: not configured: " + get_name() ); + + ddstring msgkey; + // use all rules + for( size_t i=0; i<_rules.size(); ++i ) + { + // rule key == field name i.e. sn_nickname + ddformrule& rule = *_rules[i]; + // den feld- bzw. regelnamen holen... + const ddstring& key = rule.get_name(); + + // Nur wenn das form auch das Feld enthält, dann + // testen. + i = form.index_of( key ); + if( i > -1 ) + { + // den cgi-wert dazu testen + if( !rule.apply( cgi[key], msgkey ) ) + _parent->set_error_message( form, key, msgkey ); + } + } + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default Constructor. +*/ + +ddformmanager::ddformmanager() +: _website( 0 ), _currentuser( 0 ), + _currentcgi( 0 ), _posting_delay( 10 ), _contains_blocked_words( false ), + _has_error( false ) +{ + +} + + +/** + Destructor. +*/ + +ddformmanager::~ddformmanager() +{ + +} + + +/** + Baut die verschiedenen formchecker aus der config auf. +*/ + +void ddformmanager::init_form_rules( ddwebsite& mysite ) +{ + _website = &mysite; + + ddconfig & config = mysite.get_config(); + + _errorkey = config["main"].get_entry( "error_key" ); + _errorsymbol = config["main"].get_entry( "error_symbol" ); + _censorstring = config["main"].get_entry( "censor_string" ); + _posting_delay = config["main"].get_int( "posting_delay", 10 ); + _messages = config["err_msg"]; + + + // blockliste laden + ddstring content; + mysite.fetch_data_entry( DDKEYBLOCKEDWORDS, content ); + _killwords.from_string( content ); + + // Zensurliste laden + mysite.fetch_data_entry( DDKEYBADWORDS, content ); + _badwords.from_string( content, false ); + + ddformruleparser parser( this ); + + for( int i=0; i -1 ) + { + // falls das feld fehlt gibts halt nen crash, das gehört jetzt so + form[ key+"_error" ].from_string( _errorsymbol ); + form[_errorkey].from_string( "
                                                "+_messages[msgkey] ); + } + else + { + //ddstring err = "
                                                " + _messages[msgkey] + "
                                                "; + ddstring err = "
                                                " + _messages[msgkey] + ""; + form[ key+"_error" ].from_string( err ); + } + + } + _has_error = true; + return false; +} + + +/** + Tested ein Formular. + @param formname: der zuständige formchecker + @param form das form + @param user die userid des nutzers + @param cgi die daten + @return true on success. +*/ + +bool ddformmanager::check_form( const ddstring& formname, dditem& form, dduserid& user, ddwebcgi& cgi ) +{ + + // alles sperren, ist nicht reentrant, + // der usermanager auch nicht + ddthreadautomutex tmplock( _checkerlock ); + + int idx = _formcheckermap.index_of( formname ); + if( idx<0 ) + throw runtime_error( "ddformmanager::check_form: no such formchecker: " + formname ); + + ddformchecker& checker = _formcheckermap.get_entry( idx ); + _currentuser = &user; + _currentcgi = &cgi; + + // reset + _contains_blocked_words = false; + _has_error = false; + + // form säubern + form.clear_value(); + form.clear_children(); + + // form testen + checker.check_form( form, user, cgi ); + + // im fehlerfall form wieder füllen + if( _has_error ) + { + form.sync( cgi ); + } + else + { + // posting ist ok, also: + ddstring& body = cgi["sn_msgbody"]; + if( !body.empty() ) + { + // - body speichern + user.set_property( "snlastpost", body ) ; + // -posting time setzen + user.update_posting_time(); + } + } + return !_has_error; + +} + + +/** + Testet, ob zu oft hintereinander gepostet wurde. +*/ + +bool ddformmanager::check_chain_posting( ddstring& src ) +{ + dduserid& uid = *_currentuser; + // chefs dürfen immer ... + if( uid.is_admin() ) + return true; + // first step: check posting time + time_t now = ::time(0); + if( now - uid.get_last_posting_time() < _posting_delay ) + return false; + return true; +} + + +/** + Testet, ob der gleiche Text schonmal gepostet wurde. +*/ + +bool ddformmanager::check_repeated_posting( ddstring& src ) +{ + dduserid& uid = *_currentuser; + // chefs dürfen das + if( uid.is_admin() ) + return true; + ddstring& body = (*_currentcgi)["sn_msgbody"]; + // von diesem user schon mal den selben sotter gesehen ... + if( !body.empty() && uid.get_property("snlastpost") == body ) + return false; + return true; +} + + +/** + AGB Akzeptanz testen. Dabei wird auch das 'accepting_terms' + Flag in der usersession entsprechend gesetzt. +*/ + +bool ddformmanager::check_accepting_terms( ddstring& src ) +{ + bool flag = ( src == "1" ); + _currentuser->set_accepting_terms_flag( flag ); + return flag; +} + + +/** + Testet auf "verbotene Worte" also spambot-output wie "viagra cheap" etc. + Setzt ggf. das Fatal-Error Flag, um anzusagen, das ganze posting still + verworfen werden soll. +*/ + +bool ddformmanager::check_blocked_word( ddstring& src ) +{ + if( !_currentuser->is_admin() && _killwords.find_entry_in( src ) ) + { + /* + // eintrag manipulieren und ... + ddwebcgi& cgi = *_currentcgi; + cgi["id_group"] = "2"; + cgi["sn_msgbody"] = ":\n\n" + cgi["sn_msgbody"]; + // trotzdem noch den evil-marker setzen... + */ + _contains_blocked_words = true; + } + // ... still verschwinden + return true; +} + + +/** + Zensiert böse worte + @returns true; +*/ + +bool ddformmanager::check_bad_word( ddstring& src ) +{ + // neu: bei admins gruppe 13 nicht zensieren + bool allowbad = ( _currentuser->is_admin() ) && ( (*_currentcgi)["id_group"] == "13" ); + if( !allowbad ) + get_censored_words().translate( src, _censorstring ); + return true; +} + + +/** + Gibts den nick, version für den pager +*/ + +bool ddformmanager::check_user_is_member( ddstring& src ) +{ + return ( _website->get_user_manager().index_of( src.as_lower() ) >= 0 ); +} + + +/** + Gibts den nick schon, version zum posten +*/ + +bool ddformmanager::check_nickname_exists( ddstring& src ) +{ + // member gehen glatt durch: dieser test wird beim posten aufgerufen + // und da ist klar das der nick schon existiert. siehe auch + // check_new_nickname_exists + + if( _currentuser->is_member() ) + return true; + return ( _website->get_user_manager().index_of( src.as_lower() ) < 0 ); +} + + +/** + Gibts den nick schon, version zur anmeldung +*/ + +bool ddformmanager::check_new_nickname_exists( ddstring& src ) +{ + return ( _website->get_user_manager().index_of( src.as_lower() ) < 0 ); +} + + +/** + Nutzt den usermanager, um eine nickname auf gültigkeit + (sonderzeichen, länge etc.) zu prüfen. Prüft auch, + ob ein nickname noch frei ist. Postingversion, setzt den + guestnick. + + OBACHT! FIX! HIRNFICK! Warum wird der feldwert geändert? +*/ + +bool ddformmanager::check_nickname_valid( ddstring& src ) +{ + + if( !_website->get_user_manager().check_nickname_valid( src ) ) + return false; + + ddstring& uid = (*_currentcgi)["id_user"]; + // admins dürfen alles + if( _currentuser->is_sub_admin() ) + { + // auch admins wollen posten + if( uid.empty() ) + uid = _currentuser->get_id(); + return true; + } + + // ab hier: fake nicht erlaubt + uid = _currentuser->get_id(); + + // members must not use wrong names + if( _currentuser->is_member() ) + { + (*_currentcgi)["sn_nickname"] = _currentuser->get_nick_name(); + return true; + } + bool not_exists = ( _website->get_user_manager().index_of( src.as_lower() ) < 0 ); + if( not_exists ) + _currentuser->set_nick_name( src ); + return not_exists; +} + + +/** + Nutzt den usermanager, um eine nickname auf gültigkeit + (sonderzeichen, länge etc.) zu prüfen. Anmeldeversion, + die den guestnick _nicht_ setzt. +*/ + +bool ddformmanager::check_new_nickname_valid( ddstring& src ) +{ + return _website->get_user_manager().check_nickname_valid( src ); +} + + +/** + Testet eine eMail-Adresse auf Gültigkeit. Hier kann man noch blacklists einbauen. +*/ + +bool ddformmanager::check_nickmail_valid( ddstring& src ) +{ + + if( src.empty() + || !src.contains( '@' ) + || !src.contains( '.' ) + || src.find_first_of( " *%?&\r\t\n" ) != ddstring::npos ) + { + return false; + } + // korreckte email adressen für gäste speichern + if( _currentuser->is_guest() ) + _currentuser->set_nick_mail( src ); + + return true; + +} + + + + + +/** + Setzt den mail alert state entsprechend der gültigkeit der + email-adresse. +*/ + +bool ddformmanager::check_mail_alert( ddstring& src ) +{ + // hack: 9 wegen 1 (public) und 8 (mailalert) + bool mailalert = _currentuser->set_mail_alert_flag( src == "9" ); + // ist kein fehler mehr + //if( mailalert && (*_currentcgi)["sn_nickmail"].empty() ) + // return false; + // nochn hack: das feld heisst sn_mailalert und wird jetzt in id_state gespeichert + (*_currentcgi)["id_state"] = mailalert ? "9" : "1"; + return true; +} + + +/** + Testet, ob das id_state Feld gültig ist. +*/ + +bool ddformmanager::check_state_valid( ddstring& src ) +{ + int flag= src.as_int(); + return (flag > 0 && flag < 64 ); +} + + +/** + Testet, ob das id_group Feld gültig ist. +*/ + +bool ddformmanager::check_group_valid( ddstring& src ) +{ + // chefs dürfen alles + //if( _currentuser->is_admin() ) + if( _currentuser->is_sub_admin() ) + return true; + return _website->is_group_valid( src.as_int() ); +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default constructor. +*/ + +ddformrule::ddformrule( bool is_op_and, ddformrule* child1, ddformrule* child2 ) +: _is_op_and( is_op_and ), _child1( child1 ), _child2( child2 ) +{ + +} + + +/** + Destructor. +*/ + +ddformrule::~ddformrule() +{ + if( _child1 ) + delete _child1; + if( _child2 ) + delete _child2; +} + + +/** + Apply this rule: call apply for all child rules +*/ + +bool ddformrule::apply( ddstring& src, ddstring& message ) +{ + if( _is_op_and ) + return _child1->apply( src, message ) && _child2->apply( src, message ); + return _child1->apply( src, message ) || _child2->apply( src, message ); + +} + + +void ddformrule::dump( ddstring blank ) +{ + if( _child1 ) + _child1->dump( blank + " " ); + if( _child2 ) + _child2->dump( blank + " " ); +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Constructor: Erzeugt eine Regel. + @param call die check function (a memberfunction of ddformchecker) to be called. + @see ddformchecker +*/ + +ddformrulecall::ddformrulecall( ddformmanager* parent, ddrulecall call, const ddstring& cmdkey, const ddstring& msgkey, const ddstring& param ) +: _parent( parent ), _call( call ), _cmdkey( cmdkey ), _msgkey( msgkey ), _param( param ) +{ + +} + + +/** + Wendet eine Regel auf einen Form-Wert an. + @param src: der form-Wert + @param msgkey: der Code der Fehlermeldung + @return true on success +*/ + +bool ddformrulecall::apply( ddstring& src, ddstring& msgkey ) +{ + bool result = (this->*_call)( src ); + if( !result ) + msgkey = _msgkey; + return result; +} + + +/** + Testet, ob der Form-Wert leer ist. +*/ + +bool ddformrulecall::check_empty( ddstring& src ) +{ + return src.empty(); +} + + +/** + Testet, ob der Form-Wert nicht leer ist. +*/ + +bool ddformrulecall::check_not_empty( ddstring& src ) +{ + return !src.empty(); +} + + +/** + Testet, ob der Form-Wert eine bestimmte Zeichenkette enthält. +*/ + +bool ddformrulecall::check_contains( ddstring& src ) +{ + return ( src.contains( _param ) ); +} + + +/** + Testet, ob der Form-Wert mindestens die Vorgabelänge hat. +*/ + +bool ddformrulecall::check_minsize( ddstring& src ) +{ + return ( src.size() >= (size_t) _param.as_int() ); +} + + +/** + Testet, ob der Form-Wert länger die Vorgabe ist. +*/ + +bool ddformrulecall::check_maxsize( ddstring& src ) +{ + return ( src.size() <= (size_t) _param.as_int() ); +} + + +/** + Testet, ob der Form-Wert dem Vorgabeparameter entspricht. +*/ + +bool ddformrulecall::check_equal( ddstring& src ) +{ + return ( src == _param ); +} + + +/** + Testet, ob der Form-Wert ungleich dem Vorgabeparameter ist. +*/ + +bool ddformrulecall::check_not_equal( ddstring& src ) +{ + return ( src != _param ); +} + + +/** + Testet, ob der Form-Wert kleiner als der Vorgabeparameter ist. +*/ + +bool ddformrulecall::check_less_than( ddstring& src ) +{ + return ( src.as_int() < _param.as_int() ); +} + + +/** + Testet, ob der Form-Wert größer als der Vorgabeparameter ist. +*/ + +bool ddformrulecall::check_greater_than( ddstring& src ) +{ + return ( src.as_int() > _param.as_int() ); +} + + +/** + Bastelt eine korrecktes reply-subject zusammen: RE: Blablub +*/ + +bool ddformrulecall::check_is_subject( ddstring& src ) +{ + if( src.substr( 0, 4 ) != "RE: " ) + src = "RE: "+src; + return true; +} + + +/** + Testet, ob die AGBs akzeptiert wurden. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_accepting_terms( ddstring& src ) +{ + return _parent->check_accepting_terms( src ); +} + + +/** + Testet, ob der nickname korrekt ist. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_nickname_valid( ddstring& src ) +{ + return _parent->check_nickname_valid( src ); +} + + +/** + Testet, ob ein User Member ist. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_user_is_member( ddstring& src ) +{ + return _parent->check_user_is_member( src ); +} + + +/** + Testet, ob der nickname korrekt ist. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_new_nickname_valid( ddstring& src ) +{ + return _parent->check_new_nickname_valid( src ); +} + + +/** + Gibts den nick schon, version zum posten +*/ + +bool ddformrulecall::check_nickname_exists( ddstring& src ) +{ + return _parent->check_nickname_exists( src ); +} + + +/** + Gibts den nick schon, version zur anmeldung +*/ + +bool ddformrulecall::check_new_nickname_exists( ddstring& src ) +{ + return _parent->check_new_nickname_exists( src ); +} + +/** + Testet, ob die eMail-Adresse korreckt ist. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_nickmail_valid( ddstring& src ) +{ + return _parent->check_nickmail_valid( src ); +} + + +/** + Testet auf 'blocked words'. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_blocked_word( ddstring& src ) +{ + return _parent->check_blocked_word( src ); +} + + +/** + Testet ob zensierte Worte vorhanden sind und löscht diese ggf. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_bad_word( ddstring& src ) +{ + return _parent->check_bad_word( src ); +} + + +/** + Testet, ob zu schnell hintereinander gepostet wurde. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_chain_posting( ddstring& src ) +{ + return _parent->check_chain_posting( src ); +} + + +/** + Testet, ob mehrmals der gleiche Text gepostet wurde. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_repeated_posting( ddstring& src ) +{ + return _parent->check_repeated_posting( src ); +} + + +/** + Testet, ob die Mail-Benachrichtigung korrekt eingetragen ist. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_mail_alert( ddstring& src ) +{ + return _parent->check_mail_alert( src ); +} + + +/** + Testet id_state. + Wird delegiert an den Formmanager. + @see ddformmanager +*/ + +bool ddformrulecall::check_state_valid( ddstring& src ) +{ + return _parent->check_state_valid( src ); +} + + +/** + Testet, ob das id_group Feld gültig ist. + @see ddformmanager +*/ + +bool ddformrulecall::check_group_valid( ddstring& src ) +{ + return _parent->check_group_valid( src ); +} + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Standard constructor. +*/ + +ddformruleparser::ddformruleparser( ddformmanager* parent ) +: _parent( parent ) +{ + init_call_map(); +} + + +/** + Destructor. +*/ + +ddformruleparser::~ddformruleparser() +{ + +} + + +/** + Initialisiert die call-adressen der testroutinen. +*/ + +void ddformruleparser::init_call_map() +{ + _calls["contains"] = &ddformrulecall::check_contains; + _calls["empty"] = &ddformrulecall::check_empty; + _calls["not_empty"] = &ddformrulecall::check_not_empty; + _calls["user_is_member"] = &ddformrulecall::check_user_is_member; + _calls["nickname_valid"] = &ddformrulecall::check_nickname_valid; + _calls["new_nickname_valid"] = &ddformrulecall::check_new_nickname_valid; + _calls["nickname_exists"] = &ddformrulecall::check_nickname_exists; + _calls["new_nickname_exists"] = &ddformrulecall::check_new_nickname_exists; + _calls["nickmail_valid"] = &ddformrulecall::check_nickmail_valid; + _calls["minsize"] = &ddformrulecall::check_minsize; + _calls["maxsize"] = &ddformrulecall::check_maxsize; + _calls["equal"] = &ddformrulecall::check_equal; + _calls["not_equal"] = &ddformrulecall::check_not_equal; + _calls["less"] = &ddformrulecall::check_less_than; + _calls["greater"] = &ddformrulecall::check_greater_than; + _calls["accepting_terms"] = &ddformrulecall::check_accepting_terms; + _calls["blocked_word"] = &ddformrulecall::check_blocked_word; + _calls["bad_word"] = &ddformrulecall::check_bad_word; + _calls["chain_posting"] = &ddformrulecall::check_chain_posting; + _calls["repeated_posting"] = &ddformrulecall::check_repeated_posting; + _calls["is_subject"] = &ddformrulecall::check_is_subject; + _calls["mail_alert"] = &ddformrulecall::check_mail_alert; + _calls["state_valid"] = &ddformrulecall::check_state_valid; + _calls["group_valid"] = &ddformrulecall::check_group_valid; +} + + +/** + +*/ + +void ddformruleparser::split( const ddstring& src, const ddstring& sep ) +{ + size_t beg=0, end=0, step=0; + _rules.clear(); + // ein trennzeichen, ein feld (ala otti) + while ( beg < src.size() ) + { + end = src.find_first_of( sep, beg ); + if( end == ddstring::npos ) + end = src.size(); + step = end-beg; + if( step ) + { + ddstring tmp1 = src.substr( beg, step ); + tmp1.trim(); + if( !tmp1.empty() ) + _rules.add( tmp1 ); + } + if( end != src.size() ) + _rules.add( src.substr( end, 1 ) ); + beg = end + 1; + } +} + + +/** + +*/ + +ddformrule* ddformruleparser::parse( const ddstring& rulestr ) +{ + split( rulestr, "()|&" ); + _idx = 0; + ddformrule* base = 0; + base = parse_expression(); + return base; +} + + +/** + +*/ + +ddformrule* ddformruleparser::parse_expression() +{ + ddformrule* result = parse_term(); + while( _idx < _rules.size() ) + { + if( _rules[_idx] != "|" ) + break; + _idx++; + result = new ddformrule( false, result, parse_term() ); + } + return result; +} + + +/** + +*/ + +ddformrule* ddformruleparser::parse_term() +{ + ddformrule* result = parse_primary(); + while( _idx < _rules.size() ) + { + if( _rules[_idx] != "&" ) + break; + _idx++; + result = new ddformrule( true, result, parse_primary() ); + } + return result; +} + + +/** + +*/ + +ddformrule* ddformruleparser::parse_primary() +{ + // parse embraced expressions + ddstring& token = _rules[_idx++]; + if( token == "(" ) + { + ddformrule* exp = parse_expression(); + if( _rules[_idx++] != ")" ) + throw runtime_error("ddformruleparser::parse_primary: ')' expected! " ); + return exp; + } + + // parse calls + ddstring cmd = token; + ddstring param, msgkey; + + // find message key + size_t colon = cmd.rfind( ':' ); + if( colon != ddstring::npos ) + { + msgkey = cmd.substr( colon+1 ); + cmd = cmd.substr( 0, colon ); + } + + // find param + size_t brac1 = cmd.rfind( '[' ); + size_t brac2 = cmd.rfind( ']' ); + if( brac1 != ddstring::npos && brac2 != ddstring::npos ) + { + param = cmd.substr( brac1+1, brac2-brac1-1 ); + cmd = cmd.substr( 0, brac1 ); + } + ddrulecall ptr = _calls[cmd]; + if( !ptr ) + throw runtime_error( "ddformruleparser::parse_primary: cmd not found: " + cmd ); + + return new ddformrulecall( _parent, ptr, cmd, msgkey, param ); + +} + + + diff --git a/supportware/src/ddformchecker.h b/supportware/src/ddformchecker.h new file mode 100644 index 0000000..9f6f8d8 --- /dev/null +++ b/supportware/src/ddformchecker.h @@ -0,0 +1,333 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef ddformchecker_H +#define ddformchecker_H + +#include +#include +#include +#include +#include +#include +#include + +class ddformrule; +class ddformrulecall; +class ddformruleparser; +class dduserid; +class ddusermanager; +class ddwebsite; +class ddformmanager; +class ddmailmanager; + +typedef vector ddformrulevec; + + +/// ddformchecker : Klasse zum Testen eines bestimmten Eingabeformulars. +/** + +*/ + +class ddformchecker : public ddbasenamedobject +{ + +public: + + ddformchecker(); + ddformchecker( ddformmanager* parent, ddformruleparser& parser, ddconfigsection& rules ); + virtual ~ddformchecker(); + + bool init_form_rules( ddformruleparser& parser, ddconfigsection& rules ); + bool check_form( dditem& form, dduserid& user ); + void check_form( dditem& form, dduserid& user, ddwebcgi& cgi ); + +protected: + + bool add_rules( ddformruleparser& parser, const ddstring& key, const ddstring& querystring ); + + ddformmanager* _parent; + ddformrulevec _rules; + ddconfigsection _messages; + ddstring _errkey; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +typedef ddmapptr ddformcheckermap; + +/// ddformmanager: Klasse zum Testen von Eingabeformularen. + +/** + ddformmanager ist die basisklasse des message managers und deshalb eine dbtable. + Als unvollständige klasse kann sie nicht standalone benutzt werden, daher ist + der konstrukur protected. +*/ + +class ddformmanager : public ddbaseobject +{ + +friend class ddformrulecall; +friend class ddformchecker; + +public: + + ddformmanager(); + virtual ~ddformmanager(); + + void init_form_rules( ddwebsite& mysite ); + + /** + Gibt eine Referenz auf die interne Kill-Word Liste zurück. + Killwords sind "verbotene Worte", wie indizierte Spiel, Spamlinks + etc. Beiträge mit verbotenen Worten werden gar nicht erst in die + Datenbank geschrieben. + */ + + inline ddstringset& get_blocked_words() + { + return _killwords; + } + + + /** + Gibt eine Referenz auf die interne Zensur-Liste zurück. + Zensierte Worte werden durch *Z* ersetzt. + */ + + inline ddstringset& get_censored_words() + { + return _badwords; + } + + /** + @returns true für 'böse' postings. + FIX! + Eigentlich sollte das posting automatisch per group_id 2 + in den müll wandern, aber da nicht alle tables eine group_id + haben, gibts diesen hack. + */ + + inline bool contains_blocked_words() + { + return _contains_blocked_words; + } + + bool check_form( const ddstring& formname, dditem& form, dduserid& user, ddwebcgi& cgi ); + +protected: + + bool set_error_message( dditem& form, const ddstring& key, const ddstring& msgkey ); + + bool check_accepting_terms( ddstring& src ); + bool check_blocked_word( ddstring& src ); + bool check_bad_word( ddstring& src ); + + bool check_user_is_member( ddstring& src ); + bool check_nickname_exists( ddstring& src ); + bool check_new_nickname_exists( ddstring& src ); + bool check_nickname_valid( ddstring& src ); + bool check_new_nickname_valid( ddstring& src ); + + bool check_nickmail_valid( ddstring& src ); + bool check_chain_posting( ddstring& src ); + bool check_repeated_posting( ddstring& src ); + bool check_mail_alert( ddstring& src ); + bool check_state_valid( ddstring& src ); + bool check_group_valid( ddstring& src ); + + ddwebsite* _website; + dduserid* _currentuser; + ddwebcgi* _currentcgi; + int _posting_delay; + bool _contains_blocked_words; + bool _has_error; + ddthreadmutex _checkerlock; + ddformcheckermap _formcheckermap; + ddconfigsection _messages; + + ddstringset _killwords; + ddstringset _badwords; + + ddstring _errorkey; + ddstring _errorsymbol; + ddstring _censorstring; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddformrule: eine einzelne Regel + + +typedef bool (ddformrulecall:: *ddrulecall)( ddstring& ); + +class ddformrule : public ddbasenamedobject +{ + +public: + + ddformrule( bool is_op_and=true, ddformrule* child1=0, ddformrule* child2=0 ); + virtual ~ddformrule(); + + virtual bool apply( ddstring& src, ddstring& message ); + virtual void dump( ddstring blank ); + +protected: + + bool _is_op_and; + ddformrule* _child1; + ddformrule* _child2; + + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +class ddformrulecall : public ddformrule +{ + +public: + + ddformrulecall( ddformmanager* parent, ddrulecall call, const ddstring& cmdkey, const ddstring& msgkey, const ddstring& param="" ); + + bool apply( ddstring& src, ddstring& message ); + + // standard test functions + bool check_empty( ddstring& src ); + bool check_not_empty( ddstring& src ); + bool check_contains( ddstring& src ); + bool check_minsize( ddstring& src ); + bool check_maxsize( ddstring& src ); + bool check_equal( ddstring& src ); + bool check_not_equal( ddstring& src ); + bool check_less_than( ddstring& src ); + bool check_greater_than( ddstring& src ); + bool check_is_subject( ddstring& src ); + + bool check_accepting_terms( ddstring& src ); + bool check_blocked_word( ddstring& src ); + bool check_bad_word( ddstring& src ); + bool check_user_is_member( ddstring& src ); + bool check_nickname_exists( ddstring& src ); + bool check_new_nickname_exists( ddstring& src ); + bool check_nickname_valid( ddstring& src ); + bool check_new_nickname_valid( ddstring& src ); + bool check_nickmail_valid( ddstring& src ); + bool check_chain_posting( ddstring& src ); + bool check_repeated_posting( ddstring& src ); + bool check_mail_alert( ddstring& src ); + bool check_state_valid( ddstring& src ); + bool check_group_valid( ddstring& src ); + +protected: + + ddformmanager* _parent; + ddrulecall _call; + ddstring _cmdkey; + ddstring _msgkey; + ddstring _param; + + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddformruleparser : Erzeugt die Regelmenge für ein Form aus der Config-Datei. +/** + +*/ + +typedef map ddrulecallmap; + +class ddformruleparser : public ddbaseobject +{ + +public: + + ddformruleparser( ddformmanager* parent ); + virtual ~ddformruleparser(); + + ddformrule* parse( const ddstring& rule ); + +protected: + + void init_call_map(); + void split( const ddstring& rule, const ddstring& sep ); + + ddformrule* parse_expression(); + ddformrule* parse_term(); + ddformrule* parse_primary(); + + ddformmanager* _parent; + ddrulecallmap _calls; + ddstringrow _rules; + size_t _idx; + +}; + +#endif diff --git a/supportware/src/ddiobuffer.cpp b/supportware/src/ddiobuffer.cpp new file mode 100644 index 0000000..e5df3b8 --- /dev/null +++ b/supportware/src/ddiobuffer.cpp @@ -0,0 +1,182 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +using namespace std; + + +/** + Den einlese-pointer weiterziehen +*/ + +int ddiobufferhandler::move_input( int bytes ) +{ + int newend = _input_offset + bytes; + if( newend > _size ) + return 0; + _input_offset = newend; + // FRAGWÜRDIG + _data[_input_offset] = 0; //?? + return _input_offset; +} + + +/** + Den auslese-pointer weiterziehen +*/ + +int ddiobufferhandler::move_output( int bytes ) +{ + int newend = _output_offset + bytes; + if( newend > _size || newend > _input_offset ) + return 0; + _output_offset = newend; + return _output_offset; +} + + + +/** + @return the current part of the buffer as string. + ( valid input data which is not yet written ) +*/ + +ddstring ddiobufferhandler::to_string() const +{ + return ddstring( (char*) (_data + _output_offset), _input_offset ); +} + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default constructor +*/ + +ddiobuffer::ddiobuffer() +: _origsize( 0 ) +{ + +} + + + + + +/** + Destructor. +*/ + +ddiobuffer::~ddiobuffer() +{ + if( _data ) + ::free( _data ); +} + + +/** + Init this buffer. + @param size: the number of bytes to allocate. +*/ + +void ddiobuffer::init_buffer( int size ) +{ + _data = 0; + if( size <= 0 || _origsize != 0 ) + throw runtime_error( " init_buffer( int size ): Zero size or init_buffer called twice" ); + + _size = _origsize = size; + _data = (char*) ::malloc( _size );//new char[thesize+1]; + reset(); +} + + +/** + Buffer via realloc vergrößern. +*/ + +int ddiobuffer::grow_buffer( int bytes ) +{ + // FIX! Fehler behandeln!!! + _size = (_size+bytes) > (_size+DDBUFFERBODYGROW) ? (_size+bytes) : (_size+DDBUFFERBODYGROW); + + _data = (char*) ::realloc( _data, _size ); + // FIX! Der buffer muss irgendwie aufgeräumt werden! + if( _data == 0 ) + log_fatal( "ddiobuffer::grow: out of memory:"+ddstrutil::from_int(_size) ); + return max_input(); +} + + +/** + Buffer via realloc auf die Default-Größe schrumpfen. +*/ + +void ddiobuffer::shrink_buffer() +{ + // nur verkleinern, wenn nötig + if( _size == _origsize ) + return; + + _size = _origsize; + _data = (char*) ::realloc( _data, _origsize ); // FIX! Der buffer muss irgendwie aufgeräumt werden! + if( _data == 0 ) + log_fatal( "ddiobuffer::shrink: out of memory:"+ddstrutil::from_int(_size) ); + + +} + + +/** + Daten in den Buffer schreiben +*/ + +void ddiobuffer::append ( const char* src, int bytes ) +{ + if( !bytes ) + return; + + if( bytes>=max_input() ) + grow_buffer( bytes+1 ); + ::memcpy( input(), src, bytes ); + _input_offset += bytes; +} + + + + + + diff --git a/supportware/src/ddiobuffer.h b/supportware/src/ddiobuffer.h new file mode 100644 index 0000000..e9c5345 --- /dev/null +++ b/supportware/src/ddiobuffer.h @@ -0,0 +1,287 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDBUFFERHANDLER_H +#define DDBUFFERHANDLER_H + + + +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + +/// ddiobufferhandler : Liest von und schreibt in einem memoryblock +/** + ddiobufferhandler ist die Basis für operationen auf Puffern und enthält nur + die Methoden zum ein- und auslesen. Der Inhalt des Puffers (mmap etc.) wird + in den unterklassen bestimmt. +*/ + + +class ddiobufferhandler : public ddbaseobject +{ + +public: + + ddiobufferhandler() + : _data(0), _size(0), _input_offset(0), _output_offset(0) + { + } + + virtual ~ddiobufferhandler() + { + } + + ddiobufferhandler( const ddiobufferhandler& src ) + { + this->operator=( src ); + } + + ddiobufferhandler& operator=( const ddiobufferhandler& src ) + { + if( this == &src ) + return *this; + _data = src._data; + _size = src._size; + _input_offset = src._input_offset; + _output_offset = src._output_offset; + return *this; + } + + int move_input( int bytes ); + int move_output( int bytes ); + + ddstring to_string() const; + + /** + Alle pointer zurücksetzen. + */ + + inline void reset() + { + _input_offset = _output_offset = 0; + } + + + /** + Gibt den basepointer zurück. + */ + + inline const char* data() const + { + return (const char*) _data; + } + + + /** + Gibt den fürs reinschreiben zust�ndigen pointer zurück. + */ + + inline char* input() + { + return (char*) (_data + _input_offset); + } + + + /** + Gibt den fürs reinschreiben zust�ndigen pointer zurück, const version. + */ + + inline const char* input() const + { + return (const char*) (_data + _input_offset); + } + + /** + Gibt den fürs auslesen zust�ndigen pointer zurück. + */ + + inline char* output() + { + return (char*) (_data + _output_offset); + } + + + /** + Gibt den fürs auslesen zust�ndigen pointer zurück, const version. + */ + + inline const char* output() const + { + return (const char*) (_data + _output_offset); + } + + /** + Gibt die Gesamtgrösse zurück. + */ + + inline size_t size() const + { + return _size; + } + + + /** + Gibt die maximale Anzahl an Bytes zurück, die noch in den Buffer geschrieben werden + können. + */ + + inline int max_input() const + { + return _size - _input_offset; + } + + + /** + Gibt die maximale Anzahl an Bytes zurück, die noch ausgelesen werden + können. + */ + + inline int max_output() const + { + return _input_offset - _output_offset; + } + +protected: + + char* _data; + int _size; + int _input_offset; + int _output_offset; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + + + +/// ddiobufferreader : Ein bufferhandler, der auf 'fremden' daten arbeitet: mmap etc. +/** + ddiobufferreader : Ein bufferhandler, der auf 'fremden' daten arbeitet: mmap etc +*/ + +class ddioinfo; + +class ddiobufferreader : public ddiobufferhandler +{ + +public: + + ddiobufferreader() + { + } + + virtual ~ddiobufferreader() + { + + } + + void set_data( char* src, int size ) + { + _data = src; + _size = size; + } + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddiobufferreader : Ein bufferhandler, der auf 'eigenen' daten arbeitet. +/** + ddiobufferreader : Ein bufferhandler, der auf 'eigenen' daten arbeitet. Der memoryblock + wird von malloc, realloc und free verwaltet. + #warning FIX! lieber operator new verwenden ? + #warning FIX! crashbehandlung fehlt! +*/ + +class ddioinfo; + +class ddiobuffer : public ddiobufferhandler +{ + +public: + + ddiobuffer(); + + virtual ~ddiobuffer(); + + int grow_buffer( int bytes ); + void shrink_buffer(); + + void init_buffer( int size ); + + /** + Daten in den Buffer schreiben + */ + + inline void append( const ddstring& src ) + { + append( src.data(), src.size() ); + } + + void append ( const char* src, int bytes ); + +protected: + + int _origsize; + +private: + + ddiobuffer( const ddiobuffer& src ) + { + } + + ddiobuffer& operator=( const ddiobuffer& src ) + { + return *this; + } + +}; + + + + +#endif diff --git a/supportware/src/ddioinfo.cpp b/supportware/src/ddioinfo.cpp new file mode 100644 index 0000000..2c2d7ed --- /dev/null +++ b/supportware/src/ddioinfo.cpp @@ -0,0 +1,256 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include + +using namespace std; + + + +/** + Default constructor +*/ + +ddioinfo::ddioinfo() +: _entries(0) +{ + +} + + +/** + Copy constructor. +*/ + +ddioinfo::ddioinfo( const ddioinfo& src ) +: ddioobject(), _entries(0) +{ + + *this = src; +} + + +ddioinfo::ddioinfo( const ddstring& path ) +: ddioobject(), _entries(0) +{ + init_path( path ); +} + +/** + Assignment operator. +*/ + +ddioinfo& ddioinfo::operator=( const ddioinfo& src ) +{ + if( this == &src ) + return *this; + _data = src._data; + _flags = src._flags; + _entries = 0; + return *this; +} + + +/** + Destructor. +*/ + +ddioinfo::~ddioinfo() +{ + if( _entries ) + { + //throw runtime_error( "FIX ME: LEAK!!! ddioinfo::~ddioinfo()" ); + /* + for( size_t i=0; i<_entries->size(); ++i ) + delete (*_entries)[i]; + */ + delete _entries; + } +} + + + + +size_t ddioinfo::size() +{ + // a file has no children + if( !is_folder() || !_entries ) + return 0; + return _entries->size(); +} + + +/** + Returns true if this directory conains "filename" + @param filename the filename to look for. +*/ + +int ddioinfo::index_of( const ddstring& filename ) +{ + if( !is_folder() || !_entries ) + return -1; + return _entries->index_of( filename ); +} + +ddioinfo& ddioinfo::operator[]( size_t index ) +{ + if( !_entries ) + throw runtime_error( "ddioinfo::operator[]( size_t index ): empty!" ); + return _entries->get_entry( index ); +} + +ddioinfo& ddioinfo::operator[]( const ddstring& filename ) +{ + if( !_entries ) + throw runtime_error( "ddioinfo::operator[]( const ddstring& filename ): empty!" ); + return _entries->get_entry( filename ); +} + + + + +/** + updates the internal structure of directory entries. + @see get_entries() +*/ + +void ddioinfo::init_entries( const ddstring& path, const ddstring& filter, bool do_append ) +{ + init_path( path ); + + if( !_entries ) + _entries = new ddioinforow(); + else if( !do_append ) + _entries->clear(); + + _data[ddioobject::url_fullpath].to_dir_name(); + + DIR* dir = ::opendir ( get_full_path().c_str() ); + if( 0 == dir ) + throw runtime_error( "dddirinfo::open() failed: " + get_full_path() ); + + // FIX! use reentrant version of readdir + //int readdir_r ( drc, struct dirent *entry, struct dirent **result) + struct dirent* entry = 0; + + + // hack: skip . and .. + // das haut nicht mehr hin da sich die reihenfolge geändert hat: . und .. + // sind nicht mehr oben!!!!!!!!!!!!!! + //::readdir(dir); + //::readdir(dir); + + + while( 0 != ( entry = ::readdir(dir) ) ) + { + // filter + ddstring tmpname = entry->d_name; + if( tmpname == "." || tmpname == ".." ) + continue; + if( filter.empty() || tmpname.rfind( filter ) != ddstring::npos ) + { + ddioinfo* newitem = new ddioinfo( get_full_path()+tmpname ); + _entries->add_by_key( newitem->get_full_name(), newitem ); + } + + } + ::closedir( dir ); +} + + + + +void ddioinfo::load_files( const ddstring& path, const ddstring& filter, bool do_append ) +{ + init_entries( path, filter, do_append ); + //cout << "MAA: " << _entries->size() << endl; + for( int i=0; i<_entries->size(); ++i ) + { + if( (*_entries)[i]->load_file_content() < 0 ) + throw runtime_error( "ddioinfo::load_files: not found: " + (*_entries)[i]->get_full_name() ); + } +} + + + +/** + Creates the data members from the source strings. + @param path the src string + @param base the base path (optional) +*/ + +bool ddioinfo::init_path( const ddstring& path ) +{ + // FIX! + //_data.clear(); + //_data.resize( url_field_size ); + + if( path.size() >0 && path[0] != '/' ) + set_flag( ddioobject::url_is_relative ); + _data[ddioobject::url_fullpath] = path; + + // path is the path without file + size_t pos = path.rfind( '/' ); + // path does exist + if( pos != ddstring::npos && pos != 0 ) + { + _data[ddioobject::url_path] = path.substr( 0, pos+1 ); + _data[ddioobject::url_file] = path.substr( pos+1 ); + } + else // path does not exist + { + _data[ddioobject::url_file] = path; + _data[ddioobject::url_path] = path; + } + _data[ddioobject::url_path].to_dir_name(); + ddstring& src =_data[ddioobject::url_file]; + size_t nxt = src.rfind( '.' ); + if( nxt != ddstring::npos ) + { + _data[ddioobject::url_file_type] = src.substr( nxt+1 ); + _data[ddioobject::url_file_body] = src.substr( 0, nxt ); + } + else + { + _data[ddioobject::url_file_body] = src; + } + + // cleanup + if( _statbuf ) + delete _statbuf; + _statbuf = 0; + + return true; + +} + +/** + Dumps all fields for debugging purposes. +*/ + +void ddioinfo::dump() const +{ + ddioobject::dump(); + if( 0 == _entries ) + return; + for( int i=0; i<_entries->size(); ++i ) + cout << (*_entries)[i]->get_full_name() << endl; + +} + + + diff --git a/supportware/src/ddioinfo.h b/supportware/src/ddioinfo.h new file mode 100644 index 0000000..b97c06e --- /dev/null +++ b/supportware/src/ddioinfo.h @@ -0,0 +1,73 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDIOINFO_H +#define DDIOINFO_H + + +#include +#include +#include +#include +#include + +using namespace std; + + +/// ddioinfo provides information about files and direcories using ::stat +/** + +*/ + +class ddioinfo; + +typedef ddmapptr ddioinforow; + +class ddioinfo : public ddioobject +{ + +public: + + ddioinfo(); + ddioinfo( const ddstring& path ); + + virtual ~ddioinfo(); + + virtual size_t size(); + + // Verzeichnis Aspekt + virtual int index_of( const ddstring& filename ); + virtual ddioinfo& operator[]( size_t index ); + virtual ddioinfo& operator[]( const ddstring& key ); + + + virtual void init_entries( const ddstring& path, const ddstring& filter="", bool do_append=true ); + virtual void load_files( const ddstring& path, const ddstring& filter="", bool do_append=true ); + + virtual bool init_path( const ddstring& path ); + virtual void dump() const; + +protected: + + ddioinforow* _entries; + +private: + + ddioinfo( const ddioinfo& src ); + ddioinfo& operator=( const ddioinfo& src ); + +}; + + +#endif diff --git a/supportware/src/ddiommap.cpp b/supportware/src/ddiommap.cpp new file mode 100644 index 0000000..bfe9a64 --- /dev/null +++ b/supportware/src/ddiommap.cpp @@ -0,0 +1,168 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + + +/** + Default constructor. +*/ + +ddiommap::ddiommap() +: ddiobuffer() +{ + +} + + +/** + Copy construtor +*/ + +ddiommap::ddiommap( const ddiommap& src) +: ddiobuffer() +{ + *this = src; +} + + +/** + Standard constructor. Create a mmap object from file "filename" + with following defaultprotocol: PROT_READ + @param filename + @param prot + @see man mmap for more information about prot. +*/ + +ddiommap::ddiommap( const ddstring& filename, int prot ) +: ddiobuffer() +{ + mmap( filename, prot ); +} + + +/** + Assignment operator. Dummy implementation. Does nothing yet. +*/ + +ddiommap& ddiommap::operator=( const ddiommap& src ) +{ + if( this == &src ) + return *this; + log_fatal( "ddiommap::operator=" ); + return *this; +} + + +/** + Destructor. Unmaps this mmap. +*/ + + +ddiommap::~ddiommap() +{ + unmap(); +} + + +/** + Map the file "filename" into memory using flags "prot". + If a file has been mapped before, its unmapped first. + @param filename + @param prot default:PROT_READ + @return the size of the mapped memblock. +*/ + +int ddiommap::mmap( const ddstring& filename, int prot ) +{ + if( _data != 0 ) + unmap(); + + int fd = ::open( filename.c_str(), O_RDONLY ); + if( fd<0 ) + { + log_error( "ddiommap: can't open: " + filename ); + return -1; + } + + struct stat file; + if( ::fstat( fd, &file ) < 0 ) + { + log_error( "ddiommap: can't stat: " + filename ); + ::close( fd ); + return -1; + } + + if( S_ISDIR( file.st_mode ) ) + { + log_error( "ddiommap: can't mmap dirs: " + filename ); + ::close( fd ); + return 0; + } + + _size = file.st_size; + // leere files sind kein Fehler! + if( !_size ) + { + //log_error( "ddiommap: file empty: " + filename ); + ::close( fd ); + return 0; + } + _data = (char*) ::mmap( 0, _size, prot, MAP_PRIVATE, fd, 0 ); + if( MAP_FAILED == _data ) + { + log_error( "ddiommap: can't mmap: " + filename ); + ::close( fd ); + _data = 0; + return -1; + } + + ::close(fd); + + // set read buf to "full", so that max_output() == size() + _input_offset = _size; + return _size; +} + + +/** + Unmaps the memblock by calling ::munmap. + @return -1 on error, 0 on success +*/ + +void ddiommap::unmap() +{ + if( !_data ) + return; + if( ::munmap( _data, _size ) < 0 ) + log_error( "ddiommap: can't munmap" ); + _data = 0; +} + + + + +/** + Dumps the contents of the data buffer for debugging. +*/ + +void ddiommap::dump() const +{ + if( _size ) + ::write( 1, _data, _size ); + else + cout << "ddiommap.dump(): not valid!" << endl; + +} + diff --git a/supportware/src/ddiommap.h b/supportware/src/ddiommap.h new file mode 100644 index 0000000..7a1ba4a --- /dev/null +++ b/supportware/src/ddiommap.h @@ -0,0 +1,45 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDMMAP_H +#define DDMMAP_H + +#include +#include + +/// ddiommap is a simple wrapper class for the ::mmap syscall. + + +class ddiommap : public ddiobuffer +{ + +public: + + ddiommap(); + ddiommap( const ddstring& filename, int prot= PROT_READ ); //|PROT_WRITE + virtual ~ddiommap(); + + int mmap( const ddstring& filename, int prot = PROT_READ );//|PROT_WRITE + void unmap(); + + void dump() const; + +private: + + ddiommap( const ddiommap& src ); + ddiommap& operator=( const ddiommap& src ); + +}; + +#endif diff --git a/supportware/src/ddioobject.cpp b/supportware/src/ddioobject.cpp new file mode 100644 index 0000000..0ca9f9a --- /dev/null +++ b/supportware/src/ddioobject.cpp @@ -0,0 +1,331 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include + +using namespace std; + + +/** + Default Constructor +*/ + +ddioobject::ddioobject() +: _statbuf(0) +{ + _data.resize( url_field_size ); +} + + +/** + Destructor +*/ + +ddioobject::~ddioobject() +{ + if( _statbuf ) + delete _statbuf; +} + + +/** + Returns true for local data ( eg. a file ) +*/ + +bool ddioobject::is_local() const +{ + return test_flag( ddioobject::url_is_local ); +} + + +/** + Returns true for remote data ( eg. ftp, http ) + == !is_local() +*/ + +bool ddioobject::is_remote() const +{ + return !is_local(); +} + + +/** + Returns true when the description ddstring was parsed + successfully. +*/ + +bool ddioobject::is_valid() const +{ + return test_flag( ddioobject::url_is_valid ); +} + + +/** + Returns true when the filepath is relative. +*/ + +bool ddioobject::is_relative() const +{ + return test_flag( ddioobject::url_is_relative ); +} + + +/** + Returns true when the object represents a folder (eg. directory). + @see get _content() +*/ + +bool ddioobject::is_folder() +{ + // first, try ::stat if not done yet. + if( !_statbuf ) + init_stat(); + return test_flag( ddioobject::url_is_folder ); +} + + +/** + Returns true when the object represents a stream, + (eg. character input) + @see get _content() +*/ + +bool ddioobject::is_stream() const +{ + return test_flag( ddioobject::url_is_stream ); +} + + +/** + Returns the absolute path. +*/ + +const ddioobject& ddioobject::make_abs() +{ + if( !is_relative() ) + return *this; + + // fraqwürdig + char tmp[4096]; + if( NULL == ::getcwd( tmp, sizeof(tmp) ) ) + throw runtime_error( "::getcwd( tmp, sizeof(tmp) ) fail!" ); + + _data[ddioobject::url_fullpath] = tmp; + _data[ddioobject::url_fullpath].to_dir_name(); + _data[ddioobject::url_fullpath] += get_path(); + _data[ddioobject::url_fullpath].to_dir_name(); + _data[ddioobject::url_path] = _data[ddioobject::url_fullpath]; + _data[ddioobject::url_fullpath] += get_full_name(); + clear_flag( ddioobject::url_is_relative ); + + return *this; + +} + + +/** + Returns the path component ( absolute or relativ ). +*/ + +const ddstring& ddioobject::get_full_path() const +{ + return _data[ddioobject::url_fullpath]; +} + + +/** + Returns the base path. (might be empty) + @see ddioinfo + @see ddioinfo +*/ + +const ddstring& ddioobject::get_path() const +{ + return _data[ddioobject::url_path]; +} + + +/** + Returns the full filename. +*/ + +const ddstring& ddioobject::get_full_name() const +{ + return _data[ddioobject::url_file]; +} + + +/** + Returns the file suffix (txt, html etc.) +*/ + +const ddstring& ddioobject::get_file_type() const +{ + return _data[ddioobject::url_file_type]; +} + + +size_t ddioobject::get_file_size() +{ + if( !_statbuf ) + init_stat(); + return _statbuf->st_size; +} + + +/** + Returns the file body e.g. index ( from index.html ) +*/ + +const ddstring& ddioobject::get_file_name() const +{ + return _data[ddioobject::url_file_body]; +} + + +/** + Returns the content. + @see load_content() has to be called before the file content is accessible. +*/ + +ddstring& ddioobject::get_file_content() +{ + return _data[ddioobject::url_content]; +} + + +/** + Load the file using "from_file( get_fullpath() )". + @see ddstring::from_file +*/ + +int ddioobject::load_file_content() +{ + if( is_folder() ) + return 0; + return get_file_content().from_file( get_full_path() ); +} + + +/** + Dumps all fields for debugging purposes. +*/ + +void ddioobject::dump() const +{ +} + + +/** + Returns a ddstring representation of this url, + eg. http://panik.zonc.net/moo.txt . +*/ + +ddstring ddioobject::to_string() const +{ + return get_full_path(); +} + + +/** + Inits this object using ::stat + @see ::stat +*/ + +bool ddioobject::init_stat() +{ + if( !_statbuf ) + _statbuf = new struct stat; + if( ::stat( get_full_path().c_str(), _statbuf ) < 0 ) + throw runtime_error( "ddioinfo::init_stat(): stat failed: " + get_full_path() ); + if( S_ISDIR( _statbuf->st_mode ) ) + set_flag( url_is_folder ); + return true; +} + + + +/** + Return last access time of the file. + @see ddbasetime + @see ::stat +*/ + +ddbasetime ddioobject::get_last_accessed() +{ + if( !_statbuf ) + init_stat(); + return ddbasetime( _statbuf->st_atime ); +} + + +/** + Return last modification time of the file. + @see ddbasetime + @see ::stat +*/ + +ddbasetime ddioobject::get_last_modified() +{ + if( !_statbuf ) + init_stat(); + return ddbasetime( _statbuf->st_mtime ); +} + + +/** + Return last change time of the file. + @see ddbasetime + @see ::stat +*/ + +ddbasetime ddioobject::get_last_changed() +{ + if( !_statbuf ) + init_stat(); + return ddbasetime( _statbuf->st_ctime ); +} + + +// PFUSCH! time/date Aufräumen +ddstring ddioobject::get_last_accessed_str() +{ + if( !_statbuf ) + init_stat(); + ddbasedate date( _statbuf->st_atime ); + return date.to_string_gmt(); +} + + +ddstring ddioobject::get_last_modified_str() +{ + if( !_statbuf ) + init_stat(); + ddbasedate date( _statbuf->st_mtime ); + return date.to_string_gmt(); +} + +ddstring ddioobject::get_last_changed_str() +{ + if( !_statbuf ) + init_stat(); + ddbasedate date( _statbuf->st_ctime ); + return date.to_string_gmt(); +} + + + + diff --git a/supportware/src/ddioobject.h b/supportware/src/ddioobject.h new file mode 100644 index 0000000..a886722 --- /dev/null +++ b/supportware/src/ddioobject.h @@ -0,0 +1,106 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDIOOBJECT_H +#define DDIOOBJECT_H + +#include +#include +#include +#include + +using namespace std; + + +/// ddioobject ist die basis für alles was mit IO zu tun hat. +/** + @see ddiourl + @see ddioinfo +*/ + + +class ddioobject : public ddbasestate +{ + +public: + + virtual ~ddioobject(); + + bool is_local() const; + bool is_remote() const; + bool is_valid() const; + bool is_relative() const; + bool is_folder(); + bool is_stream() const; + + const ddioobject& make_abs(); + const ddstring& get_full_path() const; + const ddstring& get_path() const; + const ddstring& get_full_name() const; + const ddstring& get_file_name() const; + const ddstring& get_file_type() const; + virtual ddstring& get_file_content(); + size_t get_file_size(); + + // PFUSCH! time/date Aufräumen + ddbasetime get_last_accessed(); + ddbasetime get_last_modified(); + ddbasetime get_last_changed(); + + // PFUSCH! time/date Aufräumen + ddstring get_last_accessed_str(); + ddstring get_last_modified_str(); + ddstring get_last_changed_str(); + + virtual int load_file_content(); + + virtual ddstring to_string() const; + virtual void dump() const; + + virtual bool init_path( const ddstring& path ) = 0; + virtual bool init_stat(); + +protected: + + ddioobject(); + + struct stat* _statbuf; + + enum dd_urlflags + { + url_is_valid=1, + url_is_relative=2, + url_is_local=4, + url_is_folder=8, + url_is_stream=16 + // exists + }; + + enum dd_urlfields + { + url_fullpath=0, + url_path, + url_file, + url_file_body, + url_file_type, + url_content, + url_field_size + }; + + ddstringrow _data; + +}; + + +#endif diff --git a/supportware/src/ddiourl.cpp b/supportware/src/ddiourl.cpp new file mode 100644 index 0000000..ba35f15 --- /dev/null +++ b/supportware/src/ddiourl.cpp @@ -0,0 +1,92 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + + +/** + Default constructor. +*/ + +ddiourl::ddiourl() +{ +} + + +/** + Destructor. +*/ + +ddiourl::~ddiourl() +{ +} + + +/** + Creates the data members from the source strings. + @param path the src string + @param base the base path (optional) +*/ + + +bool ddiourl::init_path( const ddstring& path ) +{ + _data.clear(); + _data.resize( url_field_size ); + + ddstring fullpath = path; + + // chop cgi vars, if any + size_t pos = fullpath.rfind( '?' ); + if( pos != ddstring::npos ) + fullpath = fullpath.substr( 0, pos ); + + if( fullpath.size() >0 && fullpath[0] != '/' ) + set_flag( ddioobject::url_is_relative ); + _data[ddioobject::url_fullpath] = fullpath; + + // path is the path without file + pos = fullpath.rfind( '/' ); + // path does exist + if( pos != ddstring::npos && pos != 0 ) + { + _data[ddioobject::url_path] = fullpath.substr( 0, pos+1 ); + _data[ddioobject::url_file] = fullpath.substr( pos+1 ); + } + else // path does not exist + { + _data[ddioobject::url_file] = fullpath; + } + + ddstring& src = ( _data[ddioobject::url_file] ); + size_t nxt = src.rfind( '.' ); + if( nxt != ddstring::npos ) + { + _data[ddioobject::url_file_type] = src.substr( nxt+1 ); + _data[ddioobject::url_file_body] = src.substr( 0, nxt ); + } + else + { + _data[ddioobject::url_file_body] = src; + } + + // cleanup + if( _statbuf ) + delete _statbuf; + _statbuf = 0; + + return true; + +} + diff --git a/supportware/src/ddiourl.h b/supportware/src/ddiourl.h new file mode 100644 index 0000000..6d05368 --- /dev/null +++ b/supportware/src/ddiourl.h @@ -0,0 +1,42 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDIOURL_H +#define DDIOURL_H + +#include +#include + + +/// ddiourl +/** + +*/ + +// Nötig?? + +class ddiourl : public ddioinfo +{ + +public: + + ddiourl(); + virtual ~ddiourl(); + + virtual bool init_path( const ddstring& path ); + + +}; + +#endif diff --git a/supportware/src/dditem.cpp b/supportware/src/dditem.cpp new file mode 100644 index 0000000..e1a381b --- /dev/null +++ b/supportware/src/dditem.cpp @@ -0,0 +1,646 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include + +using namespace std; + + + +/** + Default constructor. +*/ + +dditem::dditem() +: _access( 3 ) +{ + +} + + +/** + Copy constructor. +*/ + +dditem::dditem( const dditem& src ) +: ddbasenamedobject(), _access( 3 ) +{ + *this = src; +} + + +/** + Assignment operator. +*/ + +dditem& dditem::operator=( const dditem& src ) +{ + if( this == &src ) + return *this; + + _access = src._access; + _name = src._name; + _value = src._value; + _param = src._param; + + return *this; +} + + +/** + Default constructor. +*/ + +dditem::dditem( const ddstring& name ) +: ddbasenamedobject( name ), _access( 3 ) +{ + + +} + + +/** + Default constructor. +*/ + +dditem::dditem( const ddstring& name, const ddstring& value, const ddstring& call, size_t access ) +: ddbasenamedobject( name ), _access( access ), _value( value ), _param( call ) +{ + +} + + +/** + Destructor. +*/ + +dditem::~dditem() +{ + +} + + +/** + @return a deep copy of this item. +*/ + +dditem* dditem::clone() const +{ + return new dditem( _name, _value, _param, _access ); +} + + +/** + @return the accessrights for this item. +*/ + +size_t dditem::get_access() +{ + return _access; +} + + +/** + set the accessrights for this item. +*/ + +void dditem:: set_access( size_t access ) +{ + _access = access; +} + + +/** + @return the number of children, in this case 0. +*/ + +size_t dditem::size() +{ + return 0; +} + + +/** + Access by key, prototype only, throws runtime_error. +*/ + +dditem& dditem::operator[]( const ddstring& key ) +{ + throw runtime_error("dditem::operator[]( const ddstring& key ): base call: " + key ); + // avoid warnings + (void) key; +} + + +/** + Access by index,prototype only, throws runtime_error. +*/ + +dditem& dditem::operator[]( size_t index ) +{ + throw runtime_error("dditem::operator[]( size_t index ): base call!"); + // avoid warnings + (void) index; +} + + +/** + Acces by key, const version, prototype only, throws runtime_error. +*/ + +const dditem& dditem::operator[]( const ddstring& key ) const +{ + throw runtime_error("dditem::operator[]( const ddstring& key ): base call;" + key ); + // avoid warnings + (void) key; +} + + +/** + Access by index, const version, prototype only, throws runtime_error. +*/ + +const dditem& dditem::operator[]( size_t index ) const +{ + throw runtime_error("dditem::operator[]( size_t index ): base call!"); + // avoid warnings + (void) index; +} + + +/** + Add a child. Prototype only, throws runtime_error. +*/ + +void dditem::add_child( dditem* item ) +{ + throw runtime_error("dditem::add_child: base call!"); + (void) item; +} + + +/** + Set value from bool. +*/ + +dditem& dditem::from_bool( bool value ) +{ + _value.from_bool( value ); + return *this; +} + + +/** + Set value from int. +*/ + +dditem& dditem::from_int( int value ) +{ + _value.from_int( value ); + return *this; +} + + +/** + Set value from size_t. +*/ + +dditem& dditem::from_size_t( size_t value ) +{ + _value.from_size_t( value ); + return *this; +} + + +/** + Set value from double. +*/ + +dditem& dditem::from_double( double value ) +{ + _value.from_double( value ); + return *this; +} + + +/** + Set value from string. +*/ + +dditem& dditem::from_string( const ddstring& value, size_t asize ) +{ + _value = value; + return *this; + // FIX! + (void) asize; +} + + +/** + Setzt den Feldwert an der Position key, falls key vorhanden. +*/ + +dditem& dditem::set_field_value( const ddstring& key, const ddstring& value ) +{ + if( contains_key( key ) ) + (*this)[ key ].from_string( value ); + return *this; +} + + +/** + Setzt den Feldwert an der Position key, falls key vorhanden. +*/ + +dditem& dditem::set_field_value( const ddstring& key, int value ) +{ + if( contains_key( key ) ) + (*this)[ key ].from_int( value ); + return *this; +} + + +/** + Set link data. + @prototype only. Calls @see from_string( value, clear_style ) + @see dditemlink +*/ + +dditem& dditem::set_link( const ddstring& value, const ddstring& link, const ddstring& lclass, const ddstring& title ) +{ + return from_string( value ); + (void) link; + (void) lclass; + (void) title; +} + + +/** + Clear this items value. + @see get_value(); + @see from_bool() et al. +*/ + +dditem& dditem::clear_value() +{ + _value = ""; + return *this; +} + + +/** + Sichtbarkeit ein- und ausschalten. +*/ + +dditem& dditem::set_visible( bool visible ) +{ + _value = visible ? "" : " "; + return *this; +} + + +/** + Clear all child items: call @see clear_value() for all childitem that have + a name. This is usually used to clear input forms. + Prototype only, throws base call exception. +*/ + +dditem& dditem::clear_children() +{ + throw runtime_error("dditem::clear_children(): base call!"); +} + + +/** + Synchronize the datafields of the cgi object with the fields of + this item. + @see ddwebcgi + (Prototype implementation only. throws runtime_error. +*/ + +void dditem::sync( ddwebcgi& cgi ) +{ + throw runtime_error("dditem::sync: base call!"); + (void) cgi; +} + + + +/** + +*/ + +dd_result dditem::flush_content( ddwebpage& pagelet ) +{ + // check accessrights + //if( !( get_access() & pagelet.get_user_id().get_access_rights() ) ) + // return 1; + if( !_param.empty() ) + return pagelet.execute_call( _param, *this ); + pagelet.get_buffer().append( to_string() ); + return rs_ok; +} + + +/** + dummy. + @see dditemtreebase +*/ + +dd_result dditem::flush_children( ddwebpage& pagelet, int from, int to ) +{ + return rs_ok; + // avoid warnings + (void) pagelet; + (void) from; + (void) to; +} + + +dd_result dditem::flush_content( ddwebpage& pagelet, ddstring& target ) +{ + if( !_param.empty() ) + return pagelet.execute_call( _param, *this ); + target.append( to_string() ); + return rs_ok; +} + + +dd_result dditem::flush_children( ddwebpage& pagelet, ddstring& target, int from, int to ) +{ + return rs_ok; + // avoid warnings + (void) target; + (void) from; + (void) to; +} + + +/** + @return the current value. +*/ + +const ddstring& dditem::get_value() const +{ + return _value; +} + + +/** + @return the call function or value. +*/ + +const ddstring& dditem::get_param() const +{ + return _param; +} + + +/** + @return the call function or value. +*/ + +void dditem::set_param( const ddstring& param ) +{ + // hack: if param contains a parameter, + // it is stored in _value + size_t pos = param.find( '#' ); + if( pos != ddstring::npos ) + { + _param = param.substr( 0, pos ); + _value = param.substr( pos+1 ); + } + else + { + _param = param; + } + +} + + +/** + Create a string representation of this item. + @return _prefix + get_value() + _suffix. +*/ + +ddstring dditem::to_string() const +{ + return get_value(); +} + + +/** + @return the current value as char* +*/ + +const char* dditem::data() const +{ + return _value.c_str(); +} + + +/** + @return the index. + Prototype only. +*/ + +const ddmapindex& dditem::get_index() const +{ + throw runtime_error(" dditem::get_index(): base call!"); +} + + +/** + @return the internal index of an entry or -1 when an entry 'key' does not exists. + Prototype only. +*/ + +int dditem::index_of( const ddstring& key ) const +{ + throw runtime_error("dditem::index_of: base call!"); + return -1; + // avoid warnings + (void) key; +} + + +/** + @return true when an entry 'key' exists. + Prototype only. +*/ + +bool dditem::contains_key( const ddstring& key ) const +{ + return false; + // avoid warnings + (void) key; +} + + +/** + +*/ + +ddstring dditem::join() const +{ + return get_value(); +} + + +/** + Dump this object to std::out for debugging purposes. +*/ + +void dditem::dump() const +{ + cout << "item: name:" << get_name() << "; value: " << get_value() << endl; +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Default constructor. +*/ + +dditemcheckbox::dditemcheckbox() +{ + +} + + +/** + Copy constructor. +*/ + +dditemcheckbox::dditemcheckbox( const dditemcheckbox& src ) +{ + *this = src; +} + + +/** + Default constructor. +*/ + +dditemcheckbox::dditemcheckbox( const ddstring& name ) +: dditem( name ) +{ + + +} + + +/** + Default constructor. +*/ + +dditemcheckbox::dditemcheckbox( const ddstring& name, const ddstring& value, const ddstring& call, size_t access ) +: dditem( name, value, call ) +{ + +} + + +/** + Destructor. +*/ + +dditemcheckbox::~dditemcheckbox() +{ + +} + + +/** + @return a deep copy of this itemcheckbox. +*/ + +dditem* dditemcheckbox::clone() const +{ + return new dditemcheckbox( _name, _value, _param, _access ); +} + + +/** + Set value from bool. +*/ + +dditem& dditemcheckbox::from_bool( bool value ) +{ + _value = value ? "checked" : ""; + return *this; +} + + +/** + Set value from int. +*/ + +dditem& dditemcheckbox::from_int( int value ) +{ + _value = value ? "checked" : ""; + return *this; +} + + +/** + Set value from size_t. +*/ + +dditem& dditemcheckbox::from_size_t( size_t value ) +{ + _value = value ? "checked" : ""; + return *this; +} + + +/** + Set value from double. +*/ + +dditem& dditemcheckbox::from_double( double value ) +{ + _value = value ? "checked" : ""; + return *this; +} + + +/** + Set value from string. +*/ + +dditem& dditemcheckbox::from_string( const ddstring& value, size_t asize ) +{ + _value = value.empty() ? "" : "checked"; + return *this; + (void) asize; +} diff --git a/supportware/src/dditem.h b/supportware/src/dditem.h new file mode 100644 index 0000000..8a97e2d --- /dev/null +++ b/supportware/src/dditem.h @@ -0,0 +1,153 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDITEM_H +#define DDITEM_H + +#include +#include + + +using namespace std; + + +/// dditem +/** + +*/ + +class ddwebcgi; +class ddwebpage; +class dditem; + + +typedef ddmapptr dditemptrmap; + +class dditem : public ddbasenamedobject +{ + +public: + + dditem(); + dditem( const ddstring& name ); + dditem( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0 ); + + dditem( const dditem& src ); + dditem& operator=( const dditem& src ); + virtual ~dditem(); + + // factory aspekt + virtual dditem* clone() const; + + // kind aspekt + virtual size_t size(); + virtual dditem& operator[]( const ddstring& key ); + virtual dditem& operator[]( size_t index ); + virtual const dditem& operator[]( const ddstring& key ) const; + virtual const dditem& operator[]( size_t index ) const; + virtual void add_child( dditem* item ); + + virtual bool contains_key( const ddstring& key ) const; + virtual int index_of( const ddstring& key ) const; + + // wert aspekt + virtual dditem& from_bool( bool value ); + virtual dditem& from_int( int value ); + virtual dditem& from_size_t( size_t value ); + virtual dditem& from_double( double value ); + virtual dditem& from_string( const ddstring& value, size_t asize = 0 ); + virtual dditem& set_field_value( const ddstring& key, const ddstring& value ); + virtual dditem& set_field_value( const ddstring& key, int value ); + + virtual dditem& set_link( const ddstring& value, const ddstring& link, const ddstring& lclass="", const ddstring& title="" ); + + virtual const ddstring& get_value() const; + virtual const ddstring& get_param() const; + virtual void set_param( const ddstring& call ); + + virtual dditem& set_visible( bool visible ); + virtual dditem& clear_value(); + virtual dditem& clear_children(); + virtual ddstring to_string() const; + virtual const char* data() const; + + // sections + virtual const ddmapindex& get_index() const; + + // io aspekt + virtual void sync( ddwebcgi& cgi ); + virtual dd_result flush_content ( ddwebpage& pagelet ); + virtual dd_result flush_children( ddwebpage& pagelet, int from=0, int to=0 ); + virtual dd_result flush_content ( ddwebpage& pagelet, ddstring& target ); + virtual dd_result flush_children( ddwebpage& pagelet, ddstring& target, int from=0, int to=0 ); + + // Zugriffsaspekt + virtual size_t get_access(); + virtual void set_access( size_t access ); + + virtual ddstring join() const; + virtual void dump() const; + +protected: + + size_t _access; + ddstring _value; + ddstring _param; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +class dditemcheckbox : public dditem +{ + +friend class dditemboxstyle; + +public: + + dditemcheckbox(); + dditemcheckbox( const ddstring& name ); + dditemcheckbox( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0 ); + + dditemcheckbox( const dditemcheckbox& src ); + virtual ~dditemcheckbox(); + + // factory aspekt + virtual dditem* clone() const; + // wert aspekt + virtual dditem& from_bool( bool value ); + virtual dditem& from_int( int value ); + virtual dditem& from_size_t( size_t value ); + virtual dditem& from_double( double value ); + virtual dditem& from_string( const ddstring& value, size_t asize = 0 ); + +}; + + + + +#endif diff --git a/supportware/src/dditemfactory.cpp b/supportware/src/dditemfactory.cpp new file mode 100644 index 0000000..e881a9c --- /dev/null +++ b/supportware/src/dditemfactory.cpp @@ -0,0 +1,127 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include + + +/** + Constructor. Erzeugt klonier-bare dummies für die Faktory. +*/ + +dditemfactory::dditemfactory() +{ + _items.add_by_key( "dp_value", new dditem ("(factory dummy)") ); + _items.add_by_key( "dp_call", new dditem ("(factory dummy)") ); + _items.add_by_key( "dp_section", new dditemtree ("(factory dummy)") ); + _items.add_by_key( "dp_link", new dditemlink ("(factory dummy)") ); + _items.add_by_key( "dp_item", new dditemtree ("(factory dummy)") ); + _items.add_by_key( "dp_system", new dditemsysval ("(factory dummy)") ); + _items.add_by_key( "dp_translate", new dditemtrval ("(factory dummy)") ); + _items.add_by_key( "dp_checkbox", new dditemcheckbox ("(factory dummy)") ); + _items.add_by_key( "dp_select", new dditemselect ("(factory dummy)") ); +} + + +/** + Destructor. +*/ + +dditemfactory::~dditemfactory() +{ + +} + + +/** + @return Gibt eine Referenz auf den accessmanager zurück. + @see ddaccessmanager +*/ + +ddaccessmanager& dditemfactory::get_access_manager() +{ + return _accessmanager; +} + + + + +/** + Erzeugt ein item. +*/ + +dditem* dditemfactory::create_item( dditemset& itemset, ddstringrow& row, bool& is_section ) +{ + // no type given? + if( row.size()<2 ) + row.add( "dp_value" ); + ddstring file; + size_t hash = row[1].find( '#' ); + if( hash != ddstring::npos ) + { + file = row[1].substr( hash+1 ); + row[1] = row[1].substr( 0, hash ); + } + + //dummy lookup + int i = _items.index_of( row[1] ); + // not found, lookup parent + if( i<0 ) + return 0; + if( row[1] == "dp_section" ) + is_section = true; + + dditem* item = _items[i]->clone(); + item->set_name( row[0] ); + + // FIX! + // hier müssen mehr parameter rein + // besser: name:type( wert1, wert2 ... ) + + // der dritte wert ist entweder die Callback-Funktion + // oder ein default wert. + + // PFUSCH! + + if( row.size() > 2 ) + { + if( row[1] == "dp_value" || row[1] == "dp_checkbox" ) + item->from_string( row[2] ); + else if( row[2] != "dp_access" ) + item->set_param( row[2] ); + } + if( !file.empty() ) + itemset.create_from_extend( (dditemtree&) *item, file ); + + return config_item( row, item ); + +} + + +/** + Setzt die Zugriffsrechte (admin only etc. ) für ein Item. +*/ + +dditem* dditemfactory::config_item( ddstringrow& row, dditem* item ) +{ + // setup access rights + int xx = row.size(); + if( xx > 3 && row[xx-2] == "dp_access" ) + item->set_access( get_access_manager()[ row[xx-1] ] ); + return item; +} + + diff --git a/supportware/src/dditemfactory.h b/supportware/src/dditemfactory.h new file mode 100644 index 0000000..087c13a --- /dev/null +++ b/supportware/src/dditemfactory.h @@ -0,0 +1,51 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDITEMFACTORY_H +#define DDITEMFACTORY_H + +#include +#include +#include + +class ddconfigsection; +class dditemtree; +class dditemset; +class dddioinfo; + +/// dditemfactory: eine Factory für items +/** + +*/ + +class dditemfactory : public ddbaseobject +{ + +public: + + dditemfactory(); + virtual ~dditemfactory(); + + ddaccessmanager& get_access_manager(); + dditem* create_item( dditemset& itemset, ddstringrow& row, bool& is_section ); + dditem* config_item( ddstringrow& row, dditem* item ); + +protected: + + dditemptrmap _items; + ddaccessmanager _accessmanager; + +}; + +#endif diff --git a/supportware/src/dditemlink.cpp b/supportware/src/dditemlink.cpp new file mode 100644 index 0000000..4cd8bdf --- /dev/null +++ b/supportware/src/dditemlink.cpp @@ -0,0 +1,148 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#include +#include +#include + +using namespace std; + + +/** + Default constructor. +*/ + +dditemlink::dditemlink() +{ + +} + +/** + Default constructor. +*/ + +dditemlink::dditemlink( const ddstring& name ) +: dditem( name ) +{ + + +} + +dditemlink::dditemlink( const ddstring& name, const ddstring& value, const ddstring& call, size_t access ) +: dditem( name, value, call, access ) +{ + +} +/** + Copy constructor. +*/ + +dditemlink::dditemlink( const dditemlink& src ) +: dditem() +{ + *this = src; +} + + +/** + Assignment operator. +*/ + +dditemlink& dditemlink::operator=( const dditemlink& src ) +{ + if( this == &src ) + return *this; + + _access = src._access; + _name = src._name; + _value = src._value; + _link = src._link; + _class = src._class; + _title = src._title; + + return *this; +} + + + +/** + Destructor. +*/ + +dditemlink::~dditemlink() +{ + +} + + +dditem* dditemlink::clone() const +{ + dditemlink* newlink = new dditemlink( _name, _value, _param ); + newlink->_link = _link; + newlink->_class = _class; + newlink->_title = _title; + return newlink; +} + + + +dditem& dditemlink::set_link( const ddstring& value, const ddstring& link, const ddstring& lclass, const ddstring& title ) +{ + _link = link; + _class = lclass; + _title = title; + return from_string( value ); +} + + +/** + Create a string representation of this item. + If get_link() is empty, dditem::to_string is returned. + Else, a html link is created. +*/ + +ddstring dditemlink::to_string() const +{ + if( _link.empty() ) + return dditem::to_string(); + + // prefix & link part. + ddstring result = " + + +/// dditemlink: ein item, das sich als html-link rendern lässt +/** + FIX! das gehört auch in den renderer bzw ins web widget set. +*/ + +class dditemlink : public dditem +{ + +public: + + dditemlink(); + + dditemlink( const ddstring& name ); + dditemlink( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0 ); + dditemlink( const dditemlink& src ); + dditemlink& operator=( const dditemlink& src ); + virtual ~dditemlink(); + + // factory aspekt + dditem* clone() const; + + // werte + dditem& set_link( const ddstring& value, const ddstring& link, const ddstring& lclass="", const ddstring& title="" ); + + + ddstring to_string() const; + + +protected: + + ddstring _link, _class, _title; + +}; + +#endif diff --git a/supportware/src/dditemset.cpp b/supportware/src/dditemset.cpp new file mode 100644 index 0000000..c229b35 --- /dev/null +++ b/supportware/src/dditemset.cpp @@ -0,0 +1,215 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include + +dditemset::dditemset() +{ + +} + + +dditemset::~dditemset() +{ + throw runtime_error( "FIX ME: dditemset::~dditemset()" ); + /* + dditemset::iterator pos = _factory.begin(); + for( ; pos != _factory.end(); ++pos ) + delete (*pos).second; + */ +} + + +/** + @return a deep copy of this item: All child items are alse cloned. +*/ + +dditem* dditemset::clone() const +{ + dditemset* item = new dditemset(); + // entry-wise clone + for( int i=0; i<_data.size(); ++i ) + item->add_child( _data[i]->clone() ); + return item; +} + + +void dditemset::init_items( const ddstring& basepath, const ddstring& sitepath ) +{ + _dirinfo.load_files( basepath, ".html", true ); + if( !sitepath.empty() ) + _dirinfo.load_files( sitepath, ".html", true ); + + size_t max = _dirinfo.size(); + if( !max ) + return; + + //_dirinfo.dump(); + + for( size_t i=0; i ende suchen + if( end1 != ddstring::npos ) + { + end2 = end1+5; + end3 = src.find( DDPATEND, end2 ); + // ende auch gefunden. + if( end3 != ddstring::npos ) + { + // Fülleintrag + current.add_child( "", src.substr( beg, end1-beg ) ); + // Ist der key-string nicht leer? + if( end2 != end3 ) + { + end3 += 3; + ddstring key = src.substr( end2,end3-end2-3 ); + create_from_key( current, key, src, end3 ); + } + else + { + end3 += 3; + // Fülleintrag + current.add_child( "", src.substr(end1,end3-end1) ); + } + beg = end3; + + } + else // ende nicht gefunden + { + // Fülleintrag + current.add_child( "", src.substr( beg, end2-beg ) ); + beg = end2; + } + + } + // anfang nicht gefunden + else + { + // Fülleintrag + current.add_child( "", src.substr( beg ) ); + break; + } + + } // while + +} + + +bool dditemset::create_from_key( dditemtree& current, const ddstring& key, const ddstring& src, size_t& end ) +{ + + ddstringrow tmp( key, ":" ) ; + + if( tmp.size() == 0 ) + return false; + + // es wird geerbt + if( tmp.size() == 2 && tmp[0] == "extends" ) + return create_from_extend( current, tmp[1] ); + + // es ist ein tree... + if( tmp.size() > 2 && tmp[1] == "dp_item" ) + { + + int i = _dirinfo.index_of( tmp[2] ); + if( i<0 ) + return log_error( "dditemset::create_from_key: not found --" + tmp[0] + "-- : --" + tmp[2] + "--" ); + if( _dirinfo[i].load_file_content()<0 ) + return log_error( "dditemset::create_from_file: not found" + _dirinfo[i].get_full_name() ); + + // sehr fragwürdig! + dditemtree* newresult = new dditemtree( tmp[0] ); + _factory.config_item( tmp, newresult ); + current.add_child( newresult ); + create_from_string( *newresult, _dirinfo[i].get_file_content() ); + return true; + } + + // alle anderen typen... + bool is_section = false; + dditem* newitem = _factory.create_item( *this, tmp, is_section ); + if(!newitem) + return false; + current.add_child( newitem ); + + if( !is_section ) + return true; + + // es ist eine section: section ende finden + ddstring seek = ddstring(DDPATBEG)+"/"+tmp[0]+DDPATEND; + size_t sec = src.find( seek, end ); + // gefunden + if( sec != ddstring::npos ) + { + create_from_string( (dditemtree&) *newitem, src.substr( end, sec-end ) ); + end = sec+seek.size(); + } + else + { + cout << "dditemset::create_by_key: section end not found:" << seek << end; + } + return true; +} + + +bool dditemset::create_from_extend( dditemtree& current, const ddstring& key ) +{ + // elternobject gibts noch nicht + if( index_of( key ) < 0 ) + { + // gibts die elterndatei? + int index = _dirinfo.index_of( key ); + // elternobjekt erzeugen + if( index>-1 ) + create_from_file( *this, key, _dirinfo[index] ); + } // elternobject laden + + // elternobject müsste es jetzt geben + int i1 = index_of( key ); + if( i1 >=0 ) + { + dditem& parent = (*this)[ i1 ]; + // elternobject entry-wise klonen. + for( size_t i=0; i +#include + + +using namespace std; + + +/// dditemset: enthält alle templates einer site +/** + FIX! Neu ladbar machen! +*/ + + +class dditemset : public dditemtree +{ + +public: + + dditemset(); + virtual ~dditemset(); + dditem* clone() const; + + // erzeugung + void init_items( const ddstring& basepath, const ddstring& sitepath="" ); + + bool create_from_extend( dditemtree& current, const ddstring& key ); + +protected: + + void create_from_string( dditemtree& current, const ddstring& src ); + bool create_from_key( dditemtree& current, const ddstring& key, const ddstring& src, size_t& end ); + void create_from_file( dditemtree& current, const ddstring& key, ddioinfo& file ); + + ddioinfo _dirinfo; + dditemfactory _factory; + +}; + +#endif diff --git a/supportware/src/dditemsysval.cpp b/supportware/src/dditemsysval.cpp new file mode 100644 index 0000000..1162245 --- /dev/null +++ b/supportware/src/dditemsysval.cpp @@ -0,0 +1,553 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +/** + Constructor. +*/ + +dditemsysval::dditemsysval() +: _mode( 0 ) +{ + +} + + +/** + Standard constructor. + @param name the name of this item. +*/ + +dditemsysval::dditemsysval( const ddstring& name ) +: dditem( name ), _mode( 0 ) +{ + +} + + +/** + Standard constructor. + @param mode the mode of this item. +*/ + +dditemsysval::dditemsysval( size_t mode ) +: _mode( mode ) +{ + +} + + +/** + Standard constructor. + @param name the name of this item. + @param value the value of this item. + ... +*/ + +dditemsysval::dditemsysval( const ddstring& name, const ddstring& value, const ddstring& call, size_t access, size_t mode ) +: dditem( name, value, call, access ), _mode( mode ) +{ + +} + + + +/** + Destructor. +*/ + +dditemsysval::~dditemsysval() +{ + +} + + +/** + Set the call function or value. +*/ + +void dditemsysval::set_param( const ddstring& param ) +{ + _param = param; + // ugly, FIX, kann man da eine statische map draus machen? + if( _param == "date" ) + _mode = dditemsysval::sysval_date; + else if( _param == "time" ) + _mode = dditemsysval::sysval_time; + else if( _param == "datetime" ) + _mode = dditemsysval::sysval_datetime; + else if( _param == "users" ) + _mode = dditemsysval::sysval_users; + else if( _param == "members" ) + _mode = dditemsysval::sysval_members; + else if( _param == "guestnick" ) + _mode = dditemsysval::sysval_guestnick; + else if( _param == "nickname" ) + _mode = dditemsysval::sysval_nickname; + else if( _param == "nickmail" ) + _mode = dditemsysval::sysval_nickmail; + else if( _param == "version" ) + _mode = dditemsysval::sysval_version; + else if( _param == "uid" ) + _mode = dditemsysval::sysval_uid; + else if( _param == "spacer" ) + _mode = dditemsysval::sysval_spacer; + else if( _param == "starttime" ) + _mode = dditemsysval::sysval_starttime; + else if( _param == "referer" ) + _mode = dditemsysval::sysval_referer; + else if( _param == "pagetitle" ) + _mode = dditemsysval::sysval_pagetitle; + else if( _param == "pagetype" ) + _mode = dditemsysval::sysval_pagetype; + else if( _param == "acceptterms" ) + _mode = dditemsysval::sysval_acceptterms; + else if( _param == "mailalert" ) + _mode = dditemsysval::sysval_mailalert; + else if( _param == "masterdomain" ) + _mode = dditemsysval::sysval_masterdomain; + else if( _param == "memberscore" ) + _mode = dditemsysval::sysval_memberscore; + else if( _param == "pagelocation" ) + _mode = dditemsysval::sysval_pageloction; + else if( _param == "groupid" ) + _mode = dditemsysval::sysval_groupid; + else if( _param == "groupname" ) + _mode = dditemsysval::sysval_groupname; + else if( _param == "groupkeys" ) + _mode = dditemsysval::sysval_groupkeys; + else if( _param == "groupdescription" ) + _mode = dditemsysval::sysval_groupdescription; + else if( _param == "groupicon" ) + _mode = dditemsysval::sysval_groupicon; + else if( _param == "groupiconbig" ) + _mode = dditemsysval::sysval_groupiconbig; + else if( _param == "entryid" ) + _mode = dditemsysval::sysval_entryid; + else if( _param == "subject" ) + _mode = dditemsysval::sysval_subject; + else if( _param == "domain" ) + _mode = dditemsysval::sysval_domain; + else if( _param == "breadcrump" ) + _mode = dditemsysval::sysval_breadcrump; + else if( _param == "navipage" ) + _mode = dditemsysval::sysval_navipage; + else if( _param == "jumplast" ) + _mode = dditemsysval::sysval_jumplast; + else if( _param == "vgwort" ) + _mode = dditemsysval::sysval_vgwort; + else if( _param == "imageid" ) + _mode = dditemsysval::sysval_imageid; + else if( _param == "imagepath" ) + _mode = dditemsysval::sysval_imagepath; + + +} + + +/** + Anhand des mode-flags wird der inhalt von + '_value' gesetzt. +*/ + +void dditemsysval::create_value_content( ddwebpage& pagelet ) +{ + // check accessrights + //?? + //if( !( get_access() & pagelet.get_user_id().get_access_rights() ) ) + // return 1; + + // create content depending on mode + + // ok, das ist redundant: die werte werden + // nach _value kopiert und dann erst in den buffer geschrieben. + + switch( _mode ) + { + + case dditemsysval::sysval_time : + + _value = ddbasetime::now().to_string(); + break; + + case dditemsysval::sysval_date : + + // 17.12.1969 + _value = ddbasedate::now().to_string( "%d.%m.%Y" ); + break; + + // 17.12.1969, 15:34 + case dditemsysval::sysval_datetime : + + _value = ddbasedate::now().to_string( "%d.%m.%Y, %R"); + break; + + case dditemsysval::sysval_users : + + _value.from_int( pagelet.get_session_manager().session_count() ); + break; + + case dditemsysval::sysval_members : + + _value.from_int( pagelet.get_user_manager().size() ); + break; + + + case dditemsysval::sysval_guestnick : + + // hack + if( pagelet.get_user_id().is_member() ) + _value = "" + pagelet.get_user_id().get_nick_name() + ""; + else + _value = pagelet.get_user_id().get_nick_name(); + break; + + case dditemsysval::sysval_nickname : + + // ?? + // nur setzen, wenn noch nicht gesetzt + _value = _value == DDGUESTNICK ? "" : pagelet.get_user_id().get_nick_name(); + break; + + case dditemsysval::sysval_nickmail : + + // ?? seiteneffekte?? + // nur setzen, wenn noch nicht gesetzt + //if( _value == "" ) + //if( pagelet.get_user_id().is_member() ) + _value = pagelet.get_user_id().get_nick_mail(); + break; + + case dditemsysval::sysval_version : + + _value = DDVERSION; + break; + + case dditemsysval::sysval_uid : + + _value = pagelet.get_user_id().get_id(); + break; + + case dditemsysval::sysval_spacer : + + _value = "
                                                "; + break; + + case dditemsysval::sysval_starttime : + + _value = pagelet.get_site().get_server().get_start_time(); + break; + + case dditemsysval::sysval_referer : + + // YEAH YEAH YEAH: Kultiger Mörderhack: der gesamte referer-request + // wird escaped und in ein cgi-feld geklemmt. + + // FIX zusammenbauen aus raw_path und cgi _path + // NEIN DAS IST WAS ANDERES weil hier auch ? & escaped werden. + // überprüfen! + + _value = pagelet.get_connection().get_request().get_raw_path_escaped(); + break; + + case dditemsysval::sysval_pagetitle : + + _value = pagelet.context.pagetitle; + break; + + case dditemsysval::sysval_pagetype : + + if( !pagelet.context.pagetype.empty() ) + _value = pagelet.context.pagetype; + break; + + case dditemsysval::sysval_acceptterms : + + _value = pagelet.get_user_id().get_accepting_terms_flag() ? "checked" : "" ; + break; + + case dditemsysval::sysval_mailalert : + + _value = pagelet.get_user_id().get_mail_alert_flag() ? "checked" : "" ; + break; + + case dditemsysval::sysval_masterdomain : + + _value = pagelet.get_site().get_master_domain(); + break; + + case dditemsysval::sysval_memberscore : + + _value.from_size_t( pagelet.get_user_id().get_rank_score() ); + break; + + case dditemsysval::sysval_pageloction : + + // die location ist der fullpath ohne schnickschnack + _value = pagelet.get_full_path(); + if( _value[ _value.size() - 1 ] == '/' ) + _value.resize( _value.size() - 1 ); + break; + + case dditemsysval::sysval_groupid : + + _value = pagelet.context.idgrp; + break; + + case dditemsysval::sysval_groupname : + + _value = pagelet.get_groups()[pagelet.context.idgrp].get_name(); + break; + + case dditemsysval::sysval_groupkeys : + + _value = pagelet.get_groups()[pagelet.context.idgrp].get_keys(); + break; + + case dditemsysval::sysval_groupdescription : + + _value = pagelet.get_groups()[pagelet.context.idgrp].get_description(); + break; + + + case dditemsysval::sysval_groupicon : + + _value = pagelet.get_groups()[pagelet.context.idgrp].get_icon_big(); + break; + + case dditemsysval::sysval_groupiconbig : + + _value = pagelet.get_groups()[pagelet.context.idgrp].get_icon_big(); + break; + + case dditemsysval::sysval_entryid : + + _value = pagelet.context.id; + break; + + case dditemsysval::sysval_subject : + + _value = pagelet.context.subject; + break; + + case dditemsysval::sysval_domain : + + _value = pagelet.get_site().get_name(); + if( _value == "computer" ) + _value = "www"; + break; + + case dditemsysval::sysval_breadcrump : + + _value = "(--breadcrump--)";//pagelet.context.breadcrump; + break; + + case dditemsysval::sysval_navipage : + + // "Seite 1" nicht anzeigen, da das sonst überall steht + // und auch in den servicelinks nix anzeigen + + if( pagelet.context.navipage && ( pagelet.get_cgi().empty() || pagelet.get_cgi().contains_key( "page" ) ) ) + _value = "Seite " + ddstrutil::from_size_t( pagelet.context.navipage + 1 ) + " "; + else + _value = ""; + break; + + case dditemsysval::sysval_jumplast : + + _value = pagelet.get_jump_last_url(); + //_value = ""; + break; + + case dditemsysval::sysval_vgwort : + + _value = pagelet.get_vg_wort_tag(); + break; + + case dditemsysval::sysval_imageid : + + // falls schon mit einträgen hantiert wurde, sollte das hier + // automatisch belegt sein + _value = pagelet.get_user_id().get_property( DDENTRYID ); + // muss '0' wg. pfad da sonst: /xx//moo.jpg + if( _value.empty() ) + _value = "0"; + + break; + + case dditemsysval::sysval_imagepath : + + _value = pagelet.get_image_path(); + if( ( pagelet.get_split_path()[0] != "member" ) ) + { + if( pagelet.get_user_id().get_property( DDENTRYID ).empty() ) + _value += "0"; + else + _value += pagelet.get_user_id().get_property( DDENTRYID ); + } + break; + + } + + +} + + + +/** + Inhalt in den pagelet-buffer schreiben. + @see create_value_content() +*/ + +dd_result dditemsysval::flush_content( ddwebpage& pagelet ) +{ + create_value_content( pagelet ); + pagelet.get_buffer().append( to_string() ); + return rs_ok; + +} + + +/** + Inhalt in einen string schreiben. + @see create_value_content() +*/ + +dd_result dditemsysval::flush_content( ddwebpage& pagelet, ddstring& target ) +{ + create_value_content( pagelet ); + target.append( to_string() ); + return rs_ok; +} + + +/** + Einen Clon erzeugen +*/ + +dditem* dditemsysval::clone() const +{ + return new dditemsysval( _name, _value, _param, _access, _mode ); +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Constructor. +*/ + +dditemselect::dditemselect() +{ + +} + + +/** + Standard constructor. + @param name the name of this item. +*/ + +dditemselect::dditemselect( const ddstring& name ) +: dditem( name ) +{ + +} + + +/** + Standard constructor. + @param name the name of this item. + @param value the value of this item. + ... +*/ + +dditemselect::dditemselect( const ddstring& name, const ddstring& value, const ddstring& call, size_t access ) +: dditem( name, value, call, access ) +{ + +} + + + +/** + Destructor. +*/ + +dditemselect::~dditemselect() +{ + +} + + +/** + Inhalt in den pagelet-buffer schreiben. + @see create_value_content() +*/ + +dd_result dditemselect::flush_content( ddwebpage& pagelet ) +{ + bool is_admin = pagelet.get_user_id().is_admin(); + ddstring result = pagelet.get_groups().create_group_selector( _value , is_admin ); + pagelet.get_buffer().append( result ); + return rs_ok; +} + + +/** + Inhalt in einen string schreiben. + @see create_value_content() +*/ + +dd_result dditemselect::flush_content( ddwebpage& pagelet, ddstring& target ) +{ + bool is_admin = pagelet.get_user_id().is_admin(); + ddstring result = pagelet.get_groups().create_group_selector( _value , is_admin ); + target.append( result ); + return rs_ok; +} + + +/** + Einen Clon erzeugen +*/ + +dditem* dditemselect::clone() const +{ + return new dditemselect( _name, _value, _param, _access ); +} + diff --git a/supportware/src/dditemsysval.h b/supportware/src/dditemsysval.h new file mode 100644 index 0000000..6b806ad --- /dev/null +++ b/supportware/src/dditemsysval.h @@ -0,0 +1,137 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDITEMSYSVAL_H +#define DDITEMSYSVAL_H + +#include + +/// dditemsysval: ein item welches systemvariablen (datum, uid etc) enthält +/** + +*/ + +class dditemsysval : public dditem +{ + +public: + + enum dd_item_sysval + { + sysval_time = 1, + sysval_date, + sysval_datetime, + sysval_users, + sysval_members, + sysval_guestnick, + sysval_nickname, + sysval_nickmail, + sysval_version, + sysval_uid, + sysval_spacer, + sysval_starttime, + sysval_referer, + sysval_pagetitle, + sysval_pagetype, + sysval_acceptterms, + sysval_mailalert, + sysval_masterdomain, + sysval_memberscore, + sysval_pageloction, + sysval_groupid, + sysval_groupname, + sysval_groupkeys, + sysval_groupdescription, + sysval_groupicon, + sysval_groupiconbig, + sysval_entryid, + sysval_subject, + sysval_domain, + sysval_breadcrump, + sysval_navipage, + sysval_jumplast, + sysval_vgwort, + sysval_imageid, + sysval_imagepath + }; + + dditemsysval(); + dditemsysval( const ddstring& name ); + dditemsysval( size_t mode ); + dditemsysval( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0, size_t mode=0 ); + + virtual ~dditemsysval(); + + // factory aspekt + virtual dditem* clone() const; + virtual void set_param( const ddstring& call ); + virtual dd_result flush_content( ddwebpage& pagelet ); + virtual dd_result flush_content( ddwebpage& pagelet, ddstring& target ); + +protected: + + virtual void create_value_content( ddwebpage& pagelet ); + + size_t _mode; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + + +/// dditemselect: ein item welches systemvariablen (datum, uid etc) enthält +/** + +*/ + +class dditemselect : public dditem +{ + +public: + + dditemselect(); + dditemselect( const ddstring& name ); + dditemselect( size_t mode ); + dditemselect( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0 ); + + virtual ~dditemselect(); + + // factory aspekt + dditem* clone() const; + dd_result flush_content( ddwebpage& pagelet ); + dd_result flush_content( ddwebpage& pagelet, ddstring& target ); + +}; + + + + + + + + +#endif diff --git a/supportware/src/dditemtree.cpp b/supportware/src/dditemtree.cpp new file mode 100644 index 0000000..aa099d1 --- /dev/null +++ b/supportware/src/dditemtree.cpp @@ -0,0 +1,290 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include + + +/** + Constructor. +*/ + +dditemtree::dditemtree() +{ +} + + +/** + Constructor. +*/ + +dditemtree::dditemtree( const ddstring& name ) +: dditem( name ) +{ +} + + + +/** + Standard Constructor. +*/ + +dditemtree::dditemtree( const ddstring& name, const ddstring& value, const ddstring& call, size_t access ) +: dditem( name ) +{ + _access = access; + _value = value; + _param = call; +} + + +/** + Destructor. +*/ + +dditemtree::~dditemtree() +{ + +} + + + + +/** + Clear all child items: call @see clear_value() for all childitem that have + a name. This is usually used to clear input forms. + Prototype only, throws base call exception. +*/ + +dditem& dditemtree::clear_children() +{ + const ddmapindex& idx = get_index(); + ddmapindex::const_iterator pos = idx.begin(); + for( ; pos != idx.end(); ++pos ) + _data.get_entry( (*pos).second ).clear_value(); + return *this; +} + + +/** + Create a string representation of this object. +*/ + +ddstring dditemtree::join() const +{ + ddstring result; + for( int i = 0; i < _data.size(); i++ ) + result.append ( _data[i]->to_string() ); + return result; +} + + +/** + Synchronize the datafields of the cgi object with the fields of + this item tree. + @see ddwebcgi + +*/ + +void dditemtree::sync( ddwebcgi& cgi ) +{ + const ddmapindex& index = get_index(); + ddmapindex::const_iterator pos = index.begin(); + + for( ; pos != index.end(); ++pos ) + { + + /* + über alle form felder, falls das feld _auch_ + im cgi vorhanden dann die daten übernehmen. + NEU: anderfalls das formfeld löschen + NEU: Nein, doch nicht + */ + + ddwebcgi::iterator pos2 = cgi.find( (*pos).first ); + if( pos2 != cgi.end() ) + _data[(*pos).second]->from_string( (*pos2).second ); + //else + // _data[(*pos).second]->clear_value(); + + } +} + + + + +/** + Create a string representation of this object. +*/ + +ddstring dditemtree::to_string() const +{ + // hack + if( !_value.empty() ) + return dditem::to_string(); + return join(); +} + + +/** + Dump this object to std::out for dubugging purposes. +*/ + +void dditemtree::dump() const +{ + cout << "itemtree: name: " << get_name() << endl; + for( int i=0; i<_data.size(); ++i ) + _data[i]->dump(); +} + + +/** + Create and add a child. +*/ + +void dditemtree::add_child( const ddstring& name, const ddstring& value ) +{ + add_child( new dditem( name, value ) ); +} + + +/** + Add a child. Kill old child, if existent. +*/ + +void dditemtree::add_child( dditem* child ) +{ + if( !child->get_name().empty() ) + { + // kill old child + int i = _data.index_of( child->get_name() ); + if( i>=0 ) + { + delete _data[i]; + _data[i] = child; + } + else + { + _data.add_by_key( child->get_name(), child ); + } + } + else + { + _data.add( child ); + } +} + + +/** + @return a deep copy of this item: All child items are alse cloned. +*/ + +dditem* dditemtree::clone() const +{ + dditemtree* item = new dditemtree( _name, _value, _param, _access ); + // entry-wise clone + for( int i=0; i<_data.size(); ++i ) + item->add_child( _data[i]->clone() ); + return item; +} + + +/** + Write the content of this item into the buffer of the given pagelet. + If the accessrights of the current user are not sufficient the access this + item, the content is silently ignored. + @return 1 on success, -1 on error. +*/ + +dd_result dditemtree::flush_content( ddwebpage& pagelet ) +{ + + // check accessrights + if( !( get_access() & pagelet.get_user_id().get_access_rights() ) ) + return rs_ok; + + if( !_param.empty() ) + return pagelet.execute_call( _param, *this ); + + // hack + if( !_value.empty() ) + { + pagelet.get_buffer().append( dditem::to_string() ); + return rs_ok; + } + return flush_children( pagelet ); +} + + +/** + Moo +*/ + +dd_result dditemtree::flush_children( ddwebpage& pagelet, int from, int to ) +{ + if( !to || to > _data.size() ) + to = _data.size(); + + for( int i = from; i < to; i++ ) + { + dd_result result = _data[i]->flush_content( pagelet ); + if( result <= 0 ) + return result; + } + return rs_ok; + +} + +dd_result dditemtree::flush_content( ddwebpage& pagelet, ddstring& target ) +{ + // check accessrights + if( !( get_access() & pagelet.get_user_id().get_access_rights() ) ) + return rs_ok; + + if( !_param.empty() ) + return pagelet.execute_call( _param, *this ); + + // hack + if( !_value.empty() ) + { + target.append( dditem::to_string() ); + return rs_ok; + } + return flush_children( pagelet, target ); +} + + +/** + FIX! vereinheitlichen! +*/ + +dd_result dditemtree::flush_children( ddwebpage& pagelet, ddstring& target, int from, int to ) +{ + if( !to || to > _data.size() ) + to = _data.size(); + + for( int i = from; i < to; i++ ) + { + dd_result result = _data[i]->flush_content( pagelet, target ); + if( result <= 0 ) + return result; + } + return rs_ok; +} + + + diff --git a/supportware/src/dditemtree.h b/supportware/src/dditemtree.h new file mode 100644 index 0000000..5b7463b --- /dev/null +++ b/supportware/src/dditemtree.h @@ -0,0 +1,151 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDITEMTREE_H +#define DDITEMTREE_H + +#include +#include +#include +#include + +using namespace std; + + +/// dditemtreebase: +/** + +*/ + + +class dditemset; + + +class dditemtree : public dditem +{ + +public: + + dditemtree(); + dditemtree( const ddstring& name ); + dditemtree( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0 ); + virtual ~dditemtree(); + + dditem* clone() const; + + dd_result flush_content ( ddwebpage& pagelet ); + dd_result flush_children( ddwebpage& pagelet, int from=0, int to=0 ); + dd_result flush_content ( ddwebpage& pagelet, ddstring& target ); + dd_result flush_children( ddwebpage& pagelet, ddstring& target, int from=0, int to=0 ); + + // kind aspekt + virtual dditem& clear_children(); + virtual ddstring to_string() const; + virtual ddstring join() const; + virtual void dump() const; + + virtual void add_child( const ddstring& name, const ddstring& value ); + virtual void add_child( dditem* item ); + + virtual void sync( ddwebcgi& cgi ); + + + /** + @return the number of child objects. + */ + + inline size_t size() + { + return _data.size(); + } + + + /** + Access by key. + */ + + inline dditem& operator[]( const ddstring& key ) + { + return _data.get_entry( key ); + } + + + /** + Access by index. + */ + + inline dditem& operator[]( size_t index ) + { + return _data.get_entry( index ); + } + + + /** + Access by key, const version. + */ + + inline const dditem& operator[]( const ddstring& key ) const + { + return _data.get_entry( key ); + } + + + /** + Returns true, when "key" exists. + */ + + inline bool contains_key( const ddstring& key ) const + { + return _data.contains_key( key ); + } + + + /** + Returns the internal index of "key" or -1. + */ + + inline int index_of( const ddstring& key ) const + { + return _data.index_of( key ); + } + + + /** + Access by index, const version. + */ + + inline const dditem& operator[]( size_t index ) const + { + return _data.get_entry( index ); + } + + + /** + Returns the index. + */ + + inline const ddmapindex& get_index() const + { + return _data.get_index(); + } + +protected: + + dditemptrmap _data; + + +}; + + +#endif diff --git a/supportware/src/dditemtrval.cpp b/supportware/src/dditemtrval.cpp new file mode 100644 index 0000000..4f2b977 --- /dev/null +++ b/supportware/src/dditemtrval.cpp @@ -0,0 +1,106 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include +#include + + +int dditemtrval::_thecount = 0; + +/** + +*/ + +dditemtrval::dditemtrval() +{ + +} + + +/** + +*/ + +dditemtrval::dditemtrval( const ddstring& name ) +: dditem( name ) +{ + +} + + +/** + +*/ + +dditemtrval::dditemtrval( const ddstring& name, const ddstring& value, const ddstring& call, size_t access ) +: dditem( name, value, call, access ) +{ + +} + + + +/** + +*/ + +dditemtrval::~dditemtrval() +{ + +} + +/** + +*/ + +dd_result dditemtrval::flush_content( ddwebpage& pagelet ) +{ + // check accessrights + //?? + //if( !( get_access() & pagelet.get_user_id().get_access_rights() ) ) + // return 1; + + // create content depending on call key + _value = pagelet.get_site().get_translation( get_param() ); + pagelet.get_buffer().append( to_string() ); // ex: + return rs_ok; + +} + + +/** + Create a unique namestat +*/ + +void dditemtrval::set_name( const ddstring& name ) +{ + _name = name + ddstrutil::from_int( _thecount++ ); +} + + +/** + +*/ + +dditem* dditemtrval::clone() const +{ + return new dditemtrval( _name, _value, _param, _access ); +} + diff --git a/supportware/src/dditemtrval.h b/supportware/src/dditemtrval.h new file mode 100644 index 0000000..791cd79 --- /dev/null +++ b/supportware/src/dditemtrval.h @@ -0,0 +1,46 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDITEMTRVAL_H +#define DDITEMTRVAL_H + +#include + +/// dditemtrval: +/** + +*/ + +class dditemtrval : public dditem +{ + +public: + + dditemtrval(); + dditemtrval( const ddstring& name ); + dditemtrval( const ddstring& name, const ddstring& value, const ddstring& call="", size_t access=0 ); + + virtual ~dditemtrval(); + + // factory aspekt + dditem* clone() const; + dd_result flush_content( ddwebpage& pagelet ); + void set_name( const ddstring& name ); + +private: + + static int _thecount; + +}; +#endif diff --git a/supportware/src/ddlogmanager.cpp b/supportware/src/ddlogmanager.cpp new file mode 100644 index 0000000..1649da8 --- /dev/null +++ b/supportware/src/ddlogmanager.cpp @@ -0,0 +1,248 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include +#include + + +/** + Constructor. +*/ + +ddlogdevice::ddlogdevice() +: _logmutex( 0 ) +{ + // create dummy streams + for( size_t i=0; i= ddlogdevice::lg_size || message.empty() ) + return; + + ddthreadautomutex tmplock( *_logmutex ); + + ddstring tmp; + // datum _nicht_ ins main log -> apache ELF logformat + // nicht schreddern + if( level != ddlogdevice::lg_main ) + tmp += "["+ddbasedate::now().to_string() + "] "; + + tmp += message; + + if( level == ddlogdevice::lg_error && errno != 0 ) + { + tmp += ": "; + tmp += ::strerror( errno ); + } + + // log message, if stream present + if( _streams[level] ) + (*_streams[level]) << tmp << endl; + + // log to screen also + cerr << tmp << endl; + +} + + +/** + daily log rotation. +*/ + +void ddlogdevice::rotate_log_streams( time_t lasttime ) +{ + + struct tm tm_now; + char buf[50]; + ::localtime_r( &lasttime, &tm_now ); + ::strftime( buf, 49, ".%F", &tm_now ); + + for( size_t i=0; iclose(); + // move ... + ddstring newname = _filenames[i]+buf; + newname += ".old"; + if( ::rename( _filenames[i].c_str(), newname.c_str() ) < 0 ) + { + ddstring erttxt = "ddlogdevice::rotate_log_streams: rename: " + _filenames[i] + ": " + newname; + perror( erttxt.c_str() ); + } + // reopen + _streams[i]->open( _filenames[i].c_str(), ios::out|ios::app ); + } + } + +} + + +/** + Init a log stream. +*/ + +void ddlogdevice::add_log_stream( int idx, const ddstring& name ) +{ + + + // name empty: no logging for this level + if( name.empty() ) + return; + ofstream* logger = new ofstream( name.c_str(), ios::out|ios::app ); + + // kein log_fatal, weil das logging ja nicht geht ;-) + // allerdings ist ein Fehler hier trotzdem eine + // exception wert. + + //if( !(*logger) ) + // throw runtime_error( "add_log_stream failed:" + name ); + + _streams[idx] = logger; + _filenames[idx] = name; + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Constructor. +*/ + +ddlogmanager::ddlogmanager() +{ + // das main log braucht keinen pfad und hat + // nur 2 streams: debug & error + _mainlog.add_log_stream( ddlogdevice::lg_debug, "livelogs/supportware.debug.log" ); + _mainlog.add_log_stream( ddlogdevice::lg_error, "livelogs/supportware.error.log" ); +} + + +/** + Destructor. +*/ + +ddlogmanager::~ddlogmanager() +{ + ddlogmap::iterator pos = _domainlogs.begin(); + for( ; pos != _domainlogs.end(); ++pos ) + delete (*pos).second; +} + + +/** + Schreibt eine message ins main log. +*/ + +void ddlogmanager::log_message( int level, const ddstring& message ) +{ + _mainlog.log_message( level, message ); +} + + +/** + Schreibt eine message in das angegebene domain log. +*/ + +void ddlogmanager::log_message( const ddstring& domainname, int level, const ddstring& message ) +{ + ddlogdevice* domainlog = _domainlogs[ domainname ]; + if( domainlog ) + domainlog->log_message( level, message ); +} + + +/** + daily log rotation. +*/ + +void ddlogmanager::rotate_log_streams( time_t lasttime ) +{ + _mainlog.rotate_log_streams( lasttime ); + ddlogmap::iterator pos = _domainlogs.begin(); + for( ; pos != _domainlogs.end(); ++pos ) + (*pos).second->rotate_log_streams( lasttime ); +} + + +/** + Eine Log-Domain (entspricht einer site) hinzufügen. + Jede log domain hat folgende streams: + - log main + - log admin + - log chat +*/ + +void ddlogmanager::add_log_domain( const ddstring& domainname, const ddstring& path ) +{ + // FIX! unsicher + ddlogdevice* newlog = new ddlogdevice(); + ddstring fullpath = path + "livelogs/" + domainname; + //QUARK! Die werden gar nicht angesprochen! + //newlog->add_log_stream( ddlogdevice::lg_debug, path + domainname + ".debug.log" ); + //newlog->add_log_stream( ddlogdevice::lg_error, path + domainname + ".error.log" ); + newlog->add_log_stream( ddlogdevice::lg_main, fullpath + ".main.log" ); + newlog->add_log_stream( ddlogdevice::lg_admin, fullpath + ".admin.log" ); + //newlog->add_log_stream( ddlogdevice::lg_chat, fullpath + ".chat.log" ); + newlog->add_log_stream( ddlogdevice::lg_search, fullpath + ".search.log" ); + + _domainlogs[ domainname ] = newlog; + +} + + + diff --git a/supportware/src/ddlogmanager.h b/supportware/src/ddlogmanager.h new file mode 100644 index 0000000..1aff579 --- /dev/null +++ b/supportware/src/ddlogmanager.h @@ -0,0 +1,118 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDLOGMANAGER_H +#define DDLOGMANAGER_H + +#include +#include +#include +#include + +class ddthreadmutex; +class ddlogmanager; + +/// ddlogdevice : eine sammlung von iostreams welche die log-level( debug, error etc) darstellen. +/** + Ein logdevice verwaltet verschiedene iostreams, welche die + log-level darstellen. Fürs "native logging" von ddbaseobject gibts + log_debug & log_error, für die einzelnen sites noch zusätzlich + log_main, log_admin & log_chat. +*/ + +class ddlogdevice +{ + +friend class ddlogmanager; + +public: + + enum dd_loglevel + { + lg_debug=0, + lg_error=1, + lg_main=2, + lg_admin=3, + //lg_chat=4, + lg_search=4, + lg_size + }; + + ddlogdevice(); + virtual ~ddlogdevice(); + + void log_message( int level, const ddstring& message ); + +protected: + + void add_log_stream( int idx, const ddstring& name ); + void rotate_log_streams( time_t lasttime ); + + ddthreadmutex *_logmutex; + vector _streams; + vector _filenames; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +typedef map ddlogmap; + +/// ddlogmanager : verwaltet die logdevices. +/** + Der Logmanager ist ein (statisches) singleton, auf das die ddbaseobject::log + methoden zugreifen, so dass jedes ddbaseobject jederzeit meldungen loggen kann. + (von log4j geklaut) + Die globalen log-aufrufe schreiben logischerweise in die application-globalen + logfiles. + Für das ebenso notwendige domain-spezifische logging können zusätzliche logdevices + angelegt werden, die dann "per name" angesprochen werden. +*/ + +class ddlogmanager +{ + +public: + + ddlogmanager(); + virtual ~ddlogmanager(); + + void log_message( int level, const ddstring& message ); + void log_message( const ddstring& domainname, int level, const ddstring& message ); + + void add_log_domain( const ddstring& domainname, const ddstring& path ); + void rotate_log_streams( time_t lasttime ); + +protected: + + ddlogdevice _mainlog; + ddlogmap _domainlogs; +}; + + + +#endif diff --git a/supportware/src/ddmailmanager.cpp b/supportware/src/ddmailmanager.cpp new file mode 100644 index 0000000..9e376c4 --- /dev/null +++ b/supportware/src/ddmailmanager.cpp @@ -0,0 +1,405 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include + + +ddstring ddmailmanager::themailcmd = "/usr/bin/mail -s "; + + + +/** + Standard Constructor. Startet auch den Background-Thread +*/ + +ddmailmanager::ddmailmanager() +: ddthreadrunnable( "ddmailmanager" ), _replymails( 0 ) +{ + +} + + +/** + Destructor. +*/ + +ddmailmanager::~ddmailmanager() +{ + //delete _worker?? + get_thread()->exit(); +} + + +/** + Initialisierung. +*/ + +void ddmailmanager::init_mailer( ddconfig& config, const ddstring& path ) +{ + themailcmd = config["main"]["mail_command"]; + _templates.init_items( path + config["main"]["mail_root"] ); + _mailalerts.init_queries( config["mailmanager"] ); + _mailalerts.connect( config["main"]["connectstring"] ); + + start_thread(); +} + + +/** + Eine Mail in dier Warteschlange stellen. +*/ + +size_t ddmailmanager::enqueue_mail( const ddstring& recv, const ddstring& msg, const ddstring& subject, const ddstring& sender ) +{ + _mutex.lock(); + _queue.push_back( ddmail( recv, msg, subject, sender ) ); + _mutex.unlock(); + // den worker losscheuchen + notify(); + return _queue.size(); +} + + +/** + In einer Endlosschleife die Warteschlange abarbeiten. +*/ + +void ddmailmanager::run() +{ + wait(); + + while( true ) + { + if( _queue.empty() ) + wait(); + + // jemand hat uns aufgeweckt ... + try + { + _mutex.lock(); + // wakeup bug: sleep again + if( !_queue.size() ) + { + _mutex.unlock(); + continue; + } + ddmail mail = _queue.front(); + _queue.pop_front(); + _mutex.unlock(); + if( !mail.receiver.empty() && !mail.message.empty() ) + send_mail( mail.message, mail.subject, mail.receiver, mail.sender ); + + } + catch( exception& error ) + { + log_error( ddstring("ddmailmanager::run(): ") + error.what() ); + } + + } // while + + +} + + +/** + Testet, ob der user schon benachrichtigt wurden +*/ + +bool ddmailmanager::is_alertet( const ddstring& nickname, const ddstring& parentid ) +{ + return _alertcache.count( parentid + "." + nickname ) != 0; +} + + +/** + Das Altertflag wieder löschen, sodass der user neu benachrichtigt wird, wenn + Antworten kommen. Das löschen wird durchgeführt, wenn der user den Thread neu aufruft. +*/ + +void ddmailmanager::clear_alert_flag( const ddstring& nickname, const ddstring& parentid ) +{ + _alertcache.erase( parentid + "." + nickname ); +} + + +/** + Das Alertflag setzen, +*/ + +void ddmailmanager::set_alert_flag( const ddstring& nickname, const ddstring& parentid ) +{ + _alertcache.insert( parentid + "." + nickname ); +} + + +/** + Erzeugt die Benachrichtigungsmails. +*/ + +void ddmailmanager::create_alert_mails( const ddstring& idparent, const ddstring& nickmail, const ddstring& nickname, const ddstring& subject, const ddstring& domain ) +{ + + // select="select distinct sn_nickmail, sn_nickname from tr_msgmain where id_state & 8 != 0 + // and sn_nickmail != '' and id_parent='{id_parent}' and sn_nickmail != '{sn_nickmail}'"; + + // Wenn hier einige parameter-felder nicht belegt sind, etwa nickmail, dann bleibt der vorher benutzte parameter + // wert stehen, das ist ein feature, siehe ddatastore::execute + // natürlich ist dann das Abfrageergebnis fehlerhaft, deswegen resetten wir die query von hand. + + _mailalerts.get_query( "select" ).clear_query_data(); + int numrows = _mailalerts.fill( "select", idparent, nickmail ); + for( int i = 0; i < numrows; ++i ) + { + bool isguest = (_mailalerts[i][2] == "1" ); + create_reply_mail( idparent, _mailalerts[i][0], _mailalerts[i][1], subject, domain, isguest ); + } + +} + + +/** + Eine Benachrichtigungsmail verschicken, wenn neue Antworten auf eine Anfrage gegeben wurden. +*/ + +void ddmailmanager::create_reply_mail( const ddstring& parentid, const ddstring& nickmail, const ddstring& nickname, const ddstring& subject, const ddstring& dom, bool isguest ) +{ + + ddstring domain = dom; + domain.replace_all( "computer", "www" ); + + // Bei neuen Antworten wird der user benachrichtigt und als benachrichtigt markiert, wenn er denn thread + // nochmal besucht, wird die markierung gelöscht, sodass bei neuen Antworten wieder ein benachrichtigung + // verschickt wird. + + if( nickmail.empty() || is_alertet( nickname, parentid ) ) + return; + + // ALT: + // Es soll nur eine mail pro tag und thread und person verschickt werden. + //ddstring key = ddbasedate::now().to_string_de() + "." + parentid + "." + nickname; + //cout << " ------------ REPLYMAIL: " << key << endl; + //if( _alertcache.count( key ) != 0 ) + // return; + if( !isguest ) + set_alert_flag( nickname, parentid ); + + ddstring tpl = "sn_replymail"; + int i = _templates.index_of( tpl ); + if( i<0 ) + throw runtime_error("ddmailmanager::create_reply_mail() template not found: " + tpl ); + + ddstring thread = parentid.as_int() <= DDLASTID ? "/threads/" : "/t/" ; + ddstring link1 = thread + parentid; + ddstring link2 = "/admin_drop_alert?id_parent=" + parentid; + + // Hack: Zwischen altem und neum Format unterscheiden + // alt: + //if( domain != "www" ) + link2 = link1 + "?sx_action=on_drop_subscription"; + + link2 += "&sn_nickmail="; + link2 += nickmail.dup().escape(); + + ddstring cleansbj = subject; + cleansbj.replace_all( "RE: ", "" ); + + // neu: subject konfigurierbar machen + dditem& mailsubj = _templates[i]["sn_mailsubject"]; + dditem& mailbody = _templates[i]["sn_mailbody"]; + + mailbody["sn_nickname"].from_string( nickname ); + mailbody["sn_msgsubject"].from_string( cleansbj ); + mailbody["sn_link1"].from_string( link1 ); + mailbody["sn_link2"].from_string( link2 ); + + mailsubj["sn_msgsubject"].from_string( cleansbj ); + + _replymails++; + enqueue_mail( nickmail, mailbody.to_string(), mailsubj.to_string(), "sourceworx.org Forum" ); + +} + + +/** + Erzeugt die Mail, die den user über die Änderung seines Nicknames benachrichtigt: + blödi$$ -> bloedi__ . Damit sind die Sn-Nicks eMail-konform. +*/ + +void ddmailmanager::create_nick_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& newnick ) +{ + ddstring tpl = "sn_nickchange"; + + int i = _templates.index_of( tpl ); + if( i<0 ) + throw runtime_error("ddmailmanager::create_nick_mail() template not found: " + tpl ); + + dditem& mailitem = _templates[i]; + mailitem["sn_nickname1"].from_string( nickname ); + mailitem["sn_nickname2"].from_string( nickname ); + mailitem["sn_nickname3"].from_string( newnick ); + + enqueue_mail( nickmail, mailitem.to_string(), "Ihr neuer Nickname: " + newnick, "sourceworx.org Forum" ); + +} + + +/** + Erzeugt die erste Anmeldemail mit Passwort und Login. +*/ + +void ddmailmanager::create_login_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& passwd, const ddstring& domain ) +{ + ddstring tpl = "sn_newuser"; + + int i = _templates.index_of( tpl ); + if( i<0 ) + throw runtime_error("ddmailmanager::create_passwd_mail() template not found: " + tpl ); + + dditem& mailitem = _templates[i]; + mailitem["sn_nickname1"].from_string( nickname ); + mailitem["sn_nickname2"].from_string( nickname ); + mailitem["sn_passwd"].from_string( passwd ); + + + ddstring link1 = "/member_activate?sn_nickname=" + nickname + "&sn_passwd=" + passwd; + ddstring link2 = "/member_login?sn_nickname=" + nickname; + mailitem["sn_loginlink1"].from_string( link1 ); + mailitem["sn_loginlink2"].from_string( link2 ); + + enqueue_mail( nickmail, mailitem.to_string(), "Ihr Passwort", "sourceworx.org Forum" ); + +} + + +/** + Password verschicken. +*/ + +void ddmailmanager::create_passwd_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& passwd ) +{ + ddstring tpl = "sn_passwd"; + + int i = _templates.index_of( tpl ); + if( i<0 ) + throw runtime_error("ddmailmanager::create_passwd_mail() template not found: " + tpl ); + + dditem& mailitem = _templates[i]; + mailitem["sn_nickname"].from_string( nickname ); + mailitem["sn_passwd"].from_string( passwd ); + + enqueue_mail( nickmail, mailitem.to_string(), "Ihr Passwort", "sourceworx.org Forum" ); +} + + +/** + Erzeugt die Hinweismail, 'sie haben post' etc. +*/ + +void ddmailmanager::create_hint_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& subject, const ddstring& sysmessage, const ddstring& syslink ) +{ + + ddstring tpl = "sn_passwd"; + + int i = _templates.index_of( tpl ); + if( i<0 ) + throw runtime_error("ddmailmanager::create_passwd_mail() template not found: " + tpl ); + + dditem& mailitem = _templates[i]; + mailitem["sn_nickname"].from_string( nickname ); + //mailitem["sn_passwd"].from_string( passwd ); + + enqueue_mail( nickmail, mailitem.to_string(), subject, "sourceworx.org Forum" ); + +} + + +/** + Das ist die alte Version der Mail-Funktion, die in mail(x) rein-piped in sendmail. (@see pipe_mail) + Damit kann man _keine_ html mails verschicken, weil man die header (content-type etc) nicht beeinflussen + kann, @see http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1251151055312+28353475&threadId=198929 + @see http://www.linuxquestions.org/questions/linux-networking-3/sending-html-email-via-mailx-380855/ +*/ + +void ddmailmanager::send_mail( const ddstring& msg, const ddstring& cleansbj, const ddstring& recv, const ddstring& sender ) +{ + //strip quotes in subject + ddstring subject = cleansbj; + subject.replace_all( '\"',' ' ); + ddstring cmd = themailcmd + "\"" + subject + "\" "; + if( !sender.empty() ) + cmd += " -r \"" + sender + "\" "; + cmd += recv; + + FILE* outstream = ::popen( cmd.c_str(),"w" ); + if( !outstream ) + { + // diese Funktion ist static, also müssen wir den (ebenfalls statischen) logger + // direkt ansprechen + thelog.log_message( ddlogdevice::lg_error, "error: Could not run send MAIL: " + cmd ); + return; + } + ::fputs( msg.c_str(),outstream ); + ::fclose( outstream ); +} + + + +/** + Das ist die Version der Mail-Funktion, die in sendmail rein-piped statt in mail(x) + Dann kann man dann auch die header einträge bestimmen und html senden. + 'mail' ist ein alias für 'mailx' welches ein client für 'sendmail' ist wobei 'sendmail' nicht mehr + existiert sondern die compatibilty-layer von postfix ist. oh unix! + + das subject muss noch ins template-item geschrieben werden, daher wird das hier mit übergeben. + +*/ + +void ddmailmanager::pipe_mail( dditem& templ, const ddstring& recv, const ddstring& subj, const ddstring& sender ) +{ + //# Cat the header and message file into sendmail and send it +// cat header.tmp message.html | /usr/sbin/sendmail whomever@whereever.org + + //strip quotes in subject + ddstring subject = subj; + subject.replace_all( '\"',' ' ); + + // das ganze geraffel wird jetzt in mail-template + // reingeschrieben und an den mail-server gepipet + // damit es auch schön in der mail angezeigt wird + + templ.set_field_value( "sn_mailsubject", subject ); + templ.set_field_value( "sn_mailto", recv ); + templ.set_field_value( "sn_mailfrom", sender ); + + ddstring cmd = "/usr/sbin/sendmail "; + + // geht nicht + //if( !sender.empty() ) + // cmd += " -r " + sender + " "; + cmd += recv; + + cout << "RAAAAAMOOOOO: " << cmd << endl; + + FILE* outstream = ::popen( cmd.c_str(),"w" ); + if( !outstream ) + { + // diese Funktion ist static, also müssen wir den (ebenfalls statischen) logger + // direkt ansprechen + thelog.log_message( ddlogdevice::lg_error, "error: Could not run pipe MAIL: " + cmd ); + return; + } + ::fputs( templ.to_string().c_str(),outstream ); + ::fclose( outstream ); +} diff --git a/supportware/src/ddmailmanager.h b/supportware/src/ddmailmanager.h new file mode 100644 index 0000000..b9d5447 --- /dev/null +++ b/supportware/src/ddmailmanager.h @@ -0,0 +1,142 @@ +/*************************************************************************** + + libdope + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDMAILMANAGER_H +#define DDMAILMANAGER_H + +#include +#include +#include +#include +#include +#include + + +/// ddmail : einfache struktur, um mails in der wait-queue su representieren. +/** +*/ + +class ddmail : public ddbaseobject +{ + +public: + + ddstring receiver; + ddstring message; + ddstring subject; + ddstring sender; + + ddmail() + { + } + + ddmail( const ddstring& rec, const ddstring& msg , const ddstring& subj="", const ddstring& asender="" ) + : receiver( rec ), message( msg ) , subject( subj ), sender( asender ) + { + } + + virtual ~ddmail() + { + } + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddmailmanager +/** + +*/ + +typedef deque ddmailqueue; + + + +class ddmailmanager : public ddthreadrunnable +{ + +public: + + ddmailmanager(); + virtual ~ddmailmanager(); + + void init_mailer( ddconfig& config, const ddstring& path ); + size_t enqueue_mail( const ddstring& recv, const ddstring& msg, const ddstring& subject="", const ddstring& sender="" ); + + void create_nick_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& newnick ); + void create_passwd_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& passwd ); + void create_login_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& passwd, const ddstring& domain ); + void create_alert_mails( const ddstring& idparent, const ddstring& nickmail, const ddstring& nickname, const ddstring& subject, const ddstring& domain="www" ); + void create_hint_mail( const ddstring& nickname, const ddstring& nickmail, const ddstring& subject, const ddstring& sysmessage="", const ddstring& syslink = "" ); + + void run(); + + // warum static? wird sonst nirgends bennutzt + //static void send_mail( const ddstring& msg, const ddstring& subj="", const ddstring& recv="", const ddstring& sender="" ); + void send_mail( const ddstring& msg, const ddstring& subj="", const ddstring& recv="", const ddstring& sender="" ); + void pipe_mail( dditem& templ, const ddstring& recv, const ddstring& subj, const ddstring& sender ); + + bool is_alertet( const ddstring& nickname, const ddstring& parentid ); + void clear_alert_flag( const ddstring& nickname, const ddstring& parentid ); + void set_alert_flag( const ddstring& nickname, const ddstring& parentid ); + + + inline int get_reply_count() + { + return _replymails; + } + + + inline void reset_reply_count() + { + _replymails = 0; + } + + + inline dditem& get_item( const ddstring& key ) + { + if( _templates.contains_key( key ) ) + return _templates[ key ]; + throw runtime_error( "mailer: get_item: key not found: " + key ); + } + + +protected: + + void create_reply_mail( const ddstring& parentid, const ddstring& nickmail, const ddstring& nickname, const ddstring& subject, const ddstring& domain, bool isguest ); + + static ddstring themailcmd; + + int _replymails; + dditemset _templates; + ddmailqueue _queue; + ddthreadmutex _mutex; + ddwebview _mailalerts; + set _alertcache; +}; + +#endif diff --git a/supportware/src/ddmapmulti.h b/supportware/src/ddmapmulti.h new file mode 100644 index 0000000..4ba80ca --- /dev/null +++ b/supportware/src/ddmapmulti.h @@ -0,0 +1,669 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDMAPMULTI_H +#define DDMAPMULTI_H + +#include + +using namespace std; + +/// ddmapmulti: Eine ddmaprow, die für einen Schlüssel _mehrere_ Einträge enthält. +/** + + Neuer Versuch aus neu.newdope: + + ddmaprow: Die Basisklasse für alles, was Feldartige Daten enthält, die auch + über einen string-index adressiert werden sollen. + + @see ddmapindex + + umgebaut in: + + ddmapmulti: Eine aufgehackte ddmaprow, die für einen Schlüssel (scheinbar) _mehrere_ + Einträge enhalten kann: Der Pointer auf einen Eintrag wird gegebenenfalls mehrfach verwendet. + Nicht ganz sauber aber insofern korreckt, da Felder mit dem gleichen Schlüssel per Definition + auch den gleichen Wert enhalten. (z.B. id_parent etc.) + + Klappt nur mit Elementen, die copy-able sind und einen ==operator haben. + +*/ + +template +class ddmapmulti : public ddbaseobject +{ + +public: + + + /** + Default constructor. + */ + + ddmapmulti() + { + } + + + /** + Standard constructor. + @param size Die vorgegebene Größe + */ + + ddmapmulti( size_t size ) + { + _data.resize( size ); + } + + + /** + Copy constructor. Nicht wirklich vorhanden, denn es wird + der Assignment-Operator aufgerufen + @see operator= + */ + + ddmapmulti( const ddmapmulti& src ) + { + *this=src; + } + + + /** + Destructor. + Obacht! Das es sich bei den Elementen um Pointer handelt, werden + diese zerstört. + @see clear() + */ + + ~ddmapmulti() + { + clear(); + } + + + /** + Assignment. + Es müssen Deep-Copies angefertigt werden, was mit copy-constructor + probiert wird. + */ + + ddmapmulti& operator=( const ddmapmulti& src ) + { + + if( this == &src ) + return *this; + + // Der einfache Teil: den index klonen + _index = src._index; + + // die Elementpointer können _mehrfach_ in _data vorkommen, + // dürfen aber nur einmal kopiert werden + + // Platz schaffen. + _data.resize( src._data.size() ); + + // alle elemente + bool found; + for( size_t i=0; i einbauen + if( !found ) + { + // klon per copy constructor... + T* newitem = new T( *olditem ); + // speichern... + _data[i] = newitem; + + } + + } + + return *this; + } + + + /** + Schnelltest auf Leere :-) + */ + + bool operator!() + { + return empty(); + } + + + /** + die Größe + */ + + inline size_t size() const + { + return _data.size(); + } + + + /** + true für einen leeren Vector. + */ + + inline bool empty() const + { + return (_data.size()==0); + } + + + /** + Ändert die Größe des Vectors. + @param newsize die neue Größe + */ + + inline void resize( size_t newsize ) + { + if( newsize > _data.size() ) + _data.resize( newsize ); + } + + + /** + @returns den Eintrag an Position "index" sofern vorhanden. + @throws out_of_range + */ + + inline T& operator[]( size_t index ) + { + if( index < _data.size() ) + return *_data[index]; + log_fatal("ddmapmulti operator[ size_t index ]: out of range"); + // avoid warning + T* t = new T(); + return *t; + } + + + /** + @returns den Eintrag an Position "index" sofern vorhanden. (const version) + @param index die Elementposition + @throws out_of_range + */ + + inline const T& operator[]( size_t index ) const + { + if( index >= _data.size() ) + log_fatal("ddmapmulti const operator[ size_t index ]: out of range"); + return *_data[index]; + } + + + /** + @returns Eine Referenz auf den Pointer (ja sowas geht) + an Position "index" sofern vorhanden + ( Ohne Ref. gibts ein "non L-Value in Assignment", mit gehen auch Sachen + wie get_pointer(x) = new Bla(); Vorsicht! Altes Element vorher zerstören! ) + @param index die Elementposition + @throws out_of_range + */ + + inline T*& get_pointer( size_t index ) + { + if( index < _data.size() ) + return _data[index]; + log_fatal("ddmapmulti get_pointer( size_t index ): out of range"); + } + + + /** + @returns Eine Referenz auf den Pointer (ja sowas geht) + an Position "index" sofern vorhanden + ( Ohne Ref. gibts ein "non L-Value in Assignment", mit gehen auch Sachen + wie get_pointer(x) = new Bla(); Vorsicht! Altes Element vorher zerstören! ) + @param index die Elementposition + @throws out_of_range + */ + + inline const T*& get_pointer( size_t index ) const + { + if( index < _data.size() ) + return _data[index]; + log_fatal("ddmapmulti get_pointer( size_t index ): out of range"); + } + + + /** + "access by key": Ein Element über seinen Schlüssel finden, falls existent. + @param key Der Schlüssel. + @throws out_of_range + */ + + inline T& operator[]( const ddstring& key ) + { + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + log_fatal( key+":multimap operator[]: key not found"); + return *_data[(*pos).second]; + } + + + /** + "access by key": Ein Element über seinen Schlüssel finden, falls existent. (const version) + @param key Der Schlüssel. + @throws out_of_range + */ + + inline const T& operator[]( const ddstring& key ) const + { + ddmapindex::const_iterator pos = _index.find( key ); + if( pos == _index.end() ) + log_fatal( key+":multimap operator[]: key not found"); + return *_data[(*pos).second]; + } + + + /** + @returns Eine Referenz auf den Pointer (ja sowas geht) + an Position "index" sofern vorhanden + ( Ohne Ref. gibts ein "non L-Value in Assignment", mit gehen auch Sachen + wie get_pointer(x) = new Bla(); Vorsicht! Altes Element vorher zerstören! ) + @param key Der Schlüssel. + @throws out_of_range + */ + + inline T*& get_pointer( const ddstring& key ) + { + if( key.empty() ) + log_fatal("multimap get_pointer( const ddstring& key ): key empty"); + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + log_fatal( key+":multimap get_pointer( const ddstring& key ): key not found"); + return _data[(*pos).second]; + } + + + /** + @returns Eine Referenz auf den Pointer (ja sowas geht) + an Position "index" sofern vorhanden + ( Ohne Ref. gibts ein "non L-Value in Assignment", mit gehen auch Sachen + wie get_pointer(x) = new Bla(); Vorsicht! Altes Element vorher zerstören! ) + @param key Der Schlüssel. + @throws out_of_range + */ + + inline const T*& get_pointer( const ddstring& key ) const + { + if( key.empty() ) + log_fatal("multimap get_pointer( const ddstring& key ): key empty"); + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + log_fatal( key+":multimap get_pointer( const ddstring& key ): key not found"); + return _data[(*pos).second]; + } + + + /** + Ein Pointer-Element hinten anhängen, ohne Indexeintrag. + @param item Das Element. + @return Die Elementposition des neuen Eintrags. + */ + + size_t add( T* item ) + { + _data.push_back( item ); + return _data.size()-1; + } + + + /** + Ein Referenz-Element hinten anhängen, ohne Indexeintrag. + Das Element muss kopiert werden, also den copy-contructor unterstützen. + Vorsicht: Das macht mapmulti unbrauchbar für non-copy klassen. + @param item Das Element. + @return Die Elementposition des neuen Eintrags. + */ + + size_t add( const T& item ) + { + // klon-versuch per copy-constructor + _data.push_back( new T( item ) ); + return _data.size()-1; + } + + + /** + Ein Pointer-Element über einen Schlüssel einfügen. Falls an der gewünschten + Position schon ein Element vorhanden ist, wird der vorhandene Eintrag + nochmal hinten abgehängt, ist dann also mehrfach vorhanden. + + OBACHT! Es wird der alte Eintrag verwendet, der neue wird gekillt ! + Das ist etwas fragwürdig! + + @param item the element + @param key the key of the new entry. + @return Die Elementposition des neuen Eintrags. + */ + + size_t add_by_key( const ddstring& key, T* item ) + { + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + { + _index[key] = add( item ); + } + else + { + // Altes und neues Element sollen physikalisch gleich sein, + // also müssen sind auch äquivalent sein. + if( *_data[ (*pos).second] != *item ) + log_fatal( key + ":add_by_key( const ddstring& key, T* item : Elements are not equal!"); + + // vorhandenen Pointer doppeln + _data.push_back( _data[ (*pos).second ] ); + + // zum verständnis: der index wird _nicht_ aktualisiert, bei index_of + // kommt der index des _original_ elements zurück, da die beiden ja + // physikalisch dasselbe sind. + + // item ist in unsere Zuständigkeit übergeben worden... + // MEMLEAK verhindern! item löschen! + delete item; + + } + return _data.size()-1; + } + + + /** + Ein Referenz-Element über einen Schlüssel einfügen. Falls an der gewünschten + Position schon ein Element vorhanden ist, wird der vorhandene Eintrag + nochmal hinten abgehängt, ist dann also mehrfach vorhanden. + + Das Element muss kopiert werden, also den copy-contructor unterstützen. + Vorsicht: Das macht mapmulti unbrauchbar für non-copy klassen. + + @param item the element + @param key the key of the new entry. + */ + + void add_by_key( const ddstring& key, const T& item ) + { + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + { + _index[key] = add( new T( item ) ); + } + else + { + // Altes und neues Element sollen physikalisch gleich sein, + // also müssen sind auch äquivalent sein. + if( item != *_data[ (*pos).second] ) + log_fatal( key+":add_by_key( const ddstring& key, T* item : Elements are not equal!"); + + // vorhandenen Pointer doppeln + _data.push_back( _data[ (*pos).second ] ); + + // zum verständnis: der index wird _nicht_ aktualisiert, bei index_of + // kommt der index des _original_ elements zurück, da die beiden ja + // physikalisch dasselbe sind. + + } + } + + /** + @return Die Feldposition für den Schlüssel "key", falls vorhanden, oder -1. + */ + + inline int index_of( const ddstring& key ) const + { + return _index.index_of( key ); + } + + + /** + @return true wenn der Schlüssel "key" existiert. + */ + + inline bool contains_key( const ddstring& key ) const + { + return _index.contains_key( key ); + } + + + /** + Eine Indexposition mit Schlüssel einfügen. + @param key Der Schlüssel + @param index Die Indexposition + */ + + void add_key( const ddstring& key, size_t index ) + { + _index.add_key( key, index ); + } + + + /** + Einen "Alias Schlüssel" für einen bereits vorhandenen Schlüssel + einfügen + @param key Der ursprüngliche Schlüssel + @param alias Der zusätzliche Schlüssel + */ + + bool add_alias( const ddstring& key, const ddstring& alias ) + { + ddmapindex::const_iterator pos = _index.find( key ); + if( pos == _index.end() ) + return false; + _index[ alias ] =(*pos).second; + return true; + } + + + /** + Einen vorhandenen Schlüssel durch einen neuen ersetzen + @param oldkey Der alte Schlüssel + @param newkey Der neue Schlüssel + @return die Index-Position des Schlüssels + */ + + int replace_key( const ddstring& oldkey, const ddstring& newkey ) + { + int idx = _index.index_of( oldkey ); + if( idx<0 || oldkey == newkey ) + return idx; + _index.erase( oldkey ); + _index[ newkey ] = idx; + return idx; + } + + + /** + Löscht den Eintrag zum angegebenen Schlüssel. + @return true wenn der Schlüssel vorhanden war. + */ + + /* + + bool erase( const ddstring& key ) + { + int idx = index_of( key ); + if( idx<0 ) + return false; + return erase( (size_t) idx ); + } + + */ + + /** + Löscht _alle_den Einträge zur angegebenen Indexposition. + @return true wenn die Indexposition vorhanden war. + */ + /* + virtual bool erase( size_t index ) + { + if( index >= _data.size() ) + return false; + // eintrag merken + T* item = _data[index]; + int idx; + while( ( idx=find_entry( item ) ) >-1 ) + { + delete _data[idx]; + _data.erase( _data.begin()+idx ); + } + + // index updaten + _index.update( index ); + return true; + } + */ + /** + Löscht den Eintrag zur angegebenen Indexposition. + @return true wenn die Indexposition vorhanden war. + + single map version: + */ + /* + virtual bool erase( size_t index ) + { + if( index >= _data.size() ) + return false; + // eintrag löschen + delete _data[index]; + _data.erase( _data.begin()+index ); + // index updaten + _index.update( index ); + return true; + } + */ + + + /** + Alle Einträge löschen + */ + + void clear() + { + // die Elementpointer können _mehrfach_ in _data vorkommen, + // dürfen aber nur einmal deletet werden, daher null setzen + + for( size_t i=0; i<_data.size(); ++i ) + { + T* item = _data[i]; + if( !item ) + continue; + // ab i kann item wieder vorkommen, also suchen, + // aber nicht nochmal deleten sondern nullen + for( size_t j=i+1; j < _data.size(); j++ ) + { + if( _data[j] == item ) + _data[j] = 0; + } + delete item; + } + _data.clear(); + _index.clear(); + } + + + + /** + Gibt den internen Indexer zurück + @see ddmapindex + */ + + const ddmapindex& get_index() const + { + return _index; + } + + + /** + Baut einen ddstring aus diesem Vector indem alle Einträge + mit ";" concateniert werden. + @see join(); + */ + + virtual ddstring to_string() const + { + return join(); + } + + + /** + Baut einen ddstring aus diesem Vector indem alle Einträge + concateniert werden. + Nur Prototyp! + @throws runtime_error + */ + + virtual ddstring join( const ddstring& sep = "", size_t from=0, size_t to = ddstring::npos ) const + { + + ddstring tmp; + size_t tmp_size = size(); + if( to != ddstring::npos ) + tmp_size = to; + if( from > tmp_size || tmp_size > size() ) + log_fatal( "ddmapmulti::join: index 'from' out of range!" ); + + for( size_t i = from; i < tmp_size; i++ ) + { + tmp.append ( _data[i]->to_string() ); + if( !sep.empty() && i != tmp_size - 1) + tmp.append ( sep ); + } + return tmp; + } + + + + virtual void dump() const + { + for( size_t i=0; i_data.size(); ++i ) + { + if( _data[i] == entry ) + return i; + } + return -1; + } + + vector _data; + ddmapindex _index; + +}; + +#endif diff --git a/supportware/src/ddmapptr.h b/supportware/src/ddmapptr.h new file mode 100644 index 0000000..73a3bd9 --- /dev/null +++ b/supportware/src/ddmapptr.h @@ -0,0 +1,185 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDPTRMAP_H +#define DDPTRMAP_H + +#include + +using namespace std; + + +/// ddmapptr: eine Maprow mit welche Pointer statt Objekte speichert. +/** + + ddmapptr speichert Pointer statt Objekte, der operator[] liefert daher Pointer. + Referenzen können über get_entry geholt werden. + + @see ddmaprow + @see ddmapmulti + @see ddmapindex + +*/ + +template +class ddmapptr : public ddmaprow +{ + +public: + + /** + Destructor. + */ + + virtual ~ddmapptr() + { + for( size_t i=0; i_data.size(); ++i ) + delete this->_data[i]; + } + + + /** + @Returns Eine Referenz auf den Eintrag an Position 'key'. + */ + + T& get_entry( const ddstring& key ) + { + int i = this->index_of( key ); + if( i<0 ) + throw runtime_error( "dddmapptr::get_entry: not found: " + key ); + return *( this->_data[i] ); + } + + + /** + @Returns Eine Referenz auf den Eintrag an Position 'key', const Version. + */ + + const T& get_entry( const ddstring& key ) const + { + int i = this->index_of( key ); + if( i<0 ) + throw runtime_error( "dddmapptr::get_entry: not found: " + key ); + return *( this->_data[i] ); + } + + + /** + @Returns Eine Referenz auf den Eintrag an Position 'index'. + */ + + T& get_entry( int index ) + { + if( (size_t) index < this->_data.size() ) + return *( this->_data[index] ); + throw out_of_range( "ddmapptr get_entry( size_t index ): out of range" ); + } + + + /** + @Returns Eine Referenz auf den Eintrag an Position 'index', const Version. + */ + + const T& get_entry( int index ) const + { + if( (size_t) index < this->_data.size() ) + return *( this->_data[index] ); + throw out_of_range( "ddmapptr const get_entry( size_t index ): out of range" ); + } + + + /** + Löscht den Eintrag an Position 'key'. + */ + + bool kill_entry( const ddstring& key ) + { + int idx = this->index_of( key ); + // warum keine exception? + if( idx<0 ) + return false; + return kill_entry( (size_t) idx ); + } + + + /** + Löscht den Eintrag an Position 'index'. + Dazu wird 'ddmaprow::kill' aufgerufen. + @see ddmaprow + */ + + bool kill_entry( size_t index ) + { + T* item = this->_data[index]; + if( ddmaprow::kill_entry( index ) ) + { + delete item; + return true; + } + return false; + } + + + bool remove_entry( const ddstring& key ) + { + int idx = this->index_of( key ); + // warum keine exception? + if( idx<0 ) + return false; + + return remove_entry( (size_t) idx ); + + } + + + bool remove_entry( size_t index ) + { + + if( index >= this->_data.size() ) + return false; + + // eintrag löschen + this->_data.erase( this->_data.begin()+index ); + // index updaten + this->_index.update( index ); + + return true; + + } + /** + Einen Eintrag ersetzen. + */ + + void replace( int index, T* entry ) + { + if( (size_t) index >= this->_data.size() ) + throw out_of_range( "ddmapptr replace( size_t index ): out of range" ); + delete( this->_data[index] ); + this->_data[index] = entry; + } + + + /** + Einen Eintrag ersetzen. + */ + + void replace( const ddstring& key, T* entry ) + { + replace( this->index_of( key ), entry ); + } + +}; + + +#endif diff --git a/supportware/src/ddmaprow.h b/supportware/src/ddmaprow.h new file mode 100644 index 0000000..7d68e51 --- /dev/null +++ b/supportware/src/ddmaprow.h @@ -0,0 +1,423 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDMAPROW_H +#define DDMAPROW_H + +#include +#include +#include +#include +#include + +using namespace std; + + +/// ddmaprow ist die Basis für Array-ähnliche Daten mit Index. +/** + + Ex ddrow (wurde gestrichen). Existiert in drei Varianten: + - ddmaprow: hier + - ddmapptr: dito mit pointern + - ddmapmulti: eine maprow mit x einträgen pro key. + + Basisklasse für alles,was feldartige daten enthält, also einer + Tabellezeile entspricht: Url, Fileindo, Dirinfo, Request, etc aber + auch User, Comic... + + HÄ?? + Es wird noch ein Adapter benötigt, der von Dataobjects auf + Pagetemplates mappt. + + Eigentlich ist dataobject ein interface für _Alle_ feldartigen + Datenobjekte, jedenfalls sollte eine einheitliche schnittstelle + zur Verfügung gestellt werden. + + grepline + item + datarow + char** + inientry +*/ + +template +class ddmaprow : public ddbaseobject +{ + +public: + + + /** + Default constructor. + */ + + ddmaprow() + { + } + + + /** + Standard constructor. + @param size erzeugt 'size' dummyeinträge + */ + + ddmaprow( size_t itemsize ) + { + if( itemsize ) + _data.resize( itemsize ); + } + + + /** + Copy constructor. + */ + + ddmaprow( const ddmaprow& src ) + { + *this=src; + } + + + /** + Destructor. Tut nix. + */ + + virtual ~ddmaprow() + { + + } + + + /** + Assignment operator. + */ + + ddmaprow& operator=( const ddmaprow& src ) + { + if( this == &src ) + return *this; + _data = src._data; + _index = src._index; + return *this; + } + + + /** + @Returns Die Größe. + */ + + inline int size() const + { + return (int) _data.size(); + } + + + /** + @Returns 'true' wenn size() == 0. + */ + + inline bool empty() const + { + return (_data.size()==0); + } + + + /** + @Returns den index. + @see ddmapindex + */ + + inline const ddmapindex& get_index() const + { + return _index; + } + + // hack & pfusch, siehe ddusermanager + inline ddmapindex& get_index() + { + return _index; + } + + /** + @Returns Die indexposition für einen Schlüssel oder -1. + */ + + virtual int index_of( const ddstring& key ) const + { + ddmapindex::const_iterator pos = _index.find( key ); + if( pos != _index.end() ) + return (int) (*pos).second; + return -1; + } + + + /** + @Returns den schüssel für eine index-stelle zurück + */ + + virtual const ddstring& key_of( int index ) const + { + ddmapindex::const_iterator pos = _index.begin(); + for( ; pos != _index.end(); ++pos ) + if( (*pos).second == index ) + return (*pos).first; + throw out_of_range( "maprow key of: index not found" ); + } + + + /** + @Returns 'true' wenn der Eintrag 'key' existiert. + */ + + virtual bool contains_key( const ddstring& key ) const + { + ddmapindex::const_iterator pos = _index.find( key ); + return ( pos != _index.end() ); + } + + + /** + @Returns Das Feld an Position 'index'. + @throws out_of_range + */ + + T& operator[]( size_t index ) + { + if( index < _data.size() ) + return _data[index]; + throw out_of_range("ddmaprow operator[ size_t index ]: out of range"); + } + + + /** + @Returns Das Feld an Position 'index', const Version. + @throws out_of_range + */ + + const T& operator[]( size_t index ) const + { + if( index <_data.size() ) + return _data[index]; + throw out_of_range("ddmaprow const operator[ size_t index ]: out of range"); + } + + + /** + @returns Das Feld an Position 'key' + @param key Der Schlüssel. + @throws out_of_range + */ + + T& operator[]( const ddstring& key ) + { + if( key.empty() ) + throw out_of_range("maprow operator[]: key empty"); + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + throw out_of_range( "maprow operator[]: key not found: " + key ); + return this->_data[(*pos).second]; + } + + + /** + @returns Das Feld an Position 'key', const Version. + @param key Der Schlüssel. + @throws out_of_range + */ + + const T& operator[]( const ddstring& key ) const + { + if( key.empty() ) + throw out_of_range("operator[]: key empty"); + ddmapindex::const_iterator pos = _index.find( key ); + if( pos == _index.end() ) + throw out_of_range( "maprow operator[]: key not found: " + key ); + return this->_data[(*pos).second]; + } + + + /** + Einen Eintrag anhängen. + @param item Der Eintrag. + @return Die Indexposition des neuen Eintrags. + */ + + virtual size_t add( const T& item ) + { + _data.push_back( item ); + return _data.size()-1; + } + + + /** + Einen Eintrag an der Position 'index' einfügen. + Der Alte Eintrag wird überschrieben. + @param index Die Indexposition. + @param item Der Eintrag. + @throws out_of_range + */ + + virtual void add_at_index( size_t index, const T& item ) + { + if( index >= _data.size() ) + log_fatal( "ddstringrow::add: index out of range!" ); + _data[index] = item; + } + + + /** + Ein Element an der Schlüsselposition 'key' einfügen. + Falls das Element existiert, wird es überschrieben via assignment. + Das ist hier ok, das es sich nicht um pointer handelt. + @param key Der Schlüssel + @param item Das Element + */ + + virtual void add_by_key( const ddstring& key, const T& item ) + { + ddmapindex::iterator pos = _index.find( key ); + if( pos == _index.end() ) + { + _data.push_back( item ); + _index[key] = _data.size()-1; + } + else + { + _data[(*pos).second] = item; + } + } + + + /** + Ein alias für 'key' hinzufügen. + */ + + bool add_alias( const ddstring& key, const ddstring& alias ) + { + ddmapindex::const_iterator pos = _index.find( key ); + if( pos == _index.end() ) + return false; + ddmapindex::const_iterator pos2 = _index.find( alias ); + _index[ alias ] =(*pos).second; + return true; + } + + + /** + Einen Key-Index paar einfügen. + */ + + void add_key( const ddstring& key, size_t index ) + { + _index.add_key( key, index ); + } + + + /** + Alles Löschen. + */ + + virtual void clear() + { + _data.clear(); + _index.clear(); + } + + + /** + den Eintrag für 'key' löschen. + */ + + virtual bool kill_entry( const ddstring& key ) + { + int idx = index_of( key ); + if( idx<0 ) + return false; + return kill_entry( (size_t) idx ); + } + + + /** + den Eintrag an Position 'index' löschen. + */ + + virtual bool kill_entry( size_t index ) + { + if( index >= this->_data.size() ) + return false; + // eintrag löschen + this->_data.erase( this->_data.begin()+index ); + // index updaten + _index.update( index ); + return true; + } + + + /** + Creates a ddstring representation of this row. + Returns a CSV like ddstring by calling join(";"). + @see join(); + */ + + virtual ddstring to_string() const + { + return join( ";" ); + } + + + /** + Alle Felder nach cout schreiben. Prototype only. + */ + + virtual void dump() const + { + log_fatal( "ddmaprow: dump not implemented!" ); + } + + + /** + Felder zu einem String zusammenpappen. Prototyp. + */ + + virtual ddstring join( const ddstring& sep, size_t from=0, size_t to=ddstring::npos ) const + { + log_fatal( "ddmaprow: join not implemented!" ); + return "--"; + } + + + /** + Benennt einen gegebenen Schlüssel um. + */ + + int replace_key( const ddstring& oldkey, const ddstring& newkey ) + { + int idx = _index.index_of( oldkey ); + if( idx<0 || oldkey == newkey ) + return idx; + _index.erase( oldkey ); + _index[ newkey ] = idx; + return idx; + } + + +protected: + + vector _data; + ddmapindex _index; + +}; + + +#endif diff --git a/supportware/src/ddmimemap.cpp b/supportware/src/ddmimemap.cpp new file mode 100644 index 0000000..1224ba3 --- /dev/null +++ b/supportware/src/ddmimemap.cpp @@ -0,0 +1,109 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +//#include + + +using namespace std; + + + +/** + Default constructor +*/ + +ddmimemap::ddmimemap() +: _default(DDDEFAULT_MIME) +{ + +} + + +/** + Copy constructor +*/ + +ddmimemap::ddmimemap( const ddmimemap& src ) +: ddbaseobject() +{ + *this = src; +} + + +/** + Destructor +*/ + +ddmimemap::~ddmimemap() +{ + +} + + +/** + Assignment operator. +*/ + +ddmimemap& ddmimemap::operator=( const ddmimemap& src ) +{ + if( this == &src ) + return *this; + _data = src._data; + return *this; +} + +/** + Init this structure by loading the "mime.types" file. + @param filename filename, defaults to "mime.types" + @param path the basepathc, defaults to "" +*/ + +void ddmimemap::init( const ddstring& filename ) +{ + + ddstring text; + if( text.from_file( filename ) < 0 ) + throw runtime_error( "ddmimemap::init failed!"); + + ddstringrow lines; + ddstringrow entry; + lines.create_lines( text ); + for( size_t i=0; i 1 ) + for( size_t x=1; x + + +using namespace std; + + +/// ddmimemap is the baseclass for (nearly) all dd classes. +/** + + */ + + +class ddmimemap : public ddbaseobject +{ + +public: + + ddmimemap(); + ddmimemap( const ddmimemap& src ); + ddmimemap& operator=( const ddmimemap& src ); + + virtual ~ddmimemap(); + + void init( const ddstring& filename="mime.types" ); + const ddstring& get_entry( const ddstring& key ); + bool empty() const; + void dump() const; + +protected: + + ddstring _default; + //FIX!! use multimap!! + ddstringmap _data; + + +}; + + +#endif diff --git a/supportware/src/ddshellcommand.cpp b/supportware/src/ddshellcommand.cpp new file mode 100644 index 0000000..0b539a2 --- /dev/null +++ b/supportware/src/ddshellcommand.cpp @@ -0,0 +1,28 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2010 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#include + + +ddshellcommand::ddshellcommand() +{ + +} + + +ddshellcommand::~ddshellcommand() +{ + +} + + diff --git a/supportware/src/ddshellcommand.h b/supportware/src/ddshellcommand.h new file mode 100644 index 0000000..cbfdb50 --- /dev/null +++ b/supportware/src/ddshellcommand.h @@ -0,0 +1,28 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2010 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#ifndef DDSHELLCOMMAND_H +#define DDSHELLCOMMAND_H + + +class ddshellcommand +{ + +public: + + ddshellcommand(); + virtual ~ddshellcommand(); + +}; + +#endif diff --git a/supportware/src/ddstack.h b/supportware/src/ddstack.h new file mode 100644 index 0000000..685c78b --- /dev/null +++ b/supportware/src/ddstack.h @@ -0,0 +1,145 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDSTACK_H +#define DDSTACK_H + +#include +#include +#include + +using namespace std; + + +/// ddstack is a templateted implementation of stack. +/** + + */ + +template +class ddstack : public ddbaseobject +{ + +public: + + /** + Default constructor. + */ + + ddstack() + { + + } + + /** + Copy constructor. + */ + + ddstack( const ddstack& src ) + { + *this=src; + } + + /** + Assignment operator. + */ + + ddstack& operator=( const ddstack& src ) + { + _data = src._data; + return *this; + } + + /** + Destructor. + */ + + virtual ~ddstack() + { + + } + + /** + Returns the number of elements on the stack. + */ + + size_t size() const + { + return _data.size(); + } + + /** + Returns true for an empty stack. + */ + + bool empty() const + { + return _data.empty(); + } + + /** + Removes all elements of the stack + */ + + void clear() + { + _data.clear(); + } + + /** + Returns the top most element of the stack without removing it. + */ + + T& top() + { + return _data.back(); + } + + /** + Adds an element on top of the stack. + */ + + void push( const T& elem ) + { + _data.push_back( elem ); + } + + /** + Returns the top most element of the stack and removes it. + */ + + T pop() + { + T elem = _data.back(); + _data.pop_back(); + return elem; + } + + /** + Prints all elements of the stack. + */ + + void dump() + { + throw runtime_error( "ddstack::dump(): not implemented!" ); + } + +protected: + + deque _data; + +}; + + +#endif diff --git a/supportware/src/ddstring.cpp b/supportware/src/ddstring.cpp new file mode 100644 index 0000000..ed28d9d --- /dev/null +++ b/supportware/src/ddstring.cpp @@ -0,0 +1,1023 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include + +using namespace std; + + + +/** + Default constructor. +*/ + + +ddstring::ddstring() +{ + +} + + +/** + Copy constructor. +*/ + +ddstring::ddstring( const ddstring& src ) +: string( src ) +{ + +} + + +/** + Assignment operator. +*/ + +ddstring& ddstring::operator=( const ddstring& src ) +{ + if( this == &src ) + return *this; + assign( src ); + return *this; +} + + +/** + Copy constructor. +*/ + +ddstring::ddstring( const string& src ) +: string( src ) +{ + +} + + +/** + Copy constructor. +*/ + +ddstring::ddstring( const char* src ) +: string( src ) +{ + +} + + +/** + Copy constructor. +*/ + +ddstring::ddstring( size_t len, char entry ) +: string( len, entry ) +{ + +} + + +/** + Copy constructor. +*/ + +ddstring::ddstring( const char* entry, size_t len ) +: string( entry, len ) +{ + +} + + +/** + Destructor. +*/ + +ddstring::~ddstring() +{ + +} + + +/** + Assignment operator. +*/ + +ddstring& ddstring::operator=( const string& src ) +{ + if( this == &src ) + return *this; + assign( src ); + return *this; +} + + +/** + Assignment operator. +*/ + +ddstring& ddstring::operator=( const char* src ) +{ + assign( src ); + return *this; +} + + +/** + wild: in zahl umwandeln, erhöhen und als string speichern +*/ +ddstring& ddstring::operator++( int ) +{ + from_int( as_int() + 1 ); + return *this; +} + + +/** + wild: in zahl umwandeln, decrementieren und als string speichern +*/ + +ddstring& ddstring::operator--( int ) +{ + from_int( as_int() - 1 ); + return *this; +} + + +/** + Konvertierung von Bool. Ergibt "true" bzw. "false". +*/ + +ddstring& ddstring::from_bool( bool num ) +{ + assign( num ? DDSTRTRUE : DDSTRFALSE ); + return *this; +} + + +/** + Konvertierung von Int. +*/ + +ddstring& ddstring::from_int( int num ) +{ + stringstream converter; + converter << num; + converter >> *this; + return *this; +} + + +/** + Konvertierung von unsigned int. +*/ + +ddstring& ddstring::from_size_t( size_t num ) +{ + stringstream converter; + converter << num; + converter >> *this; + return *this; +} + + +/** + Konvertierung von double. +*/ + +ddstring& ddstring::from_double( double num, int precision ) +{ + stringstream converter; + converter.precision( precision ); + converter << num; + converter >> *this; + return *this; +} + + +/** + Liest den Inhalt einer Datei via mmap in diesen String ein. + @param filename der Pfad + @return -1 bei Fehler, sonst die Dateigröße. + @see ddiommap +*/ + +int ddstring::from_file( const ddstring& filename ) +{ + ddiommap src; + int res = src.mmap( filename ); + if( res>-1 ) + assign( src.data(), src.max_output() ); + return res; +} + + + +/** + Konvertierung nach Bool: true falls der String "true" ist, + sonst false. +*/ + +bool ddstring::as_bool() const +{ + return ( *this == DDSTRTRUE ? true : false ); +} + + +/** + Konvertierung nach int. +*/ + +int ddstring::as_int() const +{ + int target = 0; + stringstream converter; + converter << *this; + converter >> target; + return target; +} + + +/** + Konvertierung nach double. +*/ + +double ddstring::as_double() const +{ + double target = 0; + stringstream converter; + converter << *this; + converter >> target; + return target; +} + + +/** + Konvertierung nach size_t. +*/ + +size_t ddstring::as_size_t() const +{ + size_t target = 0; + stringstream converter; + converter << *this; + converter >> target; + return target; +} + + +/** + Macht einen Dirnamen aus diesem String, indem ggf. '/' + angehängt wird. +*/ + +ddstring& ddstring::to_dir_name() +{ + if( empty() || (*this).last_byte() != '/' ) + (*this) += '/'; + return *this; +} + + +/** + String in Großschreibung umwandeln. +*/ + +ddstring& ddstring::to_upper() +{ + for( ddstring::size_type count=0; count < length(); count++ ) + (*this)[count] = toupper( (*this)[count] ); + return *this; +} + + +/** + String in Kleinschreibung umwandeln. +*/ + +ddstring& ddstring::to_lower() +{ + for( ddstring::size_type count=0; count < length(); count++ ) + (*this)[count] = tolower( (*this)[count] ); + return *this; +} + + +/** + Schreibt den Inhalt des Strings in eine Datei. + @param filename die Zieldatei +*/ +bool ddstring::to_file( const ddstring& filename ) +{ + ofstream outstream( filename.c_str(), ios::out ); + if( !outstream ) + return false; + outstream << *this; + outstream.close(); + return true; +} + + +ddstring& ddstring::to_split_text( size_t asize ) +{ + assign( as_split_text( asize ) ); + return *this; +} + +/** + Returns true if the ddstring "src" represents a numeric value. + @param src the source ddstring +*/ + +bool ddstring::is_number() const +{ + if( empty() ) + return false; + for( size_t i=0; i +*/ + +int hex2int( char c ) +{ + if ( c >= '0' && c <= '9' ) + return c - '0'; + if ( c >= 'a' && c <= 'f' ) + return c - 'a' + 10; + if ( c >= 'A' && c <= 'F' ) + return c - 'A' + 10; + /* shouldn't happen, we're guarded by isxdigit() */ + return 0; +} + + +/** + Sog. 'evil characters' wie & etc. ersetzen. + FIX! Fragwürdig! hier wird zuviel ersetzt! +*/ + +ddstring& ddstring::trim_evil() +{ + ddstring result; + + //Warum ? + //src.replace_all( " ", "" ); + + for( size_t i=0; i< size(); ++i ) + { + // strip codes, but keep \n and \t + if( (size_t) (*this)[i] < 32 && (*this)[i] != '\t' && (*this)[i] != '\r' && (*this)[i] != '\n' ) + continue; + + // neuer Versuch: einfach das + // amp escapen + switch( (*this)[i] ) + { + case '&' : + result += "&"; + break; + + case '"' : + result += """; + break; + + case '<' : + result += "<"; + break; + + case '>' : + result += ">"; + break; + + case '\\' : + result += "\"; + break; + + case '\'' : + result += "'"; + break; + + default : + result += (*this)[i]; + } + } + assign ( result ); + return *this; +} + + + + +ddstring& ddstring::trim_all_of( const ddstring& pattern ) +{ + const char* deny = pattern.c_str(); + ddstring dest; + + for( size_t i=0; i=size() ) + return *this; + while( asize && !isblank( (*this)[asize] ) ) + asize--; + resize( asize ); + append( "..." ); + return *this; +} + + +/** + Säbelt den string ab dem substring 'pattern' ab, fall vorhanden + @param asize die neue (maximale) Größe. +*/ + +ddstring ddstring::trim_pattern( const ddstring& pattern ) const +{ + size_t dash = find( pattern ); + if( dash != ddstring::npos ) + return substr( 0, dash ); + return *this; +} + + +/** + Replace parts in a ddstring. This function can be used to replace all + occurences of the sub ddstring oldstr in the ddstring src + with the new sub ddstring newstr. + The function returns the resulting ddstring. +*/ + + +ddstring& ddstring::replace_all( const ddstring& oldstr, const ddstring& newstr ) +{ + int pos, index = 0, offset = newstr.length() - oldstr.length(); + while( ( pos = find( oldstr,index ) ) >= 0 ) + { + replace( pos,oldstr.length(),newstr ); + index = pos + offset; + } + return *this; +} + + +size_t ddstring::count_all( const ddstring& txt ) +{ + int pos, index = 0, offset = txt.length(); + size_t found = 0; + while( ( pos = find( txt,index ) ) >= 0 ) + { + found ++; + index = pos + offset; + } + return found; +} + + +/** + Zählt die worte in einem Textblock. +*/ + +size_t ddstring::count_words() +{ + + size_t i = 0, found = 0; + + while( ioldstr
                                                in the ddstring src + with the new sub ddstring newstr. + The function returns the resulting ddstring. +*/ + +ddstring& ddstring::replace_all( char oldchar, char newchar ) +{ + for( size_t i=0; i= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || (::strchr( allow, c ) != 0) ) + result += c; + else + { + snprintf( buf, 9, "%%%2X", (unsigned char) c ); + result += buf; + } + } + assign( result ); + return *this; +} + + +/** + Unescape URL fields. + @param src the source string + Based on code from thttpd: Jef Poskanzer +*/ + +ddstring& ddstring::unescape() +{ + + if( empty() ) + return *this; + + size_t i=0; + size_t j=0; + + size_t max = 0; + if( size()>=3) + max = size()-3; + + for(; i= asize &&!in_tag ) + { + result += ' '; + chars=0; + } + result += c; + + } + return result; +} + + +/** + Nicht-Ascii-Zeichen absäbeln. + @param asize die neue (maximale) Größe. +*/ + +ddstring ddstring::as_cleaned_text( size_t asize ) const +{ + static const char* allow = "öäüßÄÖÜ@`´~^©®"; + ddstring dest; + int to = DDMIN( size(), asize ); + for( int i=0; i> result; + + return result; + + } + + + /** + Konvertierung von Bool. + @param num ein boolscher Wert. + */ + + ddstring from_bool( bool num ) + { + return ddstring( num ? DDSTRTRUE : DDSTRFALSE ); + } + + + /** + Konvertierung von Int. + @param num ein Integer Wert. + */ + + ddstring from_int( int num ) + { + ddstring newstr; + newstr.from_int( num ); + return newstr; + } + + + /** + Konvertierung von unsigned int. + @param num ein Size_t Wert. + */ + + ddstring from_size_t( size_t num ) + { + ddstring newstr; + newstr.from_size_t( num ); + return newstr; + } + + + /** + Konvertierung von Double. + @param num ein Double Wert. + @param precision Die Anzahl Stellen. + */ + + ddstring from_double( double num, int precision ) + { + ddstring newstr; + newstr.from_double( num, precision ); + return newstr; + } + + + /** + Konvertierung von Hex. + */ + + ddstring from_hex( int num, int bytes ) + { + stringstream converter; + ddstring result; + if( bytes ) + converter << setw(bytes) << setfill('0') << hex << num; + else + converter << hex << num; + converter >> result; + return result; + } + + + /** + Liest den Inhalt einer Datei via mmap in diesen String ein. + @param filename der Pfad + @return -1 bei Fehler, sonst die Dateigröße. + @see ddiommap + */ + + ddstring from_file( const ddstring& filename ) + { + ddstring newstr; + newstr.from_file( filename ); + return newstr; + } + +} + + + diff --git a/supportware/src/ddstring.h b/supportware/src/ddstring.h new file mode 100644 index 0000000..5f1bfb7 --- /dev/null +++ b/supportware/src/ddstring.h @@ -0,0 +1,185 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDSTRING_H +#define DDSTRING_H + +#include +#include +#include +#include + + +using namespace std; + + +/// ddstring + + +/// namespace ddstring contains utility functions for ddstring. + + + + +class ddstringrow; + +int hexit( char c ); + +class ddstring : public string +{ + +public: + + ddstring(); + ddstring( const ddstring& src ); + ddstring& operator=( const ddstring& src ); + + ddstring( const string& src ); + ddstring( const char* src ); + + ddstring( size_t len, char entry ); + ddstring( const char* entry, size_t len ); + + virtual ~ddstring(); + + ddstring& operator=( const string& src ); + ddstring& operator=( const char* src ); + + // wild: in zahl umwandeln, erhöhen und als string speichern + ddstring& operator++( int ); + + // wild: in zahl umwandeln, decrementieren und als string speichern + ddstring& operator--( int ); + + // unklar, ob das funktioniert + + ddstring& operator=( bool num ) + { + return from_bool( num ); + } + + ddstring& operator=( int num ) + { + return from_int( num ); + } + + ddstring& operator=( size_t num ) + { + return from_size_t( num ); + } + + ddstring& operator=( double num ) + { + return from_double( num ); + } + + inline ddstring dup() const + { + return ddstring( *this ); + } + + inline int last_byte() + { + if( this->size()>0 ) + return (*this)[this->size()-1]; + return 0; //?? + } + + inline bool contains( const ddstring& key ) const + { + return find( key ) != ddstring::npos; + } + + inline bool contains( const char key ) const + { + return find( key ) != ddstring::npos; + } + + ddstring& from_bool( bool num ); + ddstring& from_int( int num ); + ddstring& from_size_t( size_t num ); + ddstring& from_double( double num, int precision = 6 ); + int from_file( const ddstring& filename ); + + ddstring& to_dir_name(); + bool to_file( const ddstring& filename ); + ddstring& to_upper(); + ddstring& to_lower(); + ddstring& to_split_text( size_t asize ); + + bool is_number() const; + + ddstring& trim_evil(); + ddstring& trim(); + ddstring& trim_text( size_t asize ); + ddstring trim_pattern( const ddstring& pattern ) const; + ddstring& trim_all_of( const ddstring& pattern ); + ddstring& blank_all_of( const ddstring& pattern ); + + bool split( const ddstring& pattern, ddstring& part1, ddstring& part2 ) const; + + ddstring& replace_all( const ddstring& oldstr, const ddstring& newstr ); + ddstring& replace_all( char oldchar, char newchar ); + size_t count_all( const ddstring& txt ); + size_t count_words(); + + + + ddstring& escape(); + ddstring& unescape(); + + // Konvertierung _ohne_ Änderung + + inline ddstring as_upper() const + { + return dup().to_upper(); + } + + inline ddstring as_lower() const + { + return dup().to_lower(); + } + + + bool as_bool() const; + int as_int() const; + double as_double() const; + size_t as_size_t() const; + + ddstring as_split_text( size_t asize ) const; + ddstring as_cleaned_text( size_t asize = ddstring::npos ) const; + ddstring as_valid_nickname() const; + ddstring as_plain_ascii() const; + ddstring as_codeless_text() const; + +}; + + +namespace ddstrutil +{ + ddstring to_hex( int num, int bytes, bool uppercase=true ); + + ddstring from_bool( bool num ); + ddstring from_int( int num ); + ddstring from_size_t( size_t num ); + ddstring from_double( double num, int precision=6 ); + ddstring from_hex( int num, int bytes=0 ); + ddstring from_file( const ddstring& filename ); + +} //namespace ddstring + + + + +#endif diff --git a/supportware/src/ddstringrow.cpp b/supportware/src/ddstringrow.cpp new file mode 100644 index 0000000..19f0d56 --- /dev/null +++ b/supportware/src/ddstringrow.cpp @@ -0,0 +1,327 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#include +#include + + +/** + Default constructor. +*/ + +ddstringrow::ddstringrow() +{ +} + + +/** + Erzeugt eine ddstringrow mit vorgegebener Größe. + @param size die vorgegebene Größe. +*/ + +ddstringrow::ddstringrow( size_t asize ) +{ + if( asize ) + resize( asize ); +} + + +/** + Erzeugt eine ddstringrow aus einem char** array. + @param src Das quell-array. Muss zero terminated sein. +*/ + +ddstringrow::ddstringrow( const char** src ) +{ + create( src ); +} + + +/** + Erzeugt eine ddstringrow aus einem string + @see create +*/ + +ddstringrow::ddstringrow( const ddstring& src, const ddstring& sep, size_t minsize ) +{ + create( src, sep, false, minsize ); +} + + +/** + Destructor. +*/ + +ddstringrow::~ddstringrow() +{ + +} + + +/** + Erzeugt Felder aus einem char** array. + @param src Das quell-array. Muss zero terminated sein. +*/ + +void ddstringrow::create( const char** src ) +{ + while( *src ) + { + push_back( ddstring(*src) ); + src++; + } +} + + +/** + Einen string in Felder zerhacken + Felder werden durch jedes Zeichen in 'sep' getrennt, zB. create( "la;le;lu", ";" ) + Jeder Trenner erzeugt ein Feld: + create_lazy("la;;;le",";") erzeugt "la","","","le". + @param src der quellstring + @param sep der trenner. Default: " \t" (blank and tab). + @param keepseps wenn 'true' werden die Trennzeichen mitgespeichert.default: 'false'. + @see ddstringrow::create_lazy +*/ + +void ddstringrow::create( const ddstring& src, const ddstring& sep, bool doappend, size_t minsize ) +{ + if( !doappend ) + clear(); + + size_t beg = 0; + size_t end = 0; + size_t offset = sep.size(); + // ein trennzeichen, ein feld (ala otti) + while ( beg < src.size() ) + { + end = src.find_first_of( sep, beg ); + if( end == ddstring::npos ) + end = src.size(); + push_back( src.substr( beg, end - beg ) ); + beg = end + offset; + } + if( minsize ) + { + while( size() < minsize ) + // wieso bitte blank? + // push_back( " " ); + push_back( "" ); + } +} + + +/** + Einen string in Felder zerhacken +*/ + +void ddstringrow::create_blocks( const ddstring& src, const ddstring& sep, bool doappend ) +{ + if( !doappend ) + clear(); + + size_t beg = 0; + size_t end = 0; + size_t offset = sep.size(); + // ein trennzeichen, ein feld (ala otti) + while ( beg < src.size() ) + { + end = src.find( sep, beg ); + if( end == ddstring::npos ) + end = src.size(); + push_back( src.substr( beg, end - beg ) ); + beg = end + offset; + } +} + + +/** + Einen string in Felder zerhacken + Felder werden durch jedes Zeichen in 'sep' getrennt, zB. create( "la;le;lu", ";" ) + Mehrere Trenner hintereinader erzeugen nur ein Feld: + create_lazy("la;;;le",";") erzeugt "la","le". + @param src der quellstring + @param sep der trenner. Default: " \t" (blank and tab). + @param keepseps wenn 'true' werden die Trennzeichen mitgespeichert.default: 'false'. + @see ddstringrow::create +*/ + +void ddstringrow::create_lazy( const ddstring& src, const ddstring& sep, bool doappend, bool keepseps ) +{ + if( !doappend ) + clear(); + ddstring::size_type beg=0, end=0; + + // wiederholte trennzeichen gelten als eins + beg = src.find_first_not_of( sep ); + while( beg != ddstring::npos ) + { + // trennzeichen einsammeln + if( keepseps && beg ) + push_back( src.substr( end, beg - end ) ); + end = src.find_first_of( sep, beg ); + if (end == ddstring::npos) + end = src.size(); + push_back( src.substr( beg, end - beg ) ); + beg = src.find_first_not_of( sep, end ); + } + size_t len = end - src.size(); + if ( keepseps && len ) + push_back( src.substr( end, len ) ); +} + + +/** + Erzeugung aus einem String, dessen Felder die durch newline getrennt sind. +*/ + +void ddstringrow::create_lines( const char* src, size_t len, bool doappend ) +{ + create_lines( ddstring( src, len), doappend ); +} + + +/** + Erzeugung aus einem String, dessen Felder die durch newline getrennt sind. + @param src quelle + @see ddstringrow::create + @see ddstringrow::create_lazy +*/ + +void ddstringrow::create_lines( const ddstring& src, bool doappend ) +{ + if( !doappend ) + clear(); + size_t beg=0, end=0; + + // ein trennzeichen, ein feld (ala otti) + while ( beg < src.size() ) + { + end = src.find_first_of('\n', beg); + if (end == ddstring::npos) + end = src.size(); + size_t asize = end-beg; + if( src[beg+asize-1]=='\r' ) + --asize; + if(asize) + push_back( src.substr( beg,asize ) ); + beg = end + 1; + } +} + + +/** + Einen Eintrag hinten dranhängen. + @return the internal index of the new entry. +*/ + +size_t ddstringrow::add( const ddstring& item ) +{ + push_back( item ); + return size()-1; +} + + +/** + Den Eintrag 'entry' suchen und entfernen. +*/ + +void ddstringrow::kill_entry( const ddstring& entry ) +{ + // ?? was macht das? + erase( remove( begin(), end(), entry ), end() ); +} + + +/** + Den Eintrag an Position 'index' löschen. +*/ + +void ddstringrow::kill_entry( size_t index ) +{ + if( index >= size() ) + return; + erase( begin()+index ); +} + + +/** + @returns den index von 'key' oder -1. +*/ + +int ddstringrow::index_of( const ddstring& key ) const +{ + for( size_t i = 0; i < size(); i++ ) + if( (*this)[i] == key ) + return i; + return -1; +} + + +/** + Erzeugt einen String aus allen Feldern. + @param sep der separator string, zB. ";", default: ";" + @param from Das erste Feld, default: 0 + @param to das (nich eingeschlossene!!) Feld. default: npos. +*/ + +ddstring ddstringrow::join( const ddstring& sep, size_t from, size_t to ) const +{ + ddstring tmp; + size_t tmp_size = size(); + if( to != ddstring::npos ) + tmp_size = to; + if( from > tmp_size || tmp_size > size() ) + throw out_of_range( "ddstringrow::join: index 'from' out of range!" ); + + for( size_t i = from; i < tmp_size; i++ ) + { + tmp.append ( (*this)[i] ); + if( !sep.empty() && i != tmp_size - 1) + tmp.append ( sep ); + } + return tmp; +} + + +/** + Alle Felder nach cout schreiben. +*/ + +void ddstringrow::dump() const +{ + for( size_t i=0; i + +using namespace std; + +/// ddstringrow implemtiert ein String-Array. +/** + Änderung: + ddstringrow heisst jetzt ddstringrow, wird also als service + für ddstring interpretiert und nicht mehr als ddrow. + + Dadurch entspricht die Implementierung auch eher ddstringmap bzw. + (neuer name) ddstringmap. + + ddrow ist somit obsolet. + + @see ddstring +*/ + +class ddstringrow : public vector, public ddbaseobject +{ + +public: + + ddstringrow(); + ddstringrow( size_t size ); + ddstringrow( const char** src ); + ddstringrow( const ddstring& src, const ddstring& sep = ";", size_t minsize=0 ); + + virtual ~ddstringrow(); + + // FIX! auslagern in creators... + void create( const char** src ); + void create( const ddstring& src, const ddstring& sep = ";", bool doappend=false, size_t minsize=0 ); + void create_blocks( const ddstring& src, const ddstring& sep, bool doappend=false ); + void create_lazy( const ddstring& src,const ddstring& sep=" \t", bool doappend=false, bool keepseps=false ); + void create_lines( const char* src, size_t len, bool doappend=false ); + void create_lines( const ddstring& src, bool doappend=false ); + + size_t add( const ddstring& item ); + + void kill_entry( const ddstring& entry ); + void kill_entry( size_t index ); + + virtual ddstring join( const ddstring& sep="", size_t fro =0, size_t to=ddstring::npos ) const; + virtual int index_of( const ddstring& key ) const; + + // prototypes + + virtual ddstring& operator[]( const ddstring& key ) + { + throw out_of_range( "stringrow operator[ key ]: prototype" ); + return (*this)[0]; + } + + + virtual const ddstring& operator[]( const ddstring& key ) const + { + throw out_of_range( "stringrow operator[ key ] const: prototype" ); + return (*this)[0]; + } + + + virtual bool contains_key( const ddstring& key ) const + { + throw out_of_range( "stringrow contains_key: prototype" ); + return false; + } + + + /** + Setzt den Feldwert an der Position key, falls key vorhanden. + */ + + virtual void set_field_value( const ddstring& key, const ddstring& value ) + { + if( contains_key( key ) ) + (*this)[ key ] = value; + } + + // deppencompiler + + ddstring& operator[]( size_t index ) + { + /* + if( index < size() ) + return vector::operator[]( index ); + + ddstring msg = "ddstringrow operator[ size_t index ]: out of range: "; + msg += ddstrutil::from_size_t( index ) + " size: " + ddstrutil::from_size_t( size() ); + log_debug( msg ); + throw out_of_range( msg ); + */ + // zu testzwecken lassen wir ihn crashen: + if( index >= size() ) + { + ddstring msg = "ddstringrow operator[ size_t index ]: out of range: "; + msg += ddstrutil::from_size_t( index ) + " size: " + ddstrutil::from_size_t( size() ); + log_debug( msg ); + } + + return vector::operator[]( index ); + } + + + const ddstring& operator[]( size_t index ) const + { + + /* + if( index < size() ) + return vector::operator[]( index ); + + ddstring msg = "ddstringrow operator[ size_t index ]: out of range: "; + msg += ddstrutil::from_size_t( index ) + " size: " + ddstrutil::from_size_t( size() ); + log_debug( msg ); + throw out_of_range( msg ); + */ + + // zu testzwecken lassen wir ihn crashen: + if( index >= size() ) + { + ddstring msg = "ddstringrow operator[ size_t index ] CONST: out of range: "; + msg += ddstrutil::from_size_t( index ) + " size: " + ddstrutil::from_size_t( size() ); + log_debug( msg ); + } + + return vector::operator[]( index ); + + } + + + virtual void dump() const; + + + virtual ddstring to_string() const; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +class ddstringstaterow : public ddstringrow, public ddbasestate +{ +public: +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddstringmap: Simpler string-string Container. Basiert auf std::map. +/** + Zusätzliche wird noch der übliche Krempel wie contains_key etc. + implementiert. +*/ + +class ddstringmap : public map, public ddbaseobject +{ + +public: + + /** + Destructor. Tut nix. + */ + + virtual ~ddstringmap() + { + } + + + /** + Bastelt einen String aus allen Einträgen zum anschauen. + @see ddbaseobject + */ + + virtual ddstring to_string() const + { + ddstring result = "ddstringmap: "; + ddstringmap::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + { + result += (*pos).first; + result += " -- "; + result += (*pos).second; + result += "; "; + } + return result; + } + + + /** + @returns 'true' wenn ein Eintrag 'key' existiert. + */ + + virtual bool contains_key( const ddstring& key ) const + { + ddstringmap::const_iterator pos = find( key ); + return ( pos != end() ); + } + + + /** + Setzt den Feldwert an der Position key, falls key vorhanden. + */ + + virtual void set_field_value( const ddstring& key, const ddstring& value ) + { + if( contains_key( key ) ) + (*this)[ key ] = value; + } + + + /** + Schreibt alle Einträge nach cout. + @see ddbaseobject + */ + + virtual void dump() const + { + ddstringmap::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + { + ddstring line = "key: <" + (*pos).first + "> value: <" + (*pos).second + ">"; + cout << line << endl; + } + } + +}; + + +#endif diff --git a/supportware/src/ddstringset.cpp b/supportware/src/ddstringset.cpp new file mode 100644 index 0000000..c36ecad --- /dev/null +++ b/supportware/src/ddstringset.cpp @@ -0,0 +1,259 @@ +/*************************************************************************** + + libdope + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#include +#include + + +ddstringset::ddstringset() +{ + +} + +ddstringset::~ddstringset() +{ + +} + +ddstring ddstringset::to_string() const +{ + ddstring result; + set::const_iterator pos = _blockset.begin(); + for( ; pos != _blockset.end(); ++pos ) + result += (*pos) + "\n"; + return result; +} + + +void ddstringset::from_string( const ddstring& src, bool usecase ) +{ + ddstring source = src; + source.replace_all( "\r","" ); + ddstringrow row( source, "\n" ); + for( size_t i=0; i < row.size(); ++i ) + add_entry( usecase ? row[i] : row[i].to_lower() ); +} + + +bool ddstringset::contains_key( const ddstring& key ) +{ + ddthreadautomutex tmp( _blockmutex ); + return ( _blockset.count( key ) != 0 ); +} + + +void ddstringset::add_entry( const ddstring& key ) +{ + ddthreadautomutex tmp( _blockmutex ); + _blockset.insert( key ); +} + + +void ddstringset::drop_entry( const ddstring& key ) +{ + ddthreadautomutex tmp( _blockmutex ); + _blockset.erase( key ); +} + + +void ddstringset::to_row( ddstringrow& row ) +{ + ddthreadautomutex tmp( _blockmutex ); + set::const_iterator pos = _blockset.begin(); + for( ; pos != _blockset.end(); ++pos ) + row.add( (*pos) ); +} + + +bool ddstringset::find_entry_in( const ddstring& text ) +{ + + if( text.empty() ) + return false; + + ddthreadautomutex tmp( _blockmutex ); + + // wir holen uns eine liste aus bösen worten + // und schauen, ob eines davon im posting enthalten + // ist. + + ddstring lowtxt = text.as_lower(); + set::const_iterator pos = _blockset.begin(); + for( ; pos != _blockset.end(); ++pos ) + { + if( lowtxt.contains( (*pos).as_lower() ) ) + return true; + } + + return false; +} + + +/** + Schlimme Worte durch *Z* ersetzen +*/ + +void ddstringset::translate( ddstring& target, const ddstring& replacement ) +{ + // alte version: kann keine teilworte: ficken! bleibt, ficken ! klappt + + /* + + ddstring result, word; + size_t i=0; + while( i::const_iterator pos = _blockset.begin(); + // über jedes böse wort + for( ; pos != _blockset.end(); ++pos ) + { + ddstring key = (*pos).as_lower(); + int beg, index = 0, offset = replacement.length() - key.length(); + while( ( beg = lowtxt.find( key, index ) ) >= 0 ) + { + lowtxt.replace( beg, key.length(), replacement ); + target.replace( beg, key.length(), replacement ); + index = beg + offset; + } + + } + + +} + + +/*************************************************************************** + + libdope + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +ddstringrowset::ddstringrowset() +{ + +} + + +ddstringrowset::~ddstringrowset() +{ + +} + + +ddstring ddstringrowset::to_string() const +{ + ddstring result; + for( size_t i=0; i<_data.size(); ++i ) + result += _data[i] + "\n"; + return result; +} + + +/** + Einen String (für die DB) aus allen Einträgen zusammenbauen. +*/ + +void ddstringrowset::from_string( const ddstring& src ) +{ + ddstringrow row( src, "\n" ); + for( size_t i=0; i < row.size(); ++i ) + { + size_t pos = row[i].find( "|" ); + if( pos != ddstring::npos ) + ddstringset::add_entry( row[i].substr(0,pos) ); + _data.add( row[i] ); + } +} + + +/** + Einträge aus einem String (aus der DB) erzeugen. +*/ + +void ddstringrowset::add_entry( const ddstring& key, const ddstring& comment ) +{ + // die ip eintragen + ddstringset::add_entry( key ); + // wieder locken + ddthreadautomutex tmp( _blockmutex ); + ddstring entry = key + "|"; + entry += ddbasedate::now().to_string_de() + "|"; + entry += comment; + _data.add( entry ); +} + + +void ddstringrowset::drop_entry( const ddstring& key ) +{ + ddthreadautomutex tmp( _blockmutex ); + _blockset.erase( key ); + for( size_t i=0; i<_data.size(); ++i ) + { + if( _data[i].contains( key ) ) + { + _data.kill_entry( i ); + return; + } + } +} + + + diff --git a/supportware/src/ddstringset.h b/supportware/src/ddstringset.h new file mode 100644 index 0000000..872ce45 --- /dev/null +++ b/supportware/src/ddstringset.h @@ -0,0 +1,117 @@ +/*************************************************************************** + + libdope + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDSTRINGSET_H +#define DDSTRINGSET_H + +#include +#include +#include + +/// ddstringset: Ein persistentes String-Set. +/** + Der Inhalt des String-Sets kann zeilenweise auf Platte geschrieben und + wieder geladen werden. Wird verwendet für verschiedene Blocker-listen.
                                                + + FIXME: api an ddmaprow etc. angleichen + FIXME: Pesistenz zu allen storage items hinzufügen, mit einen iowriter + + FIXME: - stringset, stringrowset sind keine container, wie man meinen könnte, sondern spezialklassen. Aufräumen. + stringrowset erbt von stringset, warum? + +*/ + +class ddstringset : public ddbaseobject +{ + +public: + + ddstringset(); + virtual ~ddstringset(); + + virtual ddstring to_string() const; + virtual void from_string( const ddstring& src, bool usecase = true ); + + virtual bool contains_key( const ddstring& key ); + virtual void add_entry( const ddstring& key ); + virtual void drop_entry( const ddstring& key ); + + virtual void to_row( ddstringrow& row ); + virtual bool find_entry_in( const ddstring& text ); + + // ex wordset + virtual void translate( ddstring& target, const ddstring& replacement="*Z*" ); + + inline bool empty() + { + return _blockset.empty(); + } + +protected: + + set _blockset; + ddthreadmutex _blockmutex; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddstringrowset: Ein persistent-set mit zusatzdaten: Datum, Kommentar +/** + Dazu ist eine erweiterte Datenstruktur notwendig: Die Zustatzdaten werden + in einem String-Array gespeichert. +*/ + +class ddstringrowset : public ddstringset +{ + +public: + + ddstringrowset(); + ~ddstringrowset(); + + ddstring to_string() const; + void from_string( const ddstring& src ); + + void add_entry( const ddstring& key, const ddstring& comment ); + void drop_entry( const ddstring& key ); + + inline const ddstringrow& get_data() + { + return _data; + } + +protected: + + ddstringrow _data; + +}; + + + + +#endif diff --git a/supportware/src/ddthread.cpp b/supportware/src/ddthread.cpp new file mode 100644 index 0000000..56e5ba4 --- /dev/null +++ b/supportware/src/ddthread.cpp @@ -0,0 +1,323 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + Orginal Author : Dibyendu Majumdar + Email : dibyendu@mazumdar.demon.co.uk + +***************************************************************************/ + + +#include + +/// A ddthreadkey object represents the key for thread specific data. +/** + A ddthreadkey object represents the key for ddthread Specific + data. It is mainly used to initialize the key through the + Constructor. By declaring a ddthreadkey object as static, it is + possible to initialize the key before any threads execute. + + Status: beta
                                                +
                                                + FIX:
                                                +
                                                  +
                                                1. Create better documentation +
                                                2. Fix all remaining bugs ;-) +
                                                3. ... +
                                                +*/ + + +class ddthreadkey : public ddbaseobject +{ + +friend class ddthread; +friend class ddthreadinitializer; + +private: + + ddthreadkey(); + pthread_key_t getKey() { return key; } + + pthread_key_t key; + +}; + + +/** + * This is a helper class whose sole purpose is to initialize certain + * static objects in a particular order. + */ + +class ddthreadinitializer +{ + +public: + + ddthreadinitializer() + { + ddthread::key = new ddthreadkey(); + ddthreadfactory::_mutex = new ddthreadmutex(); + } + + ~ddthreadinitializer() + { + + } + +}; + + +ddthreadkey* ddthread::key; +ddthreadmutex* ddthreadfactory::_mutex; + +/* + * The initializer object initializes the above two objects. + */ + +ddthreadinitializer initialize; + +/** + Construct a thread key. +*/ + +ddthreadkey::ddthreadkey() +{ + int rc = pthread_key_create(&key, 0); + if (rc != 0) + log_fatal( "ddtreadkey.ctor: Error: Failed to create ddtreadkey" ); +} + + +/** + * A C wrapper to C++ function. + */ + +static void dm1_thread_cleanup( void *arg ) +{ + ddthread *me = (ddthread *)arg; + me->cleanup(); +} + + +/** + * The thread library expects the startup function to be in C. + * We therefore wrap a C function around the C++ method. + */ + +static void* dm1_thread_main( void *arg ) +{ + ddthread* thread = (ddthread*) arg; + thread->execute(); + return 0; +} + +/** + * Initialize the thread. This is called immediately after the thread has + * started executing. + */ + + +void ddthread::init() +{ + ddthreadfactory::lock(); + status = DM1_THREAD_RUNNING; + ddthreadfactory::unlock(); + + tid = ::pthread_self(); /* BUG in Linux pthread package ?? */ + int rc = ::pthread_setspecific(key->getKey(), (const void *)this); + if (rc != 0) + log_fatal( "ddthread.init: Error: Failed to set key value" ); +} + + +/** + Cleanup the thread. This is called before the thread terminates. +*/ + +void ddthread::cleanup() +{ + ::pthread_setspecific( key->getKey(), 0 ); + ddthreadfactory::lock(); + status = DM1_THREAD_DEAD; + ddthreadfactory::unlock(); +} + + +/** + This is the wrapper around the run() method. + It performs initialization and cleanup, and also handles any + exceptions raised by the run() method. +*/ + +void ddthread::execute() +{ + init(); + pthread_cleanup_push( dm1_thread_cleanup, this ); + _runnable->run(); + pthread_cleanup_pop(1); +} + + +/** + This is the method that should be called to start the ddthread +*/ + +void ddthread::start() +{ + + int rc = ::pthread_create( &tid, 0, dm1_thread_main, this ); + if (rc != 0) + log_fatal( "ddthread.start: Error: Failed to start thread %s\n" + get_name()); +} + + +/** + Cancel this thread +*/ + +void ddthread::cancel() +{ + int rc = ::pthread_cancel( tid ); + if (rc != 0 ) + log_fatal( "ddthread.cancel: Error: Failed to start thread " + get_name()); +} + + +/** + * The ddthread constructor. + */ + +ddthread::ddthread( ddthreadrunnable* runnable, const ddstring& name, bool daemon) +{ + status = DM1_THREAD_UNUSED; + isDaemon = daemon; + _runnable = runnable; + _runnable->set_thread( this ); + + isSignaled = 0; + set_name( name ); + status = DM1_THREAD_INITED; + +} + +/** + * Terminates the thread. + */ + +void ddthread::exit() +{ + cout << "exit: " << get_name() << endl; + ::pthread_exit(0); +} + + +/** + Waits until there is a timeout or some other thread signals this + thread. +*/ + +int ddthread::wait( unsigned secs ) +{ + if (secs == 0) + return 0; + return event.wait(secs); +} + + +/** + Waits until some other thread wakes it up. +*/ + +void ddthread::wait() +{ + event.wait(); +} + + +/** + Wakes up a waiting thread. +*/ + +void ddthread::notify( ddthread* other ) +{ + other->event.notify(); +} + + +/** + Waits for the thread to complete. + */ + +void ddthread::join() +{ + + int rc = ::pthread_join(tid, 0); + if (rc != 0) + log_fatal( "ddthread.join: Error: Failed to join thread: " + get_name()); + ddthreadfactory::lock(); + status = DM1_THREAD_UNUSED; + ddthreadfactory::unlock(); +} + + +/** + Destroys the ddthread object. + IMPORTANT: thread must be joined before this is called. +*/ + +ddthread::~ddthread() +{ + if( status != DM1_THREAD_UNUSED) + log_fatal( "ddthread.dtor: Error: ddthread object destroyed before ddthread %s has been joined" + get_name()); + //?? + //delete _runnable; + //_runnable = 0; + +} + + +/** + * Returns the current ddthread object. + */ + +ddthread* ddthread::get_current_thread() +{ + return (ddthread*) ::pthread_getspecific (key->getKey() ); +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + +*/ + +ddthread * ddthreadfactory::create_thread( ddthreadrunnable *runnable, const ddstring& name, bool daemon ) +{ + lock(); + ddthread* thread = new ddthread( runnable, name, daemon ); + //_threads->append(t); + unlock(); + return thread; +} + diff --git a/supportware/src/ddthread.h b/supportware/src/ddthread.h new file mode 100644 index 0000000..269e500 --- /dev/null +++ b/supportware/src/ddthread.h @@ -0,0 +1,147 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDTHREAD_H +#define DDTHREAD_H + +#include +#include +#include +#include +#include + +/// ddthread +/** + ROTT! FIX! +*/ + +class ddthread; +class ddthreadkey; + +class ddthread : public ddbasenamedobject +{ + + friend class ddthreadkey; + friend class ddthreadfactory; + friend class ddthreadinitializer; + +public: + + virtual ~ddthread(); + void cleanup(); + void execute(); + + void wait(); + int wait( unsigned secs ); + void exit(); + void join(); + void start(); + void cancel(); + + inline ddthreadrunnable* get_runnable() const + { + return _runnable; + } + + static void notify( ddthread* other ); + static ddthread* get_current_thread(); + +protected: + + enum ddthreadStatus + { + DM1_THREAD_UNUSED = 0, + DM1_THREAD_INITED = 1, + DM1_THREAD_RUNNING = 2, + DM1_THREAD_DEAD = 3 + }; + + enum + { + DM1_LATCH_WAIT_LIST = 0, + DM1_MONITOR_WAIT_LIST = 0, + DM1_FACTORY_WAIT_LIST = 1 + }; + + explicit ddthread( ddthreadrunnable* runnable, const ddstring& name="", bool isDaemon = false); + void init(); + + ddthreadStatus status; + pthread_t tid; + ddthreadevent event; + bool isSignaled; + ddthreadrunnable* _runnable; + bool isDaemon; + static ddthreadkey* key; + static int debug; + +private: + + ddthread( const ddthread& ); + ddthread& operator=(const ddthread& ); + + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddthreadfactory +/** + +*/ + +class ddthreadfactory : ddbaseobject +{ + +friend class ddthreadinitializer; +friend class ddthread; + +public: + + static ddthread *create_thread( ddthreadrunnable *runnable, const ddstring& name="", bool daemon = false ); + +protected: + + static ddthreadmutex *_mutex; + + static inline void lock() + { + _mutex->lock(); + } + + static inline void unlock() + { + _mutex->unlock(); + } + +}; + + + + + +#endif diff --git a/supportware/src/ddthreadevent.cpp b/supportware/src/ddthreadevent.cpp new file mode 100644 index 0000000..3fb64a0 --- /dev/null +++ b/supportware/src/ddthreadevent.cpp @@ -0,0 +1,145 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + +int ddthreadevent::debug = 0; + + +/* + * Initialize a event. An event can be of two types: + * DM1_EVENT_SINGLE - supports signalling and waking one waiting thread + * DM1_EVENT_BROADCAST - supports signalling and waking up multiple threads. + */ + +ddthreadevent::ddthreadevent(ddthreadeventType atype) +{ + signaled = false; + waitersCount = 0; + this->type = atype; + int rc = pthread_cond_init(&cond, 0); + if (rc != 0) { + //fprintf(stderr, "ddthreadevent.ctor: Error creating ddthreadevent object: errcode = %d\n", rc); + //throw ddthreadexception(__FILE__, __LINE__, DM1_ERR_EVENT_CREATE, rc); + } + +} + +/* + * Reset an event to non-signalled state. + */ + +void ddthreadevent::reset() +{ + mutex.lock(); + signaled = false; + mutex.unlock(); +} + +/* + * Wait for a event to be signalled. + */ +void ddthreadevent::wait() +{ + int rc = 0; + mutex.lock(); + if (signaled) { + signaled = false; + } + else { + waitersCount++; + rc = pthread_cond_wait(&cond, mutex.get_real_mutex() ); + waitersCount--; + } + mutex.unlock(); + if (rc != 0) { + //fprintf(stderr, "ddthreadevent.wait: Failed to wait on ddthreadevent: errcode = %d\n", rc); + //throw ddthreadexception(__FILE__, __LINE__, DM1_ERR_EVENT_WAIT, rc); + } +} + +/** + Wait for a event to be signalled. +*/ + +int ddthreadevent::wait(unsigned secs) +{ + struct timespec ts; + int rc = 0; + + mutex.lock(); + if (signaled) { + signaled = false; + } + else { + ts.tv_sec = time(0) + secs; /* Is this portable ? */ + ts.tv_nsec = 0; + waitersCount++; + rc = pthread_cond_timedwait(&cond, mutex.get_real_mutex(), &ts); + waitersCount--; + } + + mutex.unlock(); + if (rc != 0 && rc != ETIMEDOUT) { + //fprintf(stderr, "ddthreadevent.wait: Failed to wait on ddthreadevent: errcode = %d\n", rc); + //throw ddthreadexception(__FILE__, __LINE__, DM1_ERR_EVENT_WAIT, rc); + } + return rc; +} + +/** + * Signal a event variable, waking up any waiting thread(s). + */ +void ddthreadevent::notify() +{ + int rc = 0; + mutex.lock(); + switch (type) { + + case DM1_EVENT_SINGLE: + if (waitersCount == 0) { + signaled = true; + } + else { + rc = pthread_cond_signal(&cond); + } + break; + + case DM1_EVENT_BROADCAST: + rc = pthread_cond_broadcast(&cond); + break; + + } + mutex.unlock(); + if (rc != 0) { + fprintf(stderr, "ddthreadevent.notify: Failed to notify ddthreadevent: errcode = %d\n", rc); + //throw ddthreadexception(__FILE__, __LINE__, DM1_ERR_EVENT_NOTIFY, rc); + } + +} + +/* + * Destroy a event. + */ +ddthreadevent::~ddthreadevent() +{ + if (debug) + fprintf(stdout, "ddthreadevent.dtor: ddthreadevent destroyed\n"); + int rc; + while ((rc = pthread_cond_destroy(&cond)) == EBUSY) + notify(); + if (rc != 0) { + fprintf(stderr, "ddthreadevent.dtor: ddthreadevent being destroyed is BUSY\n"); + } +} diff --git a/supportware/src/ddthreadevent.h b/supportware/src/ddthreadevent.h new file mode 100644 index 0000000..30087c3 --- /dev/null +++ b/supportware/src/ddthreadevent.h @@ -0,0 +1,100 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDTHREADEVENT_H +#define DDTHREADEVENT_H + +#include +#include + +/// ddthreadevent: NICHT BENUTZT! FIX! +/** + +*/ + +class ddthreadevent +{ + +public: + + enum ddthreadeventType + { + DM1_EVENT_SINGLE = 1, + DM1_EVENT_BROADCAST = 2 + }; + + /** + * Creates an event. The Default is create an ddthreadevent of type Single. + */ + + explicit ddthreadevent( ddthreadeventType type = DM1_EVENT_SINGLE ); + + /** + * Destroys the ddthreadevent. + */ + + ~ddthreadevent(); + + /** + * Sets the ddthreadevent to Non-Signalled state. + */ + + void reset(); + + /** + * Unconditional wait. Waits for the ddthreadevent to become Signalled. + * Wait returns immediately if ddthreadevent is already in Signalled state; + * the ddthreadevent is automatically reset to Not-Signalled state. + */ + + void wait(); + + /** + * Conditional wait. Waits for upto “secs” seconds for the ddthreadevent + * to be signalled. Wait returns immediately if ddthreadevent is already + * in Signalled state; the ddthreadevent is automatically reset to + * Non-Signalled state. + */ + + int wait(unsigned secs); + + /** + * Sets an ddthreadevent to Signalled state, and wakes up one waiting + * thread in case of an ddthreadevent of type Single, or all waiting threads + * in case of an ddthreadevent of type Broadcast. + */ + + void notify(); + + static void setDebug(int value) { debug = value; } + + +private: + + ddthreadeventType type; + pthread_cond_t cond; + ddthreadmutex mutex; + bool signaled; + unsigned waitersCount; + + static int debug; + +private: + + ddthreadevent(const ddthreadevent& other); + ddthreadevent& operator=(const ddthreadevent& other); + +}; + +#endif diff --git a/supportware/src/ddthreadmutex.h b/supportware/src/ddthreadmutex.h new file mode 100644 index 0000000..f572fdd --- /dev/null +++ b/supportware/src/ddthreadmutex.h @@ -0,0 +1,153 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#ifndef DDTHREADMUTEX_H +#define DDTHREADMUTEX_H + +#include +#include +#include + +class ddthreadautomutex; + + +/// ddthreadmutex +/** + Sollte nicht solo sondern aus sicherheitsgründen nur als automutex + verwendet werden. +*/ + + +class ddthreadmutex +{ + +friend class ddthreadautomutex; + +public: + + /** + Creates a ddthreadmutex object. + */ + + inline explicit ddthreadmutex() + { + int rc = pthread_mutex_init( &_mutex, 0 ); + if( rc != 0 ) + throw runtime_error( "ddthreadmutex: Error creating ddthreadmutex:" + ddstrutil::from_int(rc) ); + } + + + /** + Destroys the ddthreadmutex object. + */ + + inline ~ddthreadmutex() noexcept + { + int rc = pthread_mutex_destroy( &_mutex ); + if( rc != 0 ) + ; + //throw runtime_error( "ddthreadmutex: Error destroying ddthreadmutex: " + ddstrutil::from_int(rc) ); + //log_( "ddthreadmutex: Error destroying ddthreadmutex: " + ddstrutil::from_int(rc) ); + } + + /** + Acquires the ddthreadmutex lock. Calling thread is + blocked until the ddthreadmutex lock is granted. + Recursive calls are not supported. + */ + + inline void lock() + { + int rc = pthread_mutex_lock( &_mutex ); + if( rc != 0 ) + throw runtime_error( "ddthreadmutex.: Error locking ddthreadmutex:" + ddstrutil::from_int(rc) ); + } + + + /** + Unlocks the ddthreadmutex object. Caller must hold the + lock before calling unlock. + */ + + inline void unlock() + { + int rc = pthread_mutex_unlock( &_mutex ); + if (rc != 0) + throw runtime_error( "ddthreadmutex: Error unlocking ddthreadmutex:" + ddstrutil::from_int(rc) ); + } + + + inline pthread_mutex_t* get_real_mutex() + { + return &_mutex; + } + +private: + + ddthreadmutex( const ddthreadmutex& ); + ddthreadmutex& operator=( const ddthreadmutex& ); + + pthread_mutex_t _mutex; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddthreadautomutex +/** + an autmatic mutex +*/ + + +class ddthreadautomutex +{ + +public: + + + inline explicit ddthreadautomutex( ddthreadmutex& mutex ) + : _mutex( &mutex ) + { + _mutex->lock(); + } + + + inline ~ddthreadautomutex() + { + _mutex->unlock(); + } + + +private: + + ddthreadautomutex( const ddthreadautomutex& ); + ddthreadautomutex& operator=( const ddthreadautomutex& ); + + ddthreadmutex* _mutex; + +}; + +#endif diff --git a/supportware/src/ddthreadrunnable.cpp b/supportware/src/ddthreadrunnable.cpp new file mode 100644 index 0000000..bebd6c6 --- /dev/null +++ b/supportware/src/ddthreadrunnable.cpp @@ -0,0 +1,123 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include + + +/** + Constructor. +*/ + +ddthreadrunnable::ddthreadrunnable() +: _owner( 0 ) +{ + +} + +/** + Constructor. +*/ + +ddthreadrunnable::ddthreadrunnable( const ddstring& name ) +: ddbasenamedobject( name ), _owner( 0 ) +{ + +} + +/** + Destructor. +*/ + +ddthreadrunnable::~ddthreadrunnable() +{ + +} + + +/** + Derived classes must implement this method. This is + the main body of the thread. +*/ + +void ddthreadrunnable::run() +{ + +} + + +/** + Create and start the peer thread of this runnable. +*/ + +void ddthreadrunnable::start_thread() +{ + ddthreadfactory::create_thread( this, get_name() ); + get_thread()->start(); +} + + +/** + Create and start the peer thread of this runnable. +*/ + +void ddthreadrunnable::cancel_thread() +{ + get_thread()->cancel(); +} + + +/** + Unconditional wait. Puts the owning thread to sleep + until another thread signals it. +*/ + +void ddthreadrunnable::wait() +{ + _owner->wait(); +} + + +/** + Conditional wait. If the thread is not signalled + before the timeout expires, then this method returns + ETIMEDOUT. +*/ + +int ddthreadrunnable::wait( unsigned secs ) +{ + return _owner->wait( secs ); +} + + +/** + Notify (==wakeup) the waiting owner thread. +*/ + +void ddthreadrunnable::notify() +{ + ddthread::notify( _owner ); +} + + +/** + Terminates the owning thread. +*/ + +void ddthreadrunnable::exit() +{ + _owner->exit(); +} + + diff --git a/supportware/src/ddthreadrunnable.h b/supportware/src/ddthreadrunnable.h new file mode 100644 index 0000000..6bab6c3 --- /dev/null +++ b/supportware/src/ddthreadrunnable.h @@ -0,0 +1,70 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ +#ifndef DDTHREADRUNNABLE_H +#define DDTHREADRUNNABLE_H + + +#include + +class ddthread; + +/// ddthreadrunnable: basisklasse für prozesse die von einen thread ausgeführt werden. +/** + Geklaut aus irgendeiner library, basiert konzeptionell auf java. + +*/ + +class ddthreadrunnable : public ddbasenamedobject +{ + +friend class ddthread; + +public: + + ddthreadrunnable(); + ddthreadrunnable( const ddstring& name ); + virtual ~ddthreadrunnable(); + + virtual void run(); + + void wait(); + int wait( unsigned secs ); + void exit(); + void notify(); + void start_thread(); + void cancel_thread(); + + + /** + Jedes runnable hat einen Besitzer-Thread. + */ + + ddthread* get_thread() const + { + return _owner; + } + + +private: + + inline void set_thread( ddthread *owner ) + { + _owner = owner; + } + + ddthread *_owner; + +}; + + +#endif diff --git a/supportware/src/ddtoken.cpp b/supportware/src/ddtoken.cpp new file mode 100644 index 0000000..412377c --- /dev/null +++ b/supportware/src/ddtoken.cpp @@ -0,0 +1,154 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + + +using namespace std; + + +const char* ddtoken::id[] = +{ + "op_nop", + + // data types + "invalid", + + "void", + "ddstring", + "int", + "double", + + "object", + "date", + "currency", + "seq", + + "bool", + + "page", + "module", + "domain", + "table", + "section", + "form", + "tagblock", + + // "token types + "op_id", + "op_val", + "op_ref", + "op_type", + "op_fun", + "op_efn", + "op_block", + "op_eblk", + "op_loop", + "op_elop", + "op_emd", + "op_oprt", + "op_keywd", + + // keywords + + "do", + "while", + "for", + "if", + "else", + "switch", + "default", + "break", + "continue", + "return", + + "try", + "throw", + "catch", + "assert", + "op_system", + //"print", + //"println", + //"now", + //"millis", + //"timer_start", + //"timer_elapsed", + //"set_alarm", + + // primitiv operators + ",", //"op_comma, + ".", //"op_dot, + ":", //"op_colon, + ";", //"op_semicolon, + "?", //"op_questionmark, + + "(", //"op_open_brace1 + ")", //"op_close_brace1 + "[", //"op_open_brace2 + "]", //"op_close_brace2 + "{", //"op_open_brace3 + "}", //"op_close_brace3 + + // operators + "=", //tok_assign", + + "+", //"op_add", + "-", //"op_sub", + "*", //"op_mul", + "/", //"op_div", + "%", //"op_mod", + "|", //"op_int_div", + "&", //"op_concat", + + "+=", //"op_add_assign", + "-=", //"op_sub_assign", + "*=", //"op_mul_assign", + "/=", //"op_div_assign", + "%=", //"op_mod_assign", + "|=", //"op_int_div_assign", + "&=", //"op_concat_assign", + + ">", //"op_greater", + ">=", //"op_greater_eq", + "==", //"op_equal", + "!=", //"op_not_equal", + "<", //"op_less", + "<=", //"op_less_eq", + + "&&", //"op_log_and", + "||", //"op_log_or", + + "!", //"op_not", + "++", + "--", + "op_preop", + "op_umin", + + // vm instructions that are no keywords but in source code + //"op_sys_millis", + + // vm instructions + "op_sav_sp", + "op_rst_sp", + "op_psh", + "op_cstr", + "op_call", + "op_apply", + "op_jp", + "op_jpf", + "op_jpe", + "op_jpef" + +}; + diff --git a/supportware/src/ddtoken.h b/supportware/src/ddtoken.h new file mode 100644 index 0000000..38a5102 --- /dev/null +++ b/supportware/src/ddtoken.h @@ -0,0 +1,184 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef ddtoken_H +#define ddtoken_H + +#include + +using namespace std; + + +/// ddtoken defines all tokens used by the ddscript compiler. +/** + These definitions are used by the scanner and parser as tokens + and by the vm as opcodes. + + Status: beta
                                                +
                                                + FIX:
                                                +
                                                  +
                                                1. Create better documentation +
                                                2. Fix all remaining bugs ;-) +
                                                3. ... +
                                                + */ + + +class ddtoken +{ + +public: + + enum dd_token + { + t_nop = 0, + + // basic data types + t_invalid, //1 //?? cleanup here! + + t_void, + t_ddstring, + t_int, + t_double, + + t_object, + t_date, + t_currency, + t_seq, + + t_bool, + + t_page, + t_module, + t_site, //?? + t_table, + t_section, + t_form, + t_tagblock, + + // token types + t_id, + t_value, + t_ref, + t_type, + t_function, + t_function_end, + t_block, + t_block_end, + t_loop, + t_loop_end, + t_module_end, + t_operator, + t_keyword, + + // keywords + t_do, + t_while, + t_for, + t_if, + t_else, + t_switch, + t_default, + t_break, + t_continue, + t_return, + + t_try, + t_throw, + t_catch, + t_assert, + + //system commanfs executed by the vm + t_system, + //print, + //println, + //now, + //millis, + //timer_start, + //timer_elapsed, + //set_alarm, + + // primitiv operators + t_comma, + t_dot, + t_colon, + t_semicolon, + t_questionmark, + + t_open_brace1, // ( + t_close_brace1,// ) + t_open_brace2, // [ + t_close_brace2,// ] + t_open_brace3, // { + t_close_brace3, //} + + // operators + t_assign, + + t_add, + t_sub, + t_mul, + t_div, + t_mod, + t_int_div, + t_concat, + + t_add_assign, + t_sub_assign, + t_mul_assign, + t_div_assign, + t_mod_assign, + t_int_div_assign, + t_concat_assign, + + t_greater, + t_greater_eq, + t_equal, + t_not_equal, + t_less, + t_less_eq, + + t_log_and, + t_log_or, + + t_not, + t_inc, + t_dec, + t_preop, + t_unary_minus, + + // vm instructions that are no keywords but in source code + //sys_millis, + + // pure vm instructions + t_save_sp, + t_restore_sp, + t_push, + t_cast_rel, + t_call, + t_apply, + t_jmp, + t_jmpf, + t_jmpe, + t_jmpef, + + dd_token_size + }; + + static const char* id[]; +}; + + +#endif diff --git a/supportware/src/dduserid.cpp b/supportware/src/dduserid.cpp new file mode 100644 index 0000000..244c214 --- /dev/null +++ b/supportware/src/dduserid.cpp @@ -0,0 +1,313 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include + + +using namespace std; + + +/** + Standard constructor: Baut einen 'gast' +*/ + +dduserid::dduserid( ddusermanager* parent ) +: _parent( parent), _useraccessrights( 1 ), _useritemperpage( DDDEFAULTITEMSPERPAGE ), + _lastaccess(0), _lastpost(0), _lastalert(0), + _hits( 0 ), _acceptterms( false ), _mailalert( true ), + _lockcount(0) +{ + + // create guest user + _usr_id = "1"; + _usr_nick_name = DDGUESTNICK; + + _sessionkey = parent->create_session_key(); + +} + + +/** + Standard constructor: Baut einen 'member' +*/ + +dduserid::dduserid( ddusermanager* parent, dddatastaterow& row ) +: _parent( parent), _useraccessrights( 1 ), _useritemperpage( DDDEFAULTITEMSPERPAGE ), + _lastaccess(0), _lastpost(0), _lastalert(0), + _hits( 0 ), _acceptterms( false ), _mailalert( true ), + _lockcount(0) +{ + + // konfigurieren + + //select id id_user, sn_nickname, sn_cryptopass, sn_nickmail, sn_addressbook, + //sn_googlechannel1, sn_googlechannel2, sn_itemsperpage, sn_mailalert from tr_user + + set_access_rights( 2 ); + set_items_per_page( row["sn_itemsperpage"] ); + // angemeldete nutzer haben schon akzeptiert. + _acceptterms = true; + _mailalert = ( row["sn_mailalert"] == "1" ? true : false ); + + // neu + _usr_id = row["id_user"]; + _usr_nick_name = row["sn_nickname"]; + _usr_passwd = row["sn_cryptopass"]; + _usr_nick_mail = row["sn_nickmail"]; + _usr_address_book = row["sn_addressbook"]; + + _usr_google_channel1 = row["sn_googlechannel1"]; + _usr_google_channel2 = row["sn_googlechannel2"]; + + _propertiesstring = row["sn_properties"]; + + _sessionkey = parent->create_session_key(); + +} + +// xx_prop_eins=true|xx_prop_zwo=false|xx_prop_drei=42 +void dduserid::init_properties() +{ + ddstringrow row( _propertiesstring, "|" ); + for( size_t i=0; i= 0 ) + return; + _usr_nick_name = newnick; + +} + + +/** + Set a new nickmail. Works for guest users only. +*/ + +void dduserid::set_nick_mail( const ddstring& newnick ) +{ + // root darf das + //if( is_member() ) + // throw runtime_error( "set_nick_mail: can't set new nickmail for members!" ); + //(*this)[dduserid::usr_nick_mail].assign( newnick ); + _usr_nick_mail = newnick; + +} + + +/** + @return Setzt das Mail-Alert-Flag +*/ + +bool dduserid::set_mail_alert_flag( bool mailalert ) +{ + if( _mailalert != mailalert ) + get_user_manager().usr_update_single( get_id(), "sn_mailalert", mailalert ? "1" : "0" ); + _mailalert = mailalert; + return _mailalert; +} + + +/** + Create a string representation. + @return a the session is (hex) ddstring +*/ + +ddstring dduserid::to_string() const +{ + return _hostip + ":" + get_nick_name() + " " + get_passwd() + " " + get_nick_mail() + " access:" + ddstrutil::from_int(_useraccessrights) + " items:" + ddstrutil::from_int(_useritemperpage); +} + + +/** + Write user data ( nickname, nickmail etc) into a form + @param item the form + @param user the user data object +*/ + +void dduserid::sync( ddwebcgi& cgi ) +{ + //cgi.dump(); + //throw runtime_error( "dduserid::sync( ddwebcgi& cgi )" ); + /* + // alt + size_t _useraccessrights; + int _useritemperpage; + ddstringmap _userdata; + + time_t _lastaccess; + time_t _lastpost; + time_t _lastalert; + int _hits; + bool _acceptterms; + bool _mailalert; + int _lockcount; + ddstring _hostip; + ddstring _sessionkey; + ddstring _pagercount; + ddstring _pagerinboxcache; + ddstring _pageroutboxcache; + + // neu + ddstring _usr_id; + ddstring _usr_nick_name; + ddstring _usr_passwd; + ddstring _usr_nick_mail; + ddstring _usr_address_book; + + ddstring _usr_google_channel1; + ddstring _usr_google_channel2; + + key: value: <19748> + key: value: + key: value: <> + key: value: <19748> + key: value: + key: value: <> + key: value: + key: value: <> + key: value: <> + key: value: + key: value: <0> + key: value: + key: value: <> + key: value: + key: value: + key: value: + + */ + + // davon bleiben dann nur 2 Felder übrig: + _usr_nick_mail = cgi["sn_nickmail"]; + _usr_address_book = cgi["sn_addressbook"]; + +} + + + diff --git a/supportware/src/dduserid.h b/supportware/src/dduserid.h new file mode 100644 index 0000000..2488d4e --- /dev/null +++ b/supportware/src/dduserid.h @@ -0,0 +1,596 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDUSERID_H +#define DDUSERID_H + + +#include +#include +#include +#include + +class dduserid; +class ddusermanager; +class ddusermanager_alt; + +/// dduserid: Speichert Userdaten und persönliche Einstellungen. +/** + Nach den nervigen Dauercrashes hier eine komplette + Dau-Neuimplementierung um den Bug zu tracken +*/ + +//class dduserid : public dddataobject +class dduserid : public ddbaseobject +{ + +friend class ddusermanager; + + +public: + + enum dd_user_right + { + usr_is_guest = 1, + usr_is_member = 2, + usr_is_moderator = 4, + usr_is_admin = 8, + usr_is_root = 16, + + usr_is_registered = 30, + + usr_can_edit_msg = 32, + usr_can_edit_news = 64, + usr_can_edit_usr = 128, + usr_can_edit_sale = 256, + usr_can_edit_comment = 512, + usr_can_edit_vote = 1024, + usr_can_edit_drivers = 2048, + usr_can_edit_faq = 4096, + + usr_can_edit_chat = 8192 + + //... + }; + + // FIX! Abhängig von der Feldreihenfolge der Datenbankabfrage! + // select id id_user, sn_nickname, sn_cryptopass, sn_nickmail, sn_addressbook, sn_googlechannel1, sn_googlechannel2, sn_itemsperpage, sn_mailalert + + /* + enum dd_user_field + { + usr_id=0, + usr_nick_name, + usr_passwd, + usr_nick_mail, + usr_address_book, + + usr_google_channel1, + usr_google_channel2, + + usr_items_per_page, + usr_mail_alert, + + usr_field_size + + }; + */ + + /* + + +-------+---------------+-----------------+ + | id | sn_nickname | sn_accessrights | + +-------+---------------+-----------------+ + | 6879 | Butzefrau | 15342 | + | 19748 | cyc | 16382 | + | 4 | halfstone | 16382 | + | 123 | Locke | 15342 | + | 7489 | Mickey | 15342 | + | 691 | MixMax | 15342 | + | 5833 | Rangoo | 15342 | + | 76 | Thomas | 15342 | + | 48 | Unforgiven_II | 15342 | + +-------+---------------+-----------------+ + + */ + + //dduserid(); + // das ist ein guest + dduserid( ddusermanager* parent ); + // das ist ein member + dduserid( ddusermanager* parent, dddatastaterow& row ); + + virtual ~dduserid(); + + inline bool check_access( int flag ) const + { + return ( _useraccessrights & flag ); + } + + inline bool is_guest() const + { + // OOPS! sind alle members auch guests? + // NEIN! + return ( _useraccessrights & usr_is_guest ); + } + + inline bool is_member() const + { + return ( _useraccessrights & usr_is_member ); + } + + + /** + Das ist Pfusch, liegt aber daran, das alle SubAdmin-Rechte + auf 'can_edit_new' gebucht wurden. + */ + + inline bool is_sub_admin() const + { + return is_admin() || ( _useraccessrights & usr_can_edit_news ); + } + + inline bool is_admin() const + { + return ( _useraccessrights & usr_is_admin ); + } + + inline bool is_root() const + { + return ( _useraccessrights & usr_is_root ); + } + + inline bool is_registered() const + { + return ( _useraccessrights & usr_is_registered ); + } + + void sync( ddwebcgi& cgi ); + + ddstring to_string() const; + + inline ddusermanager& get_user_manager() + { + return *_parent; + } + + + + + /** + @return Die Anzahl Zeilen pro Seite + */ + + inline int get_items_per_page() + { + // darf eigentlich nicht vorkommen... + if( _useritemperpage < 10 ) + _useritemperpage = 30; + return _useritemperpage; + } + + inline const ddstring& get_session_key() const + { + return _sessionkey; + } + + /** + @return Den ersten googlechannel des users + */ + + inline const ddstring& get_google_channel1() const + { + //return (*this)[dduserid::usr_google_channel1]; + return _usr_google_channel1; + } + + + /** + @return Den zweiten googlechannel des users + */ + + inline const ddstring& get_google_channel2() const + { + return _usr_google_channel2; + } + + + /** + @return Die Bonuspunkte für die Beantwortung einer Frage dieses Members. + */ + + inline int get_rank_score() const + { + return 50; + } + + + /** + Setzt die Anzahl Zeilen pro Seite + Set the items per page for a user. + @param the new item count. + @return true when the value was valid. ( 0 < value < 50 ) + */ + + inline bool set_items_per_page( const ddstring& itemsperpage ) + { + return set_items_per_page_int( itemsperpage.as_int() ); + } + + bool set_items_per_page_int( int itemsperpage ) + { + _useritemperpage = itemsperpage; + if( !_useritemperpage || _useritemperpage > DDMAXITEMSPERPAGE ) + { + _useritemperpage = DDDEFAULTITEMSPERPAGE; + return false; + } + return true; + } + + /** + @return Die user-id (==database key). + */ + + inline const ddstring& get_id() const + { + //return (*this)[dduserid::usr_id]; + return _usr_id; + } + + + /** + @return Den Nickname. + */ + + inline const ddstring& get_nick_name() const + { + //return (*this)[dduserid::usr_nick_name]; + return _usr_nick_name; + } + + + /** + Einen neuen nickname setzen. guest users only. + */ + + void set_nick_name( const ddstring& newnick ); + + + /** + Eine neue nickmail setzen. guest users only. + */ + + void set_nick_mail( const ddstring& newnick ); + + + /** + @return das (verschlüsselte) passwort. + */ + + inline const ddstring& get_passwd() const + { + return _usr_passwd; + } + + + /** + Ein neues crypto-passwd setzen + */ + + void set_passwd( const ddstring& newpass ) + { + _usr_passwd = newpass; + } + + + /** + @return die aktuelle mail-adresse. + */ + + inline const ddstring& get_nick_mail() const + { + return _usr_nick_mail; + } + + + /** + @return das pager-adressbuch. + */ + + inline const ddstring& get_address_book() const + { + return _usr_address_book; + } + + inline void set_address_book( const ddstring& usr_address_book ) + { + _usr_address_book = usr_address_book; + } + + + inline const ddstringmap& get_property_map() const + { + return _properties; + } + + inline const ddstring& get_property( const ddstring& key ) + { + if( _properties[key].empty() ) + init_properties(); + return _properties[key]; + } + + + inline const bool check_property( const ddstring& key ) + { + if( _properties[key].empty() ) + init_properties(); + + const ddstring& prop = _properties[key]; + return ( prop == "1" || prop == "true" ); + + } + + + inline void set_property( const ddstring& key, const ddstring& value ) + { + _properties[key] = value; + } + + inline void clear_property( const ddstring& key ) + { + _properties.erase( key ); + } + + /** + @return the accerights of this user. + */ + + size_t get_access_rights() const + { + return _useraccessrights; + } + + void set_access_rights( size_t accessrights ) + { + _useraccessrights = accessrights; + } + + /** + @return the last access time of this user id. + */ + + inline time_t get_access_time() const + { + return _lastaccess; + } + + + /** + Set accesstime to "now" + @param now a time_t value. + */ + + inline void update_access_time() + { + _lastaccess = ::time(0); + } + + + /** + @return the last access time of this user id. + */ + + inline time_t get_last_posting_time() const + { + return _lastpost; + } + + + /** + Set accesstime to "now" + @param now a time_t value. + */ + + inline void update_posting_time() + { + _lastpost = ::time( 0 ); + } + + + /** + Gibt den Zeitpunkt des letzten Admin-Alerts + zurück (Es soll nur alle x Sekunden ein alert + geschickt werden können, um Spam zu vermeiden. + */ + + inline time_t get_last_alert_time() const + { + return _lastalert; + } + + + /** + Letzten Admin-Alert Zeitpunkt merken. + */ + + inline void update_alert_time() + { + _lastalert = ::time( 0 ); + } + + + /** + @return the hitcount for this userid. + */ + + inline int get_hits() const + { + return _hits; + } + + inline void increment_hits() + { + _hits++; + } + + bool get_accepting_terms_flag() const; + + inline void set_accepting_terms_flag( bool flag ) + { + _acceptterms = flag; + } + + /** + Gibt das Mail-Alert-Flag zurück@return Ist bei members default false, + bei guests true. + */ + + inline bool get_mail_alert_flag() const + { + return _mailalert; + } + + + /** + @return Setzt das Mail-Alert-Flag + */ + + bool set_mail_alert_flag( bool mailalert ); + + + /** + @return Die ip-addresse des users. + */ + + inline const ddstring& get_host_ip() const + { + return _hostip; + } + + inline void set_host_ip( const ddstring& hostip ) + { + _hostip = hostip; + } + + inline bool user_is_locked() + { + return (_lockcount>0); + } + + inline void user_lock() + { + _lockcount++; + } + + inline void user_unlock() + { + _lockcount--; + } + + + inline const ddstring& get_last_login_date() const + { + return _lastlogindate; + } + + inline void set_last_login_date( const ddstring& lastlogindate ) + { + _lastlogindate = lastlogindate; + } + + + inline void set_system_message( const ddstring& sysmessage1, const ddstring& sysmessage2="", const ddstring& syslink = "" ) + { + set_property( "sn_sysmessage1", sysmessage1 ); + set_property( "sn_sysmessage2", sysmessage2 ); + set_property( "sn_sysmessage3", syslink ); + } + + inline void clear_system_message() + { + set_system_message( "", "", "" ); + } + + + inline const ddstring& get_prepared_nickname() const + { + return _preparednickname; + } + + inline void set_prepared_nickname( const ddstring& preparednickname ) + { + _preparednickname = preparednickname; + } + + void init_properties(); + void save_properties(); + void reset_properties(); + +protected: + + // neu + ddusermanager* _parent; + + // alt + size_t _useraccessrights; + int _useritemperpage; + time_t _lastaccess; + time_t _lastpost; + time_t _lastalert; + int _hits; + bool _acceptterms; + bool _mailalert; + int _lockcount; + ddstring _hostip; + + + + + // neu + ddstring _usr_id; + ddstring _usr_nick_name; + ddstring _usr_passwd; + ddstring _usr_nick_mail; + ddstring _usr_address_book; + + ddstring _usr_google_channel1; + ddstring _usr_google_channel2; + + ddstring _lastlogindate; + + ddstring _sysmessage; + ddstring _preparednickname; + ddstring _sessionkey; + + ddstring _propertiesstring; + + ddstringmap _properties; + +}; + + +typedef set dduseridset; +// warum so kompliziert? +// fehlversuchtypedef ddmapptr dduseridptrmap; +//typedef map dduseridmap; +typedef ddmapptr dduseridmap; + + + + +#endif + + diff --git a/supportware/src/ddusermanager.cpp b/supportware/src/ddusermanager.cpp new file mode 100644 index 0000000..8775003 --- /dev/null +++ b/supportware/src/ddusermanager.cpp @@ -0,0 +1,748 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include + +/** + Default constructor. +*/ + +ddusermanager::ddusermanager() +{ +} + + +/** + Destructor. +*/ + +ddusermanager::~ddusermanager() +{ +} + + +/** + Mit Hilfe der Konfigurationsdatei die Userdatenbank laden. +*/ + +void ddusermanager::init_data( ddconfig& config ) +{ + // setup usermanager + int idx = config.index_of( "users" ); + if( idx<0 ) + throw runtime_error( "usermanager config missing!" ); + + _mytable.init_queries( config[idx], config["main"]["connectstring"] ); + + if( _mytable.fill() <= 0 ) + throw runtime_error( "usermanager fill failed!" ); + + // neu: selbst ist der zonc: + for( int i=0; i<_mytable.size(); ++i ) + _mydata.add( dduserid( this, _mytable[ i ] ) ); + + init_index(); + + // weg mit dem mist + _mytable.clear(); + + // die tabelle der der neuen postings initialiseren + idx = config.index_of( "newpostings" ); + _newpostings.init_queries( config[idx], config["main"]["connectstring"] ); + + //dump(); + +} + + +/** + Init the internal lookup index. +*/ + +void ddusermanager::init_index() +{ + _mydata.get_index().clear(); + _nickindex.clear(); + int x = (int) size(); + for( int i=0; i < x; ++i ) + { + _mydata.add_key( _mydata[i].get_nick_name().as_lower() , i ); + _nickindex[ _mydata[i].get_id() ] = _mydata[i].get_nick_name(); + } +} + + +/** + Erzeugt eine die liste der Anzahl neuer Postings seit dem letzten + Besuch eines Users. +*/ + +ddstringmap& ddusermanager::get_new_postings_count( dduserid& uid, const ddstring& dbname ) +{ + + ddstringmap& entries = _postingcount[ uid.get_id() + dbname ]; + + // ggf. aufbauen + if( entries.empty() ); + { + _newpostings.fill( "select", dbname, uid.get_last_login_date() ); + for( int i = 0; i < _newpostings.size(); ++i ) + { + int numentries = _newpostings[i][1].as_int(); + // keine nuller + if( !numentries ) + continue; + bool toobig = numentries >= 100; + entries[ _newpostings[i][0] ] = toobig ? "~" : "(" + _newpostings[i][1] + ")"; + } + } + + return entries; + +} + + +/** + Dem Nutzer eine Pagermessage senden. +*/ + +void ddusermanager::send_pager_message( dduserid& sender, const ddstring& receivernick, ddwebcgi& cgi, ddmailmanager& mm ) +{ + + ddthreadautomutex tmplock( _pagerlock ); + + int idx = index_of( receivernick.as_lower() ); + if( idx<0 ) + return; + + // prepare cgi data + dduserid& receiver = _mydata[idx]; + cgi["id_sender"] = sender.get_id(); + cgi["id_receiver"] = receiver.get_id(); + cgi["sn_msgbody"].replace_all( "\r\n", "
                                                " ); + cgi["sn_nicksender"] = sender.get_nick_name(); + cgi["sn_nickreceiver"] = receivernick; + cgi.dump(); + + // pump message + _mytable.execute( "pagermsg_xx", cgi ); + + // noch eine sysmessage nachschieben + + + receiver.set_system_message( "Neue Nachrichten für Dich", "Hier klicken um deine Nachrichten zu lesen", "/pager/" + sender.get_id() ); + // ggf. auch ne mail hinterherschieben + if( receiver.check_property( "xx_prop_mail_pm" ) ) + { + mm.create_hint_mail + ( + receivernick, + receiver.get_nick_mail(), + "Neue Pager-Nachrichten für Dich", + "mooo" + ); + } + sender.set_system_message( "Deine Nachricht wurde verschickt." ); + + +} + + +/** + Dem Nutzer eine Pagermessage senden. +*/ + +void ddusermanager::send_admin_pager_message( dduserid& sender, ddwebcgi& cgi ) +{ + + ddthreadautomutex tmplock( _pagerlock ); + + // prepare cgi data + cgi["id_sender"] = sender.get_id(); + cgi["sn_msgbody"].replace_all( "\r\n", "
                                                " ); + cgi["sn_nicksender"] = sender.get_nick_name(); + + // pump message + _mytable.execute( "pagermsg_admin", cgi ); + +} + + + +/** + Bastelt einen Sessionkey zusammen. +*/ + +ddstring ddusermanager::create_session_key() +{ + ddstring key = ddstrutil::to_hex( ::time( 0 ), 8 ); + // create random crypt + struct timeval tv; + ::gettimeofday(&tv, 0); + ::srand(tv.tv_usec); + return key + ddstrutil::to_hex( (size_t) ::rand(), 8 ); +} + + +void ddusermanager::create_auto_nickname( dduserid& user ) +{ + ddstring lastid; + _mytable.execute( "last_id" ).read( lastid ); + user.set_prepared_nickname( "Benutzer" + lastid ); +} + +/** + Extract login data from the sn cookie. + NEU: +*/ + +/* +bool ddusermanager::prepare_login_mydata( ddconnection& connection, ddstring& key, ddstring& login, ddstring& passwd ) +{ + + + ddrequest& request = connection.get_request(); + connection.get_response().get_cookie().invalidate_mydata(); + + // 1. cookie vorhanden, ist es ok? + + if( request.has_cookie( DDCOOKIEKEY ) ) + { + ddstring& cookieval = request.get_cookie( DDCOOKIEKEY ).get_value(); + // login & pass extrahieren und im erfolgsfall speichern + if( cookieval.split( DDCOOKIESEPARATOR, login, passwd ) ) + { + key = connection.get_host_ip() + "."; + // ist es ein gast ? + if( login == DDGUESTNICK ) + { + key += passwd; + return false; + } + + key += ddstrutil::to_lower( login ); + return true; // für member + } + + } + + // 2. kein oder fehlerhaftes cookie, statt dem unique-login + // müssen wir jetzt einen sessionkey verwenden + + key = create_session_key(); + login = DDGUESTNICK; + + // set new cookie data + const ddstring& host = request.get_domain(); + ddwebcookie& cookie = connection.get_response().get_cookie(); + cookie.set_cookie_mydata( DDCOOKIEKEY, login + DDCOOKIESEPARATOR + key, 0, host ); + + key = connection.get_host_ip() + "." + key; + + return false; // für gast + +} +*/ + +/** + NEU: + Init a user session by cookie data. If not empty, the cookie contains the user id and passwd. + If the cookie is empty, a guest session is created. + Warning! this is not thread save! Use with care. + @return a new valid session. (==userid) + @see dduserid +*/ + +/* +dduserid* ddusermanager::get_session_id( ddconnection& connection ) +{ + + _usermap.dump(); + + // Fallunterscheidung: + // - Falls der cookie leer ist, also der nutzer gast ist, + // wird die ip als session key verwendet. + // - Sonst wird der sessionkey aus dem login string im cookie ermittelt. + + ddautomutex tmplock( _loginlock, "loginlock" ); + + dduserid* userid = 0; + ddstring key, login, passwd; + + + // nutzer ist member und hat ein gültiges cookie + if( prepare_login_mydata( connection, key, login, passwd ) ) + { + int idx = check_login( login, passwd, true ); + // login ok + if( idx > -1 ) + { + // set pointer + userid = &_mydata[idx]; + // nur dann eintragen, wenn noch nicht vorhanden. + if( !_usermap.contains_key( key ) ) + { + _usermap.add_user_id( key, userid ); + // update login date + usr_update_single( userid->get_id(), "sw_datelastlogin", "now()" ); + } + return userid; + } + + } + + // login failed or user is guest -> create guest login + // user already there? + userid = _usermap.get_user_id( key ); + if( !userid ) + { + userid = new dduserid( this ); + _usermap.add_user_id( key, userid ); + } + // finally ... + return userid; + +} +*/ + + +//---- + + +/** + Die Login-Daten aus dem Cookie extrahieren und dekodieren. +*/ + +bool ddusermanager::prepare_login_data( ddwebconnection& connection, ddstring& key, ddstring& login, ddstring& passwd ) +{ + + + // FIXED: alter cookie style wurde gelöscht. + // neu: die eMail-konformen nicks stimmmen nicht unbedingt mit den cookies überein. + + key = connection.get_host_ip(); + ddwebrequest& request = connection.get_request(); + bool result = false; + + // 1. new cookie style + + if( request.has_cookie( "SNID" ) ) + { + ddstring& cookieval = request.get_cookie( "SNID" ).get_value(); + result = cookieval.split( DDCOOKIESEPARATOR, login, passwd ); + // so simpel? + login = login.as_valid_nickname(); + } + else + { + return false; + } + + // 4. decoding error + if( !result ) + return false; + + // 5. clean cookie, store result + connection.get_response().get_cookie().invalidate_data(); + key = key + "." + login.as_lower(); + + + return true; + +} + + +/** + Eine user-session initialisieren. Dazu werden username und password aus dem Login-Cookie + benötigt. Ohne Cookie oder bei einer Sperre des users wird eine Gast-Session des users erzeugt. + Warning! this is not thread save! Use with care. + @return a new valid session. (==userid) + @see dduserid +*/ + +dduserid* ddusermanager::get_session_id( ddwebconnection& connection, ddusersessionmanager& sessionmanager ) +{ + + // Fallunterscheidung: + // - Falls der cookie leer ist, also der nutzer gast ist, wird die ip als session key verwendet. + // - Sonst wird der sessionkey aus dem login string im cookie ermittelt. + + ddthreadautomutex tmplock( _loginlock ); + + dduserid* userid = 0; + ddstring key, login, passwd; + + // user is not guest -> try login + + if( prepare_login_data( connection, key, login, passwd ) ) + { + int idx = check_login( login, passwd ); + // login ok + if( idx > -1 ) + { + // set pointer + userid = &_mydata[idx]; + // bugfix: accessrights immer setzen + sessionmanager.set_access_rights( userid ); + // nur dann eintragen, wenn noch nicht vorhanden. + if( !sessionmanager.contains_key( key ) ) + { + sessionmanager.add_user_id( key, userid ); + // das letzte logindatum sichern, für die + // 'neue postings' liste + ddstring lastlogin; + _mytable.execute( "last_login", userid->get_id() ).read( lastlogin ); + userid->set_last_login_date( lastlogin ); + + // update login date + usr_update_single( userid->get_id(), "sn_datelastlogin", "now()" ); + + } + return userid; + } + else + { + if( passwd != "xxxxxxxxxxx" ) + log_error( "cookie login failed: " + login + ": " + passwd + " : reason: " + ddstrutil::from_int( idx ) ); + } + + // not found? wrong id? user is treated as guest. + } + + // login failed or user is guest -> create guest login + // user already there? + userid = sessionmanager.get_user_id( key ); + if( !userid ) + { + userid = new dduserid( this ); + sessionmanager.add_user_id( key, userid ); + } + // finally ... + return userid; + +} + + +/** + Von snpagemember::login aufgerufen, wird hier die Login/passwd Kombi überprüft + und gegebenenfalss das login-cookie gesetzt. + BUG FIX: DO _NOT_ SET the internal uid here, _ONLY_ _TRY_ to set the UID-Cookie. + THE INTERNAL USER ID ONLY CAN BE SET BY EXTERNAL COOKIES! +*/ + +/* +int ddusermanager::prepare_login( ddwebconnection& connection, const ddstring& login, const ddstring& passwd ) +{ + ddthreadautomutex tmplock( _loginlock ); + // wir haben nur noch gecryptete passwds, also "vorcrypten" + int idx = check_login( login, ::crypt( passwd.c_str(), "sn" ) ); + // login failed, return reason + if( idx < 0 ) + { + log_error( "login failed: " + login + ": " + passwd ); + return idx; + } + + // login ok, set new cookie data + const ddstring& host = connection.get_request().get_domain_name(); + ddwebcookie& cookie = connection.get_response().get_cookie(); + cookie.set_cookie_mydata( "SNID", login + DDCOOKIESEPARATOR + _mydata[idx].get_passwd(), -1, host ); + return idx; + +} +*/ + + +/** + Tested die Login/passwd Kombi. + @return den index des user objects oder den entsprechenden error code < 0 +*/ + +int ddusermanager::check_login( const ddstring& nickname, const ddstring& passwd ) +{ + + if( nickname.empty() ) + return ddusermanager::usr_nickname_invalid; + + int i = index_of( nickname.as_lower() ); + if( i<0 ) + return ddusermanager::usr_nickname_not_found; + + if( _mydata[i].get_passwd() != passwd ) + return ddusermanager::usr_passwd_wrong; + + return i; +} + + + +/** + @return a nick name for an given id + @param id the user id +*/ + +const ddstring& ddusermanager::get_nick_name( const ddstring& id ) +{ + return _nickindex[id]; +} + + +/** + Einen neuen Datensatz aus den CGI-Daten erzeugen. +*/ + +void ddusermanager::usr_create( ddwebcgi& data ) +{ + ddthreadautomutex tmplock( _updatelock ); + + ddstring nick = data["sn_nickname"]; + + if( index_of( nick.to_lower() ) >= 0 ) + return; + + // die anmelde-mail aus sicherheitsgründen + // auch speichern + data["sn_firstmail"] = data["sn_nickmail"]; + _mytable.execute( "on_admin_insert", data ); + // re-select the new userid from the database and store + // in the cache memory, update internal index + _mytable.execute( "select_single", nick ).read(); + size_t idx = _mydata.add( dduserid( this, _mytable[ 0 ] ) ); + _mydata.add_key( nick, idx ); + _nickindex[ _mydata[idx].get_id() ] = nick; + +} + + +/** + Den Nickname eines Users ändern. Darf nur root. +*/ + +void ddusermanager::usr_change_nickname( const ddstring& oldname, const ddstring& newname ) +{ + + // kein lock hier: das ist in usr_update_single + + dduserid& user = _mydata[ oldname.as_lower() ]; + // throws ... + usr_update_single( user.get_id(), "sn_nickname", newname, true ); + _mytable.execute( "change_nick", newname, user.get_id() ); + // auch im speicher ... + user.set_nick_name( newname ); + init_index(); + +} + + + +/** + Das Passwort eines Users ändern. +*/ + +void ddusermanager::usr_change_passwd( dduserid& user, const ddstring& passwd ) +{ + + + // kein lock hier: das ist in usr_update_single + ddstring cryptopass = ::crypt( passwd.c_str(), "sn" ); + // throws ... + usr_update_single( user.get_id(), "sn_cryptopass", cryptopass, true ); + // also update userid in memory + user.set_passwd( cryptopass ); + +} + + +/** + Einen Datensatz im Speicher und in der Datenbank updaten. +*/ + +void ddusermanager::usr_update( ddwebcgi& data ) +{ + + ddthreadautomutex tmplock( _updatelock ); + data.dump(); + + + ddstring nick = data["sn_nickname"]; + + int i = index_of( nick.to_lower() ); + if( i<0 ) + return; + + /* + wird hier nicht mehr gesetzt + // passwd cryted speichern, aber nur wenns neu gesetzt wurde + if( !data["sn_passwd"].empty() ) + data["sn_cryptopass"] = ::crypt( data["sn_passwd"].c_str(), "sn" ); + */ + + _mytable.execute( data ); + + // also update userid in memory + _mydata[i].sync( data ); + +} + + +/** + Einen Datensatz aus dem Speicher und aus der Datenbank entfernen. +*/ + +void ddusermanager::usr_remove( ddwebcgi& data ) +{ + + ddthreadautomutex tmplock( _updatelock ); + + ddstring& id = data["id"]; + if( id == "1" ) + return; + + // remove from db ... throws + _mytable.execute( "on_admin_remove", id ); + + // remove from mem + int x = index_of_id( id ); + if( x>-1 ) + { + // invalidate + _mydata[x].set_nick_name( "(--zombie--)" ); + init_index(); + } + + +} + + +/** + Einen User-Datensatz blocken, indem Password und Nickmail geändert + werden. +*/ + +void ddusermanager::usr_block( ddwebcgi& data ) +{ + + ddthreadautomutex tmplock( _updatelock ); + + + ddstring& id = data["id"]; + if( id == "1" ) + return; + + int x = index_of_id( id ); + if( x<0 ) + return; + + // userdaten im memory verstümmeln + ddstring mail = _mydata[x].get_nick_mail() + "__"; + _mydata[x].set_nick_mail( mail ); + _mydata[x].set_passwd( data["sn_passwd"] ); + init_index(); + + // + // FIX! die live session auch verstümmeln + // klappt nicht! + // + + data[DDACTIONKEY] = "adminblock"; + data["sn_nickmail"] = mail; + _mytable.execute( data ); + +} + + +/** + Das Punktekonto eines Users erhöhen. + @param receiverid Der Punkte-Empfänger + @param point Die Anzahl Punkte +*/ + +void ddusermanager::usr_inc_score( const ddstring& receiverid, size_t points ) +{ + ddthreadautomutex tmplock( _updatelock ); + // die Punkte beim user speichern ... + _mytable.execute( "score_inc1", ddstrutil::from_size_t( points ), receiverid ); + // ... und nochmal mit Datum + _mytable.execute( "score_inc2", receiverid, ddstrutil::from_size_t( points ) ); +} + + +/** + Ein einzelnes Datenfeld in der user-db updaten. +*/ + +void ddusermanager::usr_update_single( const ddstring& id, const ddstring& field, const ddstring& value, bool is_string ) +{ + ddthreadautomutex tmplock( _updatelock ); + + if( id == "1" ) + return; + + ddstring querystr = is_string ? "update_single2" : "update_single1"; + _mytable.execute( querystr, field, value, id ); + +} + +/** + Löscht PMs, die älter als 90 Tage sind. +*/ + +void ddusermanager::clear_pager() +{ + _mytable.execute( "pagerclear" ); +} + + + + +/** + Testet, ob ein nickname gültig ist. + - alle zeichen erlaubt ? + - schon belegt ? +*/ + +bool ddusermanager::check_nickname_valid( const ddstring& src ) +{ + + ddthreadautomutex tmplock( _updatelock ); + + static const char* allow = "._-"; + + if( src.empty() || src.size()DDNICKMAXLEN ) + return false; + + for( size_t i=0; i +#include +#include +#include +#include +#include + +/// ddusermanager: Eine Datatable mit pointern auf die gültigen userids. +/** + Achtung: der Index ist mit den nicknames bestückt, nicht mit den IDs + + Dummy-Neuimplementierung wg. Dauercrash +*/ + +typedef map ddstringmapmap; + +//class ddusermanager : public dddatatable< dduserid > +class ddusermanager : public ddbaseobject +{ + +//friend class ddwebsite; + +public: + + enum dd_login_error + { + usr_nickname_not_found=-2, + usr_passwd_wrong=-3, + usr_mail_wrong=-4, + usr_nickname_exists=-5, + usr_nickname_invalid=-6 + }; + + ddusermanager(); + ~ddusermanager(); + + void init_data( ddconfig& config ); + + // alt + //size_t create_result( MYSQL_RES* result ); + + // neu + //void add_entry( size_t num_fields, MYSQL_ROW row ); + + + dduserid* get_session_id( ddwebconnection& connection, ddusersessionmanager& sessionmanager ); + //int prepare_login( ddwebconnection& connection, const ddstring& login, const ddstring& passwd ); + int check_login( const ddstring& nickname, const ddstring& passwd ); + + void send_pager_message( dduserid& sender, const ddstring& recnick, ddwebcgi& cgi, ddmailmanager& mm ); + void send_admin_pager_message( dduserid& sender, ddwebcgi& cgi ); + + const ddstring& get_nick_name( const ddstring& id ); + void init_index(); + + void usr_create( ddwebcgi& data ); + void usr_change_nickname( const ddstring& oldname, const ddstring& newname ); + void usr_change_passwd( dduserid& user, const ddstring& passwd ); + void usr_update( ddwebcgi& data ); + void usr_update_single( const ddstring& id, const ddstring& field, const ddstring& value, bool is_string=false ); + void usr_remove( ddwebcgi& data ); + void usr_block( ddwebcgi& data ); + void usr_inc_score( const ddstring& receiverid, size_t points ); + + void clear_pager(); + + bool check_nickname_valid( const ddstring& src ); + void create_auto_nickname( dduserid& user ); + + ddstring create_session_key(); + + + // neu + dduserid& operator[]( size_t index ) + { + return _mydata[ index ]; + } + + const dduserid& operator[]( size_t index ) const + { + return _mydata[ index ]; + } + + dduserid& operator[]( const ddstring& key ) + { + return _mydata[ key ]; + } + + const dduserid& operator[]( const ddstring& key ) const + { + return _mydata[ key ]; + } + + int index_of( const ddstring& key ) const + { + return _mydata.index_of( key ); + } + + int index_of_id( const ddstring& id ) const + { + if( _mydata.empty() ) + return -1; + int x = _mydata.size(); + for( int i=0; i < x; ++i ) + { + // gefunden + if( _mydata[i].get_id() == id ) + return i; + } + return -1; + } + + inline int size() const + { + return _mydata.size(); + } + + + + ddstringmap& get_new_postings_count( dduserid& uid, const ddstring& dbname ); + + +protected: + + bool prepare_login_data( ddwebconnection& connection, ddstring& key, ddstring& login, ddstring& passwd ); + + ddstringmap _nickindex; + + ddthreadmutex _loginlock; + ddthreadmutex _updatelock; + ddthreadmutex _pagerlock; + + // neu + ddwebview _mytable; + ddmaprow _mydata; + + ddstringmapmap _postingcount; + ddwebview _newpostings; + +private: + + ddusermanager( const ddusermanager& src ) + //: dddbtablebase() + { + (void) src; + } + + ddusermanager& operator=( const ddusermanager& src ) + { + return *this; + (void) src; + } + +}; + + +#endif + + diff --git a/supportware/src/ddusersessionmanager.cpp b/supportware/src/ddusersessionmanager.cpp new file mode 100644 index 0000000..cca14bb --- /dev/null +++ b/supportware/src/ddusersessionmanager.cpp @@ -0,0 +1,315 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include + +/** + Gibt true zurück, falls der ensprechende user gerade online ist. +*/ + +bool ddusersessionmanager::is_member_online( const ddstring& nickname ) +{ + // deadlock !? NICHT INTERN benutzen + ddthreadautomutex tmplock( _listlock ); + return _membermap.contains_key( nickname ); + +} + + +int ddusersessionmanager::session_count() +{ + ddthreadautomutex tmplock( _listlock ); + return size(); +} + + + +void ddusersessionmanager::add_admin_access( dduserid* userid, const ddstring& access ) +{ + // den admin-pointer merken ... + _adminset.insert( userid ); + // und die zugriffsrechte merken + _accessmap[ userid->get_nick_name() ] = access.as_int(); +} + + + +/** + @return the user with sessionkey "key" or 0 on mismatch. +*/ + +dduserid* ddusersessionmanager::get_user_id( const ddstring& key ) +{ + ddthreadautomutex tmplock( _listlock ); + + ddmapindex::const_iterator pos = _index.find( key ); + if( pos == _index.end() ) + return 0; + + _data[(*pos).second]->update_access_time(); + + return _data[(*pos).second]; + +} + + +/** + Die Zugriffsrechte für eine UserID setzen. +*/ + +void ddusersessionmanager::set_access_rights( dduserid* userid ) +{ + // adminrechte setzen + int access = _accessmap[ userid->get_nick_name() ]; + // 2 heisst standard-member + userid->set_access_rights( access ? access : 2 ); +} + + +/** + Den pointer auf eine UserID speichern. +*/ + +void ddusersessionmanager::add_user_id( const ddstring& key, dduserid* userid ) +{ + ddthreadautomutex tmplock( _listlock ); + + _data.push_back( userid ); + _index[key] = _data.size()-1; + + userid->update_access_time(); + + + if( userid->is_member() ) + //_membermap.insert( userid ); + _membermap.add_by_key( userid->get_nick_name(), userid ); + +} + + +/** + Drop all sessions (==userids) with a certain age. +*/ + +void ddusersessionmanager::cleanup_sessions() +{ + /* + Hier soll folgendes passieren: + + alle uids, die älter als der timeout sind, werden + weggeschmissen. + Falls es sich um guests handeln, müssen sie deletet werden. + die anderen werden wieder in den daten vector übernommen, + wobei der index auch neu aufgebaut werden muss. + */ + + ddthreadautomutex tmplock( _listlock ); + + vector newdata; + ddmapindex newindex; + + time_t now = ::time(0); + + + ddmapindex::const_iterator pos = _index.begin(); + for( ; pos != _index.end(); ++pos ) + { + + int i = (*pos).second; + dduserid* uid = _data[i]; + + //stringstream sstr; + //sstr << ":" << (*pos).first << ":" << i << ":" << hex << (size_t) uid; + //ddstring msg = sstr.str(); ":" + (*pos).first + ":" + ddstrutil::from_int( i ) + ":" + ddstrutil::from_size_t( (size_t) uid ); + + //log_debug( "TRY: " + msg ); + size_t maxage = now - uid->get_access_time(); + //log_debug( "OK: " + msg ); + + // userid ist noch jung genug + if( maxage < DDMAXSESSIONAGE ) + { + // id sichern + newdata.push_back( uid ); + // schlüssel auch sichern + newindex[(*pos).first] = newdata.size()-1; + continue; + } + + // ab hier: userid abgelaufen + + // member tabelle ungültig setzen + if( uid->is_member() ) + _membermap.remove_entry( uid->get_nick_name() ); + // guests löschen + else if( !uid->user_is_locked() ) + delete uid; + + } // for + + // tauscht die __datenpointer__ von _data und newdata. + // beim abräumen von newdata wird der destructor der "alten" daten + // _nicht_ aufgerufen ( wg. typ vector<*> ). Das ist Absicht, die + // die daten von ddusermanager verwaltet werden. + + _data.swap( newdata ); + _index.swap( newindex ); + //erase( begin()+index ); + //erase( remove( begin(), end(), entry ), end() ); +} + + +/** + Rendert den 'members online' kasten. Das stand mal in + 'sxblockmemberbox', war aber instabil wegen locking problemen. +*/ + +/* +void ddusersessionmanager::create_block_memberbox( ddstring& result ) +{ + + ddthreadautomutex tmplock( _listlock ); + + result = ""; + set checkset; + dditemlink link( "sn_subbody" ); + ddstring base="
                                              • "; + int max = size(); + int len = 0; + int i = max; + + while( i && lenget_nick_name(); + // das crashed + size_t uc = checkset.count(nick ); + + if( _data[i-1]->is_member() && !uc ) + { + checkset.insert( nick ); + ddwebsite::create_user_link( link, _data[i-1]->get_id(), nick ); + result += base + link.to_string()+"
                                                \n"; + len++; + } + --i; + } + +} +*/ + + + + + +/** + rendert die teambox. Alte Version. +*/ + +const ddstring& ddusersessionmanager::create_team_box() +{ + + ddthreadautomutex tmplock( _listlock ); + + _teambox = ""; + //return _teambox; + + if( _adminset.size() > 0 ) + { + dditemlink link( "sn_subbody" ); + ddstring base="
                                              • "; + dduseridset::const_iterator pos = _adminset.begin(); + for( ; pos != _adminset.end(); ++pos ) + { + + //ddstring msg = " pointer:" + ddstrutil::from_size_t( (size_t) (*pos) ); + //log_debug( "TRY-: " + msg ); + + const ddstring& nick = (*pos)->get_nick_name(); + + //log_debug( "OK--: " + msg ); + + // FIX: hack: chat admins & tonja Ssollen nicht angezeigt werden + if( _accessmap[ nick ] == 8194 || _accessmap[ nick ] == 578 ) + continue; + + //ddwebsite::create_user_link( link, *(*pos) ); + ddwebsite::create_user_link( link, (*pos)->get_id(), nick ); + + _teambox += base+link.to_string(); + if( _membermap.contains_key( nick ) ) + _teambox += "*"; + _teambox += "
                                              • \n"; + } + } + + return _teambox; + +} + + + +const ddstring& ddusersessionmanager::create_member_box() +{ + + ddthreadautomutex tmplock( _listlock ); + + _memberbox = ""; + //return _memberbox; + + if( !_membermap.empty() > 0 ) + { + + dditemlink link( "sn_subbody" ); + ddstring base="
                                              • "; + + // rückwärts: die neuesten oben + for( int i = _membermap.size() - 1; i >= 0; --i ) + { + + //ddstring msg = " pointer:" + ddstrutil::from_size_t( (size_t) _membermap[i] ); + //log_debug( "TRY+: " + msg ); + + const ddstring& nick = _membermap[i]->get_nick_name(); + + //log_debug( "OK++: " + msg ); + + ddwebsite::create_user_link( link, _membermap[i]->get_id(), nick ); + + _memberbox += base + link.to_string()+"
                                                \n"; + } + } + return _memberbox; + +} + + +/** + Dump all active session . +*/ + +void ddusersessionmanager::dump() const +{ + /* + ddmapindex::const_iterator pos = _index.begin(); + for( ; pos != _index.end(); ++pos ) + { + _data[(*pos).second]->dump(); + } + */ +} + + diff --git a/supportware/src/ddusersessionmanager.h b/supportware/src/ddusersessionmanager.h new file mode 100644 index 0000000..5f73544 --- /dev/null +++ b/supportware/src/ddusersessionmanager.h @@ -0,0 +1,87 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef ddusersessionmanager_H +#define ddusersessionmanager_H + +#include +#include +#include + + +using namespace std; + + + +/// ddusersessionmanager: a map to store userid objects. + +class ddusersessionmanager : public dduseridmap +{ + +friend class ddusermanager; + +public: + + void cleanup_sessions(); + bool is_member_online( const ddstring& nickname ); + int session_count(); + + void add_admin_access( dduserid* user, const ddstring& access ); + + // neuer rott, crashed, aber wahrscheinlich schon in den blocks + //void create_block_memberbox( ddstring& result ); + //void create_block_teambox( ddstring& result ); + + // alter rott, läuft + const ddstring& create_team_box(); + // alter rott, läuft nicht + const ddstring& create_member_box(); + +protected: + + dduserid* get_user_id( const ddstring& key ); + void add_user_id( const ddstring& key, dduserid* userid ); + void set_access_rights( dduserid* userid ); + + void dump() const; + + dduseridmap _membermap; + //dduseridset _memberset; + dduseridset _adminset; + ddmapindex _accessmap; + + ddthreadmutex _listlock; + + // alter kram + ddstring _memberbox; + ddstring _teambox; + +}; + + + + + + + + + + + + + + +#endif + + diff --git a/supportware/src/ddwebblock.cpp b/supportware/src/ddwebblock.cpp new file mode 100644 index 0000000..8a50049 --- /dev/null +++ b/supportware/src/ddwebblock.cpp @@ -0,0 +1,78 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include + + +/** + Default Constructor +*/ + +ddwebblock::ddwebblock( const ddstring& name, ddwebsite* site ) +: dddataclient( name ), _table( 0 ) +{ + + // fragwürdig + site->get_block_map().add_by_key( name, this ); + +} + + +/** + Destructor. +*/ + +ddwebblock::~ddwebblock() +{ + // passiert woanders, wird nicht eigentümer, nur besitzer :-) + //delete _table; +} + + +/** + Einsprung +*/ + +dd_result ddwebblock::handle_request( ddwebpage& pagelet, dditem& item ) +{ + ddthreadautomutex tmp(_blocklock); + try + { + // neu erzeugen= + if( !is_valid() || _content.empty() ) + create_content( pagelet, item ); + pagelet.write( _content ); + } + catch( exception& error ) + { + ddstring text = "Block Exception: " + get_name() + error.what(); + return pagelet.create_error( text ); + } + return rs_ok; +} + + +/** + Prototype only. +*/ + +dd_result ddwebblock::create_content( ddwebpage& pagelet, dditem& item ) +{ + _content = DDBLOCKTXT1 + pagelet.get_name() + ": " + get_name() + DDBLOCKTXT2; + validate(); + return rs_ok; +} + diff --git a/supportware/src/ddwebblock.h b/supportware/src/ddwebblock.h new file mode 100644 index 0000000..1589978 --- /dev/null +++ b/supportware/src/ddwebblock.h @@ -0,0 +1,67 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDWEBBLOCK_H +#define DDWEBBLOCK_H + +#include +#include +#include +#include +#include +#include +#include +#include + +class ddwebsite; +class ddiobuffer; +class ddwebpage; +class ddusermanager; +class ddusersessionmanager; +class ddmailmanager; +class dduserid; +class ddwebcgi; + +#define DDBLOCKTXT1 "

                                                " +#define DDBLOCKTXT2 "


                                                " + +/// ddwebblock: site-globaler html-content, etwa top-10 user etc. +/** + ddwebblock: site-globaler html-content, etwa top-10 user etc. +*/ + +class ddwebblock : public dddataclient +{ +public: + + //ddwebblock(); + ddwebblock( const ddstring& name, ddwebsite* site ); + virtual ~ddwebblock(); + + virtual dd_result handle_request( ddwebpage& pagelet, dditem& item ); + + +protected: + + virtual dd_result create_content( ddwebpage& pagelet, dditem& item ); + + ddwebview* _table; + ddstring _content; + ddthreadmutex _blocklock; + +}; + +typedef ddmapptr ddwebblockmap; + +#endif diff --git a/supportware/src/ddwebbuffer.cpp b/supportware/src/ddwebbuffer.cpp new file mode 100644 index 0000000..4d85010 --- /dev/null +++ b/supportware/src/ddwebbuffer.cpp @@ -0,0 +1,349 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +using namespace std; + +ddwebbuffer::ddwebbuffer() +: _fd( -1 ), _filefd( -1 ), _nextmode( ddwebconnection::write_buffer ), _offset( 0 ), + _filesize( 0 ), _corked( false ) +{ + set_state_flags( ddwebconnection::write_header ); + init_buffer( DDBUFFERINBUFSIZE ); + _outhead.init_buffer( DDBUFFERINBUFSIZE ); + _outbody.init_buffer( DDBUFFEROUTBUFSIZE ); +} + + +ddwebbuffer::~ddwebbuffer() +{ +} + + +void ddwebbuffer::set_write_mode( int mode ) +{ + _nextmode = mode; +} + + +size_t ddwebbuffer::set_path( ddiourl& path ) +{ + // ioinfo schmeisst, wenn das file nicht existiert. + try + { + _filefd = ::open( path.get_full_path().c_str(), O_RDONLY ); + if( _filefd < 0 ) + return 0; + + set_file_size( path.get_file_size() ); + _offset = 0; + _name = path.get_full_path(); + + // aus lighttp: + //if (-1 == posix_fadvise(c->file.fd, 0, 0, POSIX_FADV_SEQUENTIAL)) { + /* + // aus fnord + if (len<4096) { // for small files, sendfile is actually slower + char tmp[4096]; + if (rangestart) lseek(fd,rangestart,SEEK_SET); + read(fd,tmp,len); + */ + + } + catch( exception& error ) + { + log_error( error.what() ); + _filesize = 0; + } + return _filesize; + +} + + +void ddwebbuffer::set_file_size( size_t filesize ) +{ + _filesize = filesize; + _max = _filesize; +} + + +int ddwebbuffer::connect( const ddstring& host ) +{ + + struct hostent *he; + struct sockaddr_in their_addr; // connector's address information + + // get the host info + if( ( he = ::gethostbyname( host.c_str() ) ) == NULL ) + { + perror("gethostbyname"); + return -1; + } + + if( ( _fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 ) + { + perror("socket"); + return -1; + } + + their_addr.sin_family = AF_INET; // host byte order + their_addr.sin_port = htons( 80 ); // short, network byte order + their_addr.sin_addr = *((struct in_addr *)he->h_addr); + ::memset(&(their_addr.sin_zero), '\0', 8); // zero the rest of the struct + + if( ::connect( _fd, (struct sockaddr *)&their_addr, sizeof(struct sockaddr)) < 0 ) + { + perror("connect"); + return -1; + } + + return 1; + +} + +int ddwebbuffer::accept( int masterfd ) +{ + struct sockaddr_in sa_remote, sa_local; + socklen_t sin_size = sizeof sa_remote; + + _fd = ::accept( masterfd, (struct sockaddr *) &sa_remote, &sin_size ); + if( _fd < 0 ) + { + if( errno == EAGAIN ) + return 0; + return -1; + } + + ::fcntl( _fd , F_SETFD, FD_CLOEXEC ); + ::fcntl( _fd , F_SETFL, O_NONBLOCK ); + + sin_size = sizeof sa_local; + if( ::getsockname( _fd , (struct sockaddr *) &sa_local, &sin_size ) < 0 ) + { + ::close( _fd ); + return -1; + } + // neu + _hostip = ::inet_ntoa( sa_remote.sin_addr ); + + return 1; + +} + + +int ddwebbuffer::receive() +{ + int rs = max_input(); + + try + { + if( rs <= 0 ) + rs = grow_buffer( DDBUFFERINBUFSIZE ); + } + catch( exception& error ) + { + // darf eigentlich nicht passieren: out of memory in grow... + log_error( ddstring( "ddwebbuffer::receive: input buffer overflow") + error.what() ); + return -1; + } + + // we can read + int bytes = ::recv( _fd, input(), rs, 0 ); + if( bytes > 0 ) + { + move_input( bytes ); + return bytes; + } + + // ab hier: bytes < 0 + if( errno == EAGAIN ) + return 0; + + return -1; +} + + +int ddwebbuffer::send() +{ + int result, bytes; + +x:switch( _flags ) + { + + case ddwebconnection::write_header : + + // verkorken + cork( true ); + // schreiben + result = send_buffer( _outhead, _nextmode, MSG_MORE ); + // fehler oder unvollständig + if( result <= 0 ) + return result; + // nochmal reinspringen um body zu senden + // (mein erstes goto :-} durchfallen reicht nicht, weil auch eine + // andere body-schreib-methode eingestellt sein kann,) + goto x; + + case ddwebconnection::write_buffer : + + // wir sind schon verkorkt ...also schreiben + result = send_buffer( _outbody, ddwebconnection::write_header ); + // für den rest korken ziehen + cork( false ); + return result; + + //case write_mmap : + case ddwebconnection::write_sendfile : + + bytes = ::sendfile( _fd, _filefd, &_offset, _filesize ); + // schiefgegangen oder EAGAIN? + if( bytes <= 0 ) + { + if( errno == EAGAIN ) + return 0; + // Böser Fehler + return -1; + } + // für den rest korken ziehen + cork( false ); + + // hat geklappt + _filesize -= bytes; + + // einsprung, um bei not modified einen + // schreibversuch zu verhindern. + + case ddwebconnection::write_not_modified : + + // fertig ? + if( !_filesize ) + { + ::close( _filefd ); + _filefd = -1; + return 1; + } + return 0; + } + + return 1; +} + + +void ddwebbuffer::cork( bool usecork ) +{ + // schon im gewünschten zustand ? + if( _corked == usecork ) + return; + _corked = usecork; + int cork = usecork ? 1 : 0; + // Korken reinstecken / rausziehen + setsockopt( _fd,IPPROTO_TCP,TCP_CORK, &cork, sizeof( cork ) ); + +} + + +/** + Gibt 1 zurück, wenn der Buffer vollständig geschrieben wurde. +*/ + +int ddwebbuffer::send_buffer( ddiobuffer& buffer, int nextstate, int option ) +{ + + // erstmal raushauen + int bytes = ::send( _fd, buffer.output(), buffer.max_output(), option ); + + // schiefgegangen oder EAGAIN? + if( bytes <= 0 ) + { + if( errno == EAGAIN ) + return 0; + // Böser Fehler + return -1; + } + + buffer.move_output( bytes ); + // buffer noch nicht fertig? + if( buffer.max_output() ) + return 0; + + // fertig + set_state_flags( nextstate ); + return 1; + +} + + +int ddwebbuffer::restore_buffers() +{ + // und 'shrinken' + _outhead.shrink_buffer(); + _outbody.shrink_buffer(); + // die 'workers' auf jeden fall zurücksetzen + _outhead.reset(); + _outbody.reset(); + + + // das soll gar nicht vorkommen! Wenn ja, dann war + // das der 'out of filehandles' BUG + if( _filefd > -1 ) + ::close( _filefd ); + // defaults setzen + set_state_flags( ddwebconnection::write_header ); + _nextmode = ddwebconnection::write_buffer; + + // reqs sind ok wenn genausoviel aus dem head + // gelesen wie reingeschrieben wurde + // wartet noch ein request ? + // ACHTUNG: Das geht schief bei BILD-Uploads + //if( _input_offset != _output_offset ) + // return 0; // im Sinne von EAGAIN, weitermachen + + // finished + reset(); + shrink_buffer(); + + return 1; + +} + +void ddwebbuffer::close() +{ + reset(); + _outhead.reset(); + _outbody.reset(); + if( _filefd > -1 ) + ::close( _filefd ); + ::close( _fd ); + // defaults setzen + set_state_flags( ddwebconnection::write_header ); + _nextmode = ddwebconnection::write_buffer; + +} + diff --git a/supportware/src/ddwebbuffer.h b/supportware/src/ddwebbuffer.h new file mode 100644 index 0000000..704c9c0 --- /dev/null +++ b/supportware/src/ddwebbuffer.h @@ -0,0 +1,90 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#ifndef DDWEBBUFFER_H +#define DDWEBBUFFER_H + +#include +#include + +/// ddwebinbuffer: Hilfsklasse für die IO-Buffer einer ddwebconnection etc. +/** + WebbuFfer wird sowohl von webconnection für den server-part als auch von + webblockloader für den client-part verwendet, daher gibt es accept() (_von_ aussen) + und connect() (_nach_ aussen). + + Das ganze ist ein iobuffer ( request lesen ) der zusätzlich zwei iobuffer zur ausgabe hat + ( response head & body schreiben ) +*/ + +class ddwebbuffer : public ddiobuffer, public ddbasestate +{ + +public: + + ddwebbuffer(); + //ddwebbuffer( size_t bodysize ); + virtual ~ddwebbuffer(); + + void set_write_mode( int mode ); + size_t set_path( ddiourl& path ); + int connect( const ddstring& host ); + int accept( int masterfd ); + int receive(); + int send(); + void set_file_size( size_t filesize ); + int restore_buffers(); + void close(); + + + inline int get_fd() + { + return _fd; + } + + + inline ddiobuffer& get_body_buffer() + { + return _outbody; + } + + + inline ddiobuffer& get_head_buffer() + + { + return _outhead; + } + + + inline const ddstring& get_host_ip() const + { + return _hostip; + } + +protected: + + int send_buffer( ddiobuffer& buffer, int nextstate, int option=0 ); + void cork( bool usecork ); + + int _fd, _filefd, _nextmode; + off_t _offset; + size_t _filesize, _max; + ddstring _name; + bool _corked; + ddiobuffer _outhead; + ddiobuffer _outbody; + ddstring _hostip; + +}; + +#endif diff --git a/supportware/src/ddwebcategory.cpp b/supportware/src/ddwebcategory.cpp new file mode 100644 index 0000000..6290ebd --- /dev/null +++ b/supportware/src/ddwebcategory.cpp @@ -0,0 +1,292 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + +using namespace std; + +/** + Rekursiv den Pfad (betriebssysteme/linux/ubuntu) berechenen, + Einstiegspunkt. +*/ + +const ddstring& ddwebcategory::create_path( ddwebcategorymap& tmptree ) +{ + path = "/"; + //idpath = id + "-|"; + calculate_path( tmptree, path, idpath ); + return path; +} + + +/** + Rekursiv den Pfad (betriebssysteme/linux/ubuntu) berechenen, + Rekursionsfunktion. +*/ + +void ddwebcategory::calculate_path( ddwebcategorymap& tmptree, ddstring& fullpath, ddstring& fullidpath ) +{ + // bin ich root? + if( parent.empty() || parent == "0" ) + return; + // wenn nein, muss ich einen papa haben + fullpath = "/" + key + fullpath; + fullidpath = id + "|" + fullidpath; + // wenn nicht -> throw + if( !tmptree.contains_key( parent ) ) + throw runtime_error( "void calculate_path: Kategorien DB Fehlerhaft: Parent not found!" ); + tmptree.get_entry( parent ).calculate_path( tmptree, fullpath, fullidpath ); +} + + +/** + Die Blatt-Kategorien einsammeln, z.B 'Betriebssysteme' -> 'win 98, win 95 ...' + Das wird für die überischts-queries 'select * where catid in ( ... )' gebraucht +*/ + +void ddwebcategory::collect_siblings( ddstring& result ) +{ + // bin ich blatt? + if( children.empty() ) + { + // erster eintrag ohne komma + if( !result.empty() ) + result += ", "; + result += id; + return; + } + + // ich bin kein blatt (==endknoten), also über alle kinder + for( int x=0; xcollect_siblings( result ); + +} + + +/** + Selbst rendern +*/ + +void ddwebcategory::render( dditem& item, ddstring& result, int indent, bool highlight ) const +{ + // 1. render myself + item["sn_catcomment"].from_string( name ); + + // optionale felder + item.set_field_value( "sn_catpath", path ); + item.set_field_value( "sn_catid", id ); + item.set_field_value( "sn_catname2", name ); + + // ev. highlighten: ich bin gemeint + item.set_field_value( "sn_highlight", highlight ? "style='color:#ff0000;font-weight:bold;'" : "" ); + + item["sn_cattitle1"].from_string( title ); + item["sn_cattitle2"].from_string( title ); + + item["sn_catlevel"].from_int( indent ); + item["sn_catname"].from_string( name ); + + result += item.to_string(); + +} + + +/** + Den Baum rekursiv rendern +*/ + +void ddwebcategory::render_tree( dditem& item, ddstring& result, int indent ) const +{ + + // root: nur die kinder anzeigen + if( path == "/" ) + return render_children( item, result, indent - 1 ); + + // 1. render myself + render( item, result, indent ); + // 2. render children + for( int x=0; xrender_tree( item, result, indent+1 ); + + // rekursiver abschluss + result += "
                                              • \n\n"; +} + + +/** + Die Kindknoten rendern +*/ + +void ddwebcategory::render_children( dditem& item, ddstring& result, int indent ) const +{ + + for( int x = 0; x < children.size(); ++x ) + children[ x ]->render_tree( item, result, indent + 1 ); + +} + +/** + Den Zusammengefalteten Baum anzeigen: Der Pfad /Betriebssysteme/Linux/Ubuntu soll folgendermassen + gerendert werden: + + für alle Pfadelemente + Element highlighten + Nachbarn rendern + recurse +*/ + +void ddwebcategory::render_path( dditem& item, ddstring& result, size_t indent, const ddstringrow& splitpath ) const +{ + + indent++; + + if( indent >= splitpath.size() ) + return; + + const ddstring& pathpart = splitpath[ indent ]; + + // render children + for( int x=0; xrender( item, result, indent + 1 ); + result += "\n\n"; + } + } + // rekursiver abschluss + result += "\n\n"; + + } + + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +/** + Category-Tree aufbauen +*/ + +void ddwebcategorymap::init_data( const ddwebview& table ) +{ + + clear(); + + // 1. Kompletten Kategorieabaum nach IDs zusammenbasteln + for( int x=0; x +#include +#include + +using namespace std; + +class ddwebcategorymap; +struct ddwebcategory; + +/// ddwebcategorymap: Hilfsklasse, die Kategorien speichert. +/** + ddwebcategorymap: Hilfsklasse, die Kategorien speichert. +*/ + +class ddwebcategorymap : public ddmapptr +{ + +public: + + void init_data( const ddwebview& table ); + + void dump() const; + + + void render_path( dditem& item, ddstring& result, const ddstring& idpath ); + + const ddwebcategory& find_category_by_id_path( const ddstring& path ) const; + const ddwebcategory& find_category_by_key( const ddstring& path ) const; +}; + + +/// sxpagefaqcategory : Hilfsklasse, die eine Kategorie abbildet. +/** + sxpagefaqcategory, diesmal ohne code-zauberei + eine direktabbildung der DB Inhalte der Kategorien-Tabelle +*/ + +struct ddwebcategory : public ddbaseobject +{ + + ddstring id; + ddstring parent; + ddstring name; + ddstring key; + ddstring title; + ddstring path; + ddstring idpath; + + //ddmapptr children; + ddwebcategorymap children; + + ddwebcategory( const ddstring& aid, const ddstring& aparent, const ddstring& aname, const ddstring& akey, const ddstring& atitle ) + { + id = aid; + parent = aparent; + name = aname; + key = akey; + title = atitle; + } + + const ddstring& create_path( ddwebcategorymap& tmptree ); + void calculate_path( ddwebcategorymap& tmptree, ddstring& fullpath, ddstring& fullidpath ); + void render( dditem& item, ddstring& result, int indent, bool highlight = false ) const; + void render_tree( dditem& item, ddstring& result, int indent )const ; + void render_children( dditem& item, ddstring& result, int indent ) const; + void render_path( dditem& item, ddstring& result, size_t indent, const ddstringrow& splitpath ) const; + void collect_siblings( ddstring& result ); + + ddstring to_string() const + { + return "-- ID: " + id + " Parent: " + parent + " Name: " + name + " Key: " + key; //" Title: " + title + endl; + } + + void dump() const + { + cout << to_string() << endl; //" Title: " << title << endl; + } + + + void dump_tree() const + { + cout << to_string() << endl; //" Title: " << title << endl; + for( int i=0; idump_tree(); + } +}; + + +#endif + + diff --git a/supportware/src/ddwebcgi.cpp b/supportware/src/ddwebcgi.cpp new file mode 100644 index 0000000..a941c53 --- /dev/null +++ b/supportware/src/ddwebcgi.cpp @@ -0,0 +1,86 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + + +/** + Baut die CGI-Daten auf, in dem der inputstring an den '&'s + zerhackt wird. +*/ + +void ddwebcgi::create( const ddstring& src, bool doappend ) +{ + if( !doappend ) + clear(); + + size_t beg=0, endp=0; + + // ein trennzeichen, ein feld (ala otti) + while ( beg < src.size() ) + { + endp = src.find_first_of( "&", beg ); + if (endp == ddstring::npos) + endp = src.size(); + add_entry( src.substr( beg,endp-beg ) ); + beg = endp + 1; + } +} + + + + +/** + Ein "key=Value" paar abspeichern, vorher unescapen und + 'böse' Zeichen entfernen +*/ + +void ddwebcgi::add_entry( const ddstring& src ) +{ + size_t pos = src.find('='); + // Format error: leave + if( pos == ddstring::npos ) + return; + // empty field: add empty field + if( pos == src.size()-1 ) + { + (*this)[ src.substr(0,pos) ]= ""; + return; + } + ddstring result = src.substr( pos+1 ); + result.unescape().trim_evil(); + (*this)[ src.substr(0,pos) ] = result.trim(); +} + + +/** + Create a string of all entries. + @see ddbaseobject +*/ + +ddstring ddwebcgi::to_string() const +{ + ddstring result; + ddstringmap::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + { + if( pos != begin() ) + result += "&"; + result += (*pos).first; + result += "="; + result += (*pos).second.dup().escape(); + } + return result; +} + diff --git a/supportware/src/ddwebcgi.h b/supportware/src/ddwebcgi.h new file mode 100644 index 0000000..3499d74 --- /dev/null +++ b/supportware/src/ddwebcgi.h @@ -0,0 +1,40 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDWEBCGI_H +#define DDWEBCGI_H + +#include + +/// ddwebcgi:Eine stringmap die als container für CGI-Daten verwendet wird. +/** + +*/ + +class ddwebcgi : public ddstringmap +{ + +public: + + void create( const ddstring& src, bool doappend=false ); + ddstring to_string() const; + + +protected: + + void add_entry( const ddstring& src ); + +}; + +#endif diff --git a/supportware/src/ddwebconnection.cpp b/supportware/src/ddwebconnection.cpp new file mode 100644 index 0000000..6ab5178 --- /dev/null +++ b/supportware/src/ddwebconnection.cpp @@ -0,0 +1,493 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include + + +/** + Standard constructor +*/ + +ddwebconnection::ddwebconnection( ddwebserver* parent, int connectionid ) +: _server( parent ), _lastaction( 0 ) +{ + _errortemplate.create( DDHINTERRPAGE, "|" ); + // id speichern + _connectionid = ddstrutil::from_int( connectionid ); +} + + +/** + Destructor +*/ + +ddwebconnection::~ddwebconnection() +{ + connection_handle_close(); +} + + +/** + Accept a connection from the outside. +*/ + +int ddwebconnection::connection_handle_accept( int masterfd ) +{ + int result = _multibuffer.accept( masterfd ); + if( result <= 0 ) + return result; + + set_state_flags( con_reading ); + // update timers + _lastaction = ::time(0); + + return 1; + +} + + +/** + Einsprung der state-engine: verzweigt in den zuständigen unterstatus. + Wird von ddwebserver aufgerufen, wenn sich nach poll() was getan hat +*/ + +int ddwebconnection::connection_handle_state() +{ + + // update timers + _lastaction = ::time(0); + + switch( _flags ) + { + case con_reading : + return connection_handle_read(); + + case con_reading_post : + return connection_handle_read_post(); + + case con_writing : + return connection_handle_write(); + + } + + return 0; + +} + + +/** + result == 0 means: EAGAIN + result >= 1 means: read ok + result == -1 means: readerro +*/ + +int ddwebconnection::connection_handle_read() +{ + int result = _multibuffer.receive(); + // EAGAIN: weitermachen + if( result == 0 ) + return 0; + // schiefgegangen? + if( result < 0 ) + return connection_handle_close(); + + // lesen hat geklappt, nachschauen, ob schon ein + // request draus wird. + + return connection_handle_test_buffer(); + +} + + + +int ddwebconnection::connection_handle_test_buffer() +{ + int len = _multibuffer.max_output(); + // gibbet schon was ? + if( !len ) + return 0; + + // request fertig ? + char* bufout = _multibuffer.output(); + char* crlf = ::strstr( bufout, "\r\n\r\n" ); + // weiterlesen + if( !crlf ) + return 0; + + + // Multi? + /* + ddstring raw( bufout, len ); + raw = "FULL:\n " + raw; + cout << raw << endl; + */ + + // es gibt einen fertigen request + ddstring errortxt; + int bytes = crlf-bufout; + + int result = _request.parse( bufout, bytes, errortxt ); + + // ob ok oder nicht, den buffer shiften + // +4 wg. 2*crlf + _multibuffer.move_output( bytes+4 ); + //return handle_error( "moooooo!", ddwebresponse::ret_400_bad_request ); + // fehler mit meldung machen + if( result < 0 ) + return connection_handle_error( errortxt, ddwebresponse::ret_400_bad_request ); + + // Ist es ein Post ? + if( _request.get_request_type() != ddwebrequest::req_post ) + return connection_handle_request(); + + _contentlength = _request.get_content_length(); + // Zu fett? + + + if( _contentlength > DDMAXUPLOADSIZE ) + //if( _contentlength > 25000 ) + return connection_handle_error( "Upload zu gross, bitte maximal 2 MB hochladen.", ddwebresponse::ret_507_insufficient_storage ); + + set_state_flags( con_reading_post ); + + return connection_handle_test_post(); +} + + +/** + Prüfen, ob der POST-Datenblock schon komplett + geladen wurde. Falls ja, muss eine Falluntscheidung + zwischen 'normalen' Formdaten und einem File-Upload + getroffen werden. Das Flag 'is_upload' wird schon + vorher in @see '_request.parse' gesetzt. +*/ + +int ddwebconnection::connection_handle_test_post() +{ + // post schon komplett? + if( _multibuffer.max_output() != _contentlength ) + return 0; + + int result = 0; + // FALLUNTERSCHEIDUNG: uploads müssen anders behandelt werden + if( _request.is_upload() ) + result = _request.parse_upload( _multibuffer.output(), _multibuffer.max_output() ); + else + result = _request.parse_post( _multibuffer.output(), _multibuffer.max_output() ); + + if( result < 0 ) + return connection_handle_error( "handle_test_post() FAILED!", ddwebresponse::ret_400_bad_request ); + + //?? + _multibuffer.move_output( _contentlength ); + return connection_handle_request(); + +} + + +int ddwebconnection::connection_handle_read_post() +{ + // weiterlesen schiefgegangen oder EAGAIN? + if( _multibuffer.receive() < 0 ) + return connection_handle_close(); + // weitermachen + return connection_handle_test_post(); + +} + + +int ddwebconnection::connection_handle_request() +{ + _errorcode = 0; + _errormessage = "(nüscht)"; + + // wir tun was: sperren + set_state_flags( con_locked ); + + // den debug timer starten + _timer.start(); + _firstpath = get_request().get_raw_path().as_lower(); + + // den request bearbeiten, ergebnis: + // - jetzt sind wir entweder locked und warten auf ein pagelet(was uns von aussen weckt) + // - oder wir servieren ein statisches file + // - oder es ist was schiefgegangen. (domain not found, halted etc) + + int writemode = _server->webserver_handle_request( *this ); + //log_debug( "YX " + _connectionid + " Time: " + ddstrutil::from_double( _timer.elapsed() ) + " Request: " + _firstpath + " mode: " + ddstrutil::from_int( writemode ) ); + + switch( writemode ) + { + + case ddwebconnection::write_wait : + + // warten auf ein pagelet: wir tun nix + return 0; + + case ddwebconnection::write_sendfile : + + // wir sind kein dynamischer request, also + // wird ein file veschickt + + return connection_handle_static_response(); + + default: //writemode<0 + + // wenn hier ein Fehler kommt, sind message & code + // schon von aussen gesetzt worden. + return connection_handle_error( _errormessage, _errorcode ); + + } + + return 0; + +} + + +/** + Ein statisches file veschicken, wird nur intern aufgerufen + und schreibt sofort los. +*/ + +int ddwebconnection::connection_handle_static_response() +{ + // wir sind kein dynamischer request, also + // wird ein file veschickt + + // rausfinden, ob das file überhaupt existiert + ddiourl& url = _request.get_local_url(); + size_t length = _multibuffer.set_path( url ); + if( !length ) + return connection_handle_error( "sendfile: can't open: " + url.get_full_path(), ddwebresponse::ret_404_not_found ); + + // erstmal defaults für sendfile mode setzen + int writemode = ddwebconnection::write_sendfile; + int retcode = ddwebresponse::ret_200_ok; + + // das file ist vorhanden & offen, jetzt nachschauen, ob es überhaupt + // gebraucht wird + if( url.get_last_modified_str() == _request.get_if_modified_since() ) + { + _multibuffer.set_file_size( 0 ); + retcode = ddwebresponse::ret_304_not_modified; + writemode = ddwebconnection::write_not_modified; + } + + _multibuffer.set_write_mode( writemode ); + + // nach wiedereinsprung: update timers + _lastaction = ::time(0); + _response.set_date( _lastaction ); + + // prepare header buffer + _response.set_retcode( retcode ); + _response.get_last_modified() = url.get_last_modified_str(); + _response.get_content_type() = _server->get_mime_type( url.get_file_type() ); + _response.set_content_length( length ); + // ... und in den buffer mit det janze + _response.flush_data( _multibuffer.get_head_buffer() ); + + // log speichern, bevor die connection resettet wird. + create_log_entry(); + + // wir sind fertig und können schreiben + set_state_flags( con_writing ); + + // und ab dafür + return connection_handle_write(); + +} + + +/** + handle_response: neue version: In den schreibmodus gehen, wird sowohl von 'innen' als + auch von 'aussen' aufgerufen, bei aufruf von aussen darf allerdings nicht gleich + losgeschrieben werden, da es sonst parallelzugriffe geben kann. +*/ + +int ddwebconnection::connection_handle_response( int retcode, const ddstring& type, bool writenow ) +{ + // nach wiedereinsprung: update timers + _lastaction = ::time(0); + _response.set_date( _lastaction ); + // hier immer über den buffer + _multibuffer.set_write_mode( ddwebconnection::write_buffer ); + + _response.get_content_type() = type; + _response.set_retcode( retcode ); + _response.set_content_length( _multibuffer.get_body_buffer().max_output() ); + _response.flush_data( _multibuffer.get_head_buffer() ); + + // debugging ausgabe + ddstring req = _request.get_request_type_name() + ": " + _request.get_raw_path(); + _response.dump( req ); + + // log speichern, bevor die connection resettet wird. + create_log_entry(); + + // wir sind fertig und können schreiben + set_state_flags( con_writing ); + + // Wenn das hier aus einem anderen thread-context aufgerufen wird, + // dann wird ein und derselbe buffer parallel geschrieben. + // daher die Falluntscheidung. + + return writenow ? connection_handle_write() : 1; +} + + +int ddwebconnection::connection_handle_write() +{ + + + int result = _multibuffer.send(); + // EAGAIN: weitermachen + if( result == 0 ) + return 0; + + // schiefgegangen? + if( result < 0 ) + return connection_handle_close(); + + // und zum nächsten state durchfallen lassen: reinit + // response aufräumen + _response.init_data(); + + // wir möchten nicht weitermachen ... + if( !get_request().is_keep_alive() ) + return connection_handle_close(); + + // wir möchten doch weitermachen ... + set_state_flags( con_reading ); + + _multibuffer.restore_buffers(); + + /* + // buffer restaurieren: Achtung! da können noch weitere requests drin sein + // Also: Wenn der buf nicht leer ist, mit erstmal mit dem + // request-parser weitermachen + + _pending = _multibuffer.restore_buffers() ? false : true; + */ + + return 1; + +} + + +/** + "normaler" fehler, bad request etc. mit fehlermeldung + Achtung! Die Connection wird hier _nicht_ geschlossen !? + @param hint die Fehlermeldung + @param errorcode der Fehlercode + @param writenow: unterscheidung, ob direkt gesendet werden darf (interner aufruf) oder nicht (externer aufruf) + @see handle_response() +*/ + +int ddwebconnection::connection_handle_error( const ddstring& hint, int errorcode, bool writenow ) +{ + + _errortemplate[1] = _response.create_retcode_short( errorcode ); + _errortemplate[3] = _response.create_retcode( errorcode ); + _errortemplate[5] = hint; + _errortemplate[7] = _response.create_retcode( errorcode ); + _errortemplate[9] = hint; + _errortemplate[11] = "Request: " + _request.get_raw_path(); + _errortemplate[13] = DDVERSION; + + log_error( "site error: " + hint ); + + // Meldung in den buffer malen... + get_buffer().append( _errortemplate.join() ); + _response.set_retcode( errorcode ); + + // input buffer resetten + //_multibuffer.reset(); + + // und ab + return connection_handle_response( errorcode, "text/html", writenow ); + +} + + +/** + "Böser" Fehler, Verbindungsabbruch +*/ + +int ddwebconnection::connection_handle_close() +{ + // verbindung abbauen & buffer resetten + _multibuffer.close(); + // response aufräumen + _response.init_data(); + // clear all flags + set_state_flags( con_free ); + + return -1; +} + + +/** + Einen Logfile-Eintrag erzeugen +*/ + +void ddwebconnection::create_log_entry() +{ + + _logentry = get_host_ip(); + + _logentry += _response.get_date().to_string( " - - [%d/%b/%Y:%T %z] \"" ); + _logentry += _request.get_request_type_name() + " "; + _logentry += _request.get_raw_path() + "\" "; + _logentry += _response.get_retcode_short() + " "; + _logentry += _response.get_content_length() + " \""; + if( _request.get_referer().empty() ) + _logentry += "-\" \""; + else + _logentry += _request.get_referer() + "\" \""; + _logentry += _request.get_user_agent() +"\""; + +} + + +/** + Debug-String erzeugen +*/ + +ddstring ddwebconnection::to_string() const +{ + ddstring result = " connection: flags: " + ddstrutil::from_int( _flags ); + result += " IP: " + get_host_ip() + ": "; + + if ( is_free() ) + result += " free "; + if ( is_active() ) + result += "active "; + if ( is_locked() ) + result += " locked "; + if ( is_writing() ) + result += " writing "; + + result += _request.get_raw_path(); + + return result; + +} + + + + diff --git a/supportware/src/ddwebconnection.h b/supportware/src/ddwebconnection.h new file mode 100644 index 0000000..9c25128 --- /dev/null +++ b/supportware/src/ddwebconnection.h @@ -0,0 +1,279 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#ifndef DDCONNECTION_H +#define DDCONNECTION_H + + +#include +#include + +using namespace std; + +class ddwebserver; +class ddiourl; + +/// ddwebiohandler: Enthält die Basisfunktionalit�t für Netzwerk-IO. +/** + Die Implemetierung befindet sich in den Unterklassen ddwebconnection (Verbindung zu Browser) + und ddwebreader (Importieren von Blöcken über Http) + + @see ddwebconnection + @see ddwebreader +*/ + +class ddwebiohandler : public ddbasestate +{ + +public: + + enum con_state + { + con_free = 0, + con_locked = 1, + con_reading = 2, + con_reading_post = 4, + con_writing = 8, + }; + + ddwebiohandler() + { + set_state_flags( con_free ); + } + + + /** + Destructor + */ + + virtual ~ddwebiohandler() + { + + } + + + /** + true, wenn die Verbindung frei und wiederverwertbar ist. + */ + + inline bool is_free() const + { + return ( _flags == ddwebiohandler::con_free ); + } + + + /** + true, wenn die Verbindung gesperrt ist. + Das ist der Fall, wenn der Request bearbeitet und + die Response erzeugt wird. + */ + + inline bool is_locked() const + { + return ( _flags == ddwebiohandler::con_locked ); + } + + + /** + true, wenn die aktiv (lesend,schreibend) ist. + */ + + inline bool is_active() const + { + // active : waiting, reading, writing + + // waiting is active, da bei keep-alive == true + // durchaus daten nachkommen können. + // locked ist _nicht_ active, da sonst + // der in bearbeitung befindliche request + // überschrieben wird. + + return ( _flags >= ddwebiohandler::con_reading ); + } + + /** + true, wenn die Verbindung im Schreibmodus ist. + */ + + inline bool is_writing() const + { + return ( _flags >= ddwebiohandler::con_writing ); + } + + + /** + Gibt den Filedeskriptor des Verbindungspartners zurück. + */ + + inline int get_fd() + { + return _multibuffer.get_fd(); + } + + + /** + Gibt den internen Ausgabepuffer zurück. + */ + + inline ddiobuffer& get_buffer() + { + return _multibuffer.get_body_buffer(); + } + + + /** + Gibt die IP-Adresse des Verbindungspartners zurück. + */ + + inline const ddstring& get_host_ip() const + { + return _multibuffer.get_host_ip(); + } + +protected: + + int _contentlength; + ddwebbuffer _multibuffer; + +}; + + +/// ddwebconnection: Behandelt die Verbindung zum Client-Browser. +/** + Eine Webconnection enthält request und response und behandelt die Verbindung zum Client-Browser + als eine Art state-machine. Je nach Status (warten, lesen, antwort erzeugen, schreiben) werden + verschiedene Handler-Funktionen aufgerufen. + @see ddwebserver + @see ddwebrequest + @see ddwebresponse +*/ + +class ddwebconnection : public ddbaseobject, public ddwebiohandler +{ + +public: + + enum write_mode + { + write_wait = 0, + write_header, + write_buffer, + write_sendfile, + write_mmap_cache, + write_not_modified + }; + + ddwebconnection( ddwebserver* server, int connectionid ); + virtual ~ddwebconnection(); + + + /** + Gibt den Zeitpunkt der letzten Aktivität dieser Connection + zurück. Wird zum Time-Out handling benutzt. + */ + + inline time_t get_last_action() + { + return _lastaction; + } + + + /** + Gibt den "request" zurück + @see ddwebrequest + */ + + inline ddwebrequest& get_request() + { + return _request; + } + + + /** + Gibt die "response" zurück. + @see ddwebresponse + */ + + inline ddwebresponse& get_response() + { + return _response; + } + + + /** + Gibt die IP-Adresse des Verbindungspartners zurück. + */ + + inline const ddstring& get_log_entry() const + { + return _logentry; + } + + + /** + Fehlermeldung und Fehlercode setzen + */ + + inline int connection_create_error( const ddstring& error, int errorcode=ddwebresponse::ret_400_bad_request ) + { + _errormessage = error; + _errorcode = errorcode; + return -1; + } + + int connection_handle_accept( int masterfd ); + + int connection_handle_state(); + int connection_handle_read(); + int connection_handle_test_buffer(); + int connection_handle_read_post(); + int connection_handle_test_post(); + int connection_handle_request(); + int connection_handle_static_response(); + int connection_handle_response( int retcode, const ddstring& type="text/html", bool writenow=true ); + int connection_handle_write(); + int connection_handle_error( const ddstring& error, int errorcode=ddwebresponse::ret_400_bad_request, bool writenow=true ); + int connection_handle_close(); + void create_log_entry(); + + ddstring to_string() const; + +protected: + + ddwebserver* _server; + time_t _lastaction; + ddwebresponse _response; + ddwebrequest _request; + ddstring _logentry; + ddstring _errormessage; + int _errorcode; + ddstringrow _errortemplate; + + // debug + ddbasetime _timer; + ddstring _firstpath; + ddstring _connectionid; + +private: + + ddwebconnection( const ddwebconnection& src ); + ddwebconnection& operator=( const ddwebconnection& src ); + +}; + + + + + +#endif diff --git a/supportware/src/ddwebcookie.cpp b/supportware/src/ddwebcookie.cpp new file mode 100644 index 0000000..cd5ce27 --- /dev/null +++ b/supportware/src/ddwebcookie.cpp @@ -0,0 +1,163 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include + + + +const char* ddwebcookie::dd_cookie_data[] = +{ + /* + cookie_name=0, + cookie_value=1, + cookie_comment=3, + cookie_expires=5, + cookie_path=7, + cookie_site=9, + cookie_secure=11, + cookie_version=12, + cookie_fieldsize=14 + */ + "name","", + "Comment", "", + "expires","", + "path","", + "domain","", + "Secure","", + "Version", "", + 0 +}; + + +/** + Default constructor. +*/ + +ddwebcookie::ddwebcookie() +: ddstringrow( dd_cookie_data ) +{ + +} + + +/** + Standard constructor. + @param name the name(=key) of this cookie. + @param value the value of this cookie. + @see set_data() +*/ + + +ddwebcookie::ddwebcookie( const ddstring& name, const ddstring& value ) +: ddstringrow( dd_cookie_data ) +{ + set_cookie_data( name, value ); +} + + +/** + Destructor. +*/ + + +ddwebcookie::~ddwebcookie() +{ +} + + + +#define CHARBUFSIZE 40 + + +/** + @see www.netscape.com/newsref/std/cookie_spec.html +*/ + +void ddwebcookie::set_expires( size_t days ) +{ + // FIX! Das gehört nach ddbasedate + //size_t strftime(char *s, size_t max, const char *format, const struct tm *tm); + + struct tm tmptime; + char result[CHARBUFSIZE]; + time_t now = ::time(0); + now += ddbasedate::SECS_PER_DAY * days; + ::gmtime_r( &now, &tmptime ); + ::strftime( result, CHARBUFSIZE-1, "%a, %d-%b-%Y %H:%M:%S GMT", &tmptime ); + get_expires().assign( result ); +} + + +/** + Write the content of this cookie into the given buffer + @see ddiobuffer +*/ + +void ddwebcookie::flush_data( ddiobuffer& buffer ) +{ + dump(); + bool first= true; + for( size_t i=0; i0 ) + set_expires( days ); + else if( days==0 ) + get_expires() = ""; + else if( days<0 ) + get_expires() = DDEXPIREDATE; +} + + +/** + +*/ + +void ddwebcookie::dump() const +{ + for( size_t i=0; i +#include + + +/// ddwebcookie : a simple class to handle cookies. +/** + @see www.netscape.com/newsref/std/cookie_spec.html +*/ + +class ddwebcookie : public ddstringrow +{ + +public: + + enum dd_cookie_fields + { + cookie_name=0, + cookie_value=1, + cookie_comment=3, + cookie_expires=5, + cookie_path=7, + cookie_site=9, + cookie_secure=11, + cookie_version=12, + cookie_fieldsize=14 + }; + + ddwebcookie(); + ddwebcookie( const ddstring& name, const ddstring& value ); + virtual ~ddwebcookie(); + + void set_cookie_data( const ddstring& name, const ddstring& value, int days=0, const ddstring& domain="", const ddstring& path="/" ); + void set_expires( size_t days ); + + void flush_data( ddiobuffer& buffer ); + + void dump() const; + + /** + @return the "name" field. + */ + + inline ddstring& get_name() + { + return (*this)[cookie_name]; + } + + + /** + @return the "value" field. + */ + + inline ddstring& get_value() + { + return (*this)[cookie_value]; + } + + + /** + @return true when name and value are not empty + @see get_name + @see get_value + */ + + inline bool is_valid() + { + return ( !get_name().empty() && !get_value().empty() ); + } + + /** + Clear this cookie. + */ + + inline void invalidate_data() + { + get_name() = ""; + get_value() = ""; + } + + + /** + @return the "comment" field. + */ + + inline ddstring& get_comment() + { + return (*this)[cookie_comment]; + } + + + /** + @return the "site" field. + */ + + inline ddstring& get_site() + { + return (*this)[cookie_site]; + } + + + /** + @return the "path" field. + */ + + inline ddstring& get_path() + { + return (*this)[cookie_path]; + } + + + /** + @return the "expires" field. + */ + + inline ddstring& get_expires() + { + return (*this)[cookie_expires]; + } + + + /** + @return the "secure" field. + */ + + inline ddstring& get_secure() + { + return (*this)[cookie_secure]; + } + + + /** + @return the "version" field. + */ + + + inline ddstring& get_version() + { + return (*this)[cookie_version]; + } + + + /** + @return join() + @see join() + */ + + inline ddstring to_string() const + { + return join(); + } + + +protected: + + static const char* dd_cookie_data[]; + +}; + +#endif diff --git a/supportware/src/ddwebdossier.cpp b/supportware/src/ddwebdossier.cpp new file mode 100644 index 0000000..84922d0 --- /dev/null +++ b/supportware/src/ddwebdossier.cpp @@ -0,0 +1,240 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + +#include + + +/** + Dossiermap aufbauen +*/ + +void ddwebdossiermap::init_dossier_data( const ddwebview& table, ddwebview& dossiertable ) +{ + + clear(); + + // Interne Dossiertabelle nach IDs zusammenbasteln + for( int x=0; x 0 ) + lst = entries[i-1]; + + } + } + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Tie Toofe Tatenpank hält sich nicht an die reihenfolge der Abfrage: + select id, sn_msgsubject from tr_msgmain + where id in ( 2172323,2172242,2172008,2123218,2172334,2172404,2172454 ) + gibt die ids in reihenfolge des index zurück, logisch. + + Also müssen die einträge im speicher in die richtige reihenfolge gebracht werden. + + +*/ + +void ddwebdossier::add_at_key( const ddstring& id, const ddstring& asubject) +{ + // id suchen + for( size_t i=0; i + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +class ddwebdossiermap; + +/// sxpagefaqdossier : Hilfsklasse, die ein Dossier abbildet. +/** + Kiss: eine direktabbildung der DB Inhalte der Dossier-Tabelle +*/ + +struct ddwebdossier : public ddbaseobject +{ + + ddstring id; + ddstring subject; + + ddstringrow entries; + ddstringrow subjects; + + ddwebdossier( const ddstring& aid, const ddstring& asubject, const ddstring& akeys ) + : id( aid ), subject( asubject ) + { + entries.create( akeys, "," ); + // auf gleiche größe bringen + subjects.resize( entries.size() ); + + } + + ddstring render_dossier_box( const ddstring& id, dditem& item ); + void render_dossier_editor( const ddstring& id, dditem& item ); + + inline ddstring to_string() const + { + return "-- ID: " + id; // + " Subject: " + subject + " Entries: " + keys; + } + + void add_at_key( const ddstring& id, const ddstring& subject ); + + void action_at_key( const ddstring& id, const ddstring& subject, const ddstring& actionstr ); + + inline ddstring get_entries() const + { + return entries.join( "," ); + } + + inline bool is_modified() + { + return _changed; + } + + inline void dump() const + { + cout << to_string() << endl; //" Title: " << title << endl; + } + +protected: + + void swap_elements( size_t oldidx, size_t newidx ); + + bool _changed; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// ddwebdossiermap: Hilfsklasse, die Dossiers speichert. +/** + ddwebdossiermap: Hilfsklasse, die Dossiers speichert. + + Erstmal muss ermittelt werden, ob ein Tipp überhaupt Teil eines Dossiers, + daher wird eine Abbildung von Tipp-ID auf Dossiers benötigt. + + Die IDs der in Dossiers befindlichen Faqs zeigen auf die (interne) ID + des Dossiers. + +*/ + +class ddwebdossiermap : public ddstringmap +{ + +friend class ddwebdossier; + +public: + + void init_dossier_data( const ddwebview& table, ddwebview& dossiertable ); + + ddwebdossier& get_entry( const ddstring& key ) + { + return _dossiers.get_entry( (*this)[key] ); + } + + void render_dossier_box( const ddstring& id, dditem& item, ddstring& result ) + { + if( contains_key( id ) ) + result = get_entry( id ).render_dossier_box( id, item ); + } + + inline void render_dossier_editor( const ddstring& id, dditem& item ) + { + if( _dossiers.contains_key( id ) ) + get_dossier( id ).render_dossier_editor( id, item ); + } + + void get_neighbors( const ddstring& id, ddstring& lst, ddstring& nxt ); + + ddwebdossier& get_dossier( const ddstring& id ) + { + return _dossiers.get_entry( id ); + } + + void dump() const + { + + ddwebdossiermap::const_iterator pos = begin(); + for( ; pos != end(); ++pos ) + cout << (*pos).first << ": " << (*pos).second << endl; + + } + + +protected: + + ddmapptr _dossiers; + +}; + + +#endif diff --git a/supportware/src/ddwebfile.cpp b/supportware/src/ddwebfile.cpp new file mode 100644 index 0000000..528f79f --- /dev/null +++ b/supportware/src/ddwebfile.cpp @@ -0,0 +1,523 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2007 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +/** + Constructor. +*/ + +ddwebfile::ddwebfile() +: _initcalled( false ), _is_video_file( false ), _is_rescaled( false ), + _stateflags( 64 ), _goodvotes( 0 ), _badvotes( 0 ) +{ + +} + + +/** + Constructor. + @param name : der filename +*/ + +ddwebfile::ddwebfile( const ddstring& name ) +: ddioinfo( name ), _initcalled( false ), _is_video_file( false ), _is_rescaled( false ), + _stateflags( 64 ), _goodvotes( 0 ), _badvotes( 0 ) +{ + init_media_data(); +} + + +/** + Construtor für Erzeugung aus der DB von FileManager aus. +*/ +ddwebfile::ddwebfile( const ddstring& flags, const ddstring& name, const ddstring& path, const ddstring& width, const ddstring& height ) +: ddioinfo( name ) +{ + _stateflags = flags.as_size_t(); + + //_mediabase; + //_mediasize; + //_mediatype; + _currentpath = path; + _mediawidth = width; + _mediaheight = height; + + // ?? + _initcalled = true; +} + + +bool ddwebfile::is_video_file() +{ + if( !_initcalled ) + init_media_data(); + return _is_video_file; +} + + +bool ddwebfile::is_rescaled() +{ + if( !_initcalled ) + init_media_data(); + return _is_rescaled; +} + + +/** + 'Size' ist eine etwas unglückliche Bezeichnung, denn + der Wert bzieht sich auf die Breite _oder_ Höhe eines Bildes + nach dem reskalieren. +*/ + +const ddstring& ddwebfile::get_media_size() +{ + if( !_initcalled ) + init_media_data(); + return _mediasize; +} + + +/** + Gibt die 'Basis' des Dateinamens zurück, also + ohne die Skalierungsendung: 'mookoo-20' wird 'mookoo' +*/ + +const ddstring& ddwebfile::get_media_base() +{ + if( !_initcalled ) + init_media_data(); + return _mediabase; +} + +const ddstring& ddwebfile::get_media_type() +{ + if( !_initcalled ) + init_media_data(); + return _mediatype; +} + + +const ddstring& ddwebfile::get_media_width() +{ + if( !_initcalled ) + init_media_data(); + return _mediawidth; +} + + +const ddstring& ddwebfile::get_media_height() +{ + if( !_initcalled ) + init_media_data(); + return _mediaheight; +} + + +const ddstring& ddwebfile::get_media_path() +{ + return _currentpath; +} + + +/** + Erzeugt eine Bilddatei aus dem upload-buffer: nach tmp sichern, namen säubern +*/ + +bool ddwebfile::create_media_file( const char* buffer, size_t size, ddstring& rawname ) +{ + // windows pfad absäbeln + rawname.replace_all( '\\', '/' ); + size_t pos = rawname.rfind( '/' ); + if( pos != ddstring::npos ) + rawname = rawname.substr( pos+1 ); + rawname = rawname.as_plain_ascii(); + ddstring fname = DDTMPPATH + rawname; + + int fd = ::open( fname.c_str(), O_WRONLY|O_CREAT, 00664 ); + if( fd > -1 ) + { + if( !::write( fd, buffer, size ) > -1 ) + perror("create_media_file: write"); + ::close( fd ); + } + else + { + perror("create_media_file: open"); + } + return true; + +} + + +/** + Ein Verzeichnis erzeugen + @param path der Pfad +*/ + +ddstring ddwebfile::create_media_dir( const ddstring& targetpath, const ddstring& newfilename, ddwebcgi& cgi ) +{ + + init_media_data(); + + _currentpath = targetpath; + int err = ::mkdir( _currentpath.c_str(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP ); + if( err<0 && errno != EEXIST ) + throw runtime_error( "ddwebfile::create_dir: " + _currentpath ); + + // es sollen keine doppelten bilder erzeugt werden, + // daher speichern wir die bildgrößen und schmeissen + // doppelte weg. + + // hack: videos nicht skalieren, das sollte allerdings anders implementiert sein + if( !is_video_file() ) + { + set imgsizes; + // die angeforderten auflösungen produzieren + + /* + + Alt: steuerung checkboxen + + + + {#snstuff_dlg.img_imgsize_40height} +  {#snstuff_dlg.img_imgsize_80height} +  {#snstuff_dlg.img_imgsize_200width} +  {#snstuff_dlg.img_imgsize_470width} + + + */ + + /* + Also es gibt verschiedene Standardformate auf die man sich einfach einigen muss, da Digitalkameras alle 3:2 Fotografieren d.h. die längere Seite ist 1,5 mal so lang wie die kürzere sollten wir das auch nehmen. Beispiel: Bild 200 Pixel hoch dann muss es 300 Pixel breit sein. + + Daraus ergeben sich dann folgende neue Formate: + + 40 Pixel hoch und 60 Pixel breit (den brauchen wir eigentlich nicht mehr) + 80 Pixel hoch und 120 Pixel breit + + 200 Pixel breit und Höhe egal + 470 Pixel breit und Höhe egal + + 600 Pixel breit und Höhe egal + + Für ein Icon brauchen wir dann in der Übersicht der Tipps Icons a: + + 25 mal 25 Pixel für die Übersichten von Tipps + + 75 x 56 Newsteaser Startseite + Für die Newsübersicht brauchen wir noch ein Format. Kommt noch. + [ anzeigen » ] + Fabian Gränzer [27/Okt/10 12:48 PM] Also es gibt verschiedene Standardformate auf die man sich einfach einigen muss, da Digitalkameras alle 3:2 Fotografieren d.h. die längere Seite ist 1,5 mal so lang wie die kürzere sollten wir das auch nehmen. Beispiel: Bild 200 Pixel hoch dann muss es 300 Pixel breit sein. Daraus ergeben sich dann folgende neue Formate: 40 Pixel hoch und 60 Pixel breit (den brauchen wir eigentlich nicht mehr) 80 Pixel hoch und 120 Pixel breit 200 Pixel breit und Höhe egal 470 Pixel breit und Höhe egal 600 Pixel breit und Höhe egal Für ein Icon brauchen wir dann in der Übersicht der Tipps Icons a: 25 mal 25 Pixel für die Übersichten von Tipps 75 x 56 Newsteaser Startseite Für die Newsübersicht brauchen wir noch ein Format. Kommt noch. + + [ Permlink | Löschen | « verbergen ] + Fabian Gränzer [27/Okt/10 01:26 PM] + Das 470 ger Bild muss durch ein 442er im Forum ersetzt werden da 470 zu breit sind. + + + + Moin, + Ich hab jetzt auch rausgefunden, wie man mit imagemagick bilder mit + hintergrund skaliert. + + Das gillt dann ja für alle "FIX-Formate", oder? + + 40 Pixel hoch und 60 Pixel breit (den brauchen wir eigentlich nicht mehr) + 80 Pixel hoch und 120 Pixel breit + 25 mal 25 Pixel für die Übersichten von Tipps + -75 x 56 Newsteaser Startseite + + */ + // neue version: + + //alt ddstringrow entries( "x40|x80|200|470", "|" ); + ddstringrow params( "-resize x80\\>|-resize 200\\>|-resize 442\\>|-thumbnail 75x56 -background white -gravity center -extent 75x56|-thumbnail 25x25 -background white -gravity center -extent 25x25|-thumbnail 80x120 -background white -gravity center -extent 80x120|-thumbnail 40x60 -background white -gravity center -extent 40x60", "|" ); + ddstringrow names( "80|200|442|75|25|120|40", "|" ); + + for( size_t i=0; i < params.size(); ++i ) + { + + + // format erzeugen: Wenn sich nix geändert hat, also die Filegröße gleich geblieben ist, + // wird das gerade erzeugt bild wieder gelöscht. + + ddstring filepath; + size_t imgsize = resize_image_file( params[i], names[i], newfilename, filepath ); + // gibbet schon? + if( imgsizes.count( imgsize ) ) + ::unlink( filepath.c_str() ); + else + imgsizes.insert( imgsize ); + + } + } + + // altes bild wegräumen + ddstring newname = _currentpath + newfilename; + ::rename( get_full_path().c_str(), newname.c_str() ); + + return _currentpath; +} + + +size_t ddwebfile::resize_image_file( const ddstring& format, const ddstring appendix, const ddstring& newname, ddstring& newpath ) +{ + + + ddstring newfilename = newname.trim_pattern( "." ); + + ddstring cmd = "convert " + format + " " + ddstring(DDTMPPATH) + get_full_name() + " "; + newpath = _currentpath + newfilename + "-" + appendix + "." + get_file_type(); + cmd += newpath; + + if( ::system( cmd.c_str() ) < 0 ) + throw runtime_error( "ddwebfile::resize: " + cmd ); + + ddioinfo file( newpath ); + return file.get_file_size(); + +} + + +void ddwebfile::init_media_data() +{ + //make_abs(); + + _initcalled = true; + + char buf[1024]; + + // defaultwert + _mediasize = "0"; + _mediabase = get_file_name(); + + // Per 'file -i' den filetype als mime.type ermitteln. + + ddstring cmd = "/usr/bin/file -i " + get_full_path(); + ddstring data; + + FILE* instream = ::popen( cmd.c_str(), "r" ); + if( !instream ) + goto error; + + ::fgets( buf, 1023, instream ); + ::fclose( instream ); + + data = buf; + + if( data.rfind( "video" ) != ddstring::npos ) + { + _mediatype = "video"; + _is_video_file = true; + cmd = "/usr/bin/mediainfo \"--Inform=Video;%Width% %Height%\" "; + } + else + { + _mediatype = "pic"; + _is_video_file = false; + _is_rescaled = false; + cmd = "/usr/bin/identify -format \"%w %h\" "; + + // Versucht anhand des Dateinamens herauszufinden, ob das + // Bild skaliert wurde. + + const ddstring& fname = get_file_name(); + size_t pos = fname.rfind( "-" ); + if( pos != ddstring::npos ) + { + + ddstring msize = fname.substr( pos+1 ); + + // hack: das ist dazu, um beinamen wie 'screen_17.jpg' zu verhindern, + // das size: 17 übertragen wird, also nur erlaubte Formate zulassen + + if( msize == "40" || msize == "80" + || msize == "200" || msize == "470" ) + { + _mediabase = fname.substr( 0, pos ); + _mediasize = msize; + _is_rescaled = true; + } + + + } + + + } + + cmd += get_full_path(); + + instream = ::popen( cmd.c_str(), "r" ); + if( !instream ) + goto error; + + ::fgets( buf, 1023, instream ); + ::fclose( instream ); + + data = buf; + data.trim(); + + data.split( " ", _mediawidth, _mediaheight ); + + return; + +error: + + ::perror( "mediainfo: "); + +} + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/** + Mit Hilfe der Konfigurationsdatei die Userdatenbank laden. +*/ + +void ddwebfilemanager::init_data( ddconfig& config ) +{ + // setup filemanager + int idx = config.index_of( "webfilemanager" ); + if( idx<0 ) + throw runtime_error( "webfilemanager config missing!" ); + + _mytable.init_queries( config[idx], config["main"]["connectstring"] ); + // PFUSCH, wir nehmen doch die user db + //_mytable.init_queries( config[idx], "users;localhost;dope;moomoo" ); + + if( _mytable.fill() <= 0 ) + //throw runtime_error( "webfilemanager fill failed!" ); + return; + + // neu: selbst ist der zonc: + for( int i=0; i<_mytable.size(); ++i ) + { + const dddatastaterow& row = _mytable[ i ]; + // ddwebfile( const ddstring& flags, const ddstring& name, const ddstring& path, const ddstring& width, const ddstring& height ); + ddwebfile* newfile = new ddwebfile( row["id_state"], row["sn_imgname"], row["sn_imgpath"], row["sn_imgwidth"], row["sn_imgheight"] ); + add_by_key( row["sn_imgname"], newfile ); + + } + + // weg mit dem mist + _mytable.clear(); + +} + + + +/** + Category-Tree aufbauen +*/ + + + +void ddwebfilemanager::dump() const +{ + for( int i=0; i +#include +#include +#include +#include +#include + +class ddwebsite; + +using namespace std; + +/// ddwebfile: Ein via mutlipart/formdata hochgeladenes Bild oder Video. +/** + ddwebfile: Ein via mutlipart/formdata hochgeladenes Bild oder Video. + Wird umbenannt, verschoben und skaliert. +*/ + +class ddwebfile : public ddioinfo +{ + +public: + + enum dd_fileflags + { + data_is_public = 1, + data_is_removed = 2, + data_is_alerted = 4, + data_is_subscribed = 8, + data_is_solved = 16, + data_is_closed = 32, + data_is_draft = 64 + //... + }; + + ddwebfile(); + ddwebfile( const ddstring& name ); + // FIX!! state row benutzen! + ddwebfile( const ddstring& flags, const ddstring& name, const ddstring& path, const ddstring& width, const ddstring& height ); + + inline bool is_public() const + { + return ( _stateflags & ddwebfile::data_is_public ); + } + + inline bool is_removed() const + { + return ( _stateflags & ddwebfile::data_is_removed ); + } + + inline bool is_alerted() const + { + return ( _stateflags & ddwebfile::data_is_alerted ); + } + + + inline bool is_draft() const + { + return ( _stateflags & ddwebfile::data_is_draft ); + } + + inline bool is_private() const + { + return ( _stateflags & ddwebfile::data_is_draft ); + } + + bool is_video_file(); + bool is_rescaled(); + + const ddstring& get_media_size(); + const ddstring& get_media_base(); + const ddstring& get_media_type(); + const ddstring& get_media_width(); + const ddstring& get_media_height(); + const ddstring& get_media_path(); + + bool create_media_file( const char* buffer, size_t size, ddstring& rawname ); + ddstring create_media_dir( const ddstring& targetpath, const ddstring& newfilename, ddwebcgi& cgi ); + size_t resize_image_file( const ddstring& format, const ddstring appendix, const ddstring& newfilename, ddstring& newpath ); + +protected: + + void init_media_data(); + + bool _initcalled; + bool _is_video_file; + bool _is_rescaled; + + size_t _stateflags; + size_t _goodvotes; + size_t _badvotes; + + ddstring _currentpath; + + ddstring _mediabase; + ddstring _mediasize; + ddstring _mediatype; + ddstring _mediawidth; + ddstring _mediaheight; + + + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2007 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +class ddwebfilemanager; +struct ddwebfile; + +/// ddwebfilemanager: Hilfsklasse, die Kategorien speichert. +/** + ddwebfilemanager: Hilfsklasse, die Kategorien speichert. +*/ + +class ddwebfilemanager : public ddmapptr +{ + +public: + + + void init_data( ddconfig& config ); + + void dump() const; + + void create_user_files( ddwebpage& pagelet, ddwebcgi& cgi ); + + void create_image_files( ddwebpage& pagelet, ddwebcgi& cgi, const ddstring& id ); + +protected: + + void create_files( ddwebpage& pagelet, const ddstring& sitename, const ddstring& id, const ddstring& threadpath, ddwebcgi& cgi, const ddstring& prefix="" ); + + ddwebview _mytable; + +}; + + +/*************************************************************************** + + supportware + Copyright (C) 2001-2007 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +/// sxpagefaqcategory : Hilfsklasse, die eine Kategorie abbildet. +/** + sxpagefaqcategory, diesmal ohne code-zauberei + eine direktabbildung der DB Inhalte der Kategorien-Tabelle +*/ + +/* +struct ddwebfile : public ddbaseobject +{ + + ddstring id; + ddstring parent; + ddstring name; + ddstring key; + ddstring title; + ddstring path; + ddstring idpath; + + ddwebfilemanager children; + + ddwebfile( const ddstring& aid, const ddstring& aparent, const ddstring& aname, const ddstring& akey, const ddstring& atitle ) + { + id = aid; + parent = aparent; + name = aname; + key = akey; + title = atitle; + } + + //void render( dditem& item, ddstring& result, int indent, bool highlight ) const; + + ddstring to_string() const + { + return "-- ID: " + id + " Parent: " + parent + " Name: " + name + " Key: " + key; //" Title: " + title + endl; + } + + void dump() const + { + cout << to_string() << endl; //" Title: " << title << endl; + } + + + void dump_tree() const + { + cout << to_string() << endl; //" Title: " << title << endl; + for( int i=0; idump_tree(); + + } +}; +*/ + + +#endif + diff --git a/supportware/src/ddwebgroup.cpp b/supportware/src/ddwebgroup.cpp new file mode 100644 index 0000000..ac5a771 --- /dev/null +++ b/supportware/src/ddwebgroup.cpp @@ -0,0 +1,111 @@ +/*************************************************************************** + + supportware + Copyright (C) 2001-2008 by c.holzheuer + c.holzheuer@sourceworx.org + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + +***************************************************************************/ + + +#include + + +/** + Default Constructor +*/ + +ddwebgroupmgr::ddwebgroupmgr() +{ +} + + +/** + Destructor. +*/ + +ddwebgroupmgr::~ddwebgroupmgr() +{ +} + + +void ddwebgroupmgr::add_entry( size_t num_fields, MYSQL_ROW row ) +{ + size_t idx = add( ddwebgroup( this ) ); + ddwebgroup& newobj = (*this)[idx]; + //FIX! PFUSCH!! + for( size_t i=0; i < num_fields; i++) + newobj.add( row[i] ? row[i] : "" ); + // 'id' speichern für index_of + if( newobj.contains_key( "id" ) ) + this->_index[ newobj["id"] ] = idx; + // den object state setzen + // FIX! das müsste eigentlich das object irgenwie selbermachen... + if( newobj.contains_key( "id_state" ) ) + newobj.set_state_flags( newobj["id_state"].as_size_t() ); +} + + +/** + Queries und Caches laden. +*/ + +void ddwebgroupmgr::init( ddconfig& config ) +{ + + init_queries( config["webgroupmgr"] ); + connect( config["main"]["connectstring"] ); + fill(); + // den standard group-selector vorrendern. + int gid = get_field_index().index_of( "id" ); + int gnm = get_field_index().index_of( "sn_groupname" ); + ddstring base = "