Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UNL_Alert
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Experience Group
UNL_Alert
Commits
fe7bd660
Commit
fe7bd660
authored
14 years ago
by
Brett Bieber
Browse files
Options
Downloads
Patches
Plain Diff
After the xml file has been generated, build the json file.
parent
2daa896b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
configsample.inc.php
+5
-1
5 additions, 1 deletion
configsample.inc.php
www/exportCAPAlert.php
+1
-0
1 addition, 0 deletions
www/exportCAPAlert.php
www/exportJSONAlert.php
+0
-1
0 additions, 1 deletion
www/exportJSONAlert.php
with
6 additions
and
2 deletions
configsample.inc.php
+
5
−
1
View file @
fe7bd660
...
@@ -3,7 +3,11 @@
...
@@ -3,7 +3,11 @@
function
__autoload
(
$class
)
function
__autoload
(
$class
)
{
{
$file
=
dirname
(
__FILE__
)
.
'/src/'
.
str_replace
(
'_'
,
DIRECTORY_SEPARATOR
,
$class
)
.
'.php'
;
$file
=
dirname
(
__FILE__
)
.
'/src/'
.
str_replace
(
'_'
,
DIRECTORY_SEPARATOR
,
$class
)
.
'.php'
;
if
(
file_exists
(
$file
))
{
require
$file
;
require
$file
;
return
true
;
}
return
false
;
}
}
spl_autoload_register
(
'__autoload'
);
spl_autoload_register
(
'__autoload'
);
...
...
This diff is collapsed.
Click to expand it.
www/exportCAPAlert.php
+
1
−
0
View file @
fe7bd660
...
@@ -55,3 +55,4 @@ $xmlCAP = exportCAPAlert();
...
@@ -55,3 +55,4 @@ $xmlCAP = exportCAPAlert();
file_put_contents
(
dirname
(
__FILE__
)
.
'/xml/unlcap.xml'
,
$xmlCAP
);
file_put_contents
(
dirname
(
__FILE__
)
.
'/xml/unlcap.xml'
,
$xmlCAP
);
require
dirname
(
__FILE__
)
.
'/exportJSONAlert.php'
;
This diff is collapsed.
Click to expand it.
www/exportJSONAlert.php
+
0
−
1
View file @
fe7bd660
<?php
<?php
ini_set
(
'display_errors'
,
false
);
require_once
dirname
(
__FILE__
)
.
'/../src/xml2json/xml2json.php'
;
require_once
dirname
(
__FILE__
)
.
'/../src/xml2json/xml2json.php'
;
$file
=
dirname
(
__FILE__
)
.
'/xml/unlcap.xml'
;
$file
=
dirname
(
__FILE__
)
.
'/xml/unlcap.xml'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment