Skip to content

Instantly share code, notes, and snippets.

View alelectricista's full-sized avatar

Fran alelectricista

  • Joined Oct 18, 2025
View GitHub Profile
>>>file: admin/anthropic.php
<?php
global $db, $conf, $langs, $user;
// Parameters
$action = GETPOST('action', 'alpha');
$api_key = GETPOST('ANTHROPIC_API_KEY', 'alpha');
$model = GETPOST('ANTHROPIC_DEFAULT_MODEL', 'alpha');
@alelectricista
alelectricista / fullsource.txt
Last active October 25, 2025 09:53
txt gist
>>>file: admin/anthropic.php
<?php
global $db, $conf, $langs, $user;
// Parameters
$action = GETPOST('action', 'alpha');
$api_key = GETPOST('ANTHROPIC_API_KEY', 'alpha');
$model = GETPOST('ANTHROPIC_DEFAULT_MODEL', 'alpha');
@alelectricista
alelectricista / actions_dolielec.class.php
Created October 23, 2025 22:44
gist for dolielec module
<?php
/* Copyright (C) 2023 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) ---Replace with your own copyright and developer email---
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,