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

0 ) { if ( $Key > $Total_Number_Of_Pages ) { $Key = $Total_Number_Of_Pages ; } else if ( $Key < 1 ) { $Key = 1 ; } else { } } else { $Key = 1 ; } $Previous = $Key - 1 ; if ( $Previous < 1 ) { $Previous = 'Previous' ; } else { $Previous = 'Previous' ; } $Next = $Key + 1 ; if ( $Next > $Total_Number_Of_Pages ) { $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 ) ; ?>

Powered by

Hospedagem de Sites de Moçcambique GRINGO Jeans Informática Moçambique

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

1 ) { echo '

' ; $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 { } ?> ' . __ ( 'Edit' ) . '' ; $Delete = '' . __ ( 'Delete' ) . '' ; ?>






1 ) { echo '

' ; $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[] = '

' . $Serial_Number . '. ' . $Term['Title'] . '

' ; $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[] = '

' . $Term['Title'] . '

' ; $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 ( ) { ?>

trim ( $_POST['Title' ] ) , 'Definition' => trim ( $_POST['Definition'] ) , ) ; $Temporary = INFOmoz_glossario_MySQL_Save ( $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , $Array ) ; ?>

trim ( $_POST['Title' ] ) , 'Definition' => trim ( $_POST['Definition'] ) , ) ; $Temporary = INFOmoz_glossario_MYSQL_Update ( $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , $Array , '`ID` = \'' . $_POST['Terms_-_ID'] . '\'' ) ; ?>

