Sorry for forgetting the "wiki_moinmoin_api.php"

Chunlin Zhang wrote:
I just modify "wiki_dokuwiki_api.php" of Mantis to a "wiki_moinmoin_api.php" so that I can integrate moinmoin with mantis.
See the attached file and you can use it as a patch of mantis if you want.

But how can I make them Single Sign-On?
I saw the http://www.mantisbt.org/wiki/doku.php/mantisbt:issue:7075:integration_with_dokuwiki#authentication_single_sign-on ,but I do not know much php,and http://moinmo.in/HelpOnAuthentication#line-87 ,but there is not some example to refer.

Is there someone have some experience with this situation?
Or give me some advice.

Thank you!


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

. # -------------------------------------------------------- # $Id: wiki_moinmoin_api.php,v 1.1.2.1 2007-10-13 22:35:50 giallu Exp $ # -------------------------------------------------------- # ---------------------- # Gets the URL for the page with the specified page id. This function is used # internally by this API. function wiki_moinmoin_get_url_for_page_id( $p_page_id ) { $t_root_url = config_get_global( 'wiki_engine_url' ); $t_root_namespace = config_get( 'wiki_root_namespace' ); if ( is_blank( $t_root_namespace ) ) { $t_page_id = $p_page_id; } else { $t_page_id = $t_root_namespace . '/' . $p_page_id; } return $t_root_url . $t_page_id ; } # ---------------------- # Gets the page id for the specified issue. The page id can then be converted # to a URL using wiki_moinmoin_get_url_for_page_id(). function wiki_moinmoin_get_page_id_for_issue( $p_issue_id ) { $c_issue_id = db_prepare_int( $p_issue_id ); $t_project_id = bug_get_field( $p_issue_id, 'project_id' ); $t_project_name = project_get_name( $t_project_id ); # create a namespace for the project to contain all project documentation. # create within it a namespace for issues. This is to allow the creation of a _template.txt # file to act as the template for issues belonging to this project. return $t_project_name . '/' . $c_issue_id; } # ---------------------- # Gets the page url for the specified issue id. function wiki_moinmoin_get_url_for_issue( $p_issue_id ) { return wiki_moinmoin_get_url_for_page_id( wiki_moinmoin_get_page_id_for_issue( $p_issue_id ) ); } # ---------------------- # Gets the page id for the specified project. The project id can be ALL_PROJECTS # The page id can then be converted to URL using wiki_moinmoin_get_url_for_page_id(). function wiki_moinmoin_get_page_id_for_project( $p_project_id ) { $t_home = 'start'; if ( $p_project_id == ALL_PROJECTS ) { return $t_home; } else { $t_project_name = project_get_name( $p_project_id ); return $t_project_name . '/' . $t_home; } } # ---------------------- # Get URL for the specified project id. The project is can be ALL_PROJECTS. function wiki_moinmoin_get_url_for_project( $p_project_id ) { return wiki_moinmoin_get_url_for_page_id( wiki_moinmoin_get_page_id_for_project( $p_project_id ) ); } /* function wiki_moinmoin_string_display_links( $p_string ) { #$t_string = $p_string; #$t_string = str_replace( '[[', '{', $p_string ); $t_wiki_web = config_get_global( 'wiki_engine_url' ); preg_match_all( '/(^|.+?)(?:(?<=^|\W)' . '\[\[' . '([a-zA-Z0-9_:]+)\]\]|$)/s', $p_string, $t_matches, PREG_SET_ORDER ); $t_result = ''; foreach ( $t_matches as $t_match ) { $t_result .= $t_match[1]; if ( isset( $t_match[2] ) ) { $t_result .= '[[' . $t_match[2] . ']]'; } } return $t_result; } */ ?>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Moin-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to