Skip to content

Commit

Permalink
Revert "Update admin.php"
Browse files Browse the repository at this point in the history
This reverts commit 4c6ea10.
  • Loading branch information
ptibogxiv committed Nov 2, 2024
1 parent 018329d commit 2b2c458
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ function doliconnect_network_page() {
} else {
update_site_option('dolibarr_private_key', sanitize_text_field($_REQUEST['dolibarr_private_key']));
}
if ( add_site_option( 'doliconnectPRO', sanitize_text_field($_REQUEST['doliconnectPRO'])) ) {
} else {
update_site_option('doliconnectPRO', sanitize_text_field($_REQUEST['doliconnectPRO']));
}
if ( add_site_option( 'doliconnect_login', sanitize_text_field($_REQUEST['doliconnect_login'])) ) {
} else {
update_site_option('doliconnect_login', sanitize_text_field($_REQUEST['doliconnect_login']));
Expand Down Expand Up @@ -178,15 +174,11 @@ function doliconnect_network_page() {
<table class="form-table" width="100%">
<tr>
<th style="width:150px;"><label for="dolibarr_public_url">DOLIBARR URL</label></th>
<td ><input class="regular-text" type="text" id="dolibarr_public_url" name="dolibarr_public_url" value="<?php echo get_site_option('dolibarr_public_url'); ?>" required> required<br>ex: https://dolibarr.example.com</td>
<td ><input class="regular-text" type="text" id="dolibarr_public_url" name="dolibarr_public_url" value="<?php echo get_site_option('dolibarr_public_url'); ?>" required>/api/index.php<br>ex: https://dolibarr.example.com</td>
</tr>
<tr>
<th style="width:150px;"><label for="dolibarr_private_key">DOLIBARR REST API USER KEY</label></th>
<td ><input class="regular-text" type="text" id="dolibarr_private_key" name="dolibarr_private_key" value="<?php echo get_site_option('dolibarr_private_key'); ?>" required> required</td>
</tr>
<tr>
<th style="width:150px;"><label for="doliconnectPRO">DOLICONNECT PRO</label></th>
<td ><input class="regular-text" type="text" id="doliconnectPRO" name="doliconnectPRO" value="<?php echo get_site_option('doliconnectPRO'); ?>"> optionnal</td>
<td ><input class="regular-text" type="text" id="dolibarr_private_key" name="dolibarr_private_key" value="<?php echo get_site_option('dolibarr_private_key'); ?>" required></td>
</tr>
<tr>
<th style="width:150px;"><label for="status"><?php _e('Status Dolibarr', 'doliconnect') ?></label></th>
Expand Down

0 comments on commit 2b2c458

Please sign in to comment.