get_var ( 'SHOW TABLES LIKE \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Table'] . '\'' ) ; if ( $Temporary != $GLOBALS['INFOmoz-glossario']['Variables']['Table'] ) { $Table = 'CREATE TABLE `' . $GLOBALS['INFOmoz-glossario']['Variables']['Table'] . '` ( `ID` INT UNSIGNED NOT NULL AUTO_INCREMENT , `Title` VARCHAR(255) NOT NULL , `Definition` TEXT NOT NULL , PRIMARY KEY ( `ID` ) ) ;' ; $Temporary = dbDelta ( $Table ) ; } else { } $Author = INFOmoz_glossario_Get_Page_Author ( ) ; $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] = INFOmoz_glossario_Get_Page_ID ( ) ; while ( 0 == $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] ) { $Array = Array ( 'post_author' => $Author , 'post_date' => date ( 'Y-m-d H:i:s' ) , 'post_date_gmt' => gmdate ( 'Y-m-d H:i:s' ) , 'post_content' => '[[[INFOmoz-glossario]]]' , 'post_title' => 'INFOmoz-glossario' , 'post_excerpt' => '' , 'post_status' => 'publish' , 'comment_status' => 'closed' , 'ping_status' => 'closed' , 'post_password' => '' , 'post_name' => 'INFOmoz-glossario' , 'to_ping' => '' , 'pinged' => '' , 'post_modified' => date ( 'Y-m-d H:i:s' ) , 'post_modified_gmt' => gmdate ( 'Y-m-d H:i:s' ) , 'post_content_filtered' => '' , 'post_parent' => 0 , 'guid' => '' , 'menu_order' => 0 , 'post_type' => 'page' , 'post_mime_type' => '' , 'comment_count' => 0 , ) ; $Temporary = INFOmoz_glossario_MySQL_Save ( $GLOBALS['table_prefix'] . 'posts' , $Array ) ; $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] = INFOmoz_glossario_Get_Page_ID ( ) ; } $GLOBALS['INFOmoz-glossario']['Variables']['Page']['Meta'] = 'INFOmoz-glossario_-_Posts_-_Permission' ; $Temporary = INFOmoz_glossario_Get_MySQL_Field_Get ( 'post_type' , $GLOBALS['table_prefix'] . 'posts' , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' , '' , '' ) ; if ( 'page' != $Temporary ) { $Array = Array ( 'post_type' => 'page' , ) ; $Temporary = INFOmoz_glossario_MYSQL_Update ( $GLOBALS['table_prefix'] . 'posts' , $Array , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' ) ; } else { } $Temporary = INFOmoz_glossario_Get_MySQL_Field_Get ( 'post_author' , $GLOBALS['table_prefix'] . 'posts' , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' , '' , '' ) ; if ( $Author != $Temporary ) { $Array = Array ( 'post_author' => $Author , ) ; $Temporary = INFOmoz_glossario_MYSQL_Update ( $GLOBALS['table_prefix'] . 'posts' , $Array , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' ) ; } else { } $Temporary = INFOmoz_glossario_Get_MySQL_Field_Get ( 'post_status' , $GLOBALS['table_prefix'] . 'posts' , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' , '' , '' ) ; if ( 'publish' != $Temporary ) { $Array = Array ( 'post_status' => 'publish' , ) ; $Temporary = INFOmoz_glossario_MYSQL_Update ( $GLOBALS['table_prefix'] . 'posts' , $Array , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' ) ; } else { } $Temporary = INFOmoz_glossario_Get_MySQL_Field_Get ( 'comment_status' , $GLOBALS['table_prefix'] . 'posts' , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' , '' , '' ) ; if ( 'closed' != $Temporary ) { $Array = Array ( 'comment_status' => 'open' , ) ; $Temporary = INFOmoz_glossario_MYSQL_Update ( $GLOBALS['table_prefix'] . 'posts' , $Array , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' ) ; } else { } $Temporary = INFOmoz_glossario_Get_MySQL_Field_Get ( 'ping_status' , $GLOBALS['table_prefix'] . 'posts' , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' , '' , '' ) ; if ( 'closed' != $Temporary ) { $Array = Array ( 'ping_status' => 'closed' , ) ; $Temporary = INFOmoz_glossario_MYSQL_Update ( $GLOBALS['table_prefix'] . 'posts' , $Array , '`ID` = \'' . $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] . '\'' ) ; } else { } $GLOBALS['INFOmoz-glossario']['Settings'] = INFOmoz_glossario_Get_Settings ( ) ; $Temporary = update_option ( 'rewrite_rules' , '' ) ; return TRUE ; } /* Options */ function INFOmoz_glossario_admin_menu ( ) { $Temporary = add_options_page ( 'INFOmoz-glossario' , 'INFOmoz-glossario' , 10 , 'INFOmoz-glossario/INFOmoz-glossario.php' , 'INFOmoz_glossario_Options_Edit' ) ; $Temporary = add_management_page ( 'INFOmoz-glossario' , 'INFOmoz-glossario' , 10 , 'INFOmoz-glossario/INFOmoz-glossario.php' , 'INFOmoz_glossario_Actions' ) ; return TRUE ; } function INFOmoz_glossario_wp_head ( ) { ?> $Settings['Number_Of_Terms_Per_Page'] ) { $Settings['Number_Of_Terms_Per_Page'] = 5 ; if ( empty ( $Settings['Number_Of_Terms_Per_Page'] ) ) { $Temporary = add_option ( 'INFOmoz_glossario_-_Settings_-_Number_Of_Terms_Per_Page' , $Settings['Number_Of_Terms_Per_Page'] , '' , 'no' ) ; } else { $Temporary = update_option ( 'INFOmoz_glossario_-_Settings_-_Number_Of_Terms_Per_Page' , $Settings['Number_Of_Terms_Per_Page'] ) ; } } else { } $Settings['Permission'] = get_option ( 'INFOmoz_glossario_-_Settings_-_Permission' ) ; if ( empty ( $Settings['Permission'] ) OR FALSE == in_array ( $Settings['Permission'] , Array ( 'All' , 'None' ) ) ) { $Settings['Permission'] = 'All' ; if ( empty ( $Settings['Permission'] ) ) { $Temporary = add_option ( 'INFOmoz_glossario_-_Settings_-_Permission' , $Settings['Permission'] , '' , 'no' ) ; } else { $Temporary = update_option ( 'INFOmoz_glossario_-_Settings_-_Permission' , $Settings['Permission'] ) ; } } else { } $Settings['Style'] = get_option ( 'INFOmoz_glossario_-_Settings_-_Style' ) ; if ( empty ( $Settings['Style'] ) OR FALSE == in_array ( $Settings['Style'] , Array ( 'A' , 'B' , 'C' , 'D' ) ) ) { $Settings['Style'] = 'A' ; if ( empty ( $Settings['Style'] ) ) { $Temporary = add_option ( 'INFOmoz_glossario_-_Settings_-_Style' , $Settings['Style'] , '' , 'no' ) ; } else { $Temporary = update_option ( 'INFOmoz_glossario_-_Settings_-_Style' , $Settings['Style'] ) ; } } else { } return $Settings ; } function INFOmoz_glossario_Options_Edit ( ) { if ( !empty ( $_POST['action'] ) AND 'update' == $_POST['action'] ) { $Temporary = INFOmoz_glossario_Options_Save ( ) ; } else { } ?>
Plugin Developed By INFOmoz, Based on IMM-Glossary Plugin from Internet Marketing Monitor
To learn more about Technology, visit our website: INFOrmática Moçambique.
Report Problems & Request Features
If you run across bugs or issues or would like to sumbit a feature request, please let us know.
IF YOU USE AND LIKE THIS PLUGIN...
Consider making a donation to support future development and bugfixes.
You can also give a support for the IMM-Glossary Plugin developers, Internet Marketing Monitor, who was developed the first versions of this plugin, by make a small donation or following their RSS Feeds
Plugin Developed By INFOmoz, Based on IMM-Glossary Plugin from Internet Marketing Monitor
To learn more about Technology, visit our website: INFOrmática Moçambique.
Report Problems & Request Features
If you run across bugs or issues or would like to sumbit a feature request, please let us know.
IF YOU USE AND LIKE THIS PLUGIN...
Consider making a donation to support future development and bugfixes.
You can also give a support for the IMM-Glossary Plugin developers, Internet Marketing Monitor, who was developed the first versions of this plugin, by make a small donation or following their RSS Feeds
' ; $Temporary = Array ( ) ; for ( $Index = 1 ; $Index <= $Total_Number_Of_Pages ; $Index = $Index + 1 ) { if ( $Key == $Index ) { $Temporary[] = $Index ; } else { $Temporary[] = '' . $Index . '' ; } } $Temporary = implode ( ' - ' , $Temporary ) ; echo $Previous . ' - ' . $Temporary . ' - ' . $Next ; echo '
' ; } else { } ?>' ; $Temporary = Array ( ) ; for ( $Index = 1 ; $Index <= $Total_Number_Of_Pages ; $Index = $Index + 1 ) { if ( $Key == $Index ) { $Temporary[] = $Index ; } else { $Temporary[] = '' . $Index . '' ; } } $Temporary = implode ( ' - ' , $Temporary ) ; echo $Previous . ' - ' . $Temporary . ' - ' . $Next ; echo '
' ; } else { } } else { echo 'There are no Terms in the database.
' ; } ?> ID == $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] ) { $Array = Array ( ) ; $permalink_structure = get_option ( 'permalink_structure' ) ; $Temporary = get_query_var ( 'Title' ) ; if ( empty ( $Temporary ) ) { $Total_Number_Of_Terms = INFOmoz_glossario_Get_MySQL_Field_Get ( 'COUNT(*)' , $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , '' , '' , '' ) ; $Number_Of_Terms_Per_Page = $GLOBALS['INFOmoz-glossario']['Settings']['Number_Of_Terms_Per_Page'] ; $Total_Number_Of_Pages = ceil ( $Total_Number_Of_Terms / $Number_Of_Terms_Per_Page ) ; $Key = get_query_var ( 'Key' ) ; $Key = !empty ( $Key ) ? $Key : '1' ; if ( $Key > $Total_Number_Of_Pages ) { $Key = $Total_Number_Of_Pages ; } else if ( $Key < 1 ) { $Key = 1 ; } else { } $Previous = $Key - 1 ; if ( $Previous < 1 ) { $Previous = 'Previous' ; } else { if ( empty ( $permalink_structure ) ) { $Previous = 'Previous' ; } else { $Previous = 'Previous' ; } } $Next = $Key + 1 ; if ( $Next > $Total_Number_Of_Pages ) { $Next = 'Next' ; } else { if ( empty ( $permalink_structure ) ) { $Next = 'Next' ; } else { $Next = 'Next' ; } } $Limit = ( ( $Key - 1 ) * $Number_Of_Terms_Per_Page ) . ' , ' . $Number_Of_Terms_Per_Page ; $Terms = INFOmoz_glossario_MySQL_Records_Get ( '*' , $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , '' , '`Title` ASC' , $Limit ) ; if ( !empty ( $Terms ) ) { if ( $Total_Number_Of_Pages > 1 ) { $Array[] = '' ; $Temporary = Array ( ) ; for ( $Index = 1 ; $Index <= $Total_Number_Of_Pages ; $Index = $Index + 1 ) { if ( $Key == $Index ) { $Temporary[] = $Index ; } else { if ( empty ( $permalink_structure ) ) { $Temporary[] = '' . $Index . '' ; } else { $Temporary[] = '' . $Index . '' ; } } } $Temporary = implode ( ' - ' , $Temporary ) ; $Array[] = $Previous . ' - ' . $Temporary . ' - ' . $Next ; $Array[] = '
' ; } else { } $Serial_Number = ( $Key - 1 ) * $Number_Of_Terms_Per_Page ; foreach ( $Terms As $Term ) { $Serial_Number = $Serial_Number + 1 ; $Array[] = '' . $Term['Definition'] . '
' ; } if ( $Total_Number_Of_Pages > 1 ) { $Array[] = '' ; $Temporary = Array ( ) ; for ( $Index = 1 ; $Index <= $Total_Number_Of_Pages ; $Index = $Index + 1 ) { if ( $Key == $Index ) { $Temporary[] = $Index ; } else { if ( empty ( $permalink_structure ) ) { $Temporary[] = '' . $Index . '' ; } else { $Temporary[] = '' . $Index . '' ; } } } $Temporary = implode ( ' - ' , $Temporary ) ; $Array[] = $Previous . ' - ' . $Temporary . ' - ' . $Next ; $Array[] = '
' ; } } else { $Array[] = '' . __ ( 'There are no Terms in the database.' ) . '
' ; } } else { $Title = get_query_var ( 'Title' ) ; $Title = !empty ( $Title ) ? $Title : '' ; $Title = base64_decode ( $Title ) ; $Referer = get_query_var ( 'Referer' ) ; $Referer = !empty ( $Referer ) ? $Referer : '' ; $Referer = base64_decode ( $Referer ) ; $Term = INFOmoz_glossario_MySQL_Record_Get ( '*' , $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , '`Title` = \'' . $Title . '\'' , '' , '' ) ; if ( !empty ( $Term ) ) { $Array[] = '' ; $Array[] = $Term['Definition'] ; $Array[] = '
' ; if ( 'A' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { $Array[] = '' ; $Array[] = '' . __ ( '« Go Back' ) . '' ; $Array[] = '
' ; } } else { $Array[] = '' ; $Array[] = __ ( 'You have specified an invalid Term ID.' ) ; $Array[] = '
' ; if ( 'A' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { $Array[] = '' ; $Array[] = '' . __ ( '« Go Back' ) . '' ; $Array[] = '
' ; } } } $Array = implode ( "\n" , $Array ) ; $Content = $Array ; } return $Content ; } function INFOmoz_glossario_Term_Add ( ) { ?>
' ;
if ( is_array ( $Anything ) OR is_object ( $Anything ) )
{
$Output[] = print_r ( $Anything , TRUE ) ;
}
else
{
$Output[] = $Anything ;
}
$Output[] = '' ;
$Output = implode ( '' , $Output ) ;
return $Output ;
}
/*
Initialize
*/
$GLOBALS['INFOmoz-glossario'] = Array ( ) ;
if ( function_exists ( 'add_action' ) )
{
$Temporary = add_action ( 'init' , 'INFOmoz_glossario_Initialize' ) ;
}
else
{
}
if ( function_exists ( 'add_action' ) )
{
$Temporary = add_action ( 'admin_menu' , 'INFOmoz_glossario_admin_menu' ) ;
$Temporary = add_action ( 'simple_edit_form' , 'INFOmoz_glossario_Permission_Get' ) ;
$Temporary = add_action ( 'edit_form_advanced' , 'INFOmoz_glossario_Permission_Get' ) ;
$Temporary = add_action ( 'edit_page_form' , 'INFOmoz_glossario_Permission_Get' ) ;
$Temporary = add_action ( 'edit_post' , 'INFOmoz_glossario_Permission_Set' ) ;
$Temporary = add_action ( 'save_post' , 'INFOmoz_glossario_Permission_Set' ) ;
$Temporary = add_action ( 'publish_post' , 'INFOmoz_glossario_Permission_Set' ) ;
$Temporary = add_action ( 'wp_head' , 'INFOmoz_glossario_wp_head' ) ;
$Temporary = add_action ( 'wp_footer' , 'INFOmoz_glossario_wp_footer' ) ;
}
else
{
}
if ( function_exists ( 'add_filter' ) )
{
$Temporary = add_filter ( 'query_vars' , 'INFOmoz_glossario_URLs_Variables' ) ;
$Temporary = add_filter ( 'rewrite_rules_array' , 'INFOmoz_glossario_URLs_Rules' ) ;
$Temporary = add_filter ( 'the_excerpt' , 'INFOmoz_glossario_Get_Page_Content' , 10 ) ;
$Temporary = add_filter ( 'the_content' , 'INFOmoz_glossario_Get_Page_Content' , 10 ) ;
$Temporary = add_filter ( 'the_excerpt' , 'INFOmoz_glossario_Terms_Overview_Public' , 10 ) ;
$Temporary = add_filter ( 'the_content' , 'INFOmoz_glossario_Terms_Overview_Public' , 10 ) ;
}
else
{
}
// Create the function to output the contents of our Dashboard Widget
function infomoz_dashboard_widget_function() {
require_once(ABSPATH.WPINC.'/rss.php');
// Display whatever it is you want to show
echo "Este widget indica que você está usando o plugin infomoz-glossário!