1. Getting started

  2. System requirements

  3. INXY-Feeds

    1. Installation

    2. Configuration

    3. Menu

      1. Main

      2. Content

        1. Galleries

        2. Categories

        3. Sponsors

        4. Paysites

      3. Import

      4. Parsers

      5. Settings

        1. System settings

        2. Access

      6. Tools

        1. Tools

        2. System

        3. Updates

      7. Logs

  4. INXY-Site

    1. Installation

    2. Configuration

    3. Menu

      1. Main

        1. Общие

        2. Rerank

      2. Rotation

      3. Content

        1. Galleries

        2. Categories

        3. Sponsors

        4. Paysites

      4. Settings

        1. General

        2. Медиа

        3. Трэйд

        4. Задачи

        5. Доступ

        6. Системные

        7. Лицензия

      5. Tools

        1. General

        2. Upgrade

        3. Feeds

        4. System

      6. Logs

    4. Templates

      1. Intro

      2. Commands list

      3. Request

      4. Thumb object properties list

      5. Preview object properties

      6. Custom error pages

      7. Search

  5. Appendixes

    1. FAQ

      1. How to create own galleries?

      2. How to choose thumbs size for import?

    2. Glossary

      1. Categories

      2. Category types

      3. Stream

Getting started

INXY-site - PHP script for networks of CJ, TGP and tube sites. You can create FHG based sites or sites with own video (tube) of pictures galleries

INXY-feeds - network content administration system. Only one INXY-feeds required for all your network.

Attention!

INXY-site license types:

INXY-feeds are FREE

System requirements

Software configuration:

Recommended hardware configuration (for 20-30 web-sites):

Recommended MySQL variables (RAM: 4GB):

Try our hosting inxy-host.com. Using our hosting you will get special license (takes 0.5% of clicks). License valid only while using our hosting.

INXY-Feeds

Installation

  1. Create new database, e.g. 'inxy_feeds'.
  2. Create empty directory for script, e.g. 'feeds'.
  3. Download installer http://www.inxy-scripts.com/ru/download/ and unpack install.php to directory you create
  4. Change directory permissions to 0777
  5. Open http://yourdomain.com/feeds/install.php
  6. Follow instructions

Configuration

INXY-feeds это база для хранения и управления вашим контентом. Добавив галлереи в INXY-feeds можно в организовать их автоматическую рассылку на любое число ваших сайтов. Таким образом Вам не придется добавлять один и тот же контент на десятки сайтов. Для каждого сайта можно сформировать отдельную выборку (фид) на основании следующих параметров: Согласно этим параметрам можно сформировать выборки (feeds) для автоматического обновления сайтов построенных на ротаторе INXY-site (IS). Начать работу можно с заведения спонсоров и их сайтов (см. раздел content/sponsors и content/paysites)
  1. Добавте задание в крон. Пример:
    * * * * * cd /usr/home/name/example.com/www/inxy-feeds/; /usr/local/bin/php cron.php
  2. Добавте нового спонсора (settings/sponsors) и платник (settings/paysites)>
  3. Добавте галереи через импорт
  4. Сохдайте новый фид для каждого домена (main)

Menu

Main

Вкладка предназначена для подключения доменов под управлением INXY-site к фидеру. Для каждого домена создайте новый фид. Выберите тип галерей, спонсоров и категории. В настройках INXY-site пропишите урл фидера. Значения колонок:

Content

Сделанные в данном меню изменения попадают на домены INXY-site не моментально, а только после того как домен прочитает фид (обычно не более 20 минут)

Galleries

Список галерей, для того чтобы галереи появились нажмите кнопку Find. В нижней части грида находятся кнопки:

Categories
Список кагегорий и клочество галерей в каждой, здесь можно забанить категории или назначить синонимы.
Sponsors

Список спонсоров, если задисаблить спонсора то на всех доменах задисаблятся его платники и галереи

Paysites

Список платников:

Import

Через эту форму можно залить галереи в базу фидера.

Parsers

Парсер это робот который по расписанию или по команде может просканировать заданный вэбсайт на наличие нового контента. Таким образом вам не нужно будет заходить на каждый сайт и проверять его на наличие обновления а так же заливать их через меню импорта.

Парсеры бывают двух видов:

Settings

System settings

Системные настройки INXY-feeds

PS:Полный путь к программам можно узнать набрав в консоли *nix команду which (например which php)

Access

Настройки доступа INXY-feeds, укажите логи, пароль или IP адреса для доступа

Tools

Tools
System
Updates

Logs

Выберите тип лога и нажмите view для просмотра. Кнопка clear очищает лог выбранного типа. Система хранит 100 последних логов каждого события

INXY-Site

Installation

Steps for install script into inxy directory of yourdomain.com
  1. Create inxy directory and set permissions 777 (chmod 777)
  2. Download installer and unpack install.php into inxy
  3. Create database
  4. Open http://yourdomain.com/inxy/install.php
  5. Follow instructions

Configuration

Menu

Main

Общие

Страница содержит общую статистику и сообщения о текущих сбоях и проблемах

  • Total - общее количество галерей
  • Published - галереи с подготовленными тумбами
  • Not published - новые галереи (тумбы еще не сделаны)
  • Rerank

    Rotation

    Content

    Galleries

    Manage galleries. Text entered into top input filed matches with gallery URL, title and description. All filters applies only after Find botton clicked

    Bottom buttons functions

    Categories

    Список категорий, справа находится переключатель типов категорий. В зависимотси от выбранного типа в нижней части грида распологаются кнопки:

    См. так же типы категорий

    Sponsors
    Paysites

    Settings

    General
    Медиа

    Media type default: default media type for your site (main page content)

    Thumbs size - group 'Mixed' - thumbs dimensions for page with pictures and movies Enable: - create thumbs for group 'mixed'

    Thumbs size - group 'Picture' - thumbs dimensions for page with pictures Enable: - create thumbs for group 'Picture'

    Thumbs size - group 'Movie' - thumbs dimensions for page with movies Enable: - create thumbs for group 'Movie'

    Preview images - previews dimensions for self-hosted picture galleries

    Media storage

    Convert

    Трэйд

    Default trade out: trade script out string

    mixed: trade script out string for group 'mixed'

    picture: trade script out string for group 'picture'

    movie: trade script out string for group 'movie'

    Задачи
    Доступ
    Системные
    Лицензия

    Tools

    General
    Upgrade
    Feeds
    System

    Logs

    Выберите тип лога и нажмите view для просмотра. Кнопка clear очищает лог выбранного типа. Система хранит 100 последних логов каждого события

    Templates

    Intro

    Templates defines disign of your site. INXY templates are *.php files with special instructions. If you are fimilar with HTML you can take standart templates and edit HTML to get site ready for use. Its important to leave unchanged instuctions between <? ?> tags.

    Templates located in templates directory. Threre are three types of templates layouts, site and sub.

    Templates interaction scheme

    Commands list

    Optional params - [], Template type - (). L - layout, С -content template, S - subtemplate

    <?=Inxy::action()?> (LCS)
    Outputs name of current content template (action)
    <?=Inxy::category()?> (LCS)
    Outputs name of current category
    <?=Inxy::categoriesByCtr(['categories_by_ctr'[, 300]])?> (LC)
    Outputs list of categories ordered by CTR using categories_by_ctr.php subtemplate
    <?=Inxy::categoriesByLastClicks(['categories_by_last_clicks'[, 300]])?> (LC)
    Outputs list of categories ordered by last clicks using categories_by_last_clicks.php subtemplate
    <?=Inxy::categoriesByName(['categories_by_name'[, 300]])?> (LC)
    Outputs list of categories ordered by name using categories_by_name.php subtemplate
    <?=Inxy::description()?> (LC)
    Outputs site description for pages with tumbs or gallery description at gallery page
    <?=Inxy::ifActionMatch(val, [true 'highlight'[, false 'default']])?> (LC)
    Retunrs true if current action matches with val overwise returns false. Use it to set diffrent CSS styles for active and not active items of menu
    <?=Inxy::ifAllMatch([true 'highlight'[, false 'default']])?> (LC)
    Retunrs true if current group matches with All overwise returns false. Use it to set diffrent CSS styles for active and not active items of menu.
    <?=Inxy::ifCategoryMatch(val, [true 'highlight'[, false 'default']])?> (LC)
    Retunrs true if current category matches with val overwise returns false. Use it to set diffrent CSS styles for active and not active items of menu.
    <?=Inxy::ifMovMatch([true 'highlight'[, false 'default']])?> (LC)
    Retunrs true if current group matches with Pic overwise returns false. Use it to set diffrent CSS styles for active and not active items of menu.
    <?=Inxy::ifPicMatch([true 'highlight'[, false 'default']])?> (LC)
    Retunrs true if current group matches with Pic overwise returns false. Use it to set diffrent CSS styles for active and not active items of menu.
    <?=Inxy::ifTagMatch(val, [true 'highlight'[, false 'default']])?> (LC)
    Retunrs true if current tag name matches with val overwise returns false. Use it to set diffrent CSS styles for active and not active items of menu.
    <?=Inxy::isAll() ?> (LC)
    Returns true if current group name is All, false overwise.
    <?=Inxy::isMov() ?> (LC)
    Returns true if current group name is Mov, false overwise.
    <?=Inxy::isPic() ?> (LC)
    Returns true if current group name is Pic, false overwise.
    <?=Inxy::join(itemstemplateseparator?> (LC)
    Joins array of items using subtemplate with name template and separator.
    <?=Inxy::keywords()?> (L)
    Outpust autogenerated keywords
    <?=Inxy::name()?> (L)
    Outpusts site name form settings
    <?Inxy::orderByCtr()?> (C)
    Set CTR thumbs order
    <?Inxy::orderByDater()?> (C)
    Sets date thumbs order
    <?=Inxy::paginator()?> (C)
    Outputs paginator
    <?Inxy::setLayout(name)?> (C)
    Sets layout name for use
    <?Inxy::setThumbSub(name [, use_prefix false])?> (C)
    Sets subtemplate for thumbs
    <?=Inxy::tag()?> (LC)
    Outputs current tag
    <?=Inxy::tagsByName(offsetlimittemplate)?> (LC)
    Uses template subtemplate for output tags ordered by name. Starts from offset and outpust maximum limit number of tags
    <?=Inxy::tagsByWeight(offsetlimittemplate)?> (LC)
    Uses template subtemplate for output tags ordered by weight. Starts from offset and outpust maximum limit number of tags
    <?=Inxy::title()?> (L)
    When page with thumbs then outputs site title when gallery page outputs gallery title when category page and category title is set then outputs category title
    <?=Inxy::test([count 1])?> (C)
    Outputs count of test thumbs
    <?=Inxy::thumb([count 1])?> (C)
    Outputs count of thumbs
    <?=Inxy::total()?> (L)
    Outputs number of galleries
    <?=Inxy::totalNew()?> (L)
    Outputs number of galleries created in last 24 hours
    <?=Inxy::tplUrl()?> (LCS)
    Relative url to directory with templates
    <?=Inxy::url(template)?> (LCS)
    Outputs url for action
    <?=Inxy::virtual()?> (L)
    Replacement for php virtual function name which is incompatible with INXY

    Request

    Using request you can detect and output current user's location

    Example:

    Thumb object properties list

    [] - optional params

    <?=$thumb->categories?>
    Array of categories names
    <?=$thumb->click_url?>
    Click url (using trade script)
    <?=$thumb->description?>
    Gallery description
    <?=$thumb->gallery_url?>
    Direct link to gallery
    <?=$thumb->height?>
    Image width
    <?=$thumb->img_url?>
    Image height
    <?=$thumb->publish_dt?>
    Publish date
    <?=$thumb->title?>
    Gallery title

    Preview object properties

    [] - optional params

    <?=$thumb->url?>
    Link to image generated by INXY-scripts
    <?=$thumb->src_url?>
    Link to original image
    <?=$thumb->media?>
    Link to media object

    Custom error pages

    Since version 1.06 you can create custom error pages for http errors raised by script (404, 502 etc)

    To create custom error page:

    1. Create layouts/error.php layout
    2. Create system/error.php template

    Layout is similar to any other layout you have, but some function unavailable (Inxy::title(), Inxy::description(), Inxy::paginator()).

    Template example:

    
    <?php $messages = array(

        
    404 => "Page not found",
        
    503 => "Server busy",

    )
    ?>
    <h1><?=$e->status?></h1> 
    <p><?=isset($messages[$e->status]) ? $messages[$e->status] : "Unknown error"?></p>

    Search

    WARNING THIS IS IS AN EXPERIMENTAL EXTENSION!

    Using sphinx you can easy add search to you Iinxy site.

    1. Create sphinx source
      source domain_name
      {
      	type		= mysql
      	sql_host	= localhost
      	sql_user	= your_inxy_db_user	
      	sql_pass	= your_inxy_db_pass
      	sql_db		= your_inxy_db
      
      	sql_query				= \
      		SELECT rt.rotation_id, title, categories, tags, description, rt.content_type_id \
      		FROM gals g JOIN rotation rt ON rt.gal_id = g.gal_id WHERE g.status_id = 3 AND g.disabled_sum = 0 AND rt.category_id IN (1,2,3)
       	  
      	sql_attr_uint = content_type_id
      
      	sql_query_info	= SELECT * FROM rotation WHERE rotation_id=$id
      }
      
    2. Create sphinx index
    3. Create config inxy/var/config/sphinx.php. Example:
      
      
      <?
      return array(
        
      "host" => "localhost",
        
      "port" => 3312,
        
      "index" => "sphinx_index_name"
      );
      ?>
    4. Add to cron command to update you index
    5. Add to your template this code
      
      
      <form action="/">
      <input type="text" name="q">
      <input class="submit" type="submit"  value="Find" />
      </form>
    6. Create template site/search.php, use <?=Inxy::req()->search?> to output search request

    Appendixes

    FAQ

    How to create own galleries?

    1. Add embed, flv, fhg (pic) or fhg(pic+mov) galleries to INXY-feeds
    2. Open INXY-feeds/Main and add this types to domain
    3. Go to domain's INXY-site/Settings/Generel and check 'use FHG templates'
    4. Edit templates site/pic.php and site/mov.php

    How to choose thumbs size for import?

    INXY-site использует указанные урлы картинок чтобы сделать тумбы, соотвественно если картинки будут больше тумб то качество будет лучше, черезмерно большие картинки преведут к лишнему расходу траффика и ресурсов сервера

    Glossary

    Categories

    Категория (синоним ниша) - признак назначенный галереи для того чтобы объъеденить галереи с схожим контентом. Примеры: Teens, Blowjob, MILF

    Category types

    В INXY-feeds есть три типа категорий

    Stream

    Стрим это дополнительный (помимо категории) признак галереи. Иногда недостаточно только категории чтобы определить какие галереи передавать на сайт. Например категория Anal может быть классической, а может быть Gay. Для того чтобы разделить такие категории вводится дополнительный признак.

    Есть три стрима: