global.php File Reference

Go to the source code of this file.

Functions

 shell ($cmd)
 Execute a shell command, checking it first for invalid input.
 write_file ($fname, &$fcontent)
 Write the content to the file.
 write_tmp_file (&$fcontent)
 Write the given file content to a temporary file and make the temporary file read-writable by everybody.
 array2str ($assoc_array)
 Converts an associative array to a string like this: key1="value1", key2="value2".


Function Documentation

shell ( cmd  ) 

Execute a shell command, checking it first for invalid input.

Definition at line 30 of file global.php.

Referenced by uList::add_all_users_rs(), books::add_book_list_rs(), books::add_book_title(), edit_menu::add_books_rs(), uEdit::add_edit_rights(), revisions::add_file_revision(), modified_nodes::add_has_accr(), modified_nodes::add_is_admin(), revisions::add_rev_diff(), uEdit::add_rs_nodes(), revisions::add_rs_revs(), tags::add_rs_tags(), revisions::add_rs_tags(), add_to_modified_nodes(), import_doc::add_uploaded_files_rs(), userList::add_users_rs(), uList::add_users_rs(), changeid_movefolders(), changeid_setid(), changeid_updatecache(), create_new_node(), delete_removefolders(), modified_nodes::get_arr_books_accr(), books::get_book_list_arr(), main::get_book_title(), help::get_book_title(), approve::get_content_diff(), tags::get_current_tag(), tags::get_head_revision(), uEdit::get_langs(), main::get_langs(), help::get_langs(), get_node_content(), get_node_references(), userList::get_nr_of_recs(), uList::get_nr_of_recs(), search::get_nr_of_recs(), search::get_results_rs(), revisions::get_revision(), tags::get_revision_date(), tags::get_revision_nr(), approve::get_svn_status(), tags::get_svn_url(), revisions::get_svn_url(), modified_nodes::get_title(), admin::get_title(), get_user_data(), html_to_xml(), docbook::is_admin(), is_wellformed(), lock_index(), move_file(), approve::non_recursive_commit(), approve::non_recursive_revert(), tags::on_add_tag(), uList::on_add_user(), edit_menu::on_apply(), edit_menu::on_cancel(), edit::on_change_title(), addbook::on_create(), tags::on_del_tag(), userList::on_delete(), userEdit::on_delete(), uList::on_delete(), import_doc::on_delete(), edit_media::on_delete(), book_list::on_delete(), import_doc::on_import(), edit_media::on_rename(), help::on_select(), tags::on_set_rev(), tags::on_set_tag(), admin::on_update_booklist(), edit_media::on_upload(), main::on_xref(), edit_rights::onRender(), edit_media::onRender(), books::onRender(), process_index(), approve::recursive_commit(), approve::recursive_revert(), remove_from_modified_nodes(), save_user_data(), approve::set_all_synchronized(), tags::set_revision(), view::setup_webnotes(), edit_menu::transform(), transform_index(), unlock_index(), update_cache(), validate_xml(), write_file(), xml_to_html(), and xml_to_text().

write_file ( fname,
&$  fcontent 
)

Write the content to the file.

It is done using a temporary file and copy, in order to belong to the data_owner.

Definition at line 45 of file global.php.

References shell(), and write_tmp_file().

Referenced by changeid_setid(), create_new_node(), edit_menu::on_apply(), edit::on_change_title(), uEdit::on_save(), revisions::on_save(), edit_content::on_save(), transform_index(), edit_menu::transform_menu(), update_cache(), update_navigation(), update_subnodes_html(), tags::write_fixed_file(), and write_node_state().

write_tmp_file ( &$  fcontent  ) 

Write the given file content to a temporary file and make the temporary file read-writable by everybody.

Return the name of the temporary file.

Definition at line 65 of file global.php.

Referenced by revisions::add_file_revision(), revisions::add_rev_diff(), approve::get_content_diff(), get_node_content(), html_to_xml(), is_wellformed(), addbook::on_create(), validate_xml(), write_file(), and xml_to_text().

array2str ( assoc_array  ) 

Converts an associative array to a string like this: key1="value1", key2="value2".

Definition at line 86 of file global.php.


Generated on Wed Jan 9 08:27:32 2008 for DokBookWiki by  doxygen 1.5.2