xoops forums

Forum Index


Board index » All Posts (wishcraft)




wishcraft

Module Developer
Posted on: 2018/4/1 9:45
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#11

Re: X-Torrent - Better Passkey Security

like mamba will tell you about this at Ubuntu like when I am displayed like my bloods right test now as a passport M8747409 definitive at least a proven alien with area51 my seather when it not in dick mode like looking like a vagina publishes stuff by itself now with pooty satellite dish deleted by still installed in both of us, anytime anyone says still stuff like - I wish there was a programme that did this - on sundown more xoops modules turn up on the SVN and in Git!!


wishcraft

Module Developer
Posted on: 2018/4/1 9:37
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#12

Re: X-Torrent - Better Passkey Security

If you want connect to my skype: antony.cipher / conquebine@outlook.com ~~ we can work on it together, my only problem with the computer after years of isolation to sit at it is I haven't got much physical company apart from my flatmate + wife and +2 cats called MMT = Meow Meow Twerp and her only raised daughter VMT = Vincent Mozzarella Twerp ~~ see all the cheese really was shredded by vincent which is a girls name the male is ~~ Vinton!


wishcraft

Module Developer
Posted on: 2018/3/27 15:38
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#13

Re: xoops_version.php and adding RSS Feeds to Theme Template

For the CURL Routine you will have to include this piece of code for it for file attachments like screen shots of errors for the submit request, submit bug curl URL calls.. in the xoops_version.php
if (!function_exists("getURIData")) {
    
    
/* function getURIData()
     *
     *     Get a supporting domain system for the API
     * @author         Simon Roberts (Chronolabs) simon@labs.coop
     *
     * @return         float()
     */
    
function getURIData($uri ''$timeout 25$connectout 25$post = array(), $headers = array())
    {
        if (!
function_exists("curl_init"))
        {
            die(
"Install PHP Curl Extension ie: $ sudo apt-get install php-curl -y");
        }
        
$GLOBALS['php-curl'][md5($uri)] = array();
        if (!
$btt curl_init($uri)) {
            return 
false;
        }
        if (
count($post)==|| empty($post))
            
curl_setopt($bttCURLOPT_POSTfalse);
        else {
            
$uploadfile false;
            foreach(
$post as $field => $value)
                if (
substr($value 01) == '@' && file_exists(substr($value 1)))
                    
$uploadfile true;
                    
            
curl_setopt($bttCURLOPT_POSTtrue);
            
curl_setopt($bttCURLOPT_POSTFIELDShttp_build_query($post));
            
            if (!empty(
$headers))
                foreach(
$headers as $key => $value)
                    if (
$uploadfile==true && substr($value0strlen('Content-Type:')) == 'Content-Type:')
                        unset(
$headers[$key]);
            if (
$uploadfile==true)
                
$headers[]  = 'Content-Type: multipart/form-data';
        }
        if (
count($headers)==|| empty($headers))
            
curl_setopt($bttCURLOPT_HEADERfalse);
        else {
            
curl_setopt($bttCURLOPT_HEADERtrue);
            
curl_setopt($bttCURLOPT_HTTPHEADER$headers);
        }
        
curl_setopt($bttCURLOPT_CONNECTTIMEOUT$connectout);
        
curl_setopt($bttCURLOPT_TIMEOUT$timeout);
        
curl_setopt($bttCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($bttCURLOPT_VERBOSEfalse);
        
curl_setopt($bttCURLOPT_SSL_VERIFYHOSTfalse);
        
curl_setopt($bttCURLOPT_SSL_VERIFYPEERfalse);
        
$data curl_exec($btt);
        
$GLOBALS['php-curl'][md5($uri)]['http']['posts'] = $post;
        
$GLOBALS['php-curl'][md5($uri)]['http']['headers'] = $headers;
        
$GLOBALS['php-curl'][md5($uri)]['http']['code'] = curl_getinfo($bttCURLINFO_HTTP_CODE);
        
$GLOBALS['php-curl'][md5($uri)]['header']['size'] = curl_getinfo($bttCURLINFO_HEADER_SIZE);
        
$GLOBALS['php-curl'][md5($uri)]['header']['value'] = curl_getinfo($bttCURLINFO_HEADER_OUT);
        
$GLOBALS['php-curl'][md5($uri)]['size']['download'] = curl_getinfo($bttCURLINFO_SIZE_DOWNLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['size']['upload'] = curl_getinfo($bttCURLINFO_SIZE_UPLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['content']['length']['download'] = curl_getinfo($bttCURLINFO_CONTENT_LENGTH_DOWNLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['content']['length']['upload'] = curl_getinfo($bttCURLINFO_CONTENT_LENGTH_UPLOAD);
        
$GLOBALS['php-curl'][md5($uri)]['content']['type'] = curl_getinfo($bttCURLINFO_CONTENT_TYPE);
        
curl_close($btt);
        return 
$data;
    }
}


just have to fix this part
if (count($headers)==|| empty($headers))
            
curl_setopt($bttCURLOPT_HEADERfalse);
        else {
            
curl_setopt($bttCURLOPT_HEADERtrue);
            
curl_setopt($bttCURLOPT_HTTPHEADER$headers);
        }
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies


wishcraft

Module Developer
Posted on: 2018/3/27 13:08
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#14

xoops 2.6.0 --> upgrade script for MySQL Engine=MyISAM to Engine=InnoDB

<?php
/**
 * Class Upgrade_2014
 */
if (!class_exists('Upgrade_MySQL_InnoDB')) {
    class 
Upgrade_MySQL_InnoDB extends XoopsUpgrade
    
{
        
        public function 
isApplied()
        {
            
$applied true;
            
$result $GLOBALS['xoopsDB']->queryF('SHOW TABLES IN `' XOOPS_DB_NAME '` WHERE `Tables_in_' XOOPS_DB_NAME '` LIKE "' XOOPS_DB_PREFIX '%"');
            while(
$table $GLOBALS['xoopsDB']->fetchArray($result))
            {
                
$createtbl $GLOBALS['xoopsDB']->queryF('SHOW CREATE TABLE `' $table['Tables_in_' XOOPS_DB_NAME] . '`');
                list(
$tbl$create) = $GLOBALS['xoopsDB']->fetchRow($createtbl);
                if (
strpos(strtolower($create),'myisam'))
                    
$applied false;
            }
            return 
$applied;
        }
    
        
        public function 
apply()
        {
            
$applied true;
            
$result $GLOBALS['xoopsDB']->queryF('SHOW TABLES IN `' XOOPS_DB_NAME '` WHERE `Tables_in_' XOOPS_DB_NAME '` LIKE "' XOOPS_DB_PREFIX '%"');
            while(
$table $GLOBALS['xoopsDB']->fetchArray($result))
            {
                
$createtbl $GLOBALS['xoopsDB']->queryF('SHOW CREATE TABLE `' $table['Tables_in_' XOOPS_DB_NAME] . '`');
                list(
$tbl$create) = $GLOBALS['xoopsDB']->fetchRow($createtbl);
                if (
strpos(strtolower($create),'myisam'))
                {
                    if (
$GLOBALS['xoopsDB']->queryF('RENAME TABLE `' $tbl '` to `old_' $tbl '`'))
                    {
                        if (
$GLOBALS['xoopsDB']->queryF(str_replace('MyISAM''InnoDB'$create)))
                        {
                            
$fields = array();
                            
$fldsresult $GLOBALS['xoopsDB']->queryF('SHOW FIELDS IN `' $tbl '`');
                            while(
$fldsrow $GLOBALS['xoopsDB']->fetchArray($fldsresult))
                                
$fields[] = $fldsrow['Field'];
                            
                            
$GLOBALS['xoopsDB']->queryF('START TRANSACTION');
                            if (
$GLOBALS['xoopsDB']->queryF(die('INSERT INTO `' $tbl '` (`' implode('`, `'$fields) . '`) SELECT `' implode('`, `'$fields) .' FROM `old_' $tbl '`')))
                                
$GLOBALS['xoopsDB']->queryF('DROP TABLE `old_' $tbl '`');
                            
$GLOBALS['xoopsDB']->queryF('COMMIT');
                        } else {
                            
$GLOBALS['xoopsDB']->queryF('RENAME TABLE `old_' $tbl '` to `' $tbl '`');
                        }
                    }
                }
            }
        }
        
        public function 
__construct()
        {
            
parent::__construct(basename(__DIR__));
            
$this->task = array('database');
        }
    }
}

$upg = new Upgrade_MySQL_InnoDB();
return 
$upg;


The following code is for an /upgrade module for changing the database from engine myisam to engine innodb which is horribly more efficent and devicive, it will have to be massaged into place with the classname as patchClass name...
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies


wishcraft

Module Developer
Posted on: 2018/3/27 11:46
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#15

xoops_version.php and adding RSS Feeds to Theme Template

As per the requirements listed in the XOOPS Documentation Team for 2.6 --> https://xoops.org/modules/newbb/viewto ... c_id=78350&post_id=363138 there is something that will need to be added like $GLOBALS['xoTheme']->addStylesheet() but $GLOBALS['xoTheme']->addRSSFeed()

for the following call see in this theme +1 This file is part of the theme.html calling in the theme, it is for adding the drop down menu to browsers that support it of available feeds on the site: https://github.com/Chronolabs-Cooperat ... /master/xotpl/xo_rss.html we will need in the theme template a system of ->addRSSFeed for the feed aggregation into the root backend.php and any module with RSS Feeds to add it in with a preloader exciter...
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies


wishcraft

Module Developer
Posted on: 2018/2/24 19:58
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#16

:[ Super Extreme Closest ]: XOOPS 2.5 : Theme has been released (screenshots)

REPO: https://github.com/Chronolabs-Cooperat ... remeClosest-Theme-Xoops25

Resized Image


Resized Image


wishcraft

Module Developer
Posted on: 2018/2/24 19:44
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#17

Re: Donation process is broken :: Use XPayment so it is invoice trailed mamba

To Michael Beck (Mamba),

There is a donation module i think I called it x-donation that is designed to work with XPayment so the donations are lodged, and invoice and you have for the 500 report a running invoice trail with the CSV Filter sorting...

You know Open Source really is a cooperative mamba you should change XOOPS LLC to XOOPS COOP, it has it own independent board and charters cooperatives at the UN and it is self governing as well as one registration if you ask me via email the email address for the UN to lodge it cover all ports and destination inside and outside the country or province of it registration... Plus no more 500 Tax Report.. or the 501 Report...

But on the XOOPS Sourceforge SVN for XPayment is in the branch./wishcraft the latest paypal REST API invoice generation and payment system... for the gateway adaptor in x-Payment.


wishcraft

Module Developer
Posted on: 2018/2/24 15:45
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#18

Re: X-Torrent - Better Passkey Security

Okey so I have forked your xtorrent github to: https://github.com/Chronolabs-Cooperative/xtorrent which means you will be able to when I let you know pull an updated version from my fork; in this a threadnauts delight me and the endless 2000 or so posts on the XOOPS Forums...

There is a couple of things I have to do to it, to ensure the passkey on the tracker always works, as it will need to do
exec('traceroute 11.11.11.11'$output$return);

and collect the whois information of the last remaining 3 domains when the passkey is written first, and next time it dials back in case they are on a dynamic IP or anything some network heuristics will allow for the passkey to pass anyway...

Well the network heuristics will be based on the whois company and individual name of the base domain of the traceroute as well as the ip of the actual netbios route in closest to them (1st Level), second closest (2nd Level), third closest (3rd Level), where then the count of passes by level adverage + standard deviation of these 3 levels, is larger by the 3rd level, then the passkey fails, if 2nd, is above adverage then the passkey fails, otherwise 1st level goes endlessly, passing based on first test as well as $_SESSION['passkey'] == $_GET['passkey'] both counting for hits on the pass type in the database...

For the whois i am going to implement https://github.com/Chronolabs-Cooperative/WhoIS-API-PHP a call in the URL path of xoops_version.php --> there is one for https://whois.xoops.org on the XOOPS Sourceforge SVN in the ROOT if you update!


wishcraft

Module Developer
Posted on: 2018/2/24 5:32
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#19

Re: X-Torrent

Hey Aerogaf, that module I wrote, I ended up replacing it with TBDev for XOOPS as it is popularised torrent client for web services, but I would be most help you if you like, please connect to my skype: antony.cipher, but if you add me in as a member to the repository my username on github.com/DrARoberts


wishcraft

Module Developer
Posted on: 2017/12/11 9:01
wishcraft
wishcraft (Show more)
Module Developer
Posts: 3710
Since: 2007/5/18
#20

Complexity theme version 1.5.1 -- Final Minor Release

To Mamba,

Can you test this and let me know if it is ready for packaging and release news, you need to pull https://github.com/Chronolabs-Cooperative/Complexity-Theme-Xoops25 into /themes/complexity

This is version 1.5.1

Screenshot:

Resized Image



TopTop
« 1 (2) 3 4 5 ... 135 »