mirror of
https://github.com/hak5darren/wifipineapple-wiki.git
synced 2025-10-29 16:59:29 +00:00
Fixed a couple of javascript functions.
This commit is contained in:
parent
ab41415a53
commit
1288235674
12
api.md
12
api.md
@ -138,7 +138,7 @@ This will set a variable named "$pineapple" up to be with the Pineapple API obje
|
||||
* nonblocking manner.
|
||||
* @param string $command The command to execute
|
||||
*/
|
||||
$pineapple>execute($command)
|
||||
$pineapple->execute($command)
|
||||
|
||||
|
||||
/**
|
||||
@ -147,7 +147,7 @@ This will set a variable named "$pineapple" up to be with the Pineapple API obje
|
||||
* @param string $destination optional: 'internal' or 'sd'
|
||||
* @return boolean Successful initiation of package install
|
||||
*/
|
||||
$pineapple>installPackage($pkg_or_array, $destination = "internal")
|
||||
$pineapple->installPackage($pkg_or_array, $destination = "internal")
|
||||
|
||||
|
||||
/**
|
||||
@ -165,7 +165,7 @@ This will set a variable named "$pineapple" up to be with the Pineapple API obje
|
||||
* @param string $password Password to verify
|
||||
* @return boolean correct
|
||||
*/
|
||||
$pineapple->verifyPassword($password)
|
||||
$pineapple->verifyPassword($password)
|
||||
|
||||
|
||||
/**
|
||||
@ -173,7 +173,7 @@ This will set a variable named "$pineapple" up to be with the Pineapple API obje
|
||||
* @param string $notification The notification to be sent
|
||||
* @return null
|
||||
*/
|
||||
$pineapple->sendNotification($notification)
|
||||
$pineapple->sendNotification($notification)
|
||||
|
||||
|
||||
/**
|
||||
@ -183,7 +183,7 @@ This will set a variable named "$pineapple" up to be with the Pineapple API obje
|
||||
* see /pineapple/components/infusions/{name}/tabs
|
||||
* @param array $tabs An array of tabs to draw
|
||||
*/
|
||||
$pineapple->drawTabs(array $tabs)
|
||||
$pineapple->drawTabs(array $tabs)
|
||||
```
|
||||
|
||||
## JavaScript API Functions
|
||||
@ -229,4 +229,4 @@ The JavaScript API is accessible from any small or large tile (and any included
|
||||
|
||||
Tip:
|
||||
`<a href=”#usr/{infusion_name}/{get_variable}/{variable_value}/{callback_function}”>Click Me!</a>`
|
||||
This example will send a GET request to the infusion's function.php file. The `$_GET[]` variable is defined using the `{get_variable}` part. The content of the variable is set using the `{variable_value}` part. Finally, if the GET request returns something, any data is passed to the `{callback_function}` which should be a JavaScript function.
|
||||
This example will send a GET request to the infusion's function.php file. The `$_GET[]` variable is defined using the `{get_variable}` part. The content of the variable is set using the `{variable_value}` part. Finally, if the GET request returns something, any data is passed to the `{callback_function}` which should be a JavaScript function.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user