Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WikiCommander
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
47
Issues
47
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luke081515
WikiCommander
Commits
cbf64840
Commit
cbf64840
authored
Apr 10, 2018
by
Luke081515
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raw concept
parent
fbfad7e7
Pipeline
#1887
failed with stages
in 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
WikiCommander.php
WikiCommander.php
+34
-1
No files found.
WikiCommander.php
View file @
cbf64840
...
...
@@ -10,8 +10,41 @@ require './Cygnus/BotCore.php';
class
WikiCommander
extends
Core
{
public
function
__construct
(
$Account
,
$Job
,
$pUseHTTPS
=
true
)
{
$this
->
initcurl
(
$Account
,
$Job
,
$pUseHTTPS
);
while
(
true
)
{
$this
->
echoMsg
(
"This is currently an alpha version. Several features may be unavailable."
,
"warning"
);
$this
->
chooseType
();
}
}
public
function
chooseType
()
{
$answer
=
strtoupper
(
$this
->
ask
(
"Enter the type [P/U/?]"
,
"required"
);
switch
(
$answer
)
{
case
'P'
:
$this
->
typePage
();
break
;
case
'U'
:
$this
->
typeUser
();
break
;
case
'?'
:
default
:
$this
->
echoMsg
(
"Currently available:
\n
* P - Page
\n
* U - User"
,
"notice"
);
}
}
private
function
typePage
()
{
$answer
=
strtoupper
(
$this
->
ask
(
"Enter the type [?]"
,
"required"
);
switch
(
$answer
)
{
case
'?'
:
default
:
$this
->
echoMsg
(
"Currently not implemented yet."
,
"error"
);
}
}
private
function
typeUser
()
{
$answer
=
strtoupper
(
$this
->
ask
(
"Enter the type [?]"
,
"required"
);
switch
(
$answer
)
{
case
'?'
:
default
:
$this
->
echoMsg
(
"Currently not implemented yet."
,
"error"
);
}
}
}
$Bot
=
new
ExampleProgramm
(
'WikiCommander'
,
'WikiCommander'
);
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment