Select Page

FAQ

The following is a Spanish translation of frequently asked questions about the CCXT library on the project's github page.

¿Estoy tratando de ejecutar el código, pero no funciona, como lo arreglo?

If your question is asked so briefly, we won't be able to help you. We're not going to teach you programming. If you're not able to follow the manual, we're not going to help you.

When to ask a question:

  • Use the search button to find out if your question already exists.
  • Formulate the question verbally.
  • Put the code to reproduce the problem. Create a complete and executable program. Don't show screenshots, paste the program output.
    • Write the code and output with three inverse accents: ''OK'''.
    • Do not confuse the reverse accent (') with the apostrophe ('): '''MAL'''.
    • Don't confuse an accent with three accents: 'MAL'.
  • Don't publish your apikey or your secret. Keep them safe.
  • Publishes the CCXT version.
  • Publish the version of the language you're using.

Content index

index.php 3

MySQL.php 3

App.php 4

AppModule.php 11

User.php 12

Lang.php 14

File paths 15

Images 15

Login Images 15

Logos 15

Contact images 15

Icons 15

JavaScript 16

NodeJS 16 modules

Poedit 16 Archives

Sound 16

Public archives 17

Composer 17 automatic directories

Installation Directory 17

Configuration file 17

Application Home Directory 18

 

Index.php

 

 

In index.php are called through the require statement, which implies that if any of them do not exist or cannot be read, it gives a fatal error and terminates the process to the following files:

 

  • config/config.settings.php

  • vendor/autoload.php

  • app/src/MySQL/MySQL.php

  • app/src/App/App.php

  • app/src/App/AppModule.php

  • app/src/User/User.php

  • app/src/Lang/Lang.php

 

It is also through this file that it is checked if a user is logged in and the language it uses. If it is logged in, the user name is changed.

 

 

MySQL.php

 

This is the file in which the MySQL class is defined. It saves the connection variables to the MySQL database. The functions are declared:

 

  • getSqlConnexion(): Tries to connect to a remote database.

  • querySqlRequest(): Searches the database for information.

  • countSqlRequest(): Counts the number of rows in the tables.

  • execSqlRequest(): Executes a query on the database.

  • getLastError(): Returns the last error that was obtained in the PDO.

 

 

App.php

 

This is the main file of the application. It defines the App class inherited from the MySQL class. The following functions are defined in this class:

 

  • __construct($loadmodules s false): Checks whether the variable is not MYSQL_HOST and if the install folder exists.

  • _loadPlatform(): The application loads. If you give errors, you show them.

  • _getVersion(): Displays the application version (4.1.0).

  • _installDirectoryExist(): Returns the existence of the install directory if positive.

  • _loadModules(): Generates a list of modules available for the application. Individually check if they are . If they are directories, the module is loaded, on the other hand, if they are a file it fails. If when you load it and check the settings, you see that it is wrong, it displays an error. If the module is activated, it is saved in the list of active modules.

  • _getAssetsList($typeAssets s "css"): Loads assets for each module.

  • _loadModulesControllers(): Loads the drivers for each module.

  • _loadAppSettings(): Query the database for options. Loads all application settings.

  • _saveSettingsAttribute($key, $val, $encrypt , false): If the application settings exist, it is updated. In contrast, it is saved in the database.

  • _getSettingsAttribute($key): Gets the saved settings.

  • _allowSignup(): Returns 1 if the app allows you to register.

  • _isMaintenanceMode(): Returns 1 if the app is in maintenance.

  • _getSupportEmail(): Returns the email.

  • _getSupportPhone(): Returns the phone.

  • _getSupportAddress(): Returns the address.

  • _getDPOEmail(): Returns the email of the data protection officer.

  • _getDPOPhone(): Returns the phone number of the data protection officer.

  • _enableGooglOauth(): Returns 1 if it can be authenticated through Google.

  • _enableFacebookOauth(): Returns 1 if it can be authenticated via Facebook.

  • _getFacebookAppID(): Returns the Facebook Api ID.

  • _getFacebookAppSecret(): Returns the Facebook Api Secret.

  • _chatIsDisabled(): Returns 1 if chat is disabled.

  • _getAppTitle(): Returns the name of the application.

  • _getAppDescription(): Returns the description of the application.

  • _getGoogleAnalytics(): Returns Google Analytics information.

  • _getNumberFormat(): Returns the numbering format.

  • _smtpEnabled(): Returns 1 if SMTP is enabled.

  • _getSmtpServer():D returns the SMTP server.

  • _getSmtpUser(): Returns the SMTP user.

  • _getSmtpPassword(): Returns the SMTP Password.

  • _getSmtpPort(): Returns the SMTP port.

  • _getSmtpSecurity(): Returns 0 if the security is not TLS or SSL.

  • _getSmtpFrom(): Returns the source of SMTP.

  • _getMailType(): Returns SMTP if there is no mail protocol. Otherwise it returns the corresponding protocol.

 

  • _getMailSendingAddress(): Returns the mail sender. If the issuer does not exist, it is replaced no-reply@krypto.com.

  • _freetrialEnabled(): Returns whether or not you are activating the app's free trial.

  • _getChargeTrialDay(): Returns the number of days of free trial.

  • _creditCardEnabled(): If the key does not exist or is empty it returns FALSE. Otherwise it returns 1.

  • _subscriptionEnabled(): Returns 1 if the application has subscriptions turned on.

  • _getPremiumName(): Returns the Premium name of the App.

  • _getChargeCurrency(): If the charge_currency field in the database is null, it returns USD otherwise, it returns the value of the field.

  • _getChargeCurrencySymbol(): Returns the symbol of the previous currency if it is in the database, but returns $ by default.

  • _getChargeText(): Returns the load text.

  • _getPaymentResultDone(): Returns the successfully completed payment text.

  • _getPrivateStripeKey(): Returns the private key.

  • _paypalEnabled(): If the PayPal ID or Key do not exist or are empty, it returns FALSE. Otherwise it returns 1.

  • _paypalLiveModeEnabled(): Returns 1 if PayPal is being run in Live Mode.

  • _getPaypalClientID(): Returns the client ID of PayPal.

  • _getPaypalClientSecret(): Returns the PayPal.

  • _getFortumoSecretKey(): Gets the Secret of Fortumo.

  • _getFortumoServiceKey(): Returns the Fortumo service key.

  • _fortumoEnabled(): Returns 1 if Fortumo is enabled.

  • _coingateEnabled(): Returns 1 if Coingate is active.

  • _coingateLiveMode(): Returns 1 if Coingate is in Live Mode.

  • _getCoingateAppID(): Returns the Coingate App ID.

  • _getCoingateApiSecret(): Returns the Secret of the Coingate App.

  • _getCoingateConvertionTo(): Returns the value of the payment conversion.

  • _getCoingateApiKey(): Returns the Coingate Api key.

  • _getCoinGateAuthToken(): Returns the Coingate Api authentication token.

  • _paymentReferencePattern(): Returns the reference payment pattern.

  • _getCoinGateCryptoCurrencyDepositAllowed(): Returns the cryptocurrencies allowed for deposit. They are BTC, LTC, ETH, BCH.

  • _mollieEnabled(): Returns 1 if Mollie is active.

  • _getMollieKey(): Returns the Mollie key.

  • _raveflutterwaveEnabled(): Returns 1 if RaveFlutterWave is active.

  • _getRaveflutterwavePublicKey(): Returns the RaveFlutterWave public key.

  • _getRaveflutterwaveSecretKey(): Returns the raveFlutterWave secret.

  • _raveflutterwaveSandboxMode(): Returns 1 if RaveFlutterWave is in Sandbox mode.

  • _getRaveflutterwaveTitle(): Returns the raveFlutterWave title.

  • _getRaveflutterwavePrefix(): Returns the prefix of RaveFlutterWave.

  • _coinbasecommerceEnabled(): Returns 1 if CoinbaseCommerce is active.

  • _getCoinbaseCommerceAPIKey(): Returns the CoinbaseCommerce Api key.

  • _getCoinbaseCommercePaymentTitle(): Returns the CoinbaseCommerce payment title.

  • _coinpaymentsEnabled(): Returns 1 if CoinPayments is enabled.

  • _getCoinpaymentsPublicKey(): Returns the CoinPayments public key.

  • _getCoinpaymentsPrivateKey(): Returns the CoinPayments private key.

  • _getCoinpaymentsMarchandID(): Returns the seller ID.

  • _getCoinpaymentsIPNSecret(): Returns the CoinPayments Secret.

  • _getDefaultDashboardNum(): Returns the default number of the board.

  • _getDefaultLanguage(): Returns the language set to previous duntions. If it has not been configured, it returns the value by dephesy that it is in.

  • _getGoogleAppID(): Returns the Google Auth ID.

  • _getGoogleAppSecret(): Returns the Google Auth Secret.

  • _captchaSignup(): Returns 1 if the application requires captcha to register.

  • _getGoogleRecaptchaSiteKey(): Returns the Google Recaptcha key.

  • _getGoogleRecaptchaSecretKey(): Returns Google's Recaptcha Secret.

  • _GoogleAdEnabled(): Returns 1 if Google Ads is turned on.

  • _getGoogleAdClient(): Returns the Google Add client.

  • _getGoogleAdSlot(): Returns the Google Add space.

  • _sendWelcomeEmail(): Returns the welcome email.

  • _getWelcomeSubject(): Returns the recipient of the email.

  • _getAutodectionLanguage(): Returns 1 if automatic language detection is enabled.

  • _getPOEditorEnable(): Returns 1 if POEditor is active.

  • _getPOEditorAPIKey(): Returns the POEditor Api key.

  • _getPOEditorProject(): Returns the POEditor project.

  • _tradingviewchartEnable(): Returns 1 if the business view chart is active.

  • _allowSwitchChart(): Returns 1 if chart change is allowed.

  • _nbDaysSendMailWhenTrialSubsEnded(): Returns the number of days left to renew the subscription.

  • _getNumberDaysWidthdrawProcess(): Returns the number of days it has been in process.

  • _getMinimumWidthdraw(): Returns the minimum withdrawal.

  • _getWidthdrawPattern(): Returns the withdrawal model.

  • _getWidthdrawMessage(): Returns the withdrawal message.

  • _getDepositMessage(): Returns the deposit message.

  • _getWidthdrawCryptocurrencyAvailable(): Returns TRUE if a withdrawal can be made.

  • _referalEnabled(): Returns 1 if references are enabled.

  • _getReferalWinAmount(): Returns the amount to be earned.

  • _getWidthdrawFees():

  • _getMinimalDeposit(): Returns the minimum amount to deposit.

  • _getMaximalDeposit(): Returns the maximum amount to be deposited.

  • _getFeesDeposit():

  • _getMaximalFreeDeposit():

  • _getFreeDepositSymbol():

  • _getTradingEnableRealAccount(): Returns 1 if the live account is activated.

  • _getTradingEnablePracticeAccount(): Returns TRUE if the practice account does not exist. Returns 1 if it exists.

  • _getIntroShow(): Returns 1 if the introduction is displayed.

  • _getIntroList(): Decodes the Getting Started list from JSON.

  • _getNewsPopup(): Returns 1 if the list can be displayed.

  • _getNewsPopupLastUpdate(): Returns the updated list of news items.

  • _getNewsPopupVideo(): Returns a video if it exists.

  • _getNewsPopupTitle(): Returns the title of the list.

  • _getNewsPopupText(): Returns a news text.

  • _getBankTransfertEnable(): Returns 1 if bank transfer is enabled.

  • _getBankTransfertPrefix(): Returns the transfer prefix.

  • _getBankTransfertProofEnable(): Returns 1 if test transfer is enabled.

  • _getBankTransfertProofMax(): Returns the maximum test transfer.

  • _getBankMaxTransfert(): Returns the maximum for a transfer.

  • _getFeaturesAllowedFree(): Decodes the user's permissions as an associative array from JSON.

  • _getReferalLink(): Returns whether or not to buy the referal.

  • _isDemoMode(): Returns FALSE as it is not in Demo mode.

  • _getUserActivationRequire(): Returns FALSE if account activation is disabled.

  • _hiddenThirdpartyActive(): Returns TRUE because the value of the database field is 1.

  • _hiddenThirdpartyNotConfigured(): Returns TRUE because it is not a null field in the database and is not empty.

  • _hiddenThirdpartyService(): Returns the value of that field in the database.

  • _hiddenTradingOrderPatternReference(): Returns the value of that field in the database.

  • _hiddenThirdpartyTradingFee(): Returns the value of that field in the database.

  • _hiddenThirdpartyDepositFee(): Returns the value of that field in the database.

  • _hiddenThirdpartyServiceCfg(): Returns the JSON decoded information as an associative array in case it is not empty.

  • _setThirdpartyServiceCfg($configuration): Returns the value of the field in the database as an array. The type of array depends on the value of $configuration.

  • _getCalendarEnable(): Returns the value of that field in the database.

  • _getCalendarCientID(): Returns the value of that field in the database.

  • _getCalendarClientSecret(): Returns the value of that field in the database.

  • _getCalendarEnableCoinsEnabled(): Returns the value of that field in the database.

  • _getExtraPageEnable(): Returns TRUE if the field value is 1.

  • _getExtraPageNewTab(): Returns the value of that field in the database.

  • _getExtraPageUrl(): Returns the value of that field in the database.

  • _getExtraPageName(): Returns the value of that field in the database.

  • _getExtraPageIcon(): Returns the value of that field in the database.

  • _getCookieAvertEnable(): Returns TRUE if cookies are enabled, value 1 in the database field.

  • _getCookieTitle(): Returns the value of that field in the database.

  • _getCookieText(): Returns the value of that field in the database.

  • _getWithdrawFees(): Returns the commission in percentage.

  • _getBlockonomicsEnabled(): Returns TRUE if the value of the field is 1 in the database.

  • _getListBlockonomicsCurrencyAllowed(): Returns BTC.

  • _getBlockonomicsApiKey(): Returns the value of that field in the database.

  • _getBalanceEstimationSymbol(): Returns the value of that field in the database.

  • _getBalanceEstimationShown(): Returns TRUE if the value of the field in the database is 1.

  • _getBalanceEstimationUserCurrency(): Returns TRUE if the value of the database field is 1.

  • _getListCurrencyDepositAvailable(): Returns the value of that field in the database as an associative array.

  • _getDepositConvertEnable(): Returns TRUE if the value of the database field is 1.

  • _getDepositConvertSymbol(): Returns BTC, the value of the database field.

  • _getCurrencyLayerCurrencyExchangeApiKey(): Returns the value of that field in the database.

  • _getPaymentApproveNeeded(): Returns TRUE if the value of the field in the database is 1.

  • _getDepositSymbolNotExistConvert(): Returns the value of that field in the database.

  • _getPayeerEnabled(): Returns TRUE if the value of the database field is 1.

  • _getPayeerShopID(): Returns the value of that field in the database.

  • _getPayeerAPIKey(): Returns the value of that field in the database.

  • _getPerfectMoneyEnabled(): Returns TRUE if the value of the field in the database is 1.

  • _getPerfectMoneyPayeeAccount(): Returns the value of that field in the database.

  • _getPerfectMoneyPayeeName(): Returns the value of that field in the database.

  • _getBlockonomicsPaymentFees(): Returns the value of that field in the database.

  • _getFortumoPaymentFees(): Returns the value of that field in the database.

  • _getCoingatePaymentFees(): Returns the value of that field in the database.

  • _getCoinpaymentPaymentFees(): Returns the value of that field in the database.

  • _getRaveflutterwavePaymentFees(): Returns the value of that field in the database.

  • _getCoinbaseCommercePaymentFees(): Returns the value of that field in the database.

  • _getMolliePaymentFees(): Returns the value of that field in the database.

  • _getPayeerPaymentFees(): Returns the value of that field in the database.

  • _getBankTransfertPaymentFees(): Returns the value of that field in the database.

  • _getIdentityEnabled(): Returns TRUE if the database field contains a value of 1.

  • _getIdentityTradeBlocked(): Returns TRUE if the database field contains a value of 1.

  • _getIdentityDepositBlocked(): Returns TRUE if the database field contains a value of 1.

  • _getIdentityWithdrawBlocked(): Returns TRUE if the database field contains a value of 1.

  • _getDonationEnabled(): Returns TRUE if the database field contains a value of 1.

  • _getDonationList(): Returns the value of that field in the database.

  • _getDonationText(): Returns the value of that field in the database.

  • _getLeaderboardEnabled(): Returns TRUE if the database field contains a value of 1.

  • _getStartingPair(): Returns the value of that field in the database.

  • _getStartingPairWatchinglist(): Returns the value of that field in the database.

  • _getHideMarket(): Returns TRUE if the database field contains a value of 1.

  • _getPaygolServiceID(): Returns the value of that field in the database.

  • _getPaygolSecret(): Returns the value of that field in the database.

  • _getPaygolEnabled(): Returns TRUE if the database field contains a value of 1.

  • _getPaygolFees(): Returns the value of that field in the database.

  • _getIdentityWizardtitle(): If the value of the database field is null, it returns "Identity wizard", but returns the value of the field.

  • _getIdentityTitle(): If the value of the database field is null, it returns "Identity verification require", but returns the value of the field.

  • _getIdentityAdvertisement(): If the value of the database field is null, it returns "IAll information will be stored safely and not redistribuate. Due to the GPRD, all information can be deleted on your needs.", but returns the value of the field.

  • _getIdentityStartButton(): If the value of the database field is null, it returns "Start your verification", but returns the value of the field.

  • _rewriteDashBoardName(): If the value of the database field is null, it returns FALSE, but returns the value of the field.

  • _getLogoBlackPath(): If the value of the database field is null, it returns "/assets/img/logo_black.svg", but returns the value of the field.

  • _getLogoPath(): If the value of the database field is null, it returns "/assets/img/logo.svg", but returns the value of the field.

  • _isLogoDefault(): If the value of the database field is null, it returns TRUE, but returns FALSE.

  • _polipaymentsEnabled(): If the value of the database field is null, it returns FALSE, otherwise it returns TRUE.

  • _getPolipaymentsAuthCode(): If the value of the database field is null, it returns "". Otherwise it returns the value of the field.

  • _getPolipaymentsMarchandCode(): If the value of the database field is null, it returns "". Otherwise it returns the value of the field.

  • _getPolipaymentsFees(): If the database field is empty, it returns 0. Otherwise it returns the value of the field.

  • _paystackEnabled(): If the database field is null, it returns FALSE, otherwise it returns TRUE.

  • _getPaystackPublicKey(): Returns the value of that field in the database.

  • _getPaystackPrivateKey(): Returns the value of that field in the database.

  • _getPaystackFees(): If the value of the database field is null, it returns 0. Otherwise it returns that value.

  • _getDirectDepositEnable(): If the field value is null, it returns FALSE. Otherwise it returns TRUE.

  • _getEnableAutomaticWithdraw(): If the field value is null, it returns FALSE. Otherwise it returns TRUE.

  • _enableNativeTradingWithoutExchange(): If the field value is null, it returns FALSE. Otherwise it returns TRUE.

  • _saveLogo($file, $type "_black"): If the /public/logo directory does not exist, try creating it. If the /public directory does not have write permissions, it returns a failure. If the file extension does not match any extension of the array it returns an error saying that the file is not an image. Try uploading the logo with a unique name created, if you can't do it, throw an error. Saves information about the new file to the database.

  • _getMaxUploadSizeAllowed(): Returns the maximum upload size.

  • _getInfosStartingPair($p null): Returns the available information for markets, symbols, and currencies.

  • _getInfosStartingWatchingList(): Returns information about the initial list.

  • _paymentIsEnabled(): Returns the status of functions _getBankTransfertEnable(), _coingateEnabled(), _mollieEnabled(), _getPayeerEnabled(), _coinbasecommerceEnabled(), _raveflutterwaveEnabled(), _coinpaymentsEnabled(), indicating whether those payment platforms are enabled on the platform.

  • _getPaymentListAvailableTrading(): Returns the list of payment platform available for exchange.

  • _saveSmtpSettings($enable, $server, $port, $user, $password, $security): Saves application SMTP information to the database.

  • _changeMailType($type): Saves the mail type to the database.

  • _saveMailSettings($email): Saves the mail settings to the database.

  • _saveWelcomeMailSettings($enable, $subject): Saves the welcome settings of the email.

  • _saveSupport($email, $phone, $address, $dpoemail, $dpophone): Saves the information corresponding to the media.

  • _saveSenderEmailName($email): Saves the email sender.

  • _saveGeneralsettings($apptitle, $appdescription, $enablesignup, $recaptcha_enabled, $gogglesitekey.$googlesecretkey, $enablegooglelogin, $googleappid, $googleappsecret, $googleanalytics, $defaultlanguage, $googleadenabled, $googleadclient, $googleadslot, $referallink, $maintenancemode.$facebookenable, $facebookappid, $facebookappsecret, $autolanguage.$cookieenable, $cookietitle, $cookietext, $numberformart, $signupverify, $blacklisted_countries,$tradingview_chart, $allow_user_switch,$poeditor_enable, $poeditor_apikey, $poeditor_projectid,$donation_enable, $donation_text, $donation_list_a, $disable_chat, $startingpar, $watchinglistpair, $rewritedashboard): Saves general platform settings to the database.

  • _savePayment($args): Saves payment settings.

  • _saveIdentity($args): Saves the identity settings.

  • _saveSubscription($enable, $freetrial, $freetrialduration, $features, $free_featues): Saves subscription information.

  • _saveIntroSteps($enable, $steps): Saves information about the introduction to the platform.

  • _saveNewspopup($enable, $title, $video, $text, $advert – false): Saves the popup information for what's new.

  • _saveCalendarSettings($enable, $clientid, $clientsecret, $enable_coins): Saves calendar settings information.

  • _saveTrading($enable_native, $login, $deposit_fees, $deposit_min, $deposit_max, $withdraw_min, $withdraw_days,$trading_fees, $enable_realaccount, $maxfree_deposit, $symbolfreedeposit, $deposit_currency_list,$showbalancestimation,$sebalancestimationcurrencyuser, $usecurrencyestimation, $deposit_wallet_notexist, $bankwithdraw_cryptocurrency_allowed, $withdrawfees,$withdrawbank_alert,$depositbank_alert, $leaderboard, $hide_market, $practiceaccount.$directdeposit, $autowithdraw, $enablenativewithoutexchange): Saves exchange information.

  • _saveReferal($enable, $comission): Saves the information of the referrals.

  • _getMonthName($Lang null): If the language is null, it returns the month in English. Otherwise it returns the month name in the appropriate language.

  • _getDayName($abrev – false, $Lang – null): If the language is null, it returns the names of the days in English, otherwise it returns the name of the days in the corresponding language.

  • _checkDomain(): Checks the domain in which the application is located for execution.

  • encrypt_decrypt($action, $string): Encrypts and decrypts data through a key and returns that encrypted or clear text data.

  • _checkError(): Checks to see if a software error needs to be displayed and whether it should be displayed.

  • _sendMail($to, $subject, $content): Send an email from an issuer to a receiver containing a message. Use SSL or TLS security and check if the email was sent.

  • _syncThirdpartyMarket(): Connect to Bittrex

  • _formatNumber($number, $decimal 2):

  • _getNumberDecimal($num):

  • _checkReferalSource():

  • _cleanCache():

  • _saveCronStatus($url):

  • _getAdditionalPages($page_id ? null):

  • _addAdditionalPage($name, $url, $icon, $svg):

  • _deleteAddtionalPage($id_page):

  • _syncCurrencyListRate():

  • _getListCountries():

  • _getBlacklistedCountries():

  • _getVisitorIP():

  • _getVisitorLocation():

  • _visitorAllowedRegister():

  • _getListBankAccountAvailable():

  • _getFileExtensionAllowed($file, $extensionAllowed[‘pdf’, ‘jpg’, ‘jpeg’, ‘png’]):

  • _modeURLRewriteIsEnabled():

  • _saveTemplate($page, $type, $content):

AppModule.php

 

It is the file in which the AppModule class is declared, which takes care of the configuration of everything related to the different modules of the application. It consists of the following function declarations:

 

  • __construct($moduleDirectory -null): For each module that you want to load into your application, the module directory is checked for existence, and if it does not exist it throws an error.

  • _getDirectory(): Checks if the module directory is empty and, if positive, throws an error.

  • _getModuleURL(): Gets the module URL.

  • _getModulePath(): Gets the PATH of the module.

  • _loadModule(): Checks that the module exists using the above functions and if it does not exist it throws an error.

  • _isEnable(): Checks if the module is enabled by returning TRUE if positive.

  • _checkConfig(): Check if the module configuration is correct, if positive it returns TRUE.

  • _loadAssets($type s "css"): Checks if the assets directory exists and, if positive, brings out a list of available assets. It reports the existence of directories within assets and returns a binding to the asset in the valid format depending on whether it is CSS or JS.

  • _loadControllers(): Check for drivers per module (the src folder), see if it is a directory, and return a list.

User.php

 

It is the file in which the User class is declared, which is used for everything related to the user account of the application. It is a class inherited from the MySQL class and contains the following functions:

 

  • __construct($userid x null):

  • _loadUserSettings():

  • _getDefaultUserSettings():

  • _getUserSettingsKey($key):

  • _changeUserSettings($k, $v):

  • _getUserID($encrypted s false):

  • _isLogged():

  • _loadUserData():

  • _loadNewUserData():

  • _getUserDataByKey($key):

  • _getName():

  • _getInitial():

  • _getPicture():

  • _getEmail():

  • _getOauth():

  • _isTwostep():

  • _isAdmin():

  • _isManager():

  • _getCurrency():

  • _getPassword():

  • _isActive():

  • _getPushbulletKey():

  • _getLang($onlygetdata s false):

  • _getLastLogin():

  • _getCreatedDate():

  • _marketShow():

  • _whiteMode():

  • _barChatShow():

  • _tradingviewChartLibraryUse():

  • _getCharge($App):

  • _getCurrencySymbol():

  • _checkUserExist($email, $oauth – "standard"):

  • _login($email, $password, $oauth 'standard', $tfscode null, $setpwd s false):

  • _oauthCallback($oauth):

  • _oauthCallbackID($oauth):

  • _createUser($email-null, $name-null, $password-null, $picture-", $oauth-'standard', $pushbullet-",$twostep-0, $admin-0, $setpwd-false):

  • _definePushbulletKey($NotificationCenter, $pushbulletKey, $adminview s false):

  • _removePushbullet($pushbulletKey, $adminview s false):

  • _changePicture($picture, $adminview s false):

  • _generateUserResetToken($Email):

  • _resetPassword($Email null, $App null):

  • _parseToken($App null, $token null, $deleteToken false):

  • _validResetPassword($token, $App null, $password):

  • _getUserIP():

  • _addVisit($userid x null):

  • _changeDataKey($key, $value):

  • _setName($name):

  • _setPassword($password):

  • _setEmail($email):

  • _setLanguage($lang, $LangObject x null):

  • _setCurrency($currency):

  • _setStatus($status):

  • _setAdmin($admin):

  • _saveChange($reloadsession ? true):

  • _setFreetrial($expire):

  • _setPremium($expire):

  • _generateDemoUser():

  • _accessWallets($source 'coinbase'):

  • _googleTwoFactorEnable($userId):

  • _generateGoogleTwoFactor($App):

  • _getGoogleTFSSecret($user x null):

  • _checkGoogleTFS($code, $user x null):

  • _enableGoogleTFS():

  • _disableGoogleTFS():

  • _getAssociateColor():

  • _accessAllowedFeature($App, $feature):

  • _sendActivationEmailLink($email):

  • _checkParseActivationAccount():

  • _generateReferalCode():

  • _checkReferalLink():

  • _getReferalUrl():

  • _getAssociateReferall():

  • _getUserStatus():

  • _getUserStatusText($status):

  • _updateUserStatus($newStatus x null):

  • _getUserLocation($countryCode s false):

  • _saveUserLoginHistory():

  • _getHistoryLoginUser():

  • _getListUserSubscribeNotification($App x null):

  • _showIntro():

  • _getAdminList():

  • _showNewsPopupNeeded($App):

  • _getUserList():

  • _delete():

Lang.php

 

It is the file in which the Lang class is declared, which is responsible for translating, choosing and applying the appropriate language in each situation. It contains the declaration of the following variables:

 

  • __construct($lang null, $App): Each time you have to select the language, you can see if the language is detected and if the cookie is not empty. If this runs correctly and the chosen language is valid, it is used. Otherwise, the default language is used. Otherwise, language information is found in the cookie and can be self-detected, detected and otherwise the default language is used.

  • _getApp(): In case the App object does not exist, a new one is generated.

  • setLang($lang):

  • getLang():

  • loadLang():

  • tr($s):

  • languageAvailable($lang):

  • getListLanguage($file_path ? '.. /'):

  • setLangCookie($lang):

  • _getPEOEditorClient():

  • _getPOEditorProjectList():

  • _getPOEditorProjectSelected():

  • _POEditorIsValid():

  • _usePOEditor():

 

 

 

File paths

 

Images

Login images

 

Slider images:

  • "assets/img/login/overview/1.png"

  • "assets/img/login/overview/2.png"

  • "assets/img/login/overview/3.png"

  • "assets/img/login/overview/4.png"

 

Background image:

  • "assets/img/login/circle.svg"

 

 

Logos

 

  • "assets/img/logo.svg"

  • "assets/img/logo_black.svg"

 

 

Contact images

 

  • "assets/img/other/contact.png"

 

 

Icons

 

  • "assets/img/icons/chart/*": Images of special characters and symbols.

  • "assets/img/icons/country/*": Flag images.

  • "assets/img/icons/crypto/*": Logos of different cryptocurrencies.

  • "assets/img/icons/dashboard/*": Outline of the home page layout.

  • "assets/img/icons/favicon/*": Platform icons in different access modes.

  • "assets/img/icons/languages/*": Images of circular flags.

  • "assets/img/icons/oauth/*": Facebook and Google images.

  • "assets/img/icons/payment/*": Images of the different payment institutions.

  • "assets/img/icons/trade/*": Images of the different exchange houses.

 

 

Javascript

 

  • "assets/js/highlight.js"

  • "assets/js/intro.js"

  • "assets/js/login.js"

  • "assets/js/notifications.js"

  • "assets/js/pannel.js"

 

NodeJS modules

 

  • "assets/node_modules/babel-polyfill/*"

  • "assets/node_modules/babel-runtime/*"

  • "assets/node_modules/core-js/*"

  • "assets/node_modules/regenerator-runtime/*"

 

Poedit Archives

 

  • "assets/poeditor/po/*"

 

Sound

 

  • "assets/sounds/notification.wav"

 

 

Public archives

 

  • "public/bank-proff": Empty.

  • "public/chat": Empty.

  • "public/identity": Empty.

  • "public/lang": Translation .json files to different languages.

  • "public/logo": Three files with no apparent usefulness.

  • "public/proof": Empty.

  • "public/qrcode": Empty.

  • "public/user": Empty.

  • "public/translate_terms.csv": List of terms to be translated.

 

 

Composer's automatic directories

 

  • "vendor/*": They should not be edited as the composer does so automatically if needed.

 

 

Installation directory

 

  • "install/*": Directory where the Krypto installation files are located that should be deleted when the Krypto installation file is finished.

 

 

Configuration file

 

  • "config/config.settings.php": A file in which everything is initially commented out.

 

Call Now ButtonLLámanos