aboutsummaryrefslogtreecommitdiff
path: root/www/gsearch/context.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/gsearch/context.php')
-rw-r--r--www/gsearch/context.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/www/gsearch/context.php b/www/gsearch/context.php
new file mode 100644
index 0000000..e4599ad
--- /dev/null
+++ b/www/gsearch/context.php
@@ -0,0 +1,27 @@
+<?php
+require_once('../header.inc.php');
+
+if($GLOBALS['enableGoogleCustomSearch'] == false) {
+ echo "Google Custom Search disabled. You can enable it into the config.inc.php file.";
+ die;
+}
+?>
+
+<!--?xml version="1.0" encoding="UTF-8" ?-->
+<GoogleCustomizations>
+ <CustomSearchEngine>
+ <Title><?php echo $GLOBALS['sitename'] ?></Title>
+ <Description><?php echo filter($GLOBALS['welcomeMessage']) ?></Description>
+ <Context>
+ <BackgroundLabels>
+ <Label name="include" mode="FILTER" />
+ </BackgroundLabels>
+ </Context>
+ <LookAndFeel nonprofit="false">
+ </LookAndFeel>
+ </CustomSearchEngine>
+
+ <Include type="Annotations" href="<?php echo ROOT;?>api/export_gcs.php?xml=1" />
+
+
+</GoogleCustomizations>