0 ) { } else { $Author = INFOmoz_glossario_Get_MySQL_Field_Get ( 'MIN(`ID`)' , $GLOBALS['table_prefix'] . 'users' , '' , '' , '' ) ; } return $Author ; } function INFOmoz_glossario_Get_Page_Content ( $Content ) { if ( is_feed ( ) ) { } else { $permalink_structure = get_option ( 'permalink_structure' ) ; if ( 'All' == $GLOBALS['INFOmoz-glossario']['Settings']['Permission'] ) { $Limit = -1 ; } else if ( 'None' == $GLOBALS['INFOmoz-glossario']['Settings']['Permission'] ) { $Limit = 1 ; } else { $Limit = -1 ; } if ( !empty ( $_GET['page_id'] ) ) { $ID = $_GET['page_id'] ; } else { $ID = $GLOBALS['post']->ID ; } $Value = get_post_meta ( $ID , $GLOBALS['INFOmoz-glossario']['Variables']['Page']['Meta'] ) ; if ( !empty ( $Value[0] ) ) { if ( 'All' == $Value[0] ) { $Limit = -1 ; } else if ( 'None' == $Value[0] ) { $Limit = 1 ; } else { } } else { } $Terms = Array ( ) ; $Temporary = INFOmoz_glossario_MySQL_Records_Get ( 'DISTINCT `Title`' , $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , '' , '`ID` ASC' , '' ) ; if ( !empty ( $Temporary ) ) { foreach ( $Temporary As $Key => $Value ) { $Array = INFOmoz_glossario_MySQL_Record_Get ( '*' , $GLOBALS['INFOmoz-glossario']['Variables']['Table'] , '`Title` = \'' . $Value['Title'] . '\'' , '`ID` ASC' , '' ) ; if ( !empty ( $Array ) ) { $Terms[] = $Array ; } else { } } } if ( !empty ( $Terms ) ) { $Public = Array ( ) ; $Private = Array ( ) ; $Serial_Number = 0 ; $Temporary = preg_match_all ( '#]*)>(.*)#U' , $Content , $Matches , PREG_SET_ORDER ) ; if ( !empty ( $Matches ) ) { foreach ( $Matches As $Match ) { $Serial_Number = $Serial_Number + 1 ; $Public[$Serial_Number] = $Match[0] ; $Content = str_replace ( $Match[0] , '[[[' . $Serial_Number . ']]]' , $Content ) ; } } else { } $Temporary = preg_match_all ( '#]*>#' , $Content , $Matches , PREG_SET_ORDER ) ; if ( !empty ( $Matches ) ) { foreach ( $Matches As $Match ) { $Serial_Number = $Serial_Number + 1 ; $Public[$Serial_Number] = $Match[0] ; $Content = str_replace ( $Match[0] , '[[[' . $Serial_Number . ']]]' , $Content ) ; } } else { } $Tool_Tips = Array ( ) ; $Serial_Number = 0 ; foreach ( $Terms As $Term ) { $Serial_Number = $Serial_Number + 1 ; if ( empty ( $permalink_structure ) ) { $URL = get_permalink ( $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] ) . '&Title=' . base64_encode ( $Term['Title'] ) . '&Referer=' . base64_encode ( $_SERVER['REQUEST_URI'] ) ; } else { $URL = get_permalink ( $GLOBALS['INFOmoz-glossario']['Variables']['Page']['ID'] ) . 'Title/' . base64_encode ( $Term['Title'] ) . '/Referer/' . base64_encode ( $_SERVER['REQUEST_URI'] ) . '/' ; } if ( 'B' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { $URL = get_option ( 'siteurl' ) . '/wp-content/plugins/INFOmoz-glossario/Pop_Up.php?Title=' . base64_encode ( $Term['Title'] ) . '&Definition=' . base64_encode ( $Term['Definition'] ) ; } if ( 'A' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { $termo=$Term['Definition']; $Link= '${2}'; } else if ( 'B' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { $Link = '${2}' ; } else if ( 'C' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { $termo=$Term['Definition']; $Link= '${2}'; } if ( 'A' == $GLOBALS['INFOmoz-glossario']['Settings']['Library'] ) { } else { $Temporary = NULL ; } $Link = $Link ; $Link = '${1}' . $Link . '${3}' ; $Content = preg_replace ( '#(\W)(' . preg_quote ( $Term['Title'] , '#' ) . ')(\W)#Ui' , '${1}%%%${2}%%%${3}' , $Content , $Limit ) ; $Private['#(\W)%%%(' . preg_quote ( $Term['Title'] , '#' ) . ')%%%(\W)#Ui'] = $Link ; } $Patterns = Array ( ) ; $Replacements = Array ( ) ; $Serial_Number = 0 ; if ( !empty ( $Private ) ) { foreach ( $Private As $Key => $Value ) { $Serial_Number = $Serial_Number + 1 ; $Patterns[$Serial_Number] = $Key ; $Replacements[$Serial_Number] = $Value ; } } else { } $Content = preg_replace ( $Patterns , $Replacements , $Content , $Limit ) ; if ( !empty ( $Public ) ) { foreach ( $Public As $Key => $Value ) { $Content = str_replace ( '[[[' . $Key . ']]]' , $Value , $Content ) ; } } else { } $Tool_Tips = implode ( "\n" , $Tool_Tips ) ; $Content = $Content . $Tool_Tips ; } } return $Content ; } function INFOmoz_glossario_Permission_Get ( ) { $Value = get_post_meta ( $_GET['post'] , $GLOBALS['INFOmoz-glossario']['Variables']['Page']['Meta'] ) ; if ( empty ( $Value[0] ) ) { $Value[0] = $GLOBALS['INFOmoz-glossario']['Settings']['Permission'] ; } ?>

Error: ' . mysql_error ( ) ) ; return $Result ; } function INFOmoz_glossario_MySQL_Records_Get ( $Columns , $Table , $Where , $Order_By , $Limit ) { $Query = Array ( ) ; $Records = Array ( ) ; $Index = 0 ; $Query[] = 'SELECT ' . $Columns . ' FROM `' . $Table . '`' ; if ( !empty ( $Where ) ) { $Query[] = 'WHERE ' . $Where ; } else { } if ( !empty ( $Order_By ) ) { $Query[] = 'ORDER BY ' . $Order_By ; } else { } if ( !empty ( $Limit ) ) { $Query[] = 'LIMIT ' . $Limit ; } else { } $Query = implode ( ' ' , $Query ) ; $Result = INFOmoz_glossario_MySQL_Result_Get ( $Query ) ; if ( !empty ( $Result ) ) { while ( $Row = mysql_fetch_assoc ( $Result ) ) { $Index = $Index + 1 ; $Records[$Index] = $Row ; } } else { } return $Records ; } function INFOmoz_glossario_MySQL_Record_Get ( $Columns , $Table , $Where , $Order_By , $Limit ) { $Query = Array ( ) ; $Record = Array ( ) ; $Query[] = 'SELECT ' . $Columns . ' FROM `' . $Table . '`' ; if ( !empty ( $Where ) ) { $Query[] = 'WHERE ' . $Where ; } else { } if ( !empty ( $Order_By ) ) { $Query[] = 'ORDER BY ' . $Order_By ; } else { } if ( !empty ( $Limit ) ) { $Query[] = 'LIMIT ' . $Limit ; } else { } $Query = implode ( ' ' , $Query ) ; $Result = INFOmoz_glossario_MySQL_Result_Get ( $Query ) ; if ( !empty ( $Result ) ) { $Record = mysql_fetch_assoc ( $Result ) ; } else { } return $Record ; } function INFOmoz_glossario_Get_MySQL_Field_Get ( $Column , $Table , $Where , $Order_By , $Limit ) { $Query = Array ( ) ; $Field = NULL ; $Query[] = 'SELECT ' . $Column . ' FROM `' . $Table . '`' ; if ( !empty ( $Where ) ) { $Query[] = 'WHERE ' . $Where ; } else { } if ( !empty ( $Order_By ) ) { $Query[] = 'ORDER BY ' . $Order_By ; } else { } if ( !empty ( $Limit ) ) { $Query[] = 'LIMIT ' . $Limit ; } else { } $Query = implode ( ' ' , $Query ) ; $Result = INFOmoz_glossario_MySQL_Result_Get ( $Query ) ; if ( !empty ( $Result ) ) { $Row = mysql_fetch_row ( $Result ) ; $Field = $Row[0] ; } else { } return $Field ; } function INFOmoz_glossario_MySQL_Save ( $Table , $Record ) { $Query = Array ( ) ; $Keys = Array ( ) ; $Values = Array ( ) ; $Query[] = 'INSERT INTO `' . $Table . '`' ; $Query[] = '(' ; if ( !empty ( $Record ) ) { foreach ( $Record As $Key => $Value ) { $Keys[] = '`' . INFOmoz_glossario_MySQL_Value_Get ( $Key ) . '`' ; $Values[] = '\'' . INFOmoz_glossario_MySQL_Value_Get ( $Value ) . '\'' ; } } else { } $Query[] = implode ( ' , ' , $Keys ) ; $Query[] = ')' ; $Query[] = 'VALUES' ; $Query[] = '(' ; $Query[] = implode ( ' , ' , $Values ) ; $Query[] = ')' ; ; $Query = implode ( ' ' , $Query ) ; $Result = INFOmoz_glossario_MySQL_Result_Get ( $Query ) ; return $Result ; } function INFOmoz_glossario_MYSQL_Update ( $Table , $Record , $Where ) { $Query = Array ( ) ; $Sets = Array ( ) ; $Query[] = 'UPDATE `' . $Table . '` SET' ; if ( !empty ( $Record ) ) { foreach ( $Record As $Key => $Value ) { $Key = INFOmoz_glossario_MySQL_Value_Get ( $Key ) ; $Value = INFOmoz_glossario_MySQL_Value_Get ( $Value ) ; $Sets[] = '`' . $Key . '` = \'' . $Value . '\'' ; } } else { } $Query[] = implode ( ' , ' , $Sets ) ; $Query[] = 'WHERE ' . $Where ; $Query = implode ( ' ' , $Query ) ; $Result = INFOmoz_glossario_MySQL_Result_Get ( $Query ) ; return $Result ; } function INFOmoz_glossario_MYSQL_Delete ( $Table , $Where ) { $Query = 'DELETE FROM `' . $Table . '` WHERE ' . $Where ; $Result = INFOmoz_glossario_MySQL_Result_Get ( $Query ) ; return $Result ; } function INFOmoz_glossario_MySQL_Value_Get ( $Variable ) { return $Variable ; } /* Misc. Functions */ function INFOmoz_glossario_SELECT_Options ( $Values , $Indexed = 'Yes' ) { $Options = Array ( ) ; if ( empty ( $Values['Default'] ) ) { $Values['Default'] = NULL ; } else { } foreach ( $Values['All'] As $Key => $Value ) { switch ( $Indexed ) { case 'Yes' : break ; case 'No' : $Key = $Value ; break ; default : } if ( $Key == $Values['Default'] ) { $Selected = ' selected="selected"' ; } else { $Selected = '' ; } $Options[] = '' ; } $Options = implode ( '' , $Options ) ; return $Options ; } function INFOmoz_glossario_Log ( $Anything ) { $Output = Array ( ) ; $Output[] = '
' ;

        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!
This Widget means that you are using infomoz-glossario plugin!"; if ( $rss == fetch_rss( 'http://feeds.feedburner.com/infomoz' ) ) { echo '
'; if ($image == 'normal') { echo 'INFOmoz'; } else { echo 'INFOmoz'; } echo ''; echo '
'; echo ' Subscribe with RSS'; if ($image == 'normal') { echo '       '; } else { echo '
'; } echo ' Subscribe by email'; echo '
'; echo '
'; } } // Create the function use in the action hook function infomoz_add_dashboard_widgets() { wp_add_dashboard_widget('infomoz_dashboard_widget', 'Últimas noticias e dicas de Informática
Latest Technology tips and tricks', 'infomoz_dashboard_widget_function'); } // Hoook into the 'wp_dashboard_setup' action to register our other functions add_action('wp_dashboard_setup', 'infomoz_add_dashboard_widgets' ); ?>